diff --git a/sdks/marketingsolutions_2023-07/.openapi-generator/FILES b/sdks/marketingsolutions_2023-07/.openapi-generator/FILES deleted file mode 100644 index a737441e..00000000 --- a/sdks/marketingsolutions_2023-07/.openapi-generator/FILES +++ /dev/null @@ -1,568 +0,0 @@ -.github/workflows/maven.yml -.gitignore -.openapi-generator-ignore -.travis.yml -README.md -api/openapi.yaml -build.gradle -build.sbt -docs/Ad.md -docs/AdListResponse.md -docs/AdResource.md -docs/AdResponse.md -docs/AdSetAudienceLinkEntityV1.md -docs/AdSetAudienceLinkEntityV1Resource.md -docs/AdSetAudienceLinkEntityV1Response.md -docs/AdSetAudienceLinkInputEntityV1.md -docs/AdSetCategoryBid.md -docs/AdSetCategoryBidListResponse.md -docs/AdSetCategoryBidResource.md -docs/AdSetDeliveryLimitations.md -docs/AdSetDisplayMultiplier.md -docs/AdSetDisplayMultiplierListResponse.md -docs/AdSetDisplayMultiplierResource.md -docs/AdSetFrequencyCapping.md -docs/AdSetGeoLocation.md -docs/AdSetSearchFilter.md -docs/AdSetTargeting.md -docs/AdSetTargetingRule.md -docs/AdWrite.md -docs/AdWriteRequest.md -docs/AdWriteResource.md -docs/AdaptiveAttributes.md -docs/AdaptiveColors.md -docs/AdaptiveWriteAttributes.md -docs/AdvertiserApi.md -docs/AlgebraNodeV1.md -docs/AnalyticsApi.md -docs/ApplicationSummaryModel.md -docs/ApplicationSummaryModelResource.md -docs/ApplicationSummaryModelResponse.md -docs/Audience.md -docs/AudienceApi.md -docs/AudienceAttributes.md -docs/AudienceBulkCreateInputV1.md -docs/AudienceBulkDeleteInputV1.md -docs/AudienceBulkUpdateInputV1.md -docs/AudienceComputeSizeEntityV1Resource.md -docs/AudienceComputeSizesInputV1.md -docs/AudienceCreateEntityV1.md -docs/AudienceCreateEntityV1Resource.md -docs/AudienceDeleteEntityV1Resource.md -docs/AudienceEntityV1.md -docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md -docs/AudienceEntityV1ListResponse.md -docs/AudienceEntityV1Resource.md -docs/AudienceError.md -docs/AudienceEstimateSizeEntityV1.md -docs/AudienceEstimateSizeEntityV1Resource.md -docs/AudienceEstimateSizeInputV1.md -docs/AudienceIdEntityV1ListResponse.md -docs/AudienceIdEntityV1Resource.md -docs/AudienceNameDescription.md -docs/AudienceSearchEntityV1.md -docs/AudienceSearchEntityV1Resource.md -docs/AudienceSearchInputV1.md -docs/AudienceSearchMetadataV1.md -docs/AudienceSegmentBulkCreateInputV1.md -docs/AudienceSegmentBulkDeleteInputV1.md -docs/AudienceSegmentBulkUpdateInputV1.md -docs/AudienceSegmentComputeSizeEntityV1Resource.md -docs/AudienceSegmentComputeSizesInputV1.md -docs/AudienceSegmentCreateEntityV1.md -docs/AudienceSegmentCreateEntityV1Resource.md -docs/AudienceSegmentDeleteEntityV1Resource.md -docs/AudienceSegmentEntityV1.md -docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md -docs/AudienceSegmentEntityV1ListResponse.md -docs/AudienceSegmentEntityV1Resource.md -docs/AudienceSegmentEstimateSizeInputV1.md -docs/AudienceSegmentIdEntityV1ListResponse.md -docs/AudienceSegmentIdEntityV1Resource.md -docs/AudienceSegmentSearchEntityV1.md -docs/AudienceSegmentSearchEntityV1Resource.md -docs/AudienceSegmentSearchInputV1.md -docs/AudienceSegmentSearchMetadataV1.md -docs/AudienceSegmentSizeEntityV1.md -docs/AudienceSegmentSizeEntityV1ListResponse.md -docs/AudienceSegmentSizeEntityV1Resource.md -docs/AudienceSegmentSizeEstimationEntityV1.md -docs/AudienceSegmentSizeEstimationEntityV1Resource.md -docs/AudienceSegmentSizeEstimationV1.md -docs/AudienceSegmentSizeEstimationV1Resource.md -docs/AudienceSegmentSizeEstimationV1Response.md -docs/AudienceSegmentUpdateEntityV1.md -docs/AudienceSegmentUpdateEntityV1Resource.md -docs/AudienceSizeEntityV1.md -docs/AudienceSizeEntityV1ListResponse.md -docs/AudienceSizeEntityV1Resource.md -docs/AudienceSizeEstimationV1.md -docs/AudienceSizeEstimationV1Resource.md -docs/AudienceSizeEstimationV1Response.md -docs/AudienceUpdateEntityV1.md -docs/AudienceUpdateEntityV1Resource.md -docs/AudienceWarning.md -docs/BasicAudienceDefinition.md -docs/BehavioralV1.md -docs/Campaign.md -docs/CampaignApi.md -docs/CampaignListResponse.md -docs/CampaignReadResource.md -docs/CampaignResponse.md -docs/CampaignSearchFilters.md -docs/CampaignSearchRequest.md -docs/CampaignSpendLimit.md -docs/CampaignSpendLimitV23Q1.md -docs/CampaignV23Q1.md -docs/CampaignV23Q1Resource.md -docs/CampaignV23Q1Response.md -docs/CommonProblem.md -docs/ContactListStatisticsEntityV1.md -docs/ContactListStatisticsEntityV1Resource.md -docs/ContactListStatisticsEntityV1Response.md -docs/ContactListV1.md -docs/ContactlistAmendment.md -docs/ContactlistAmendmentAttributes.md -docs/ContactlistAmendmentRequest.md -docs/ContactlistOperation.md -docs/ContactlistOperationAttributes.md -docs/Coupon.md -docs/CouponListResponse.md -docs/CouponResource.md -docs/CouponResponse.md -docs/CouponSupportedSizes.md -docs/CouponSupportedSizesResource.md -docs/CouponSupportedSizesResponse.md -docs/CreateAdSet.md -docs/CreateAdSetBidding.md -docs/CreateAdSetBudget.md -docs/CreateAdSetGeoLocation.md -docs/CreateAdSetRequest.md -docs/CreateAdSetResource.md -docs/CreateAdSetSchedule.md -docs/CreateAdSetTargeting.md -docs/CreateCampaign.md -docs/CreateCampaignRequest.md -docs/CreateCampaignResource.md -docs/CreateCampaignSpendLimit.md -docs/CreateCoupon.md -docs/CreateCouponRequest.md -docs/CreateCouponResource.md -docs/CreateImageSlide.md -docs/Creative.md -docs/CreativeApi.md -docs/CreativeListResponse.md -docs/CreativeResource.md -docs/CreativeResponse.md -docs/CreativeWrite.md -docs/CreativeWriteRequest.md -docs/CreativeWriteResource.md -docs/CriteoApiError.md -docs/CriteoApiWarning.md -docs/DeleteAudienceContactListResponse.md -docs/DeleteAudienceResponse.md -docs/DynamicAttributes.md -docs/DynamicWriteAttributes.md -docs/EntityOfPortfolioMessage.md -docs/ErrorCodeResponse.md -docs/GatewayApi.md -docs/GetAudiencesResponse.md -docs/GetPortfolioResponse.md -docs/HtmlTagAttributes.md -docs/HtmlTagWriteAttributes.md -docs/ImageAttributes.md -docs/ImageSet.md -docs/ImageSetBase64.md -docs/ImageShape.md -docs/ImageSlide.md -docs/ImageWriteAttributes.md -docs/InMarketAudienceSegmentBrandEntityV1.md -docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md -docs/InMarketAudienceSegmentBrandEntityV1Resource.md -docs/InMarketAudienceSegmentInterestEntityV1.md -docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md -docs/InMarketAudienceSegmentInterestEntityV1Resource.md -docs/InMarketCreateV1.md -docs/InMarketSizeEstimationV1.md -docs/InMarketUpdateV1.md -docs/InMarketV1.md -docs/LocationCreateV1.md -docs/LocationSizeEstimationV1.md -docs/LocationUpdateV1.md -docs/LocationV1.md -docs/LookalikeCreateV1.md -docs/LookalikeUpdateV1.md -docs/LookalikeV1.md -docs/ModifyAudienceResponse.md -docs/NewAudience.md -docs/NewAudienceAttributes.md -docs/NewAudienceRequest.md -docs/NewAudienceResponse.md -docs/NillableAdSetTargetingRule.md -docs/NillableAdSetTargetingRuleValue.md -docs/NillableDateTime.md -docs/NillableDecimal.md -docs/NillableGenderV1.md -docs/NillableInt32.md -docs/NillableString.md -docs/Outcome.md -docs/PatchAdSet.md -docs/PatchAdSetBidding.md -docs/PatchAdSetBudget.md -docs/PatchAdSetCategoryBid.md -docs/PatchAdSetCategoryBidListRequest.md -docs/PatchAdSetCategoryBidResource.md -docs/PatchAdSetCategoryBidResultListResponse.md -docs/PatchAdSetCategoryBidResultResource.md -docs/PatchAdSetDisplayMultiplier.md -docs/PatchAdSetDisplayMultiplierListRequest.md -docs/PatchAdSetDisplayMultiplierResource.md -docs/PatchAdSetDisplayMultiplierResultListResponse.md -docs/PatchAdSetDisplayMultiplierResultResource.md -docs/PatchAdSetScheduling.md -docs/PatchCampaign.md -docs/PatchCampaignListRequest.md -docs/PatchCampaignSpendLimit.md -docs/PatchCampaignWriteResource.md -docs/PatchResultCampaignListResponse.md -docs/PatchResultCampaignReadResource.md -docs/PlacementsReportQueryMessage.md -docs/PlacementsReportQueryMessageListRequest.md -docs/PlacementsReportQueryMessageResource.md -docs/PointOfInterestV1.md -docs/PortfolioMessage.md -docs/ProspectingCreateV1.md -docs/ProspectingUpdateV1.md -docs/ProspectingV1.md -docs/ReadAdSet.md -docs/ReadAdSetBidding.md -docs/ReadAdSetBudget.md -docs/ReadAdSetSchedule.md -docs/ReadModelAdSetId.md -docs/ReadModelReadAdSet.md -docs/ReplaceAudience.md -docs/ReplaceAudienceRequest.md -docs/ReplaceAudienceResponse.md -docs/RequestAdSetSearch.md -docs/RequestsAdSetId.md -docs/RequestsPatchAdSet.md -docs/ResponseReadAdSet.md -docs/ResponsesAdSetId.md -docs/ResponsesReadAdSet.md -docs/RetargetingCreateV1.md -docs/RetargetingUpdateV1.md -docs/RetargetingV1.md -docs/Size.md -docs/StatisticsReportQueryMessage.md -docs/Tag.md -docs/TransactionsReportQueryMessage.md -docs/TransactionsReportQueryMessageListRequest.md -docs/TransactionsReportQueryMessageResource.md -docs/TransparencyQueryMessage.md -docs/TransparencyReport.md -docs/TransparencyReportFile.md -docs/TransparencyReportListResponse.md -docs/TransparencyReportResource.md -docs/UpdateCoupon.md -docs/UpdateCouponRequest.md -docs/UpdateCouponResource.md -docs/VideoDetail.md -docs/WriteModelAdSetId.md -docs/WriteModelPatchAdSet.md -git_push.sh -gradle.properties -gradle/wrapper/gradle-wrapper.jar -gradle/wrapper/gradle-wrapper.properties -gradlew -gradlew.bat -pom.xml -settings.gradle -src/main/AndroidManifest.xml -src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiCallback.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClient.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClientBuilder.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiException.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/Configuration.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/GzipRequestInterceptor.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/JSON.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/Pair.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/ProgressRequestBody.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/ProgressResponseBody.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/ServerConfiguration.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/ServerVariable.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/StringUtil.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AdvertiserApi.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AnalyticsApi.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AudienceApi.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/CampaignApi.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/CreativeApi.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/GatewayApi.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/ApiKeyAuth.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/Authentication.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/HttpBasicAuth.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/HttpBearerAuth.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuth.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuthFlow.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuthOkHttpClient.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/RetryingOAuth.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AbstractOpenApiSchema.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Ad.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Response.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkInputEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBid.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDeliveryLimitations.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplier.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetFrequencyCapping.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetGeoLocation.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetSearchFilter.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetTargeting.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetTargetingRule.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWrite.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveColors.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveWriteAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AlgebraNodeV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModel.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Audience.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkCreateInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkDeleteInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkUpdateInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizeEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizesInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceDeleteEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1ListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceError.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1ListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceNameDescription.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchMetadataV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkCreateInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkDeleteInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkUpdateInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizeEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizesInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentDeleteEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1ListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEstimateSizeInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1ListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchInputV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchMetadataV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1ListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Response.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1ListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Response.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceWarning.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BasicAudienceDefinition.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BehavioralV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Campaign.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignReadResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSearchFilters.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSearchRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimit.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimitV23Q1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Response.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CommonProblem.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Response.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendment.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendmentAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendmentRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistOperation.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistOperationAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Coupon.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSet.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBidding.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBudget.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetGeoLocation.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetSchedule.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetTargeting.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaign.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignSpendLimit.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCoupon.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateImageSlide.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Creative.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWrite.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiError.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiWarning.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DeleteAudienceContactListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DeleteAudienceResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicWriteAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/EntityOfPortfolioMessage.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ErrorCodeResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/GetAudiencesResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/GetPortfolioResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagWriteAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSet.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSetBase64.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageShape.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSlide.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageWriteAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1Resource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketCreateV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketSizeEstimationV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketUpdateV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationCreateV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationSizeEstimationV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationUpdateV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeCreateV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeUpdateV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ModifyAudienceResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudience.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceAttributes.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableAdSetTargetingRule.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableAdSetTargetingRuleValue.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableDateTime.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableDecimal.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableGenderV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableInt32.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableString.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Outcome.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSet.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetBidding.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetBudget.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBid.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidListRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplier.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierListRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetScheduling.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaign.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignListRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignSpendLimit.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignWriteResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignReadResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessage.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessageListRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessageResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PointOfInterestV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PortfolioMessage.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingCreateV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingUpdateV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSet.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBidding.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBudget.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetSchedule.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelAdSetId.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelReadAdSet.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudience.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudienceRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudienceResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestAdSetSearch.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsAdSetId.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsPatchAdSet.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseReadAdSet.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesAdSetId.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesReadAdSet.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingCreateV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingUpdateV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingV1.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Size.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/StatisticsReportQueryMessage.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Tag.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessage.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessageListRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessageResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyQueryMessage.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReport.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportFile.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportListResponse.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCoupon.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponRequest.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponResource.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/VideoDetail.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelAdSetId.java -src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelPatchAdSet.java -src/test/java/com/criteo/api/marketingsolutions/v2023_07/ExampleApplication.java -src/test/java/com/criteo/api/marketingsolutions/v2023_07/GatewayApiTest.java diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetGeoLocation.md b/sdks/marketingsolutions_2023-07/docs/AdSetGeoLocation.md deleted file mode 100644 index 3d0b0a45..00000000 --- a/sdks/marketingsolutions_2023-07/docs/AdSetGeoLocation.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# AdSetGeoLocation - -ad set geolocation model - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**countries** | [**NillableAdSetTargetingRule**](NillableAdSetTargetingRule.md) | | [optional] | -|**subdivisions** | [**NillableAdSetTargetingRule**](NillableAdSetTargetingRule.md) | | [optional] | -|**zipCodes** | [**NillableAdSetTargetingRule**](NillableAdSetTargetingRule.md) | | [optional] | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetTargeting.md b/sdks/marketingsolutions_2023-07/docs/AdSetTargeting.md deleted file mode 100644 index 9bd145a9..00000000 --- a/sdks/marketingsolutions_2023-07/docs/AdSetTargeting.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# AdSetTargeting - -ad set targeting model - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**deliveryLimitations** | [**AdSetDeliveryLimitations**](AdSetDeliveryLimitations.md) | | [optional] | -|**geoLocation** | [**AdSetGeoLocation**](AdSetGeoLocation.md) | | [optional] | -|**frequencyCapping** | [**AdSetFrequencyCapping**](AdSetFrequencyCapping.md) | | [optional] | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/Audience.md b/sdks/marketingsolutions_2023-07/docs/Audience.md deleted file mode 100644 index 8f52402e..00000000 --- a/sdks/marketingsolutions_2023-07/docs/Audience.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# Audience - -Definition of an audience and all its information - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | **String** | the name of the entity type | | -|**id** | **String** | id of the Audience | | -|**attributes** | [**AudienceAttributes**](AudienceAttributes.md) | | | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceAttributes.md b/sdks/marketingsolutions_2023-07/docs/AudienceAttributes.md deleted file mode 100644 index cb9a554d..00000000 --- a/sdks/marketingsolutions_2023-07/docs/AudienceAttributes.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# AudienceAttributes - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**advertiserId** | **String** | The advertiser id that owns this Audience | [optional] | -|**name** | **String** | The name of the Audience | | -|**description** | **String** | The string description of the Audience | | -|**created** | **OffsetDateTime** | Date and time ISO 8601 formatted string | | -|**updated** | **OffsetDateTime** | Date and time ISO 8601 formatted string | | -|**nbLines** | **Integer** | The number of line in the audience available once processed | [optional] | -|**nbLinesEmail** | **Integer** | The number of email line in the audience available once processed | [optional] | -|**nbMatchesEmail** | **Integer** | The number of email matches in the audience available once processed | [optional] | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/Campaign.md b/sdks/marketingsolutions_2023-07/docs/Campaign.md deleted file mode 100644 index 2fcc3341..00000000 --- a/sdks/marketingsolutions_2023-07/docs/Campaign.md +++ /dev/null @@ -1,28 +0,0 @@ - - -# Campaign - -campaign read model - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | | [optional] | -|**advertiserId** | **String** | | [optional] | -|**objective** | **String** | | [optional] | -|**spendLimit** | [**CampaignSpendLimit**](CampaignSpendLimit.md) | | [optional] | -|**goal** | [**GoalEnum**](#GoalEnum) | | [optional] | - - - -## Enum: GoalEnum - -| Name | Value | -|---- | -----| -| UNSPECIFIED | "Unspecified" | -| ACQUISITION | "Acquisition" | -| RETENTION | "Retention" | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimit.md b/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimit.md deleted file mode 100644 index 0a756ba9..00000000 --- a/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimit.md +++ /dev/null @@ -1,36 +0,0 @@ - - -# CampaignSpendLimit - -campaign spend limit model - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**spendLimitType** | [**SpendLimitTypeEnum**](#SpendLimitTypeEnum) | | [optional] | -|**spendLimitRenewal** | [**SpendLimitRenewalEnum**](#SpendLimitRenewalEnum) | | [optional] | -|**spendLimitAmount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] | - - - -## Enum: SpendLimitTypeEnum - -| Name | Value | -|---- | -----| -| CAPPED | "capped" | -| UNCAPPED | "uncapped" | - - - -## Enum: SpendLimitRenewalEnum - -| Name | Value | -|---- | -----| -| UNDEFINED | "undefined" | -| DAILY | "daily" | -| MONTHLY | "monthly" | -| LIFETIME | "lifetime" | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/CreateAdSetGeoLocation.md b/sdks/marketingsolutions_2023-07/docs/CreateAdSetGeoLocation.md deleted file mode 100644 index 6a3ee542..00000000 --- a/sdks/marketingsolutions_2023-07/docs/CreateAdSetGeoLocation.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# CreateAdSetGeoLocation - -Geolocation configuration of the ad set - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**countries** | [**AdSetTargetingRule**](AdSetTargetingRule.md) | | [optional] | -|**subdivisions** | [**AdSetTargetingRule**](AdSetTargetingRule.md) | | [optional] | -|**zipCodes** | [**AdSetTargetingRule**](AdSetTargetingRule.md) | | [optional] | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/CreateAdSetTargeting.md b/sdks/marketingsolutions_2023-07/docs/CreateAdSetTargeting.md deleted file mode 100644 index eec9ce84..00000000 --- a/sdks/marketingsolutions_2023-07/docs/CreateAdSetTargeting.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# CreateAdSetTargeting - -Targeting configuration of the ad set - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**deliveryLimitations** | [**AdSetDeliveryLimitations**](AdSetDeliveryLimitations.md) | | [optional] | -|**geoLocation** | [**CreateAdSetGeoLocation**](CreateAdSetGeoLocation.md) | | [optional] | -|**frequencyCapping** | [**AdSetFrequencyCapping**](AdSetFrequencyCapping.md) | | | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/DeleteAudienceResponse.md b/sdks/marketingsolutions_2023-07/docs/DeleteAudienceResponse.md deleted file mode 100644 index fcb85072..00000000 --- a/sdks/marketingsolutions_2023-07/docs/DeleteAudienceResponse.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# DeleteAudienceResponse - -Response of an audience deletion - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**BasicAudienceDefinition**](BasicAudienceDefinition.md) | | | -|**errors** | [**List<AudienceError>**](AudienceError.md) | | | -|**warnings** | [**List<AudienceWarning>**](AudienceWarning.md) | | | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/NewAudience.md b/sdks/marketingsolutions_2023-07/docs/NewAudience.md deleted file mode 100644 index b390b59d..00000000 --- a/sdks/marketingsolutions_2023-07/docs/NewAudience.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# NewAudience - -Body for the creation of a new audience (name, advertiserId, etc) - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | **String** | the name of the entity type | | -|**attributes** | [**NewAudienceAttributes**](NewAudienceAttributes.md) | | | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/NewAudienceAttributes.md b/sdks/marketingsolutions_2023-07/docs/NewAudienceAttributes.md deleted file mode 100644 index f3690dcf..00000000 --- a/sdks/marketingsolutions_2023-07/docs/NewAudienceAttributes.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# NewAudienceAttributes - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**advertiserId** | **String** | The advertiser id to create the audience for | [optional] | -|**name** | **String** | The name of the new audience | | -|**description** | **String** | The description of the audience | [optional] | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/NewAudienceRequest.md b/sdks/marketingsolutions_2023-07/docs/NewAudienceRequest.md deleted file mode 100644 index 3bce9911..00000000 --- a/sdks/marketingsolutions_2023-07/docs/NewAudienceRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# NewAudienceRequest - -Body of creation of a new audience - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**NewAudience**](NewAudience.md) | | [optional] | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/NewAudienceResponse.md b/sdks/marketingsolutions_2023-07/docs/NewAudienceResponse.md deleted file mode 100644 index 2a33d02a..00000000 --- a/sdks/marketingsolutions_2023-07/docs/NewAudienceResponse.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# NewAudienceResponse - -Response of a newly created audience - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**BasicAudienceDefinition**](BasicAudienceDefinition.md) | | | -|**errors** | [**List<AudienceError>**](AudienceError.md) | | | -|**warnings** | [**List<AudienceWarning>**](AudienceWarning.md) | | | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSet.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSet.md deleted file mode 100644 index 660f61f9..00000000 --- a/sdks/marketingsolutions_2023-07/docs/PatchAdSet.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# PatchAdSet - -ad set patch model - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | | [optional] | -|**scheduling** | [**PatchAdSetScheduling**](PatchAdSetScheduling.md) | | [optional] | -|**bidding** | [**PatchAdSetBidding**](PatchAdSetBidding.md) | | [optional] | -|**targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] | -|**budget** | [**PatchAdSetBudget**](PatchAdSetBudget.md) | | [optional] | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/ReadAdSet.md b/sdks/marketingsolutions_2023-07/docs/ReadAdSet.md deleted file mode 100644 index 0819686b..00000000 --- a/sdks/marketingsolutions_2023-07/docs/ReadAdSet.md +++ /dev/null @@ -1,42 +0,0 @@ - - -# ReadAdSet - -ad set read model - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | | [optional] | -|**advertiserId** | **String** | | [optional] | -|**datasetId** | **String** | | [optional] | -|**campaignId** | **String** | | [optional] | -|**destinationEnvironment** | [**DestinationEnvironmentEnum**](#DestinationEnvironmentEnum) | | [optional] | -|**schedule** | [**ReadAdSetSchedule**](ReadAdSetSchedule.md) | | [optional] | -|**bidding** | [**ReadAdSetBidding**](ReadAdSetBidding.md) | | [optional] | -|**targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] | -|**budget** | [**ReadAdSetBudget**](ReadAdSetBudget.md) | | [optional] | -|**mediaType** | [**MediaTypeEnum**](#MediaTypeEnum) | | [optional] | - - - -## Enum: DestinationEnvironmentEnum - -| Name | Value | -|---- | -----| -| UNDEFINED | "undefined" | -| WEB | "web" | -| APP | "app" | - - - -## Enum: MediaTypeEnum - -| Name | Value | -|---- | -----| -| DISPLAY | "display" | -| VIDEO | "video" | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/ReadAdSetBidding.md b/sdks/marketingsolutions_2023-07/docs/ReadAdSetBidding.md deleted file mode 100644 index 79ee8247..00000000 --- a/sdks/marketingsolutions_2023-07/docs/ReadAdSetBidding.md +++ /dev/null @@ -1,49 +0,0 @@ - - -# ReadAdSetBidding - -ad set bidding read model - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**bidAmount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] | -|**bidStrategy** | [**BidStrategyEnum**](#BidStrategyEnum) | The intended optimization for the Ad Set | [optional] | -|**costController** | [**CostControllerEnum**](#CostControllerEnum) | How spend is controlled | [optional] | - - - -## Enum: BidStrategyEnum - -| Name | Value | -|---- | -----| -| ACTIONS | "actions" | -| CLICKS | "clicks" | -| CONVERSIONS | "conversions" | -| DISPLAYS | "displays" | -| INSTALLS | "installs" | -| REVENUE | "revenue" | -| STORECONVERSIONS | "storeConversions" | -| VALUE | "value" | -| VIEWEDIMPRESSIONS | "viewedImpressions" | -| VISITS | "Visits" | -| COMPLETEDVIDEOVIEWS | "completedVideoViews" | - - - -## Enum: CostControllerEnum - -| Name | Value | -|---- | -----| -| COS | "COS" | -| CPC | "CPC" | -| CPI | "CPI" | -| CPM | "CPM" | -| CPO | "CPO" | -| CPSV | "CPSV" | -| CPV | "CPV" | -| DAILYBUDGET | "dailyBudget" | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/ReplaceAudience.md b/sdks/marketingsolutions_2023-07/docs/ReplaceAudience.md deleted file mode 100644 index 16af94f6..00000000 --- a/sdks/marketingsolutions_2023-07/docs/ReplaceAudience.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ReplaceAudience - -Parameters required to replace an audience - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | **String** | the name of the entity type | | -|**attributes** | [**AudienceNameDescription**](AudienceNameDescription.md) | | | - - - diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DeleteAudienceResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DeleteAudienceResponse.java deleted file mode 100644 index de286220..00000000 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DeleteAudienceResponse.java +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Criteo API - * Criteo API - MarketingSolutions - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.marketingsolutions.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceError; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceWarning; -import com.criteo.api.marketingsolutions.v2023_07.model.BasicAudienceDefinition; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.marketingsolutions.v2023_07.JSON; - -/** - * Response of an audience deletion - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class DeleteAudienceResponse { - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private BasicAudienceDefinition data; - - public static final String SERIALIZED_NAME_ERRORS = "errors"; - @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = new ArrayList<>(); - - public static final String SERIALIZED_NAME_WARNINGS = "warnings"; - @SerializedName(SERIALIZED_NAME_WARNINGS) - private List warnings = new ArrayList<>(); - - public DeleteAudienceResponse() { - } - - public DeleteAudienceResponse data(BasicAudienceDefinition data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nonnull - - public BasicAudienceDefinition getData() { - return data; - } - - - public void setData(BasicAudienceDefinition data) { - this.data = data; - } - - - public DeleteAudienceResponse errors(List errors) { - - this.errors = errors; - return this; - } - - public DeleteAudienceResponse addErrorsItem(AudienceError errorsItem) { - this.errors.add(errorsItem); - return this; - } - - /** - * Get errors - * @return errors - **/ - @javax.annotation.Nonnull - - public List getErrors() { - return errors; - } - - - public void setErrors(List errors) { - this.errors = errors; - } - - - public DeleteAudienceResponse warnings(List warnings) { - - this.warnings = warnings; - return this; - } - - public DeleteAudienceResponse addWarningsItem(AudienceWarning warningsItem) { - this.warnings.add(warningsItem); - return this; - } - - /** - * Get warnings - * @return warnings - **/ - @javax.annotation.Nonnull - - public List getWarnings() { - return warnings; - } - - - public void setWarnings(List warnings) { - this.warnings = warnings; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the DeleteAudienceResponse instance itself - */ - public DeleteAudienceResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteAudienceResponse deleteAudienceResponse = (DeleteAudienceResponse) o; - return Objects.equals(this.data, deleteAudienceResponse.data) && - Objects.equals(this.errors, deleteAudienceResponse.errors) && - Objects.equals(this.warnings, deleteAudienceResponse.warnings)&& - Objects.equals(this.additionalProperties, deleteAudienceResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, errors, warnings, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DeleteAudienceResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("errors"); - openapiFields.add("warnings"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("data"); - openapiRequiredFields.add("errors"); - openapiRequiredFields.add("warnings"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to DeleteAudienceResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!DeleteAudienceResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DeleteAudienceResponse is not found in the empty JSON string", DeleteAudienceResponse.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DeleteAudienceResponse.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - // validate the required field `data` - BasicAudienceDefinition.validateJsonObject(jsonObj.getAsJsonObject("data")); - // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); - } - - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - // validate the required field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - AudienceError.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); - }; - // ensure the json data is an array - if (!jsonObj.get("warnings").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); - } - - JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); - // validate the required field `warnings` (array) - for (int i = 0; i < jsonArraywarnings.size(); i++) { - AudienceWarning.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); - }; - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteAudienceResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteAudienceResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteAudienceResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteAudienceResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public DeleteAudienceResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - DeleteAudienceResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of DeleteAudienceResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteAudienceResponse - * @throws IOException if the JSON string is invalid with respect to DeleteAudienceResponse - */ - public static DeleteAudienceResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteAudienceResponse.class); - } - - /** - * Convert an instance of DeleteAudienceResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/GetAudiencesResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/GetAudiencesResponse.java deleted file mode 100644 index c8e64ffc..00000000 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/GetAudiencesResponse.java +++ /dev/null @@ -1,395 +0,0 @@ -/* - * Criteo API - * Criteo API - MarketingSolutions - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.marketingsolutions.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.Audience; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceError; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceWarning; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.marketingsolutions.v2023_07.JSON; - -/** - * Body of the GET audience operation - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class GetAudiencesResponse { - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList<>(); - - public static final String SERIALIZED_NAME_ERRORS = "errors"; - @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = new ArrayList<>(); - - public static final String SERIALIZED_NAME_WARNINGS = "warnings"; - @SerializedName(SERIALIZED_NAME_WARNINGS) - private List warnings = new ArrayList<>(); - - public GetAudiencesResponse() { - } - - public GetAudiencesResponse data(List data) { - - this.data = data; - return this; - } - - public GetAudiencesResponse addDataItem(Audience dataItem) { - this.data.add(dataItem); - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nonnull - - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public GetAudiencesResponse errors(List errors) { - - this.errors = errors; - return this; - } - - public GetAudiencesResponse addErrorsItem(AudienceError errorsItem) { - this.errors.add(errorsItem); - return this; - } - - /** - * Get errors - * @return errors - **/ - @javax.annotation.Nonnull - - public List getErrors() { - return errors; - } - - - public void setErrors(List errors) { - this.errors = errors; - } - - - public GetAudiencesResponse warnings(List warnings) { - - this.warnings = warnings; - return this; - } - - public GetAudiencesResponse addWarningsItem(AudienceWarning warningsItem) { - this.warnings.add(warningsItem); - return this; - } - - /** - * Get warnings - * @return warnings - **/ - @javax.annotation.Nonnull - - public List getWarnings() { - return warnings; - } - - - public void setWarnings(List warnings) { - this.warnings = warnings; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the GetAudiencesResponse instance itself - */ - public GetAudiencesResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetAudiencesResponse getAudiencesResponse = (GetAudiencesResponse) o; - return Objects.equals(this.data, getAudiencesResponse.data) && - Objects.equals(this.errors, getAudiencesResponse.errors) && - Objects.equals(this.warnings, getAudiencesResponse.warnings)&& - Objects.equals(this.additionalProperties, getAudiencesResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, errors, warnings, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GetAudiencesResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("errors"); - openapiFields.add("warnings"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("data"); - openapiRequiredFields.add("errors"); - openapiRequiredFields.add("warnings"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to GetAudiencesResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!GetAudiencesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GetAudiencesResponse is not found in the empty JSON string", GetAudiencesResponse.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : GetAudiencesResponse.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - // validate the required field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - Audience.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); - }; - // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); - } - - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - // validate the required field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - AudienceError.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); - }; - // ensure the json data is an array - if (!jsonObj.get("warnings").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); - } - - JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); - // validate the required field `warnings` (array) - for (int i = 0; i < jsonArraywarnings.size(); i++) { - AudienceWarning.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); - }; - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetAudiencesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetAudiencesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetAudiencesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetAudiencesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public GetAudiencesResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - GetAudiencesResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GetAudiencesResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetAudiencesResponse - * @throws IOException if the JSON string is invalid with respect to GetAudiencesResponse - */ - public static GetAudiencesResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetAudiencesResponse.class); - } - - /** - * Convert an instance of GetAudiencesResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudience.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudience.java deleted file mode 100644 index 1226e4ac..00000000 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudience.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * Criteo API - * Criteo API - MarketingSolutions - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.marketingsolutions.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceNameDescription; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.marketingsolutions.v2023_07.JSON; - -/** - * Parameters required to replace an audience - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ReplaceAudience { - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private AudienceNameDescription attributes; - - public ReplaceAudience() { - } - - public ReplaceAudience type(String type) { - - this.type = type; - return this; - } - - /** - * the name of the entity type - * @return type - **/ - @javax.annotation.Nonnull - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - - public ReplaceAudience attributes(AudienceNameDescription attributes) { - - this.attributes = attributes; - return this; - } - - /** - * Get attributes - * @return attributes - **/ - @javax.annotation.Nonnull - - public AudienceNameDescription getAttributes() { - return attributes; - } - - - public void setAttributes(AudienceNameDescription attributes) { - this.attributes = attributes; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ReplaceAudience instance itself - */ - public ReplaceAudience putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReplaceAudience replaceAudience = (ReplaceAudience) o; - return Objects.equals(this.type, replaceAudience.type) && - Objects.equals(this.attributes, replaceAudience.attributes)&& - Objects.equals(this.additionalProperties, replaceAudience.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(type, attributes, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ReplaceAudience {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("attributes"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("attributes"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ReplaceAudience - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ReplaceAudience.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ReplaceAudience is not found in the empty JSON string", ReplaceAudience.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ReplaceAudience.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - // validate the required field `attributes` - AudienceNameDescription.validateJsonObject(jsonObj.getAsJsonObject("attributes")); - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReplaceAudience.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReplaceAudience' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ReplaceAudience.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ReplaceAudience value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ReplaceAudience read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ReplaceAudience instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ReplaceAudience given an JSON string - * - * @param jsonString JSON string - * @return An instance of ReplaceAudience - * @throws IOException if the JSON string is invalid with respect to ReplaceAudience - */ - public static ReplaceAudience fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReplaceAudience.class); - } - - /** - * Convert an instance of ReplaceAudience to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudienceResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudienceResponse.java deleted file mode 100644 index bc332dc0..00000000 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudienceResponse.java +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Criteo API - * Criteo API - MarketingSolutions - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.marketingsolutions.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceError; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceWarning; -import com.criteo.api.marketingsolutions.v2023_07.model.BasicAudienceDefinition; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.marketingsolutions.v2023_07.JSON; - -/** - * Response of an audience replacement - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ReplaceAudienceResponse { - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private BasicAudienceDefinition data; - - public static final String SERIALIZED_NAME_ERRORS = "errors"; - @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = new ArrayList<>(); - - public static final String SERIALIZED_NAME_WARNINGS = "warnings"; - @SerializedName(SERIALIZED_NAME_WARNINGS) - private List warnings = new ArrayList<>(); - - public ReplaceAudienceResponse() { - } - - public ReplaceAudienceResponse data(BasicAudienceDefinition data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nonnull - - public BasicAudienceDefinition getData() { - return data; - } - - - public void setData(BasicAudienceDefinition data) { - this.data = data; - } - - - public ReplaceAudienceResponse errors(List errors) { - - this.errors = errors; - return this; - } - - public ReplaceAudienceResponse addErrorsItem(AudienceError errorsItem) { - this.errors.add(errorsItem); - return this; - } - - /** - * Get errors - * @return errors - **/ - @javax.annotation.Nonnull - - public List getErrors() { - return errors; - } - - - public void setErrors(List errors) { - this.errors = errors; - } - - - public ReplaceAudienceResponse warnings(List warnings) { - - this.warnings = warnings; - return this; - } - - public ReplaceAudienceResponse addWarningsItem(AudienceWarning warningsItem) { - this.warnings.add(warningsItem); - return this; - } - - /** - * Get warnings - * @return warnings - **/ - @javax.annotation.Nonnull - - public List getWarnings() { - return warnings; - } - - - public void setWarnings(List warnings) { - this.warnings = warnings; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ReplaceAudienceResponse instance itself - */ - public ReplaceAudienceResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReplaceAudienceResponse replaceAudienceResponse = (ReplaceAudienceResponse) o; - return Objects.equals(this.data, replaceAudienceResponse.data) && - Objects.equals(this.errors, replaceAudienceResponse.errors) && - Objects.equals(this.warnings, replaceAudienceResponse.warnings)&& - Objects.equals(this.additionalProperties, replaceAudienceResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, errors, warnings, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ReplaceAudienceResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("errors"); - openapiFields.add("warnings"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("data"); - openapiRequiredFields.add("errors"); - openapiRequiredFields.add("warnings"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ReplaceAudienceResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ReplaceAudienceResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ReplaceAudienceResponse is not found in the empty JSON string", ReplaceAudienceResponse.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ReplaceAudienceResponse.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - // validate the required field `data` - BasicAudienceDefinition.validateJsonObject(jsonObj.getAsJsonObject("data")); - // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); - } - - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - // validate the required field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - AudienceError.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); - }; - // ensure the json data is an array - if (!jsonObj.get("warnings").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); - } - - JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); - // validate the required field `warnings` (array) - for (int i = 0; i < jsonArraywarnings.size(); i++) { - AudienceWarning.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); - }; - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReplaceAudienceResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReplaceAudienceResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ReplaceAudienceResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ReplaceAudienceResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ReplaceAudienceResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ReplaceAudienceResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ReplaceAudienceResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of ReplaceAudienceResponse - * @throws IOException if the JSON string is invalid with respect to ReplaceAudienceResponse - */ - public static ReplaceAudienceResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReplaceAudienceResponse.class); - } - - /** - * Convert an instance of ReplaceAudienceResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/marketingsolutions_2023-10/README.md b/sdks/marketingsolutions_2023-10/README.md index 417c7b4a..c3193167 100644 --- a/sdks/marketingsolutions_2023-10/README.md +++ b/sdks/marketingsolutions_2023-10/README.md @@ -4,11 +4,11 @@ API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. -More information: [https://developers.criteo.com/](https://developers.criteo.com/) +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). Criteo API -- Package version: 2023.10.0.240826 +- Package version: 2023.10.0.241029 *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.criteo criteo-api-marketingsolutions-sdk - 2023.10.0.240826 + 2023.10.0.241029 compile ``` @@ -48,7 +48,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.criteo:criteo-api-marketingsolutions-sdk:2023.10.0.240826" +compile "com.criteo:criteo-api-marketingsolutions-sdk:2023.10.0.241029" ``` ### Others @@ -61,7 +61,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* `build/libs/criteo-api-marketingsolutions-sdk-2023.10.0.240826.jar` +* `build/libs/criteo-api-marketingsolutions-sdk-2023.10.0.241029.jar` ## Example @@ -84,9 +84,12 @@ Class | Method | HTTP request | Description *AudienceApi* | [**bulkDeleteAudiences**](docs/AudienceApi.md#bulkDeleteAudiences) | **POST** /2023-10/marketing-solutions/audiences/delete | *AudienceApi* | [**bulkUpdateAudienceSegments**](docs/AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2023-10/marketing-solutions/audience-segments | *AudienceApi* | [**bulkUpdateAudiences**](docs/AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2023-10/marketing-solutions/audiences | +*AudienceApi* | [**call10audiencesAudienceSegmentIdContactlistDelete**](docs/AudienceApi.md#call10audiencesAudienceSegmentIdContactlistDelete) | **DELETE** /2023-10/audiences/{audience-segment-id}/contactlist | +*AudienceApi* | [**call10audiencesAudienceSegmentIdContactlistPatch**](docs/AudienceApi.md#call10audiencesAudienceSegmentIdContactlistPatch) | **PATCH** /2023-10/audiences/{audience-segment-id}/contactlist | +*AudienceApi* | [**call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](docs/AudienceApi.md#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | +*AudienceApi* | [**call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](docs/AudienceApi.md#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *AudienceApi* | [**computeAudienceSegmentsSizes**](docs/AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2023-10/marketing-solutions/audience-segments/compute-sizes | *AudienceApi* | [**computeAudiencesSizes**](docs/AudienceApi.md#computeAudiencesSizes) | **POST** /2023-10/marketing-solutions/audiences/compute-sizes | -*AudienceApi* | [**deleteContactListIdentifiers**](docs/AudienceApi.md#deleteContactListIdentifiers) | **DELETE** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *AudienceApi* | [**estimateAudienceSegmentSize**](docs/AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2023-10/marketing-solutions/audience-segments/estimate-size | *AudienceApi* | [**estimateAudienceSize**](docs/AudienceApi.md#estimateAudienceSize) | **POST** /2023-10/marketing-solutions/audiences/estimate-size | *AudienceApi* | [**getAudienceSegmentContactListStatistics**](docs/AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics | @@ -94,7 +97,6 @@ Class | Method | HTTP request | Description *AudienceApi* | [**getAudienceSegmentsInMarketInterests**](docs/AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2023-10/marketing-solutions/audience-segments/in-market-interests | *AudienceApi* | [**searchAudienceSegments**](docs/AudienceApi.md#searchAudienceSegments) | **POST** /2023-10/marketing-solutions/audience-segments/search | *AudienceApi* | [**searchAudiences**](docs/AudienceApi.md#searchAudiences) | **POST** /2023-10/marketing-solutions/audiences/search | -*AudienceApi* | [**updateContactListIdentifiers**](docs/AudienceApi.md#updateContactListIdentifiers) | **PATCH** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *CampaignApi* | [**createAdSet**](docs/CampaignApi.md#createAdSet) | **POST** /2023-10/marketing-solutions/ad-sets | *CampaignApi* | [**createCampaign**](docs/CampaignApi.md#createCampaign) | **POST** /2023-10/marketing-solutions/campaigns | *CampaignApi* | [**getAdSet**](docs/CampaignApi.md#getAdSet) | **GET** /2023-10/marketing-solutions/ad-sets/{adSetId} | diff --git a/sdks/marketingsolutions_2023-10/api/openapi.yaml b/sdks/marketingsolutions_2023-10/api/openapi.yaml index d30db0e8..a204ec6e 100644 --- a/sdks/marketingsolutions_2023-10/api/openapi.yaml +++ b/sdks/marketingsolutions_2023-10/api/openapi.yaml @@ -8,10 +8,157 @@ servers: security: - oauth: [] paths: + /2023-10/audiences/{audience-segment-id}/contactlist: + delete: + description: Delete all identifiers from a contact list audience-segment. + parameters: + - description: The id of the contact list audience-segment to amend + explode: false + in: path + name: audience-segment-id + required: true + schema: + format: int32 + type: string + style: simple + responses: + "200": + content: + application/json: + example: + data: + id: "1" + type: AudienceContactlist + errors: [] + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/DeleteAudienceContactListResponse' + description: The Contact List was emptied + "403": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Forbidden + tags: + - Audience + x-accepts: application/json + patch: + description: Add/remove identifiers to or from a contact list audience-segment. + parameters: + - description: The id of the contact list audience-segment to amend + explode: false + in: path + name: audience-segment-id + required: true + schema: + format: int32 + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContactlistAmendmentRequest' + required: true + x-bodyName: body + responses: + "200": + content: + application/json: + example: + data: + type: ContactlistAmendment + attributes: + contactListId: 12 + operation: add + requestDate: 2018-12-10T10:00:50.0000000+00:00 + identifierType: madid + nbValidIdentifiers: 7343 + nbInvalidIdentifiers: 13 + sampleInvalidIdentifiers: + - InvalidIdentifier + errors: [] + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ModifyAudienceResponse' + description: Summary of created request + "403": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Forbidden + "404": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Audience 123 not found + tags: + - Audience + x-content-type: application/json + x-accepts: application/json /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list: delete: description: Delete all identifiers from a contact list audience-segment. - operationId: deleteContactListIdentifiers parameters: - description: The id of the contact list audience-segment to amend explode: false @@ -67,7 +214,6 @@ paths: x-accepts: application/json patch: description: Add/remove identifiers to or from a contact list audience-segment. - operationId: updateContactListIdentifiers parameters: - description: The id of the contact list audience-segment to amend explode: false @@ -2930,23 +3076,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary + type: string + text/csv: + schema: + format: binary type: string application/xml: schema: - format: byte + format: binary type: string - text/xml: + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3228,27 +3378,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3392,27 +3542,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -14248,12 +14398,11 @@ components: - madid - identityLink - gum - - customerid - phoneNumber nullable: true type: string identifiers: - description: "The users tos add or remove, each in the schema specified" + description: "The users to add or remove, each in the schema specified" items: type: string type: array diff --git a/sdks/marketingsolutions_2023-10/build.gradle b/sdks/marketingsolutions_2023-10/build.gradle index 24100576..486cc597 100644 --- a/sdks/marketingsolutions_2023-10/build.gradle +++ b/sdks/marketingsolutions_2023-10/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2023.10.0.240826' +version = '2023.10.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-marketingsolutions-sdk' - version '2023.10.0.240826' + version '2023.10.0.241029' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/marketingsolutions_2023-10/docs/AdvertiserApi.md b/sdks/marketingsolutions_2023-10/docs/AdvertiserApi.md index db70b6fe..5367f1f8 100644 --- a/sdks/marketingsolutions_2023-10/docs/AdvertiserApi.md +++ b/sdks/marketingsolutions_2023-10/docs/AdvertiserApi.md @@ -1,6 +1,6 @@ # AdvertiserApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2023-10/docs/AnalyticsApi.md b/sdks/marketingsolutions_2023-10/docs/AnalyticsApi.md index 03901274..63394837 100644 --- a/sdks/marketingsolutions_2023-10/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_2023-10/docs/AnalyticsApi.md @@ -1,6 +1,6 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -13,7 +13,7 @@ All URIs are relative to *https://api.criteo.com* ## getAdsetReport -> byte[] getAdsetReport(statisticsReportQueryMessage) +> File getAdsetReport(statisticsReportQueryMessage) @@ -60,7 +60,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); StatisticsReportQueryMessage statisticsReportQueryMessage = new StatisticsReportQueryMessage(); // StatisticsReportQueryMessage | try { - byte[] result = apiInstance.getAdsetReport(statisticsReportQueryMessage); + File result = apiInstance.getAdsetReport(statisticsReportQueryMessage); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getAdsetReport"); @@ -82,7 +82,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -104,7 +104,7 @@ public class Example { ## getPlacementsReport -> byte[] getPlacementsReport(placementsReportQueryMessageListRequest) +> File getPlacementsReport(placementsReportQueryMessageListRequest) @@ -151,7 +151,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest = new PlacementsReportQueryMessageListRequest(); // PlacementsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); + File result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getPlacementsReport"); @@ -173,7 +173,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -182,7 +182,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json, application/xml, text/xml +- **Accept**: text/plain, application/json, text/json, text/csv, application/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/xml ### HTTP response details @@ -195,7 +195,7 @@ public class Example { ## getTransactionsReport -> byte[] getTransactionsReport(transactionsReportQueryMessageListRequest) +> File getTransactionsReport(transactionsReportQueryMessageListRequest) @@ -242,7 +242,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest = new TransactionsReportQueryMessageListRequest(); // TransactionsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); + File result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getTransactionsReport"); @@ -264,7 +264,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization diff --git a/sdks/marketingsolutions_2023-10/docs/AudienceApi.md b/sdks/marketingsolutions_2023-10/docs/AudienceApi.md index a40680f5..b7f754af 100644 --- a/sdks/marketingsolutions_2023-10/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceApi.md @@ -1,6 +1,6 @@ # AudienceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -10,9 +10,12 @@ All URIs are relative to *https://api.criteo.com* | [**bulkDeleteAudiences**](AudienceApi.md#bulkDeleteAudiences) | **POST** /2023-10/marketing-solutions/audiences/delete | | | [**bulkUpdateAudienceSegments**](AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2023-10/marketing-solutions/audience-segments | | | [**bulkUpdateAudiences**](AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2023-10/marketing-solutions/audiences | | +| [**call10audiencesAudienceSegmentIdContactlistDelete**](AudienceApi.md#call10audiencesAudienceSegmentIdContactlistDelete) | **DELETE** /2023-10/audiences/{audience-segment-id}/contactlist | | +| [**call10audiencesAudienceSegmentIdContactlistPatch**](AudienceApi.md#call10audiencesAudienceSegmentIdContactlistPatch) | **PATCH** /2023-10/audiences/{audience-segment-id}/contactlist | | +| [**call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](AudienceApi.md#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | +| [**call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](AudienceApi.md#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | | [**computeAudienceSegmentsSizes**](AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2023-10/marketing-solutions/audience-segments/compute-sizes | | | [**computeAudiencesSizes**](AudienceApi.md#computeAudiencesSizes) | **POST** /2023-10/marketing-solutions/audiences/compute-sizes | | -| [**deleteContactListIdentifiers**](AudienceApi.md#deleteContactListIdentifiers) | **DELETE** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | | [**estimateAudienceSegmentSize**](AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2023-10/marketing-solutions/audience-segments/estimate-size | | | [**estimateAudienceSize**](AudienceApi.md#estimateAudienceSize) | **POST** /2023-10/marketing-solutions/audiences/estimate-size | | | [**getAudienceSegmentContactListStatistics**](AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics | | @@ -20,7 +23,6 @@ All URIs are relative to *https://api.criteo.com* | [**getAudienceSegmentsInMarketInterests**](AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2023-10/marketing-solutions/audience-segments/in-market-interests | | | [**searchAudienceSegments**](AudienceApi.md#searchAudienceSegments) | **POST** /2023-10/marketing-solutions/audience-segments/search | | | [**searchAudiences**](AudienceApi.md#searchAudiences) | **POST** /2023-10/marketing-solutions/audiences/search | | -| [**updateContactListIdentifiers**](AudienceApi.md#updateContactListIdentifiers) | **PATCH** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | @@ -577,13 +579,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## computeAudienceSegmentsSizes +## call10audiencesAudienceSegmentIdContactlistDelete -> AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1) +> DeleteAudienceContactListResponse call10audiencesAudienceSegmentIdContactlistDelete(audienceSegmentId) -Gets the size of all segments. An error is returned for those whose size calculation is not supported. +Delete all identifiers from a contact list audience-segment. ### Example @@ -624,12 +626,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1 = new AudienceSegmentComputeSizesInputV1(); // AudienceSegmentComputeSizesInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend try { - AudienceSegmentSizeEntityV1ListResponse result = apiInstance.computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1); + DeleteAudienceContactListResponse result = apiInstance.call10audiencesAudienceSegmentIdContactlistDelete(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#computeAudienceSegmentsSizes"); + System.err.println("Exception when calling AudienceApi#call10audiencesAudienceSegmentIdContactlistDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -644,11 +646,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentComputeSizesInputV1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | ### Return type -[**AudienceSegmentSizeEntityV1ListResponse**](AudienceSegmentSizeEntityV1ListResponse.md) +[**DeleteAudienceContactListResponse**](DeleteAudienceContactListResponse.md) ### Authorization @@ -656,26 +658,24 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: Not defined +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success or partial success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | The Contact List was emptied | - | +| **403** | Forbidden | - | -## computeAudiencesSizes +## call10audiencesAudienceSegmentIdContactlistPatch -> AudienceSizeEntityV1ListResponse computeAudiencesSizes(audienceComputeSizesInputV1) +> ModifyAudienceResponse call10audiencesAudienceSegmentIdContactlistPatch(audienceSegmentId, contactlistAmendmentRequest) -Gets the size of all audiences. An error is returned for those whose size calculation is not supported. +Add/remove identifiers to or from a contact list audience-segment. ### Example @@ -716,12 +716,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceComputeSizesInputV1 audienceComputeSizesInputV1 = new AudienceComputeSizesInputV1(); // AudienceComputeSizesInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend + ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | try { - AudienceSizeEntityV1ListResponse result = apiInstance.computeAudiencesSizes(audienceComputeSizesInputV1); + ModifyAudienceResponse result = apiInstance.call10audiencesAudienceSegmentIdContactlistPatch(audienceSegmentId, contactlistAmendmentRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#computeAudiencesSizes"); + System.err.println("Exception when calling AudienceApi#call10audiencesAudienceSegmentIdContactlistPatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -736,11 +737,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceComputeSizesInputV1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | +| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | ### Return type -[**AudienceSizeEntityV1ListResponse**](AudienceSizeEntityV1ListResponse.md) +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) ### Authorization @@ -748,22 +750,21 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: application/json +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success or partial success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | Summary of created request | - | +| **403** | Forbidden | - | +| **404** | Audience 123 not found | - | -## deleteContactListIdentifiers +## call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete -> DeleteAudienceContactListResponse deleteContactListIdentifiers(audienceSegmentId) +> DeleteAudienceContactListResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId) @@ -810,10 +811,10 @@ public class Example { AudienceApi apiInstance = new AudienceApi(defaultClient); String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend try { - DeleteAudienceContactListResponse result = apiInstance.deleteContactListIdentifiers(audienceSegmentId); + DeleteAudienceContactListResponse result = apiInstance.call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#deleteContactListIdentifiers"); + System.err.println("Exception when calling AudienceApi#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -851,13 +852,13 @@ public class Example { | **403** | Forbidden | - | -## estimateAudienceSegmentSize +## call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch -> AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1) +> ModifyAudienceResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest) -Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. +Add/remove identifiers to or from a contact list audience-segment. ### Example @@ -898,12 +899,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1 = new AudienceSegmentEstimateSizeInputV1(); // AudienceSegmentEstimateSizeInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend + ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | try { - AudienceSegmentSizeEstimationV1Response result = apiInstance.estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1); + ModifyAudienceResponse result = apiInstance.call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#estimateAudienceSegmentSize"); + System.err.println("Exception when calling AudienceApi#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -918,11 +920,103 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentEstimateSizeInputV1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | +| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | ### Return type -[**AudienceSegmentSizeEstimationV1Response**](AudienceSegmentSizeEstimationV1Response.md) +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Summary of created request | - | +| **403** | Forbidden | - | +| **404** | Audience 123 not found | - | + + +## computeAudienceSegmentsSizes + +> AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1) + + + +Gets the size of all segments. An error is returned for those whose size calculation is not supported. + +### Example + +```java +package com.criteo.api.marketingsolutions.v2023_10; + +import com.criteo.api.marketingsolutions.v2023_10.ApiClient; +import com.criteo.api.marketingsolutions.v2023_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2023_10.ApiException; +import com.criteo.api.marketingsolutions.v2023_10.Configuration; +import com.criteo.api.marketingsolutions.v2023_10.auth.*; +import com.criteo.api.marketingsolutions.v2023_10.model.*; +import com.criteo.api.marketingsolutions.v2023_10.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1 = new AudienceSegmentComputeSizesInputV1(); // AudienceSegmentComputeSizesInputV1 | + try { + AudienceSegmentSizeEntityV1ListResponse result = apiInstance.computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#computeAudienceSegmentsSizes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **audienceSegmentComputeSizesInputV1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | | + +### Return type + +[**AudienceSegmentSizeEntityV1ListResponse**](AudienceSegmentSizeEntityV1ListResponse.md) ### Authorization @@ -937,19 +1031,19 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | Success or partial success | - | | **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## estimateAudienceSize +## computeAudiencesSizes -> AudienceSizeEstimationV1Response estimateAudienceSize(audienceEstimateSizeInputV1) +> AudienceSizeEntityV1ListResponse computeAudiencesSizes(audienceComputeSizesInputV1) -Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. +Gets the size of all audiences. An error is returned for those whose size calculation is not supported. ### Example @@ -990,12 +1084,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1 = new AudienceEstimateSizeInputV1(); // AudienceEstimateSizeInputV1 | + AudienceComputeSizesInputV1 audienceComputeSizesInputV1 = new AudienceComputeSizesInputV1(); // AudienceComputeSizesInputV1 | try { - AudienceSizeEstimationV1Response result = apiInstance.estimateAudienceSize(audienceEstimateSizeInputV1); + AudienceSizeEntityV1ListResponse result = apiInstance.computeAudiencesSizes(audienceComputeSizesInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#estimateAudienceSize"); + System.err.println("Exception when calling AudienceApi#computeAudiencesSizes"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1010,11 +1104,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceEstimateSizeInputV1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | | +| **audienceComputeSizesInputV1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | | ### Return type -[**AudienceSizeEstimationV1Response**](AudienceSizeEstimationV1Response.md) +[**AudienceSizeEntityV1ListResponse**](AudienceSizeEntityV1ListResponse.md) ### Authorization @@ -1035,13 +1129,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentContactListStatistics +## estimateAudienceSegmentSize -> ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(audienceSegmentId) +> AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1) -Returns the statistics of a contact list segment. +Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. ### Example @@ -1082,12 +1176,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - Integer audienceSegmentId = 56; // Integer | The segment ID. + AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1 = new AudienceSegmentEstimateSizeInputV1(); // AudienceSegmentEstimateSizeInputV1 | try { - ContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(audienceSegmentId); + AudienceSegmentSizeEstimationV1Response result = apiInstance.estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); + System.err.println("Exception when calling AudienceApi#estimateAudienceSegmentSize"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1102,11 +1196,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentId** | **Integer**| The segment ID. | | +| **audienceSegmentEstimateSizeInputV1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | | ### Return type -[**ContactListStatisticsEntityV1Response**](ContactListStatisticsEntityV1Response.md) +[**AudienceSegmentSizeEstimationV1Response**](AudienceSegmentSizeEstimationV1Response.md) ### Authorization @@ -1114,7 +1208,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json @@ -1122,17 +1216,18 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | +| **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentsInMarketBrands +## estimateAudienceSize -> InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(advertiserId, country) +> AudienceSizeEstimationV1Response estimateAudienceSize(audienceEstimateSizeInputV1) -Returns a list with all available in-market brands that can be used to define an in-market segment. +Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. ### Example @@ -1173,13 +1268,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String advertiserId = "advertiserId_example"; // String | The advertiser ID. - String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. + AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1 = new AudienceEstimateSizeInputV1(); // AudienceEstimateSizeInputV1 | try { - InMarketAudienceSegmentBrandEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketBrands(advertiserId, country); + AudienceSizeEstimationV1Response result = apiInstance.estimateAudienceSize(audienceEstimateSizeInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketBrands"); + System.err.println("Exception when calling AudienceApi#estimateAudienceSize"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1194,12 +1288,103 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **advertiserId** | **String**| The advertiser ID. | | -| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | +| **audienceEstimateSizeInputV1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | | ### Return type -[**InMarketAudienceSegmentBrandEntityV1ListResponse**](InMarketAudienceSegmentBrandEntityV1ListResponse.md) +[**AudienceSizeEstimationV1Response**](AudienceSizeEstimationV1Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success or partial success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | + + +## getAudienceSegmentContactListStatistics + +> ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(audienceSegmentId) + + + +Returns the statistics of a contact list segment. + +### Example + +```java +package com.criteo.api.marketingsolutions.v2023_10; + +import com.criteo.api.marketingsolutions.v2023_10.ApiClient; +import com.criteo.api.marketingsolutions.v2023_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2023_10.ApiException; +import com.criteo.api.marketingsolutions.v2023_10.Configuration; +import com.criteo.api.marketingsolutions.v2023_10.auth.*; +import com.criteo.api.marketingsolutions.v2023_10.model.*; +import com.criteo.api.marketingsolutions.v2023_10.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + Integer audienceSegmentId = 56; // Integer | The segment ID. + try { + ContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(audienceSegmentId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **audienceSegmentId** | **Integer**| The segment ID. | | + +### Return type + +[**ContactListStatisticsEntityV1Response**](ContactListStatisticsEntityV1Response.md) ### Authorization @@ -1219,13 +1404,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentsInMarketInterests +## getAudienceSegmentsInMarketBrands -> InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(advertiserId, country) +> InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(advertiserId, country) -Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. +Returns a list with all available in-market brands that can be used to define an in-market segment. ### Example @@ -1269,10 +1454,10 @@ public class Example { String advertiserId = "advertiserId_example"; // String | The advertiser ID. String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. try { - InMarketAudienceSegmentInterestEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketInterests(advertiserId, country); + InMarketAudienceSegmentBrandEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketBrands(advertiserId, country); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketInterests"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketBrands"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1292,7 +1477,7 @@ public class Example { ### Return type -[**InMarketAudienceSegmentInterestEntityV1ListResponse**](InMarketAudienceSegmentInterestEntityV1ListResponse.md) +[**InMarketAudienceSegmentBrandEntityV1ListResponse**](InMarketAudienceSegmentBrandEntityV1ListResponse.md) ### Authorization @@ -1312,13 +1497,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## searchAudienceSegments +## getAudienceSegmentsInMarketInterests -> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset) +> InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(advertiserId, country) -Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. +Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. ### Example @@ -1359,14 +1544,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1 = new AudienceSegmentSearchInputV1(); // AudienceSegmentSearchInputV1 | Segment search filters. - Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. - Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. + String advertiserId = "advertiserId_example"; // String | The advertiser ID. + String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. try { - AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset); + InMarketAudienceSegmentInterestEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketInterests(advertiserId, country); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketInterests"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1381,13 +1565,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentSearchInputV1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | | -| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | -| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | +| **advertiserId** | **String**| The advertiser ID. | | +| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | ### Return type -[**AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse**](AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) +[**InMarketAudienceSegmentInterestEntityV1ListResponse**](InMarketAudienceSegmentInterestEntityV1ListResponse.md) ### Authorization @@ -1395,7 +1578,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Content-Type**: Not defined - **Accept**: text/plain, application/json, text/json @@ -1403,18 +1586,17 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | -| **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## searchAudiences +## searchAudienceSegments -> AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(audienceSearchInputV1, limit, offset) +> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset) -Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. +Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -1455,14 +1637,14 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSearchInputV1 audienceSearchInputV1 = new AudienceSearchInputV1(); // AudienceSearchInputV1 | Audience search filters. + AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1 = new AudienceSegmentSearchInputV1(); // AudienceSegmentSearchInputV1 | Segment search filters. Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - AudienceEntityV1AudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(audienceSearchInputV1, limit, offset); + AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#searchAudiences"); + System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1477,13 +1659,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSearchInputV1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | | +| **audienceSegmentSearchInputV1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | | | **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | | **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -[**AudienceEntityV1AudienceSearchMetadataV1ListResponse**](AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) +[**AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse**](AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) ### Authorization @@ -1504,13 +1686,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## updateContactListIdentifiers +## searchAudiences -> ModifyAudienceResponse updateContactListIdentifiers(audienceSegmentId, contactlistAmendmentRequest) +> AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(audienceSearchInputV1, limit, offset) -Add/remove identifiers to or from a contact list audience-segment. +Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -1551,13 +1733,14 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend - ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | + AudienceSearchInputV1 audienceSearchInputV1 = new AudienceSearchInputV1(); // AudienceSearchInputV1 | Audience search filters. + Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. + Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - ModifyAudienceResponse result = apiInstance.updateContactListIdentifiers(audienceSegmentId, contactlistAmendmentRequest); + AudienceEntityV1AudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(audienceSearchInputV1, limit, offset); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#updateContactListIdentifiers"); + System.err.println("Exception when calling AudienceApi#searchAudiences"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1572,12 +1755,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | -| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | +| **audienceSearchInputV1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | | +| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | +| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -[**ModifyAudienceResponse**](ModifyAudienceResponse.md) +[**AudienceEntityV1AudienceSearchMetadataV1ListResponse**](AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) ### Authorization @@ -1585,14 +1769,15 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json -- **Accept**: application/json +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Summary of created request | - | -| **403** | Forbidden | - | -| **404** | Audience 123 not found | - | +| **200** | Success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | diff --git a/sdks/marketingsolutions_2023-10/docs/CampaignApi.md b/sdks/marketingsolutions_2023-10/docs/CampaignApi.md index e5388a56..035eeabe 100644 --- a/sdks/marketingsolutions_2023-10/docs/CampaignApi.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignApi.md @@ -1,6 +1,6 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2023-10/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2023-10/docs/ContactlistAmendmentAttributes.md index f0a2c263..cd54aaf1 100644 --- a/sdks/marketingsolutions_2023-10/docs/ContactlistAmendmentAttributes.md +++ b/sdks/marketingsolutions_2023-10/docs/ContactlistAmendmentAttributes.md @@ -10,7 +10,7 @@ the name of the entity type |------------ | ------------- | ------------- | -------------| |**operation** | [**OperationEnum**](#OperationEnum) | Operation to add or remove users | | |**identifierType** | [**IdentifierTypeEnum**](#IdentifierTypeEnum) | What type of identifiers are used | [optional] | -|**identifiers** | **List<String>** | The users tos add or remove, each in the schema specified | | +|**identifiers** | **List<String>** | The users to add or remove, each in the schema specified | | |**gumCallerId** | **Integer** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] | @@ -32,7 +32,6 @@ the name of the entity type | MADID | "madid" | | IDENTITYLINK | "identityLink" | | GUM | "gum" | -| CUSTOMERID | "customerid" | | PHONENUMBER | "phoneNumber" | diff --git a/sdks/marketingsolutions_2023-10/docs/CreativeApi.md b/sdks/marketingsolutions_2023-10/docs/CreativeApi.md index 167db673..d64af84f 100644 --- a/sdks/marketingsolutions_2023-10/docs/CreativeApi.md +++ b/sdks/marketingsolutions_2023-10/docs/CreativeApi.md @@ -1,6 +1,6 @@ # CreativeApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2023-10/docs/GatewayApi.md b/sdks/marketingsolutions_2023-10/docs/GatewayApi.md index da293545..e71a56d6 100644 --- a/sdks/marketingsolutions_2023-10/docs/GatewayApi.md +++ b/sdks/marketingsolutions_2023-10/docs/GatewayApi.md @@ -1,6 +1,6 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/ApiClient.java b/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/ApiClient.java index aac959a1..e0f5131e 100644 --- a/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/ApiClient.java +++ b/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2023.10.0.240826/java"); + setUserAgent("OpenAPI-Generator/2023.10.0.241029/java"); authentications = new HashMap(); } diff --git a/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/api/AnalyticsApi.java b/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/api/AnalyticsApi.java index f19d43ce..b3d97a5f 100644 --- a/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/api/AnalyticsApi.java +++ b/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/api/AnalyticsApi.java @@ -27,6 +27,7 @@ import java.io.IOException; +import java.io.File; import com.criteo.api.marketingsolutions.v2023_10.model.Outcome; import com.criteo.api.marketingsolutions.v2023_10.model.PlacementsReportQueryMessageListRequest; import com.criteo.api.marketingsolutions.v2023_10.model.StatisticsReportQueryMessage; @@ -155,7 +156,7 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -165,8 +166,8 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa
403 Forbidden -
*/ - public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { - ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); + public File getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); return localVarResp.getData(); } @@ -174,7 +175,7 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -184,9 +185,9 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM
403 Forbidden -
*/ - public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -205,10 +206,10 @@ public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessa 403 Forbidden - */ - public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -255,7 +256,9 @@ public okhttp3.Call getPlacementsReportCall(PlacementsReportQueryMessageListRequ "text/plain", "application/json", "text/json", + "text/csv", "application/xml", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/xml" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); @@ -288,7 +291,7 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -298,8 +301,8 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery
403 Forbidden -
*/ - public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); + public File getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -307,7 +310,7 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -317,9 +320,9 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem
403 Forbidden -
*/ - public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -338,10 +341,10 @@ public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQuery 403 Forbidden - */ - public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -422,7 +425,7 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -432,8 +435,8 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ
403 Forbidden -
*/ - public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); + public File getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -441,7 +444,7 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -451,9 +454,9 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr
403 Forbidden -
*/ - public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -472,10 +475,10 @@ public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQ 403 Forbidden - */ - public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/api/AudienceApi.java b/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/api/AudienceApi.java index e1807a95..b9e4c406 100644 --- a/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/api/AudienceApi.java +++ b/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/api/AudienceApi.java @@ -945,6 +945,542 @@ public okhttp3.Call bulkUpdateAudiencesAsync(AudienceBulkUpdateInputV1 audienceB localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for call10audiencesAudienceSegmentIdContactlistDelete + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call10audiencesAudienceSegmentIdContactlistDeleteCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2023-10/audiences/{audience-segment-id}/contactlist" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call10audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call10audiencesAudienceSegmentIdContactlistDelete(Async)"); + } + + return call10audiencesAudienceSegmentIdContactlistDeleteCall(audienceSegmentId, _callback); + + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return DeleteAudienceContactListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public DeleteAudienceContactListResponse call10audiencesAudienceSegmentIdContactlistDelete(String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = call10audiencesAudienceSegmentIdContactlistDeleteWithHttpInfo(audienceSegmentId); + return localVarResp.getData(); + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return ApiResponse<DeleteAudienceContactListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public ApiResponse call10audiencesAudienceSegmentIdContactlistDeleteWithHttpInfo(String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = call10audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call10audiencesAudienceSegmentIdContactlistDeleteAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call10audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call10audiencesAudienceSegmentIdContactlistPatch + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call10audiencesAudienceSegmentIdContactlistPatchCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = contactlistAmendmentRequest; + + // create path and map variables + String localVarPath = "/2023-10/audiences/{audience-segment-id}/contactlist" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call10audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call10audiencesAudienceSegmentIdContactlistPatch(Async)"); + } + + // verify the required parameter 'contactlistAmendmentRequest' is set + if (contactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling call10audiencesAudienceSegmentIdContactlistPatch(Async)"); + } + + return call10audiencesAudienceSegmentIdContactlistPatchCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ModifyAudienceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ModifyAudienceResponse call10audiencesAudienceSegmentIdContactlistPatch(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = call10audiencesAudienceSegmentIdContactlistPatchWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); + return localVarResp.getData(); + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ApiResponse<ModifyAudienceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ApiResponse call10audiencesAudienceSegmentIdContactlistPatchWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = call10audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call10audiencesAudienceSegmentIdContactlistPatchAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call10audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(Async)"); + } + + return call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(audienceSegmentId, _callback); + + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return DeleteAudienceContactListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public DeleteAudienceContactListResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(audienceSegmentId); + return localVarResp.getData(); + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return ApiResponse<DeleteAudienceContactListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public ApiResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = contactlistAmendmentRequest; + + // create path and map variables + String localVarPath = "/2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); + } + + // verify the required parameter 'contactlistAmendmentRequest' is set + if (contactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); + } + + return call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ModifyAudienceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ModifyAudienceResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); + return localVarResp.getData(); + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ApiResponse<ModifyAudienceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ApiResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for computeAudienceSegmentsSizes * @param audienceSegmentComputeSizesInputV1 (required) @@ -1225,133 +1761,6 @@ public okhttp3.Call computeAudiencesSizesAsync(AudienceComputeSizesInputV1 audie localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for deleteContactListIdentifiers - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public okhttp3.Call deleteContactListIdentifiersCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" - .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteContactListIdentifiersValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentId' is set - if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling deleteContactListIdentifiers(Async)"); - } - - return deleteContactListIdentifiersCall(audienceSegmentId, _callback); - - } - - /** - * - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @return DeleteAudienceContactListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public DeleteAudienceContactListResponse deleteContactListIdentifiers(String audienceSegmentId) throws ApiException { - ApiResponse localVarResp = deleteContactListIdentifiersWithHttpInfo(audienceSegmentId); - return localVarResp.getData(); - } - - /** - * - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @return ApiResponse<DeleteAudienceContactListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public ApiResponse deleteContactListIdentifiersWithHttpInfo(String audienceSegmentId) throws ApiException { - okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public okhttp3.Call deleteContactListIdentifiersAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } /** * Build call for estimateAudienceSegmentSize * @param audienceSegmentEstimateSizeInputV1 (required) @@ -2375,145 +2784,4 @@ public okhttp3.Call searchAudiencesAsync(AudienceSearchInputV1 audienceSearchInp localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for updateContactListIdentifiers - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public okhttp3.Call updateContactListIdentifiersCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = contactlistAmendmentRequest; - - // create path and map variables - String localVarPath = "/2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" - .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateContactListIdentifiersValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentId' is set - if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling updateContactListIdentifiers(Async)"); - } - - // verify the required parameter 'contactlistAmendmentRequest' is set - if (contactlistAmendmentRequest == null) { - throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling updateContactListIdentifiers(Async)"); - } - - return updateContactListIdentifiersCall(audienceSegmentId, contactlistAmendmentRequest, _callback); - - } - - /** - * - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ModifyAudienceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public ModifyAudienceResponse updateContactListIdentifiers(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - ApiResponse localVarResp = updateContactListIdentifiersWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); - return localVarResp.getData(); - } - - /** - * - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ApiResponse<ModifyAudienceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public ApiResponse updateContactListIdentifiersWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public okhttp3.Call updateContactListIdentifiersAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/model/ContactlistAmendmentAttributes.java index 1915c4a1..644314ba 100644 --- a/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/model/ContactlistAmendmentAttributes.java +++ b/sdks/marketingsolutions_2023-10/src/main/java/com/criteo/api/marketingsolutions/v2023_10/model/ContactlistAmendmentAttributes.java @@ -115,8 +115,6 @@ public enum IdentifierTypeEnum { GUM("gum"), - CUSTOMERID("customerid"), - PHONENUMBER("phoneNumber"); private String value; @@ -228,7 +226,7 @@ public ContactlistAmendmentAttributes addIdentifiersItem(String identifiersItem) } /** - * The users tos add or remove, each in the schema specified + * The users to add or remove, each in the schema specified * @return identifiers **/ @javax.annotation.Nonnull diff --git a/sdks/marketingsolutions_2024-01/README.md b/sdks/marketingsolutions_2024-01/README.md index 1fee3dc1..24221b19 100644 --- a/sdks/marketingsolutions_2024-01/README.md +++ b/sdks/marketingsolutions_2024-01/README.md @@ -4,11 +4,11 @@ API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. -More information: [https://developers.criteo.com/](https://developers.criteo.com/) +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). Criteo API -- Package version: 2024.01.0.240826 +- Package version: 2024.01.0.241029 *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.criteo criteo-api-marketingsolutions-sdk - 2024.01.0.240826 + 2024.01.0.241029 compile ``` @@ -48,7 +48,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.criteo:criteo-api-marketingsolutions-sdk:2024.01.0.240826" +compile "com.criteo:criteo-api-marketingsolutions-sdk:2024.01.0.241029" ``` ### Others @@ -61,7 +61,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* `build/libs/criteo-api-marketingsolutions-sdk-2024.01.0.240826.jar` +* `build/libs/criteo-api-marketingsolutions-sdk-2024.01.0.241029.jar` ## Example @@ -84,9 +84,12 @@ Class | Method | HTTP request | Description *AudienceApi* | [**bulkDeleteAudiences**](docs/AudienceApi.md#bulkDeleteAudiences) | **POST** /2024-01/marketing-solutions/audiences/delete | *AudienceApi* | [**bulkUpdateAudienceSegments**](docs/AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2024-01/marketing-solutions/audience-segments | *AudienceApi* | [**bulkUpdateAudiences**](docs/AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2024-01/marketing-solutions/audiences | +*AudienceApi* | [**call01audiencesAudienceSegmentIdContactlistDelete**](docs/AudienceApi.md#call01audiencesAudienceSegmentIdContactlistDelete) | **DELETE** /2024-01/audiences/{audience-segment-id}/contactlist | +*AudienceApi* | [**call01audiencesAudienceSegmentIdContactlistPatch**](docs/AudienceApi.md#call01audiencesAudienceSegmentIdContactlistPatch) | **PATCH** /2024-01/audiences/{audience-segment-id}/contactlist | +*AudienceApi* | [**call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](docs/AudienceApi.md#call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | +*AudienceApi* | [**call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](docs/AudienceApi.md#call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *AudienceApi* | [**computeAudienceSegmentsSizes**](docs/AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2024-01/marketing-solutions/audience-segments/compute-sizes | *AudienceApi* | [**computeAudiencesSizes**](docs/AudienceApi.md#computeAudiencesSizes) | **POST** /2024-01/marketing-solutions/audiences/compute-sizes | -*AudienceApi* | [**deleteContactListIdentifiers**](docs/AudienceApi.md#deleteContactListIdentifiers) | **DELETE** /2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *AudienceApi* | [**estimateAudienceSegmentSize**](docs/AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2024-01/marketing-solutions/audience-segments/estimate-size | *AudienceApi* | [**estimateAudienceSize**](docs/AudienceApi.md#estimateAudienceSize) | **POST** /2024-01/marketing-solutions/audiences/estimate-size | *AudienceApi* | [**getAudienceSegmentContactListStatistics**](docs/AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics | @@ -94,7 +97,6 @@ Class | Method | HTTP request | Description *AudienceApi* | [**getAudienceSegmentsInMarketInterests**](docs/AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2024-01/marketing-solutions/audience-segments/in-market-interests | *AudienceApi* | [**searchAudienceSegments**](docs/AudienceApi.md#searchAudienceSegments) | **POST** /2024-01/marketing-solutions/audience-segments/search | *AudienceApi* | [**searchAudiences**](docs/AudienceApi.md#searchAudiences) | **POST** /2024-01/marketing-solutions/audiences/search | -*AudienceApi* | [**updateContactListIdentifiers**](docs/AudienceApi.md#updateContactListIdentifiers) | **PATCH** /2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *CampaignApi* | [**createAdSet**](docs/CampaignApi.md#createAdSet) | **POST** /2024-01/marketing-solutions/ad-sets | *CampaignApi* | [**createCampaign**](docs/CampaignApi.md#createCampaign) | **POST** /2024-01/marketing-solutions/campaigns | *CampaignApi* | [**getAdSetV23Q1**](docs/CampaignApi.md#getAdSetV23Q1) | **GET** /2024-01/marketing-solutions/ad-sets/{ad-set-id} | diff --git a/sdks/marketingsolutions_2024-01/api/openapi.yaml b/sdks/marketingsolutions_2024-01/api/openapi.yaml index 9faeba1b..429acfa6 100644 --- a/sdks/marketingsolutions_2024-01/api/openapi.yaml +++ b/sdks/marketingsolutions_2024-01/api/openapi.yaml @@ -8,10 +8,157 @@ servers: security: - oauth: [] paths: + /2024-01/audiences/{audience-segment-id}/contactlist: + delete: + description: Delete all identifiers from a contact list audience-segment. + parameters: + - description: The id of the contact list audience-segment to amend + explode: false + in: path + name: audience-segment-id + required: true + schema: + format: int32 + type: string + style: simple + responses: + "200": + content: + application/json: + example: + data: + id: "1" + type: AudienceContactlist + errors: [] + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/DeleteAudienceContactListResponse' + description: The Contact List was emptied + "403": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Forbidden + tags: + - Audience + x-accepts: application/json + patch: + description: Add/remove identifiers to or from a contact list audience-segment. + parameters: + - description: The id of the contact list audience-segment to amend + explode: false + in: path + name: audience-segment-id + required: true + schema: + format: int32 + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContactlistAmendmentRequest' + required: true + x-bodyName: body + responses: + "200": + content: + application/json: + example: + data: + type: ContactlistAmendment + attributes: + contactListId: 12 + operation: add + requestDate: 2018-12-10T10:00:50.0000000+00:00 + identifierType: madid + nbValidIdentifiers: 7343 + nbInvalidIdentifiers: 13 + sampleInvalidIdentifiers: + - InvalidIdentifier + errors: [] + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ModifyAudienceResponse' + description: Summary of created request + "403": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Forbidden + "404": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Audience 123 not found + tags: + - Audience + x-content-type: application/json + x-accepts: application/json /2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list: delete: description: Delete all identifiers from a contact list audience-segment. - operationId: deleteContactListIdentifiers parameters: - description: The id of the contact list audience-segment to amend explode: false @@ -67,7 +214,6 @@ paths: x-accepts: application/json patch: description: Add/remove identifiers to or from a contact list audience-segment. - operationId: updateContactListIdentifiers parameters: - description: The id of the contact list audience-segment to amend explode: false @@ -2927,23 +3073,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary + type: string + text/csv: + schema: + format: binary type: string application/xml: schema: - format: byte + format: binary type: string - text/xml: + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3225,27 +3375,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3389,27 +3539,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -14630,12 +14780,11 @@ components: - madid - identityLink - gum - - customerid - phoneNumber nullable: true type: string identifiers: - description: "The users tos add or remove, each in the schema specified" + description: "The users to add or remove, each in the schema specified" items: type: string type: array diff --git a/sdks/marketingsolutions_2024-01/build.gradle b/sdks/marketingsolutions_2024-01/build.gradle index c2adca44..84b32e35 100644 --- a/sdks/marketingsolutions_2024-01/build.gradle +++ b/sdks/marketingsolutions_2024-01/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2024.01.0.240826' +version = '2024.01.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-marketingsolutions-sdk' - version '2024.01.0.240826' + version '2024.01.0.241029' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/marketingsolutions_2024-01/docs/AdvertiserApi.md b/sdks/marketingsolutions_2024-01/docs/AdvertiserApi.md index d892ac7d..3316cd05 100644 --- a/sdks/marketingsolutions_2024-01/docs/AdvertiserApi.md +++ b/sdks/marketingsolutions_2024-01/docs/AdvertiserApi.md @@ -1,6 +1,6 @@ # AdvertiserApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-01/docs/AnalyticsApi.md b/sdks/marketingsolutions_2024-01/docs/AnalyticsApi.md index 348833bc..c2769036 100644 --- a/sdks/marketingsolutions_2024-01/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_2024-01/docs/AnalyticsApi.md @@ -1,6 +1,6 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -13,7 +13,7 @@ All URIs are relative to *https://api.criteo.com* ## getAdsetReport -> byte[] getAdsetReport(statisticsReportQueryMessage) +> File getAdsetReport(statisticsReportQueryMessage) @@ -60,7 +60,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); StatisticsReportQueryMessage statisticsReportQueryMessage = new StatisticsReportQueryMessage(); // StatisticsReportQueryMessage | try { - byte[] result = apiInstance.getAdsetReport(statisticsReportQueryMessage); + File result = apiInstance.getAdsetReport(statisticsReportQueryMessage); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getAdsetReport"); @@ -82,7 +82,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -104,7 +104,7 @@ public class Example { ## getPlacementsReport -> byte[] getPlacementsReport(placementsReportQueryMessageListRequest) +> File getPlacementsReport(placementsReportQueryMessageListRequest) @@ -151,7 +151,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest = new PlacementsReportQueryMessageListRequest(); // PlacementsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); + File result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getPlacementsReport"); @@ -173,7 +173,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -182,7 +182,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json, application/xml, text/xml +- **Accept**: text/plain, application/json, text/json, text/csv, application/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/xml ### HTTP response details @@ -195,7 +195,7 @@ public class Example { ## getTransactionsReport -> byte[] getTransactionsReport(transactionsReportQueryMessageListRequest) +> File getTransactionsReport(transactionsReportQueryMessageListRequest) @@ -242,7 +242,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest = new TransactionsReportQueryMessageListRequest(); // TransactionsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); + File result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getTransactionsReport"); @@ -264,7 +264,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization diff --git a/sdks/marketingsolutions_2024-01/docs/AudienceApi.md b/sdks/marketingsolutions_2024-01/docs/AudienceApi.md index 8e6967ee..d0d5904a 100644 --- a/sdks/marketingsolutions_2024-01/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2024-01/docs/AudienceApi.md @@ -1,6 +1,6 @@ # AudienceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -10,9 +10,12 @@ All URIs are relative to *https://api.criteo.com* | [**bulkDeleteAudiences**](AudienceApi.md#bulkDeleteAudiences) | **POST** /2024-01/marketing-solutions/audiences/delete | | | [**bulkUpdateAudienceSegments**](AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2024-01/marketing-solutions/audience-segments | | | [**bulkUpdateAudiences**](AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2024-01/marketing-solutions/audiences | | +| [**call01audiencesAudienceSegmentIdContactlistDelete**](AudienceApi.md#call01audiencesAudienceSegmentIdContactlistDelete) | **DELETE** /2024-01/audiences/{audience-segment-id}/contactlist | | +| [**call01audiencesAudienceSegmentIdContactlistPatch**](AudienceApi.md#call01audiencesAudienceSegmentIdContactlistPatch) | **PATCH** /2024-01/audiences/{audience-segment-id}/contactlist | | +| [**call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](AudienceApi.md#call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | +| [**call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](AudienceApi.md#call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | | [**computeAudienceSegmentsSizes**](AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2024-01/marketing-solutions/audience-segments/compute-sizes | | | [**computeAudiencesSizes**](AudienceApi.md#computeAudiencesSizes) | **POST** /2024-01/marketing-solutions/audiences/compute-sizes | | -| [**deleteContactListIdentifiers**](AudienceApi.md#deleteContactListIdentifiers) | **DELETE** /2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | | [**estimateAudienceSegmentSize**](AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2024-01/marketing-solutions/audience-segments/estimate-size | | | [**estimateAudienceSize**](AudienceApi.md#estimateAudienceSize) | **POST** /2024-01/marketing-solutions/audiences/estimate-size | | | [**getAudienceSegmentContactListStatistics**](AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics | | @@ -20,7 +23,6 @@ All URIs are relative to *https://api.criteo.com* | [**getAudienceSegmentsInMarketInterests**](AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2024-01/marketing-solutions/audience-segments/in-market-interests | | | [**searchAudienceSegments**](AudienceApi.md#searchAudienceSegments) | **POST** /2024-01/marketing-solutions/audience-segments/search | | | [**searchAudiences**](AudienceApi.md#searchAudiences) | **POST** /2024-01/marketing-solutions/audiences/search | | -| [**updateContactListIdentifiers**](AudienceApi.md#updateContactListIdentifiers) | **PATCH** /2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | @@ -577,13 +579,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## computeAudienceSegmentsSizes +## call01audiencesAudienceSegmentIdContactlistDelete -> AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1) +> DeleteAudienceContactListResponse call01audiencesAudienceSegmentIdContactlistDelete(audienceSegmentId) -Gets the size of all segments. An error is returned for those whose size calculation is not supported. +Delete all identifiers from a contact list audience-segment. ### Example @@ -624,12 +626,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1 = new AudienceSegmentComputeSizesInputV1(); // AudienceSegmentComputeSizesInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend try { - AudienceSegmentSizeEntityV1ListResponse result = apiInstance.computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1); + DeleteAudienceContactListResponse result = apiInstance.call01audiencesAudienceSegmentIdContactlistDelete(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#computeAudienceSegmentsSizes"); + System.err.println("Exception when calling AudienceApi#call01audiencesAudienceSegmentIdContactlistDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -644,11 +646,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentComputeSizesInputV1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | ### Return type -[**AudienceSegmentSizeEntityV1ListResponse**](AudienceSegmentSizeEntityV1ListResponse.md) +[**DeleteAudienceContactListResponse**](DeleteAudienceContactListResponse.md) ### Authorization @@ -656,26 +658,24 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: Not defined +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success or partial success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | The Contact List was emptied | - | +| **403** | Forbidden | - | -## computeAudiencesSizes +## call01audiencesAudienceSegmentIdContactlistPatch -> AudienceSizeEntityV1ListResponse computeAudiencesSizes(audienceComputeSizesInputV1) +> ModifyAudienceResponse call01audiencesAudienceSegmentIdContactlistPatch(audienceSegmentId, contactlistAmendmentRequest) -Gets the size of all audiences. An error is returned for those whose size calculation is not supported. +Add/remove identifiers to or from a contact list audience-segment. ### Example @@ -716,12 +716,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceComputeSizesInputV1 audienceComputeSizesInputV1 = new AudienceComputeSizesInputV1(); // AudienceComputeSizesInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend + ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | try { - AudienceSizeEntityV1ListResponse result = apiInstance.computeAudiencesSizes(audienceComputeSizesInputV1); + ModifyAudienceResponse result = apiInstance.call01audiencesAudienceSegmentIdContactlistPatch(audienceSegmentId, contactlistAmendmentRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#computeAudiencesSizes"); + System.err.println("Exception when calling AudienceApi#call01audiencesAudienceSegmentIdContactlistPatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -736,11 +737,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceComputeSizesInputV1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | +| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | ### Return type -[**AudienceSizeEntityV1ListResponse**](AudienceSizeEntityV1ListResponse.md) +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) ### Authorization @@ -748,22 +750,21 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: application/json +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success or partial success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | Summary of created request | - | +| **403** | Forbidden | - | +| **404** | Audience 123 not found | - | -## deleteContactListIdentifiers +## call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete -> DeleteAudienceContactListResponse deleteContactListIdentifiers(audienceSegmentId) +> DeleteAudienceContactListResponse call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId) @@ -810,10 +811,10 @@ public class Example { AudienceApi apiInstance = new AudienceApi(defaultClient); String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend try { - DeleteAudienceContactListResponse result = apiInstance.deleteContactListIdentifiers(audienceSegmentId); + DeleteAudienceContactListResponse result = apiInstance.call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#deleteContactListIdentifiers"); + System.err.println("Exception when calling AudienceApi#call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -851,13 +852,13 @@ public class Example { | **403** | Forbidden | - | -## estimateAudienceSegmentSize +## call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch -> AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1) +> ModifyAudienceResponse call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest) -Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. +Add/remove identifiers to or from a contact list audience-segment. ### Example @@ -898,12 +899,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1 = new AudienceSegmentEstimateSizeInputV1(); // AudienceSegmentEstimateSizeInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend + ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | try { - AudienceSegmentSizeEstimationV1Response result = apiInstance.estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1); + ModifyAudienceResponse result = apiInstance.call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#estimateAudienceSegmentSize"); + System.err.println("Exception when calling AudienceApi#call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -918,11 +920,103 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentEstimateSizeInputV1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | +| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | ### Return type -[**AudienceSegmentSizeEstimationV1Response**](AudienceSegmentSizeEstimationV1Response.md) +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Summary of created request | - | +| **403** | Forbidden | - | +| **404** | Audience 123 not found | - | + + +## computeAudienceSegmentsSizes + +> AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1) + + + +Gets the size of all segments. An error is returned for those whose size calculation is not supported. + +### Example + +```java +package com.criteo.api.marketingsolutions.v2024_01; + +import com.criteo.api.marketingsolutions.v2024_01.ApiClient; +import com.criteo.api.marketingsolutions.v2024_01.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_01.ApiException; +import com.criteo.api.marketingsolutions.v2024_01.Configuration; +import com.criteo.api.marketingsolutions.v2024_01.auth.*; +import com.criteo.api.marketingsolutions.v2024_01.model.*; +import com.criteo.api.marketingsolutions.v2024_01.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1 = new AudienceSegmentComputeSizesInputV1(); // AudienceSegmentComputeSizesInputV1 | + try { + AudienceSegmentSizeEntityV1ListResponse result = apiInstance.computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#computeAudienceSegmentsSizes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **audienceSegmentComputeSizesInputV1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | | + +### Return type + +[**AudienceSegmentSizeEntityV1ListResponse**](AudienceSegmentSizeEntityV1ListResponse.md) ### Authorization @@ -937,19 +1031,19 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | Success or partial success | - | | **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## estimateAudienceSize +## computeAudiencesSizes -> AudienceSizeEstimationV1Response estimateAudienceSize(audienceEstimateSizeInputV1) +> AudienceSizeEntityV1ListResponse computeAudiencesSizes(audienceComputeSizesInputV1) -Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. +Gets the size of all audiences. An error is returned for those whose size calculation is not supported. ### Example @@ -990,12 +1084,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1 = new AudienceEstimateSizeInputV1(); // AudienceEstimateSizeInputV1 | + AudienceComputeSizesInputV1 audienceComputeSizesInputV1 = new AudienceComputeSizesInputV1(); // AudienceComputeSizesInputV1 | try { - AudienceSizeEstimationV1Response result = apiInstance.estimateAudienceSize(audienceEstimateSizeInputV1); + AudienceSizeEntityV1ListResponse result = apiInstance.computeAudiencesSizes(audienceComputeSizesInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#estimateAudienceSize"); + System.err.println("Exception when calling AudienceApi#computeAudiencesSizes"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1010,11 +1104,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceEstimateSizeInputV1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | | +| **audienceComputeSizesInputV1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | | ### Return type -[**AudienceSizeEstimationV1Response**](AudienceSizeEstimationV1Response.md) +[**AudienceSizeEntityV1ListResponse**](AudienceSizeEntityV1ListResponse.md) ### Authorization @@ -1035,13 +1129,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentContactListStatistics +## estimateAudienceSegmentSize -> ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(audienceSegmentId) +> AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1) -Returns the statistics of a contact list segment. +Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. ### Example @@ -1082,12 +1176,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - Integer audienceSegmentId = 56; // Integer | The segment ID. + AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1 = new AudienceSegmentEstimateSizeInputV1(); // AudienceSegmentEstimateSizeInputV1 | try { - ContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(audienceSegmentId); + AudienceSegmentSizeEstimationV1Response result = apiInstance.estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); + System.err.println("Exception when calling AudienceApi#estimateAudienceSegmentSize"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1102,11 +1196,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentId** | **Integer**| The segment ID. | | +| **audienceSegmentEstimateSizeInputV1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | | ### Return type -[**ContactListStatisticsEntityV1Response**](ContactListStatisticsEntityV1Response.md) +[**AudienceSegmentSizeEstimationV1Response**](AudienceSegmentSizeEstimationV1Response.md) ### Authorization @@ -1114,7 +1208,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json @@ -1122,17 +1216,18 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | +| **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentsInMarketBrands +## estimateAudienceSize -> InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(advertiserId, country) +> AudienceSizeEstimationV1Response estimateAudienceSize(audienceEstimateSizeInputV1) -Returns a list with all available in-market brands that can be used to define an in-market segment. +Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. ### Example @@ -1173,13 +1268,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String advertiserId = "advertiserId_example"; // String | The advertiser ID. - String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. + AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1 = new AudienceEstimateSizeInputV1(); // AudienceEstimateSizeInputV1 | try { - InMarketAudienceSegmentBrandEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketBrands(advertiserId, country); + AudienceSizeEstimationV1Response result = apiInstance.estimateAudienceSize(audienceEstimateSizeInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketBrands"); + System.err.println("Exception when calling AudienceApi#estimateAudienceSize"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1194,12 +1288,103 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **advertiserId** | **String**| The advertiser ID. | | -| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | +| **audienceEstimateSizeInputV1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | | ### Return type -[**InMarketAudienceSegmentBrandEntityV1ListResponse**](InMarketAudienceSegmentBrandEntityV1ListResponse.md) +[**AudienceSizeEstimationV1Response**](AudienceSizeEstimationV1Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success or partial success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | + + +## getAudienceSegmentContactListStatistics + +> ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(audienceSegmentId) + + + +Returns the statistics of a contact list segment. + +### Example + +```java +package com.criteo.api.marketingsolutions.v2024_01; + +import com.criteo.api.marketingsolutions.v2024_01.ApiClient; +import com.criteo.api.marketingsolutions.v2024_01.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_01.ApiException; +import com.criteo.api.marketingsolutions.v2024_01.Configuration; +import com.criteo.api.marketingsolutions.v2024_01.auth.*; +import com.criteo.api.marketingsolutions.v2024_01.model.*; +import com.criteo.api.marketingsolutions.v2024_01.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + Integer audienceSegmentId = 56; // Integer | The segment ID. + try { + ContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(audienceSegmentId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **audienceSegmentId** | **Integer**| The segment ID. | | + +### Return type + +[**ContactListStatisticsEntityV1Response**](ContactListStatisticsEntityV1Response.md) ### Authorization @@ -1219,13 +1404,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentsInMarketInterests +## getAudienceSegmentsInMarketBrands -> InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(advertiserId, country) +> InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(advertiserId, country) -Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. +Returns a list with all available in-market brands that can be used to define an in-market segment. ### Example @@ -1269,10 +1454,10 @@ public class Example { String advertiserId = "advertiserId_example"; // String | The advertiser ID. String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. try { - InMarketAudienceSegmentInterestEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketInterests(advertiserId, country); + InMarketAudienceSegmentBrandEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketBrands(advertiserId, country); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketInterests"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketBrands"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1292,7 +1477,7 @@ public class Example { ### Return type -[**InMarketAudienceSegmentInterestEntityV1ListResponse**](InMarketAudienceSegmentInterestEntityV1ListResponse.md) +[**InMarketAudienceSegmentBrandEntityV1ListResponse**](InMarketAudienceSegmentBrandEntityV1ListResponse.md) ### Authorization @@ -1312,13 +1497,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## searchAudienceSegments +## getAudienceSegmentsInMarketInterests -> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset) +> InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(advertiserId, country) -Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. +Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. ### Example @@ -1359,14 +1544,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1 = new AudienceSegmentSearchInputV1(); // AudienceSegmentSearchInputV1 | Segment search filters. - Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. - Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. + String advertiserId = "advertiserId_example"; // String | The advertiser ID. + String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. try { - AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset); + InMarketAudienceSegmentInterestEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketInterests(advertiserId, country); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketInterests"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1381,13 +1565,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentSearchInputV1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | | -| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | -| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | +| **advertiserId** | **String**| The advertiser ID. | | +| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | ### Return type -[**AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse**](AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) +[**InMarketAudienceSegmentInterestEntityV1ListResponse**](InMarketAudienceSegmentInterestEntityV1ListResponse.md) ### Authorization @@ -1395,7 +1578,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Content-Type**: Not defined - **Accept**: text/plain, application/json, text/json @@ -1403,18 +1586,17 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | -| **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## searchAudiences +## searchAudienceSegments -> AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(audienceSearchInputV1, limit, offset) +> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset) -Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. +Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -1455,14 +1637,14 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSearchInputV1 audienceSearchInputV1 = new AudienceSearchInputV1(); // AudienceSearchInputV1 | Audience search filters. + AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1 = new AudienceSegmentSearchInputV1(); // AudienceSegmentSearchInputV1 | Segment search filters. Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - AudienceEntityV1AudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(audienceSearchInputV1, limit, offset); + AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#searchAudiences"); + System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1477,13 +1659,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSearchInputV1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | | +| **audienceSegmentSearchInputV1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | | | **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | | **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -[**AudienceEntityV1AudienceSearchMetadataV1ListResponse**](AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) +[**AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse**](AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) ### Authorization @@ -1504,13 +1686,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## updateContactListIdentifiers +## searchAudiences -> ModifyAudienceResponse updateContactListIdentifiers(audienceSegmentId, contactlistAmendmentRequest) +> AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(audienceSearchInputV1, limit, offset) -Add/remove identifiers to or from a contact list audience-segment. +Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -1551,13 +1733,14 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend - ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | + AudienceSearchInputV1 audienceSearchInputV1 = new AudienceSearchInputV1(); // AudienceSearchInputV1 | Audience search filters. + Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. + Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - ModifyAudienceResponse result = apiInstance.updateContactListIdentifiers(audienceSegmentId, contactlistAmendmentRequest); + AudienceEntityV1AudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(audienceSearchInputV1, limit, offset); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#updateContactListIdentifiers"); + System.err.println("Exception when calling AudienceApi#searchAudiences"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1572,12 +1755,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | -| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | +| **audienceSearchInputV1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | | +| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | +| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -[**ModifyAudienceResponse**](ModifyAudienceResponse.md) +[**AudienceEntityV1AudienceSearchMetadataV1ListResponse**](AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) ### Authorization @@ -1585,14 +1769,15 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json -- **Accept**: application/json +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Summary of created request | - | -| **403** | Forbidden | - | -| **404** | Audience 123 not found | - | +| **200** | Success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | diff --git a/sdks/marketingsolutions_2024-01/docs/CampaignApi.md b/sdks/marketingsolutions_2024-01/docs/CampaignApi.md index e36721a6..47b6f92b 100644 --- a/sdks/marketingsolutions_2024-01/docs/CampaignApi.md +++ b/sdks/marketingsolutions_2024-01/docs/CampaignApi.md @@ -1,6 +1,6 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-01/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2024-01/docs/ContactlistAmendmentAttributes.md index f0a2c263..cd54aaf1 100644 --- a/sdks/marketingsolutions_2024-01/docs/ContactlistAmendmentAttributes.md +++ b/sdks/marketingsolutions_2024-01/docs/ContactlistAmendmentAttributes.md @@ -10,7 +10,7 @@ the name of the entity type |------------ | ------------- | ------------- | -------------| |**operation** | [**OperationEnum**](#OperationEnum) | Operation to add or remove users | | |**identifierType** | [**IdentifierTypeEnum**](#IdentifierTypeEnum) | What type of identifiers are used | [optional] | -|**identifiers** | **List<String>** | The users tos add or remove, each in the schema specified | | +|**identifiers** | **List<String>** | The users to add or remove, each in the schema specified | | |**gumCallerId** | **Integer** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] | @@ -32,7 +32,6 @@ the name of the entity type | MADID | "madid" | | IDENTITYLINK | "identityLink" | | GUM | "gum" | -| CUSTOMERID | "customerid" | | PHONENUMBER | "phoneNumber" | diff --git a/sdks/marketingsolutions_2024-01/docs/CreativeApi.md b/sdks/marketingsolutions_2024-01/docs/CreativeApi.md index 14af8f27..14b4e97a 100644 --- a/sdks/marketingsolutions_2024-01/docs/CreativeApi.md +++ b/sdks/marketingsolutions_2024-01/docs/CreativeApi.md @@ -1,6 +1,6 @@ # CreativeApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-01/docs/GatewayApi.md b/sdks/marketingsolutions_2024-01/docs/GatewayApi.md index ef48a8aa..3f64d855 100644 --- a/sdks/marketingsolutions_2024-01/docs/GatewayApi.md +++ b/sdks/marketingsolutions_2024-01/docs/GatewayApi.md @@ -1,6 +1,6 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/ApiClient.java b/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/ApiClient.java index d72a0f0e..ce9b94cc 100644 --- a/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/ApiClient.java +++ b/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2024.01.0.240826/java"); + setUserAgent("OpenAPI-Generator/2024.01.0.241029/java"); authentications = new HashMap(); } diff --git a/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/api/AnalyticsApi.java b/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/api/AnalyticsApi.java index 57fe8441..2ad5cc9b 100644 --- a/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/api/AnalyticsApi.java +++ b/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/api/AnalyticsApi.java @@ -27,6 +27,7 @@ import java.io.IOException; +import java.io.File; import com.criteo.api.marketingsolutions.v2024_01.model.Outcome; import com.criteo.api.marketingsolutions.v2024_01.model.PlacementsReportQueryMessageListRequest; import com.criteo.api.marketingsolutions.v2024_01.model.StatisticsReportQueryMessage; @@ -155,7 +156,7 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -165,8 +166,8 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa
403 Forbidden -
*/ - public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { - ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); + public File getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); return localVarResp.getData(); } @@ -174,7 +175,7 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -184,9 +185,9 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM
403 Forbidden -
*/ - public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -205,10 +206,10 @@ public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessa 403 Forbidden - */ - public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -255,7 +256,9 @@ public okhttp3.Call getPlacementsReportCall(PlacementsReportQueryMessageListRequ "text/plain", "application/json", "text/json", + "text/csv", "application/xml", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/xml" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); @@ -288,7 +291,7 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -298,8 +301,8 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery
403 Forbidden -
*/ - public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); + public File getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -307,7 +310,7 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -317,9 +320,9 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem
403 Forbidden -
*/ - public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -338,10 +341,10 @@ public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQuery 403 Forbidden - */ - public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -422,7 +425,7 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -432,8 +435,8 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ
403 Forbidden -
*/ - public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); + public File getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -441,7 +444,7 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -451,9 +454,9 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr
403 Forbidden -
*/ - public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -472,10 +475,10 @@ public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQ 403 Forbidden - */ - public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/api/AudienceApi.java b/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/api/AudienceApi.java index e7b517f5..6d675b41 100644 --- a/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/api/AudienceApi.java +++ b/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/api/AudienceApi.java @@ -945,6 +945,542 @@ public okhttp3.Call bulkUpdateAudiencesAsync(AudienceBulkUpdateInputV1 audienceB localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for call01audiencesAudienceSegmentIdContactlistDelete + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call01audiencesAudienceSegmentIdContactlistDeleteCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-01/audiences/{audience-segment-id}/contactlist" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call01audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call01audiencesAudienceSegmentIdContactlistDelete(Async)"); + } + + return call01audiencesAudienceSegmentIdContactlistDeleteCall(audienceSegmentId, _callback); + + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return DeleteAudienceContactListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public DeleteAudienceContactListResponse call01audiencesAudienceSegmentIdContactlistDelete(String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = call01audiencesAudienceSegmentIdContactlistDeleteWithHttpInfo(audienceSegmentId); + return localVarResp.getData(); + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return ApiResponse<DeleteAudienceContactListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public ApiResponse call01audiencesAudienceSegmentIdContactlistDeleteWithHttpInfo(String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = call01audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call01audiencesAudienceSegmentIdContactlistDeleteAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call01audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call01audiencesAudienceSegmentIdContactlistPatch + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call01audiencesAudienceSegmentIdContactlistPatchCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = contactlistAmendmentRequest; + + // create path and map variables + String localVarPath = "/2024-01/audiences/{audience-segment-id}/contactlist" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call01audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call01audiencesAudienceSegmentIdContactlistPatch(Async)"); + } + + // verify the required parameter 'contactlistAmendmentRequest' is set + if (contactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling call01audiencesAudienceSegmentIdContactlistPatch(Async)"); + } + + return call01audiencesAudienceSegmentIdContactlistPatchCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ModifyAudienceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ModifyAudienceResponse call01audiencesAudienceSegmentIdContactlistPatch(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = call01audiencesAudienceSegmentIdContactlistPatchWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); + return localVarResp.getData(); + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ApiResponse<ModifyAudienceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ApiResponse call01audiencesAudienceSegmentIdContactlistPatchWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = call01audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call01audiencesAudienceSegmentIdContactlistPatchAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call01audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(Async)"); + } + + return call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(audienceSegmentId, _callback); + + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return DeleteAudienceContactListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public DeleteAudienceContactListResponse call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(audienceSegmentId); + return localVarResp.getData(); + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return ApiResponse<DeleteAudienceContactListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public ApiResponse call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = contactlistAmendmentRequest; + + // create path and map variables + String localVarPath = "/2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); + } + + // verify the required parameter 'contactlistAmendmentRequest' is set + if (contactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); + } + + return call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ModifyAudienceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ModifyAudienceResponse call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); + return localVarResp.getData(); + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ApiResponse<ModifyAudienceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ApiResponse call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call01marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for computeAudienceSegmentsSizes * @param audienceSegmentComputeSizesInputV1 (required) @@ -1225,133 +1761,6 @@ public okhttp3.Call computeAudiencesSizesAsync(AudienceComputeSizesInputV1 audie localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for deleteContactListIdentifiers - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public okhttp3.Call deleteContactListIdentifiersCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" - .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteContactListIdentifiersValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentId' is set - if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling deleteContactListIdentifiers(Async)"); - } - - return deleteContactListIdentifiersCall(audienceSegmentId, _callback); - - } - - /** - * - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @return DeleteAudienceContactListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public DeleteAudienceContactListResponse deleteContactListIdentifiers(String audienceSegmentId) throws ApiException { - ApiResponse localVarResp = deleteContactListIdentifiersWithHttpInfo(audienceSegmentId); - return localVarResp.getData(); - } - - /** - * - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @return ApiResponse<DeleteAudienceContactListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public ApiResponse deleteContactListIdentifiersWithHttpInfo(String audienceSegmentId) throws ApiException { - okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public okhttp3.Call deleteContactListIdentifiersAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } /** * Build call for estimateAudienceSegmentSize * @param audienceSegmentEstimateSizeInputV1 (required) @@ -2375,145 +2784,4 @@ public okhttp3.Call searchAudiencesAsync(AudienceSearchInputV1 audienceSearchInp localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for updateContactListIdentifiers - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public okhttp3.Call updateContactListIdentifiersCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = contactlistAmendmentRequest; - - // create path and map variables - String localVarPath = "/2024-01/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" - .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateContactListIdentifiersValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentId' is set - if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling updateContactListIdentifiers(Async)"); - } - - // verify the required parameter 'contactlistAmendmentRequest' is set - if (contactlistAmendmentRequest == null) { - throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling updateContactListIdentifiers(Async)"); - } - - return updateContactListIdentifiersCall(audienceSegmentId, contactlistAmendmentRequest, _callback); - - } - - /** - * - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ModifyAudienceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public ModifyAudienceResponse updateContactListIdentifiers(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - ApiResponse localVarResp = updateContactListIdentifiersWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); - return localVarResp.getData(); - } - - /** - * - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ApiResponse<ModifyAudienceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public ApiResponse updateContactListIdentifiersWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public okhttp3.Call updateContactListIdentifiersAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/model/ContactlistAmendmentAttributes.java index f41dab6f..da901360 100644 --- a/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/model/ContactlistAmendmentAttributes.java +++ b/sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/model/ContactlistAmendmentAttributes.java @@ -115,8 +115,6 @@ public enum IdentifierTypeEnum { GUM("gum"), - CUSTOMERID("customerid"), - PHONENUMBER("phoneNumber"); private String value; @@ -228,7 +226,7 @@ public ContactlistAmendmentAttributes addIdentifiersItem(String identifiersItem) } /** - * The users tos add or remove, each in the schema specified + * The users to add or remove, each in the schema specified * @return identifiers **/ @javax.annotation.Nonnull diff --git a/sdks/marketingsolutions_2024-04/README.md b/sdks/marketingsolutions_2024-04/README.md index c3e7e291..23ff21f2 100644 --- a/sdks/marketingsolutions_2024-04/README.md +++ b/sdks/marketingsolutions_2024-04/README.md @@ -4,11 +4,11 @@ API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. -More information: [https://developers.criteo.com/](https://developers.criteo.com/) +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). Criteo API -- Package version: 2024.04.0.240826 +- Package version: 2024.04.0.241029 *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.criteo criteo-api-marketingsolutions-sdk - 2024.04.0.240826 + 2024.04.0.241029 compile ``` @@ -48,7 +48,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.criteo:criteo-api-marketingsolutions-sdk:2024.04.0.240826" +compile "com.criteo:criteo-api-marketingsolutions-sdk:2024.04.0.241029" ``` ### Others @@ -61,7 +61,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* `build/libs/criteo-api-marketingsolutions-sdk-2024.04.0.240826.jar` +* `build/libs/criteo-api-marketingsolutions-sdk-2024.04.0.241029.jar` ## Example @@ -84,9 +84,12 @@ Class | Method | HTTP request | Description *AudienceApi* | [**bulkDeleteAudiences**](docs/AudienceApi.md#bulkDeleteAudiences) | **POST** /2024-04/marketing-solutions/audiences/delete | *AudienceApi* | [**bulkUpdateAudienceSegments**](docs/AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2024-04/marketing-solutions/audience-segments | *AudienceApi* | [**bulkUpdateAudiences**](docs/AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2024-04/marketing-solutions/audiences | +*AudienceApi* | [**call04audiencesAudienceSegmentIdContactlistDelete**](docs/AudienceApi.md#call04audiencesAudienceSegmentIdContactlistDelete) | **DELETE** /2024-04/audiences/{audience-segment-id}/contactlist | +*AudienceApi* | [**call04audiencesAudienceSegmentIdContactlistPatch**](docs/AudienceApi.md#call04audiencesAudienceSegmentIdContactlistPatch) | **PATCH** /2024-04/audiences/{audience-segment-id}/contactlist | +*AudienceApi* | [**call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](docs/AudienceApi.md#call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | +*AudienceApi* | [**call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](docs/AudienceApi.md#call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *AudienceApi* | [**computeAudienceSegmentsSizes**](docs/AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2024-04/marketing-solutions/audience-segments/compute-sizes | *AudienceApi* | [**computeAudiencesSizes**](docs/AudienceApi.md#computeAudiencesSizes) | **POST** /2024-04/marketing-solutions/audiences/compute-sizes | -*AudienceApi* | [**deleteContactListIdentifiers**](docs/AudienceApi.md#deleteContactListIdentifiers) | **DELETE** /2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *AudienceApi* | [**estimateAudienceSegmentSize**](docs/AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2024-04/marketing-solutions/audience-segments/estimate-size | *AudienceApi* | [**estimateAudienceSize**](docs/AudienceApi.md#estimateAudienceSize) | **POST** /2024-04/marketing-solutions/audiences/estimate-size | *AudienceApi* | [**getAudienceSegmentContactListStatistics**](docs/AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics | @@ -94,7 +97,6 @@ Class | Method | HTTP request | Description *AudienceApi* | [**getAudienceSegmentsInMarketInterests**](docs/AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2024-04/marketing-solutions/audience-segments/in-market-interests | *AudienceApi* | [**searchAudienceSegments**](docs/AudienceApi.md#searchAudienceSegments) | **POST** /2024-04/marketing-solutions/audience-segments/search | *AudienceApi* | [**searchAudiences**](docs/AudienceApi.md#searchAudiences) | **POST** /2024-04/marketing-solutions/audiences/search | -*AudienceApi* | [**updateContactListIdentifiers**](docs/AudienceApi.md#updateContactListIdentifiers) | **PATCH** /2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *CampaignApi* | [**createAdSet**](docs/CampaignApi.md#createAdSet) | **POST** /2024-04/marketing-solutions/ad-sets | *CampaignApi* | [**createCampaign**](docs/CampaignApi.md#createCampaign) | **POST** /2024-04/marketing-solutions/campaigns | *CampaignApi* | [**getAdSetV23Q1**](docs/CampaignApi.md#getAdSetV23Q1) | **GET** /2024-04/marketing-solutions/ad-sets/{ad-set-id} | diff --git a/sdks/marketingsolutions_2024-04/api/openapi.yaml b/sdks/marketingsolutions_2024-04/api/openapi.yaml index f1c667a7..4784d893 100644 --- a/sdks/marketingsolutions_2024-04/api/openapi.yaml +++ b/sdks/marketingsolutions_2024-04/api/openapi.yaml @@ -8,10 +8,157 @@ servers: security: - oauth: [] paths: + /2024-04/audiences/{audience-segment-id}/contactlist: + delete: + description: Delete all identifiers from a contact list audience-segment. + parameters: + - description: The id of the contact list audience-segment to amend + explode: false + in: path + name: audience-segment-id + required: true + schema: + format: int32 + type: string + style: simple + responses: + "200": + content: + application/json: + example: + data: + id: "1" + type: AudienceContactlist + errors: [] + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/DeleteAudienceContactListResponse' + description: The Contact List was emptied + "403": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Forbidden + tags: + - Audience + x-accepts: application/json + patch: + description: Add/remove identifiers to or from a contact list audience-segment. + parameters: + - description: The id of the contact list audience-segment to amend + explode: false + in: path + name: audience-segment-id + required: true + schema: + format: int32 + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContactlistAmendmentRequest' + required: true + x-bodyName: body + responses: + "200": + content: + application/json: + example: + data: + type: ContactlistAmendment + attributes: + contactListId: 12 + operation: add + requestDate: 2018-12-10T10:00:50.0000000+00:00 + identifierType: madid + nbValidIdentifiers: 7343 + nbInvalidIdentifiers: 13 + sampleInvalidIdentifiers: + - InvalidIdentifier + errors: [] + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ModifyAudienceResponse' + description: Summary of created request + "403": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Forbidden + "404": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Audience 123 not found + tags: + - Audience + x-content-type: application/json + x-accepts: application/json /2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list: delete: description: Delete all identifiers from a contact list audience-segment. - operationId: deleteContactListIdentifiers parameters: - description: The id of the contact list audience-segment to amend explode: false @@ -67,7 +214,6 @@ paths: x-accepts: application/json patch: description: Add/remove identifiers to or from a contact list audience-segment. - operationId: updateContactListIdentifiers parameters: - description: The id of the contact list audience-segment to amend explode: false @@ -2927,23 +3073,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary + type: string + text/csv: + schema: + format: binary type: string application/xml: schema: - format: byte + format: binary type: string - text/xml: + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3225,27 +3375,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3389,27 +3539,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -14630,12 +14780,11 @@ components: - madid - identityLink - gum - - customerid - phoneNumber nullable: true type: string identifiers: - description: "The users tos add or remove, each in the schema specified" + description: "The users to add or remove, each in the schema specified" items: type: string type: array diff --git a/sdks/marketingsolutions_2024-04/build.gradle b/sdks/marketingsolutions_2024-04/build.gradle index dde3b2c6..9aea0af3 100644 --- a/sdks/marketingsolutions_2024-04/build.gradle +++ b/sdks/marketingsolutions_2024-04/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2024.04.0.240826' +version = '2024.04.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-marketingsolutions-sdk' - version '2024.04.0.240826' + version '2024.04.0.241029' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/marketingsolutions_2024-04/docs/AdvertiserApi.md b/sdks/marketingsolutions_2024-04/docs/AdvertiserApi.md index 0178715f..782bfca7 100644 --- a/sdks/marketingsolutions_2024-04/docs/AdvertiserApi.md +++ b/sdks/marketingsolutions_2024-04/docs/AdvertiserApi.md @@ -1,6 +1,6 @@ # AdvertiserApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-04/docs/AnalyticsApi.md b/sdks/marketingsolutions_2024-04/docs/AnalyticsApi.md index a67766da..2e5663bc 100644 --- a/sdks/marketingsolutions_2024-04/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_2024-04/docs/AnalyticsApi.md @@ -1,6 +1,6 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -13,7 +13,7 @@ All URIs are relative to *https://api.criteo.com* ## getAdsetReport -> byte[] getAdsetReport(statisticsReportQueryMessage) +> File getAdsetReport(statisticsReportQueryMessage) @@ -60,7 +60,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); StatisticsReportQueryMessage statisticsReportQueryMessage = new StatisticsReportQueryMessage(); // StatisticsReportQueryMessage | try { - byte[] result = apiInstance.getAdsetReport(statisticsReportQueryMessage); + File result = apiInstance.getAdsetReport(statisticsReportQueryMessage); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getAdsetReport"); @@ -82,7 +82,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -104,7 +104,7 @@ public class Example { ## getPlacementsReport -> byte[] getPlacementsReport(placementsReportQueryMessageListRequest) +> File getPlacementsReport(placementsReportQueryMessageListRequest) @@ -151,7 +151,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest = new PlacementsReportQueryMessageListRequest(); // PlacementsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); + File result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getPlacementsReport"); @@ -173,7 +173,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -182,7 +182,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json, application/xml, text/xml +- **Accept**: text/plain, application/json, text/json, text/csv, application/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/xml ### HTTP response details @@ -195,7 +195,7 @@ public class Example { ## getTransactionsReport -> byte[] getTransactionsReport(transactionsReportQueryMessageListRequest) +> File getTransactionsReport(transactionsReportQueryMessageListRequest) @@ -242,7 +242,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest = new TransactionsReportQueryMessageListRequest(); // TransactionsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); + File result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getTransactionsReport"); @@ -264,7 +264,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization diff --git a/sdks/marketingsolutions_2024-04/docs/AudienceApi.md b/sdks/marketingsolutions_2024-04/docs/AudienceApi.md index f8cae6d4..f0de6035 100644 --- a/sdks/marketingsolutions_2024-04/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2024-04/docs/AudienceApi.md @@ -1,6 +1,6 @@ # AudienceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -10,9 +10,12 @@ All URIs are relative to *https://api.criteo.com* | [**bulkDeleteAudiences**](AudienceApi.md#bulkDeleteAudiences) | **POST** /2024-04/marketing-solutions/audiences/delete | | | [**bulkUpdateAudienceSegments**](AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2024-04/marketing-solutions/audience-segments | | | [**bulkUpdateAudiences**](AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2024-04/marketing-solutions/audiences | | +| [**call04audiencesAudienceSegmentIdContactlistDelete**](AudienceApi.md#call04audiencesAudienceSegmentIdContactlistDelete) | **DELETE** /2024-04/audiences/{audience-segment-id}/contactlist | | +| [**call04audiencesAudienceSegmentIdContactlistPatch**](AudienceApi.md#call04audiencesAudienceSegmentIdContactlistPatch) | **PATCH** /2024-04/audiences/{audience-segment-id}/contactlist | | +| [**call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](AudienceApi.md#call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | +| [**call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](AudienceApi.md#call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | | [**computeAudienceSegmentsSizes**](AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2024-04/marketing-solutions/audience-segments/compute-sizes | | | [**computeAudiencesSizes**](AudienceApi.md#computeAudiencesSizes) | **POST** /2024-04/marketing-solutions/audiences/compute-sizes | | -| [**deleteContactListIdentifiers**](AudienceApi.md#deleteContactListIdentifiers) | **DELETE** /2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | | [**estimateAudienceSegmentSize**](AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2024-04/marketing-solutions/audience-segments/estimate-size | | | [**estimateAudienceSize**](AudienceApi.md#estimateAudienceSize) | **POST** /2024-04/marketing-solutions/audiences/estimate-size | | | [**getAudienceSegmentContactListStatistics**](AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics | | @@ -20,7 +23,6 @@ All URIs are relative to *https://api.criteo.com* | [**getAudienceSegmentsInMarketInterests**](AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2024-04/marketing-solutions/audience-segments/in-market-interests | | | [**searchAudienceSegments**](AudienceApi.md#searchAudienceSegments) | **POST** /2024-04/marketing-solutions/audience-segments/search | | | [**searchAudiences**](AudienceApi.md#searchAudiences) | **POST** /2024-04/marketing-solutions/audiences/search | | -| [**updateContactListIdentifiers**](AudienceApi.md#updateContactListIdentifiers) | **PATCH** /2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | @@ -577,13 +579,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## computeAudienceSegmentsSizes +## call04audiencesAudienceSegmentIdContactlistDelete -> AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1) +> DeleteAudienceContactListResponse call04audiencesAudienceSegmentIdContactlistDelete(audienceSegmentId) -Gets the size of all segments. An error is returned for those whose size calculation is not supported. +Delete all identifiers from a contact list audience-segment. ### Example @@ -624,12 +626,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1 = new AudienceSegmentComputeSizesInputV1(); // AudienceSegmentComputeSizesInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend try { - AudienceSegmentSizeEntityV1ListResponse result = apiInstance.computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1); + DeleteAudienceContactListResponse result = apiInstance.call04audiencesAudienceSegmentIdContactlistDelete(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#computeAudienceSegmentsSizes"); + System.err.println("Exception when calling AudienceApi#call04audiencesAudienceSegmentIdContactlistDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -644,11 +646,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentComputeSizesInputV1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | ### Return type -[**AudienceSegmentSizeEntityV1ListResponse**](AudienceSegmentSizeEntityV1ListResponse.md) +[**DeleteAudienceContactListResponse**](DeleteAudienceContactListResponse.md) ### Authorization @@ -656,26 +658,24 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: Not defined +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success or partial success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | The Contact List was emptied | - | +| **403** | Forbidden | - | -## computeAudiencesSizes +## call04audiencesAudienceSegmentIdContactlistPatch -> AudienceSizeEntityV1ListResponse computeAudiencesSizes(audienceComputeSizesInputV1) +> ModifyAudienceResponse call04audiencesAudienceSegmentIdContactlistPatch(audienceSegmentId, contactlistAmendmentRequest) -Gets the size of all audiences. An error is returned for those whose size calculation is not supported. +Add/remove identifiers to or from a contact list audience-segment. ### Example @@ -716,12 +716,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceComputeSizesInputV1 audienceComputeSizesInputV1 = new AudienceComputeSizesInputV1(); // AudienceComputeSizesInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend + ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | try { - AudienceSizeEntityV1ListResponse result = apiInstance.computeAudiencesSizes(audienceComputeSizesInputV1); + ModifyAudienceResponse result = apiInstance.call04audiencesAudienceSegmentIdContactlistPatch(audienceSegmentId, contactlistAmendmentRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#computeAudiencesSizes"); + System.err.println("Exception when calling AudienceApi#call04audiencesAudienceSegmentIdContactlistPatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -736,11 +737,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceComputeSizesInputV1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | +| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | ### Return type -[**AudienceSizeEntityV1ListResponse**](AudienceSizeEntityV1ListResponse.md) +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) ### Authorization @@ -748,22 +750,21 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: application/json +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success or partial success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | Summary of created request | - | +| **403** | Forbidden | - | +| **404** | Audience 123 not found | - | -## deleteContactListIdentifiers +## call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete -> DeleteAudienceContactListResponse deleteContactListIdentifiers(audienceSegmentId) +> DeleteAudienceContactListResponse call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId) @@ -810,10 +811,10 @@ public class Example { AudienceApi apiInstance = new AudienceApi(defaultClient); String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend try { - DeleteAudienceContactListResponse result = apiInstance.deleteContactListIdentifiers(audienceSegmentId); + DeleteAudienceContactListResponse result = apiInstance.call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#deleteContactListIdentifiers"); + System.err.println("Exception when calling AudienceApi#call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -851,13 +852,13 @@ public class Example { | **403** | Forbidden | - | -## estimateAudienceSegmentSize +## call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch -> AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1) +> ModifyAudienceResponse call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest) -Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. +Add/remove identifiers to or from a contact list audience-segment. ### Example @@ -898,12 +899,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1 = new AudienceSegmentEstimateSizeInputV1(); // AudienceSegmentEstimateSizeInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend + ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | try { - AudienceSegmentSizeEstimationV1Response result = apiInstance.estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1); + ModifyAudienceResponse result = apiInstance.call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#estimateAudienceSegmentSize"); + System.err.println("Exception when calling AudienceApi#call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -918,11 +920,103 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentEstimateSizeInputV1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | +| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | ### Return type -[**AudienceSegmentSizeEstimationV1Response**](AudienceSegmentSizeEstimationV1Response.md) +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Summary of created request | - | +| **403** | Forbidden | - | +| **404** | Audience 123 not found | - | + + +## computeAudienceSegmentsSizes + +> AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1) + + + +Gets the size of all segments. An error is returned for those whose size calculation is not supported. + +### Example + +```java +package com.criteo.api.marketingsolutions.v2024_04; + +import com.criteo.api.marketingsolutions.v2024_04.ApiClient; +import com.criteo.api.marketingsolutions.v2024_04.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_04.ApiException; +import com.criteo.api.marketingsolutions.v2024_04.Configuration; +import com.criteo.api.marketingsolutions.v2024_04.auth.*; +import com.criteo.api.marketingsolutions.v2024_04.model.*; +import com.criteo.api.marketingsolutions.v2024_04.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1 = new AudienceSegmentComputeSizesInputV1(); // AudienceSegmentComputeSizesInputV1 | + try { + AudienceSegmentSizeEntityV1ListResponse result = apiInstance.computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#computeAudienceSegmentsSizes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **audienceSegmentComputeSizesInputV1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | | + +### Return type + +[**AudienceSegmentSizeEntityV1ListResponse**](AudienceSegmentSizeEntityV1ListResponse.md) ### Authorization @@ -937,19 +1031,19 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | Success or partial success | - | | **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## estimateAudienceSize +## computeAudiencesSizes -> AudienceSizeEstimationV1Response estimateAudienceSize(audienceEstimateSizeInputV1) +> AudienceSizeEntityV1ListResponse computeAudiencesSizes(audienceComputeSizesInputV1) -Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. +Gets the size of all audiences. An error is returned for those whose size calculation is not supported. ### Example @@ -990,12 +1084,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1 = new AudienceEstimateSizeInputV1(); // AudienceEstimateSizeInputV1 | + AudienceComputeSizesInputV1 audienceComputeSizesInputV1 = new AudienceComputeSizesInputV1(); // AudienceComputeSizesInputV1 | try { - AudienceSizeEstimationV1Response result = apiInstance.estimateAudienceSize(audienceEstimateSizeInputV1); + AudienceSizeEntityV1ListResponse result = apiInstance.computeAudiencesSizes(audienceComputeSizesInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#estimateAudienceSize"); + System.err.println("Exception when calling AudienceApi#computeAudiencesSizes"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1010,11 +1104,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceEstimateSizeInputV1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | | +| **audienceComputeSizesInputV1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | | ### Return type -[**AudienceSizeEstimationV1Response**](AudienceSizeEstimationV1Response.md) +[**AudienceSizeEntityV1ListResponse**](AudienceSizeEntityV1ListResponse.md) ### Authorization @@ -1035,13 +1129,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentContactListStatistics +## estimateAudienceSegmentSize -> ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(audienceSegmentId) +> AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1) -Returns the statistics of a contact list segment. +Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. ### Example @@ -1082,12 +1176,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - Integer audienceSegmentId = 56; // Integer | The segment ID. + AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1 = new AudienceSegmentEstimateSizeInputV1(); // AudienceSegmentEstimateSizeInputV1 | try { - ContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(audienceSegmentId); + AudienceSegmentSizeEstimationV1Response result = apiInstance.estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); + System.err.println("Exception when calling AudienceApi#estimateAudienceSegmentSize"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1102,11 +1196,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentId** | **Integer**| The segment ID. | | +| **audienceSegmentEstimateSizeInputV1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | | ### Return type -[**ContactListStatisticsEntityV1Response**](ContactListStatisticsEntityV1Response.md) +[**AudienceSegmentSizeEstimationV1Response**](AudienceSegmentSizeEstimationV1Response.md) ### Authorization @@ -1114,7 +1208,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json @@ -1122,17 +1216,18 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | +| **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentsInMarketBrands +## estimateAudienceSize -> InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(advertiserId, country) +> AudienceSizeEstimationV1Response estimateAudienceSize(audienceEstimateSizeInputV1) -Returns a list with all available in-market brands that can be used to define an in-market segment. +Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. ### Example @@ -1173,13 +1268,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String advertiserId = "advertiserId_example"; // String | The advertiser ID. - String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. + AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1 = new AudienceEstimateSizeInputV1(); // AudienceEstimateSizeInputV1 | try { - InMarketAudienceSegmentBrandEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketBrands(advertiserId, country); + AudienceSizeEstimationV1Response result = apiInstance.estimateAudienceSize(audienceEstimateSizeInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketBrands"); + System.err.println("Exception when calling AudienceApi#estimateAudienceSize"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1194,12 +1288,103 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **advertiserId** | **String**| The advertiser ID. | | -| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | +| **audienceEstimateSizeInputV1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | | ### Return type -[**InMarketAudienceSegmentBrandEntityV1ListResponse**](InMarketAudienceSegmentBrandEntityV1ListResponse.md) +[**AudienceSizeEstimationV1Response**](AudienceSizeEstimationV1Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success or partial success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | + + +## getAudienceSegmentContactListStatistics + +> ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(audienceSegmentId) + + + +Returns the statistics of a contact list segment. + +### Example + +```java +package com.criteo.api.marketingsolutions.v2024_04; + +import com.criteo.api.marketingsolutions.v2024_04.ApiClient; +import com.criteo.api.marketingsolutions.v2024_04.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_04.ApiException; +import com.criteo.api.marketingsolutions.v2024_04.Configuration; +import com.criteo.api.marketingsolutions.v2024_04.auth.*; +import com.criteo.api.marketingsolutions.v2024_04.model.*; +import com.criteo.api.marketingsolutions.v2024_04.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + Integer audienceSegmentId = 56; // Integer | The segment ID. + try { + ContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(audienceSegmentId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **audienceSegmentId** | **Integer**| The segment ID. | | + +### Return type + +[**ContactListStatisticsEntityV1Response**](ContactListStatisticsEntityV1Response.md) ### Authorization @@ -1219,13 +1404,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentsInMarketInterests +## getAudienceSegmentsInMarketBrands -> InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(advertiserId, country) +> InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(advertiserId, country) -Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. +Returns a list with all available in-market brands that can be used to define an in-market segment. ### Example @@ -1269,10 +1454,10 @@ public class Example { String advertiserId = "advertiserId_example"; // String | The advertiser ID. String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. try { - InMarketAudienceSegmentInterestEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketInterests(advertiserId, country); + InMarketAudienceSegmentBrandEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketBrands(advertiserId, country); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketInterests"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketBrands"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1292,7 +1477,7 @@ public class Example { ### Return type -[**InMarketAudienceSegmentInterestEntityV1ListResponse**](InMarketAudienceSegmentInterestEntityV1ListResponse.md) +[**InMarketAudienceSegmentBrandEntityV1ListResponse**](InMarketAudienceSegmentBrandEntityV1ListResponse.md) ### Authorization @@ -1312,13 +1497,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## searchAudienceSegments +## getAudienceSegmentsInMarketInterests -> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset) +> InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(advertiserId, country) -Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. +Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. ### Example @@ -1359,14 +1544,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1 = new AudienceSegmentSearchInputV1(); // AudienceSegmentSearchInputV1 | Segment search filters. - Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. - Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. + String advertiserId = "advertiserId_example"; // String | The advertiser ID. + String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. try { - AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset); + InMarketAudienceSegmentInterestEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketInterests(advertiserId, country); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketInterests"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1381,13 +1565,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentSearchInputV1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | | -| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | -| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | +| **advertiserId** | **String**| The advertiser ID. | | +| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | ### Return type -[**AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse**](AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) +[**InMarketAudienceSegmentInterestEntityV1ListResponse**](InMarketAudienceSegmentInterestEntityV1ListResponse.md) ### Authorization @@ -1395,7 +1578,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Content-Type**: Not defined - **Accept**: text/plain, application/json, text/json @@ -1403,18 +1586,17 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | -| **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## searchAudiences +## searchAudienceSegments -> AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(audienceSearchInputV1, limit, offset) +> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset) -Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. +Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -1455,14 +1637,14 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSearchInputV1 audienceSearchInputV1 = new AudienceSearchInputV1(); // AudienceSearchInputV1 | Audience search filters. + AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1 = new AudienceSegmentSearchInputV1(); // AudienceSegmentSearchInputV1 | Segment search filters. Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - AudienceEntityV1AudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(audienceSearchInputV1, limit, offset); + AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#searchAudiences"); + System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1477,13 +1659,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSearchInputV1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | | +| **audienceSegmentSearchInputV1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | | | **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | | **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -[**AudienceEntityV1AudienceSearchMetadataV1ListResponse**](AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) +[**AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse**](AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) ### Authorization @@ -1504,13 +1686,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## updateContactListIdentifiers +## searchAudiences -> ModifyAudienceResponse updateContactListIdentifiers(audienceSegmentId, contactlistAmendmentRequest) +> AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(audienceSearchInputV1, limit, offset) -Add/remove identifiers to or from a contact list audience-segment. +Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -1551,13 +1733,14 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend - ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | + AudienceSearchInputV1 audienceSearchInputV1 = new AudienceSearchInputV1(); // AudienceSearchInputV1 | Audience search filters. + Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. + Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - ModifyAudienceResponse result = apiInstance.updateContactListIdentifiers(audienceSegmentId, contactlistAmendmentRequest); + AudienceEntityV1AudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(audienceSearchInputV1, limit, offset); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#updateContactListIdentifiers"); + System.err.println("Exception when calling AudienceApi#searchAudiences"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1572,12 +1755,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | -| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | +| **audienceSearchInputV1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | | +| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | +| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -[**ModifyAudienceResponse**](ModifyAudienceResponse.md) +[**AudienceEntityV1AudienceSearchMetadataV1ListResponse**](AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) ### Authorization @@ -1585,14 +1769,15 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json -- **Accept**: application/json +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Summary of created request | - | -| **403** | Forbidden | - | -| **404** | Audience 123 not found | - | +| **200** | Success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | diff --git a/sdks/marketingsolutions_2024-04/docs/CampaignApi.md b/sdks/marketingsolutions_2024-04/docs/CampaignApi.md index 6cf6488c..3781c266 100644 --- a/sdks/marketingsolutions_2024-04/docs/CampaignApi.md +++ b/sdks/marketingsolutions_2024-04/docs/CampaignApi.md @@ -1,6 +1,6 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-04/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2024-04/docs/ContactlistAmendmentAttributes.md index f0a2c263..cd54aaf1 100644 --- a/sdks/marketingsolutions_2024-04/docs/ContactlistAmendmentAttributes.md +++ b/sdks/marketingsolutions_2024-04/docs/ContactlistAmendmentAttributes.md @@ -10,7 +10,7 @@ the name of the entity type |------------ | ------------- | ------------- | -------------| |**operation** | [**OperationEnum**](#OperationEnum) | Operation to add or remove users | | |**identifierType** | [**IdentifierTypeEnum**](#IdentifierTypeEnum) | What type of identifiers are used | [optional] | -|**identifiers** | **List<String>** | The users tos add or remove, each in the schema specified | | +|**identifiers** | **List<String>** | The users to add or remove, each in the schema specified | | |**gumCallerId** | **Integer** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] | @@ -32,7 +32,6 @@ the name of the entity type | MADID | "madid" | | IDENTITYLINK | "identityLink" | | GUM | "gum" | -| CUSTOMERID | "customerid" | | PHONENUMBER | "phoneNumber" | diff --git a/sdks/marketingsolutions_2024-04/docs/CreativeApi.md b/sdks/marketingsolutions_2024-04/docs/CreativeApi.md index 1103025a..3f143177 100644 --- a/sdks/marketingsolutions_2024-04/docs/CreativeApi.md +++ b/sdks/marketingsolutions_2024-04/docs/CreativeApi.md @@ -1,6 +1,6 @@ # CreativeApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-04/docs/GatewayApi.md b/sdks/marketingsolutions_2024-04/docs/GatewayApi.md index 09d5f9cb..495d7dba 100644 --- a/sdks/marketingsolutions_2024-04/docs/GatewayApi.md +++ b/sdks/marketingsolutions_2024-04/docs/GatewayApi.md @@ -1,6 +1,6 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/ApiClient.java b/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/ApiClient.java index 730c9c68..04a11d05 100644 --- a/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/ApiClient.java +++ b/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2024.04.0.240826/java"); + setUserAgent("OpenAPI-Generator/2024.04.0.241029/java"); authentications = new HashMap(); } diff --git a/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/api/AnalyticsApi.java b/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/api/AnalyticsApi.java index 96f027a5..c45626fa 100644 --- a/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/api/AnalyticsApi.java +++ b/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/api/AnalyticsApi.java @@ -27,6 +27,7 @@ import java.io.IOException; +import java.io.File; import com.criteo.api.marketingsolutions.v2024_04.model.Outcome; import com.criteo.api.marketingsolutions.v2024_04.model.PlacementsReportQueryMessageListRequest; import com.criteo.api.marketingsolutions.v2024_04.model.StatisticsReportQueryMessage; @@ -155,7 +156,7 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -165,8 +166,8 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa
403 Forbidden -
*/ - public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { - ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); + public File getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); return localVarResp.getData(); } @@ -174,7 +175,7 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -184,9 +185,9 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM
403 Forbidden -
*/ - public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -205,10 +206,10 @@ public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessa 403 Forbidden - */ - public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -255,7 +256,9 @@ public okhttp3.Call getPlacementsReportCall(PlacementsReportQueryMessageListRequ "text/plain", "application/json", "text/json", + "text/csv", "application/xml", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/xml" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); @@ -288,7 +291,7 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -298,8 +301,8 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery
403 Forbidden -
*/ - public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); + public File getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -307,7 +310,7 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -317,9 +320,9 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem
403 Forbidden -
*/ - public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -338,10 +341,10 @@ public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQuery 403 Forbidden - */ - public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -422,7 +425,7 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -432,8 +435,8 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ
403 Forbidden -
*/ - public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); + public File getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -441,7 +444,7 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -451,9 +454,9 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr
403 Forbidden -
*/ - public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -472,10 +475,10 @@ public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQ 403 Forbidden - */ - public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/api/AudienceApi.java b/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/api/AudienceApi.java index 50dfa623..9476256b 100644 --- a/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/api/AudienceApi.java +++ b/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/api/AudienceApi.java @@ -945,6 +945,542 @@ public okhttp3.Call bulkUpdateAudiencesAsync(AudienceBulkUpdateInputV1 audienceB localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for call04audiencesAudienceSegmentIdContactlistDelete + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call04audiencesAudienceSegmentIdContactlistDeleteCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-04/audiences/{audience-segment-id}/contactlist" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call04audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call04audiencesAudienceSegmentIdContactlistDelete(Async)"); + } + + return call04audiencesAudienceSegmentIdContactlistDeleteCall(audienceSegmentId, _callback); + + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return DeleteAudienceContactListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public DeleteAudienceContactListResponse call04audiencesAudienceSegmentIdContactlistDelete(String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = call04audiencesAudienceSegmentIdContactlistDeleteWithHttpInfo(audienceSegmentId); + return localVarResp.getData(); + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return ApiResponse<DeleteAudienceContactListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public ApiResponse call04audiencesAudienceSegmentIdContactlistDeleteWithHttpInfo(String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = call04audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call04audiencesAudienceSegmentIdContactlistDeleteAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call04audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call04audiencesAudienceSegmentIdContactlistPatch + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call04audiencesAudienceSegmentIdContactlistPatchCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = contactlistAmendmentRequest; + + // create path and map variables + String localVarPath = "/2024-04/audiences/{audience-segment-id}/contactlist" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call04audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call04audiencesAudienceSegmentIdContactlistPatch(Async)"); + } + + // verify the required parameter 'contactlistAmendmentRequest' is set + if (contactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling call04audiencesAudienceSegmentIdContactlistPatch(Async)"); + } + + return call04audiencesAudienceSegmentIdContactlistPatchCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ModifyAudienceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ModifyAudienceResponse call04audiencesAudienceSegmentIdContactlistPatch(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = call04audiencesAudienceSegmentIdContactlistPatchWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); + return localVarResp.getData(); + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ApiResponse<ModifyAudienceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ApiResponse call04audiencesAudienceSegmentIdContactlistPatchWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = call04audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call04audiencesAudienceSegmentIdContactlistPatchAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call04audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(Async)"); + } + + return call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(audienceSegmentId, _callback); + + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return DeleteAudienceContactListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public DeleteAudienceContactListResponse call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(audienceSegmentId); + return localVarResp.getData(); + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return ApiResponse<DeleteAudienceContactListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public ApiResponse call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = contactlistAmendmentRequest; + + // create path and map variables + String localVarPath = "/2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); + } + + // verify the required parameter 'contactlistAmendmentRequest' is set + if (contactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); + } + + return call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ModifyAudienceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ModifyAudienceResponse call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); + return localVarResp.getData(); + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ApiResponse<ModifyAudienceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ApiResponse call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call04marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for computeAudienceSegmentsSizes * @param audienceSegmentComputeSizesInputV1 (required) @@ -1225,133 +1761,6 @@ public okhttp3.Call computeAudiencesSizesAsync(AudienceComputeSizesInputV1 audie localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for deleteContactListIdentifiers - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public okhttp3.Call deleteContactListIdentifiersCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" - .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteContactListIdentifiersValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentId' is set - if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling deleteContactListIdentifiers(Async)"); - } - - return deleteContactListIdentifiersCall(audienceSegmentId, _callback); - - } - - /** - * - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @return DeleteAudienceContactListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public DeleteAudienceContactListResponse deleteContactListIdentifiers(String audienceSegmentId) throws ApiException { - ApiResponse localVarResp = deleteContactListIdentifiersWithHttpInfo(audienceSegmentId); - return localVarResp.getData(); - } - - /** - * - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @return ApiResponse<DeleteAudienceContactListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public ApiResponse deleteContactListIdentifiersWithHttpInfo(String audienceSegmentId) throws ApiException { - okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public okhttp3.Call deleteContactListIdentifiersAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } /** * Build call for estimateAudienceSegmentSize * @param audienceSegmentEstimateSizeInputV1 (required) @@ -2375,145 +2784,4 @@ public okhttp3.Call searchAudiencesAsync(AudienceSearchInputV1 audienceSearchInp localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for updateContactListIdentifiers - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public okhttp3.Call updateContactListIdentifiersCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = contactlistAmendmentRequest; - - // create path and map variables - String localVarPath = "/2024-04/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" - .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateContactListIdentifiersValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentId' is set - if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling updateContactListIdentifiers(Async)"); - } - - // verify the required parameter 'contactlistAmendmentRequest' is set - if (contactlistAmendmentRequest == null) { - throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling updateContactListIdentifiers(Async)"); - } - - return updateContactListIdentifiersCall(audienceSegmentId, contactlistAmendmentRequest, _callback); - - } - - /** - * - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ModifyAudienceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public ModifyAudienceResponse updateContactListIdentifiers(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - ApiResponse localVarResp = updateContactListIdentifiersWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); - return localVarResp.getData(); - } - - /** - * - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ApiResponse<ModifyAudienceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public ApiResponse updateContactListIdentifiersWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public okhttp3.Call updateContactListIdentifiersAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/model/ContactlistAmendmentAttributes.java index bb26916a..cd581f0b 100644 --- a/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/model/ContactlistAmendmentAttributes.java +++ b/sdks/marketingsolutions_2024-04/src/main/java/com/criteo/api/marketingsolutions/v2024_04/model/ContactlistAmendmentAttributes.java @@ -115,8 +115,6 @@ public enum IdentifierTypeEnum { GUM("gum"), - CUSTOMERID("customerid"), - PHONENUMBER("phoneNumber"); private String value; @@ -228,7 +226,7 @@ public ContactlistAmendmentAttributes addIdentifiersItem(String identifiersItem) } /** - * The users tos add or remove, each in the schema specified + * The users to add or remove, each in the schema specified * @return identifiers **/ @javax.annotation.Nonnull diff --git a/sdks/marketingsolutions_2024-07/README.md b/sdks/marketingsolutions_2024-07/README.md index 59ac3ffd..a0a14e70 100644 --- a/sdks/marketingsolutions_2024-07/README.md +++ b/sdks/marketingsolutions_2024-07/README.md @@ -4,11 +4,11 @@ API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. -More information: [https://developers.criteo.com/](https://developers.criteo.com/) +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). Criteo API -- Package version: 2024.07.0.240826 +- Package version: 2024.07.0.241029 *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.criteo criteo-api-marketingsolutions-sdk - 2024.07.0.240826 + 2024.07.0.241029 compile ``` @@ -48,7 +48,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.criteo:criteo-api-marketingsolutions-sdk:2024.07.0.240826" +compile "com.criteo:criteo-api-marketingsolutions-sdk:2024.07.0.241029" ``` ### Others @@ -61,7 +61,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* `build/libs/criteo-api-marketingsolutions-sdk-2024.07.0.240826.jar` +* `build/libs/criteo-api-marketingsolutions-sdk-2024.07.0.241029.jar` ## Example @@ -84,9 +84,12 @@ Class | Method | HTTP request | Description *AudienceApi* | [**bulkDeleteAudiences**](docs/AudienceApi.md#bulkDeleteAudiences) | **POST** /2024-07/marketing-solutions/audiences/delete | *AudienceApi* | [**bulkUpdateAudienceSegments**](docs/AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2024-07/marketing-solutions/audience-segments | *AudienceApi* | [**bulkUpdateAudiences**](docs/AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2024-07/marketing-solutions/audiences | +*AudienceApi* | [**call07audiencesAudienceSegmentIdContactlistDelete**](docs/AudienceApi.md#call07audiencesAudienceSegmentIdContactlistDelete) | **DELETE** /2024-07/audiences/{audience-segment-id}/contactlist | +*AudienceApi* | [**call07audiencesAudienceSegmentIdContactlistPatch**](docs/AudienceApi.md#call07audiencesAudienceSegmentIdContactlistPatch) | **PATCH** /2024-07/audiences/{audience-segment-id}/contactlist | +*AudienceApi* | [**call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](docs/AudienceApi.md#call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | +*AudienceApi* | [**call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](docs/AudienceApi.md#call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *AudienceApi* | [**computeAudienceSegmentsSizes**](docs/AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2024-07/marketing-solutions/audience-segments/compute-sizes | *AudienceApi* | [**computeAudiencesSizes**](docs/AudienceApi.md#computeAudiencesSizes) | **POST** /2024-07/marketing-solutions/audiences/compute-sizes | -*AudienceApi* | [**deleteContactListIdentifiers**](docs/AudienceApi.md#deleteContactListIdentifiers) | **DELETE** /2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *AudienceApi* | [**estimateAudienceSegmentSize**](docs/AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2024-07/marketing-solutions/audience-segments/estimate-size | *AudienceApi* | [**estimateAudienceSize**](docs/AudienceApi.md#estimateAudienceSize) | **POST** /2024-07/marketing-solutions/audiences/estimate-size | *AudienceApi* | [**getAudienceSegmentContactListStatistics**](docs/AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics | @@ -94,7 +97,6 @@ Class | Method | HTTP request | Description *AudienceApi* | [**getAudienceSegmentsInMarketInterests**](docs/AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2024-07/marketing-solutions/audience-segments/in-market-interests | *AudienceApi* | [**searchAudienceSegments**](docs/AudienceApi.md#searchAudienceSegments) | **POST** /2024-07/marketing-solutions/audience-segments/search | *AudienceApi* | [**searchAudiences**](docs/AudienceApi.md#searchAudiences) | **POST** /2024-07/marketing-solutions/audiences/search | -*AudienceApi* | [**updateContactListIdentifiers**](docs/AudienceApi.md#updateContactListIdentifiers) | **PATCH** /2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *CampaignApi* | [**createAdSetV24Q1**](docs/CampaignApi.md#createAdSetV24Q1) | **POST** /2024-07/marketing-solutions/ad-sets | *CampaignApi* | [**createCampaign**](docs/CampaignApi.md#createCampaign) | **POST** /2024-07/marketing-solutions/campaigns | *CampaignApi* | [**getAdSetV24Q1**](docs/CampaignApi.md#getAdSetV24Q1) | **GET** /2024-07/marketing-solutions/ad-sets/{ad-set-id} | diff --git a/sdks/marketingsolutions_2024-07/api/openapi.yaml b/sdks/marketingsolutions_2024-07/api/openapi.yaml index e94c899a..b1237f15 100644 --- a/sdks/marketingsolutions_2024-07/api/openapi.yaml +++ b/sdks/marketingsolutions_2024-07/api/openapi.yaml @@ -8,10 +8,157 @@ servers: security: - oauth: [] paths: + /2024-07/audiences/{audience-segment-id}/contactlist: + delete: + description: Delete all identifiers from a contact list audience-segment. + parameters: + - description: The id of the contact list audience-segment to amend + explode: false + in: path + name: audience-segment-id + required: true + schema: + format: int32 + type: string + style: simple + responses: + "200": + content: + application/json: + example: + data: + id: "1" + type: AudienceContactlist + errors: [] + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/DeleteAudienceContactListResponse' + description: The Contact List was emptied + "403": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Forbidden + tags: + - Audience + x-accepts: application/json + patch: + description: Add/remove identifiers to or from a contact list audience-segment. + parameters: + - description: The id of the contact list audience-segment to amend + explode: false + in: path + name: audience-segment-id + required: true + schema: + format: int32 + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContactlistAmendmentRequest' + required: true + x-bodyName: body + responses: + "200": + content: + application/json: + example: + data: + type: ContactlistAmendment + attributes: + contactListId: 12 + operation: add + requestDate: 2018-12-10T10:00:50.0000000+00:00 + identifierType: madid + nbValidIdentifiers: 7343 + nbInvalidIdentifiers: 13 + sampleInvalidIdentifiers: + - InvalidIdentifier + errors: [] + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ModifyAudienceResponse' + description: Summary of created request + "403": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Forbidden + "404": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Audience 123 not found + tags: + - Audience + x-content-type: application/json + x-accepts: application/json /2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list: delete: description: Delete all identifiers from a contact list audience-segment. - operationId: deleteContactListIdentifiers parameters: - description: The id of the contact list audience-segment to amend explode: false @@ -67,7 +214,6 @@ paths: x-accepts: application/json patch: description: Add/remove identifiers to or from a contact list audience-segment. - operationId: updateContactListIdentifiers parameters: - description: The id of the contact list audience-segment to amend explode: false @@ -2925,23 +3071,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary + type: string + text/csv: + schema: + format: binary type: string application/xml: schema: - format: byte + format: binary type: string - text/xml: + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3223,27 +3373,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3387,27 +3537,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -14186,12 +14336,11 @@ components: - madid - identityLink - gum - - customerid - phoneNumber nullable: true type: string identifiers: - description: "The users tos add or remove, each in the schema specified" + description: "The users to add or remove, each in the schema specified" items: type: string type: array diff --git a/sdks/marketingsolutions_2024-07/build.gradle b/sdks/marketingsolutions_2024-07/build.gradle index 32a236f5..68e04c3d 100644 --- a/sdks/marketingsolutions_2024-07/build.gradle +++ b/sdks/marketingsolutions_2024-07/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2024.07.0.240826' +version = '2024.07.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-marketingsolutions-sdk' - version '2024.07.0.240826' + version '2024.07.0.241029' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/marketingsolutions_2024-07/docs/AdvertiserApi.md b/sdks/marketingsolutions_2024-07/docs/AdvertiserApi.md index c4c71345..92c1c873 100644 --- a/sdks/marketingsolutions_2024-07/docs/AdvertiserApi.md +++ b/sdks/marketingsolutions_2024-07/docs/AdvertiserApi.md @@ -1,6 +1,6 @@ # AdvertiserApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-07/docs/AnalyticsApi.md b/sdks/marketingsolutions_2024-07/docs/AnalyticsApi.md index 374aaad0..e14e6387 100644 --- a/sdks/marketingsolutions_2024-07/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_2024-07/docs/AnalyticsApi.md @@ -1,6 +1,6 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -13,7 +13,7 @@ All URIs are relative to *https://api.criteo.com* ## getAdsetReport -> byte[] getAdsetReport(statisticsReportQueryMessage) +> File getAdsetReport(statisticsReportQueryMessage) @@ -60,7 +60,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); StatisticsReportQueryMessage statisticsReportQueryMessage = new StatisticsReportQueryMessage(); // StatisticsReportQueryMessage | try { - byte[] result = apiInstance.getAdsetReport(statisticsReportQueryMessage); + File result = apiInstance.getAdsetReport(statisticsReportQueryMessage); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getAdsetReport"); @@ -82,7 +82,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -104,7 +104,7 @@ public class Example { ## getPlacementsReport -> byte[] getPlacementsReport(placementsReportQueryMessageListRequest) +> File getPlacementsReport(placementsReportQueryMessageListRequest) @@ -151,7 +151,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest = new PlacementsReportQueryMessageListRequest(); // PlacementsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); + File result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getPlacementsReport"); @@ -173,7 +173,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -182,7 +182,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json, application/xml, text/xml +- **Accept**: text/plain, application/json, text/json, text/csv, application/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/xml ### HTTP response details @@ -195,7 +195,7 @@ public class Example { ## getTransactionsReport -> byte[] getTransactionsReport(transactionsReportQueryMessageListRequest) +> File getTransactionsReport(transactionsReportQueryMessageListRequest) @@ -242,7 +242,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest = new TransactionsReportQueryMessageListRequest(); // TransactionsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); + File result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getTransactionsReport"); @@ -264,7 +264,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization diff --git a/sdks/marketingsolutions_2024-07/docs/AudienceApi.md b/sdks/marketingsolutions_2024-07/docs/AudienceApi.md index 8f8ac766..e706ccce 100644 --- a/sdks/marketingsolutions_2024-07/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2024-07/docs/AudienceApi.md @@ -1,6 +1,6 @@ # AudienceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -10,9 +10,12 @@ All URIs are relative to *https://api.criteo.com* | [**bulkDeleteAudiences**](AudienceApi.md#bulkDeleteAudiences) | **POST** /2024-07/marketing-solutions/audiences/delete | | | [**bulkUpdateAudienceSegments**](AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2024-07/marketing-solutions/audience-segments | | | [**bulkUpdateAudiences**](AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2024-07/marketing-solutions/audiences | | +| [**call07audiencesAudienceSegmentIdContactlistDelete**](AudienceApi.md#call07audiencesAudienceSegmentIdContactlistDelete) | **DELETE** /2024-07/audiences/{audience-segment-id}/contactlist | | +| [**call07audiencesAudienceSegmentIdContactlistPatch**](AudienceApi.md#call07audiencesAudienceSegmentIdContactlistPatch) | **PATCH** /2024-07/audiences/{audience-segment-id}/contactlist | | +| [**call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](AudienceApi.md#call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | +| [**call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](AudienceApi.md#call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | | [**computeAudienceSegmentsSizes**](AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2024-07/marketing-solutions/audience-segments/compute-sizes | | | [**computeAudiencesSizes**](AudienceApi.md#computeAudiencesSizes) | **POST** /2024-07/marketing-solutions/audiences/compute-sizes | | -| [**deleteContactListIdentifiers**](AudienceApi.md#deleteContactListIdentifiers) | **DELETE** /2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | | [**estimateAudienceSegmentSize**](AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2024-07/marketing-solutions/audience-segments/estimate-size | | | [**estimateAudienceSize**](AudienceApi.md#estimateAudienceSize) | **POST** /2024-07/marketing-solutions/audiences/estimate-size | | | [**getAudienceSegmentContactListStatistics**](AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics | | @@ -20,7 +23,6 @@ All URIs are relative to *https://api.criteo.com* | [**getAudienceSegmentsInMarketInterests**](AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2024-07/marketing-solutions/audience-segments/in-market-interests | | | [**searchAudienceSegments**](AudienceApi.md#searchAudienceSegments) | **POST** /2024-07/marketing-solutions/audience-segments/search | | | [**searchAudiences**](AudienceApi.md#searchAudiences) | **POST** /2024-07/marketing-solutions/audiences/search | | -| [**updateContactListIdentifiers**](AudienceApi.md#updateContactListIdentifiers) | **PATCH** /2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | @@ -577,13 +579,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## computeAudienceSegmentsSizes +## call07audiencesAudienceSegmentIdContactlistDelete -> AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1) +> DeleteAudienceContactListResponse call07audiencesAudienceSegmentIdContactlistDelete(audienceSegmentId) -Gets the size of all segments. An error is returned for those whose size calculation is not supported. +Delete all identifiers from a contact list audience-segment. ### Example @@ -624,12 +626,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1 = new AudienceSegmentComputeSizesInputV1(); // AudienceSegmentComputeSizesInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend try { - AudienceSegmentSizeEntityV1ListResponse result = apiInstance.computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1); + DeleteAudienceContactListResponse result = apiInstance.call07audiencesAudienceSegmentIdContactlistDelete(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#computeAudienceSegmentsSizes"); + System.err.println("Exception when calling AudienceApi#call07audiencesAudienceSegmentIdContactlistDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -644,11 +646,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentComputeSizesInputV1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | ### Return type -[**AudienceSegmentSizeEntityV1ListResponse**](AudienceSegmentSizeEntityV1ListResponse.md) +[**DeleteAudienceContactListResponse**](DeleteAudienceContactListResponse.md) ### Authorization @@ -656,26 +658,24 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: Not defined +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success or partial success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | The Contact List was emptied | - | +| **403** | Forbidden | - | -## computeAudiencesSizes +## call07audiencesAudienceSegmentIdContactlistPatch -> AudienceSizeEntityV1ListResponse computeAudiencesSizes(audienceComputeSizesInputV1) +> ModifyAudienceResponse call07audiencesAudienceSegmentIdContactlistPatch(audienceSegmentId, contactlistAmendmentRequest) -Gets the size of all audiences. An error is returned for those whose size calculation is not supported. +Add/remove identifiers to or from a contact list audience-segment. ### Example @@ -716,12 +716,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceComputeSizesInputV1 audienceComputeSizesInputV1 = new AudienceComputeSizesInputV1(); // AudienceComputeSizesInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend + ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | try { - AudienceSizeEntityV1ListResponse result = apiInstance.computeAudiencesSizes(audienceComputeSizesInputV1); + ModifyAudienceResponse result = apiInstance.call07audiencesAudienceSegmentIdContactlistPatch(audienceSegmentId, contactlistAmendmentRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#computeAudiencesSizes"); + System.err.println("Exception when calling AudienceApi#call07audiencesAudienceSegmentIdContactlistPatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -736,11 +737,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceComputeSizesInputV1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | +| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | ### Return type -[**AudienceSizeEntityV1ListResponse**](AudienceSizeEntityV1ListResponse.md) +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) ### Authorization @@ -748,22 +750,21 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: application/json +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success or partial success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | Summary of created request | - | +| **403** | Forbidden | - | +| **404** | Audience 123 not found | - | -## deleteContactListIdentifiers +## call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete -> DeleteAudienceContactListResponse deleteContactListIdentifiers(audienceSegmentId) +> DeleteAudienceContactListResponse call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId) @@ -810,10 +811,10 @@ public class Example { AudienceApi apiInstance = new AudienceApi(defaultClient); String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend try { - DeleteAudienceContactListResponse result = apiInstance.deleteContactListIdentifiers(audienceSegmentId); + DeleteAudienceContactListResponse result = apiInstance.call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#deleteContactListIdentifiers"); + System.err.println("Exception when calling AudienceApi#call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -851,13 +852,13 @@ public class Example { | **403** | Forbidden | - | -## estimateAudienceSegmentSize +## call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch -> AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1) +> ModifyAudienceResponse call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest) -Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. +Add/remove identifiers to or from a contact list audience-segment. ### Example @@ -898,12 +899,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1 = new AudienceSegmentEstimateSizeInputV1(); // AudienceSegmentEstimateSizeInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend + ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | try { - AudienceSegmentSizeEstimationV1Response result = apiInstance.estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1); + ModifyAudienceResponse result = apiInstance.call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#estimateAudienceSegmentSize"); + System.err.println("Exception when calling AudienceApi#call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -918,11 +920,103 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentEstimateSizeInputV1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | +| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | ### Return type -[**AudienceSegmentSizeEstimationV1Response**](AudienceSegmentSizeEstimationV1Response.md) +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Summary of created request | - | +| **403** | Forbidden | - | +| **404** | Audience 123 not found | - | + + +## computeAudienceSegmentsSizes + +> AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1) + + + +Gets the size of all segments. An error is returned for those whose size calculation is not supported. + +### Example + +```java +package com.criteo.api.marketingsolutions.v2024_07; + +import com.criteo.api.marketingsolutions.v2024_07.ApiClient; +import com.criteo.api.marketingsolutions.v2024_07.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_07.ApiException; +import com.criteo.api.marketingsolutions.v2024_07.Configuration; +import com.criteo.api.marketingsolutions.v2024_07.auth.*; +import com.criteo.api.marketingsolutions.v2024_07.model.*; +import com.criteo.api.marketingsolutions.v2024_07.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1 = new AudienceSegmentComputeSizesInputV1(); // AudienceSegmentComputeSizesInputV1 | + try { + AudienceSegmentSizeEntityV1ListResponse result = apiInstance.computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#computeAudienceSegmentsSizes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **audienceSegmentComputeSizesInputV1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | | + +### Return type + +[**AudienceSegmentSizeEntityV1ListResponse**](AudienceSegmentSizeEntityV1ListResponse.md) ### Authorization @@ -937,19 +1031,19 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | Success or partial success | - | | **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## estimateAudienceSize +## computeAudiencesSizes -> AudienceSizeEstimationV1Response estimateAudienceSize(audienceEstimateSizeInputV1) +> AudienceSizeEntityV1ListResponse computeAudiencesSizes(audienceComputeSizesInputV1) -Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. +Gets the size of all audiences. An error is returned for those whose size calculation is not supported. ### Example @@ -990,12 +1084,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1 = new AudienceEstimateSizeInputV1(); // AudienceEstimateSizeInputV1 | + AudienceComputeSizesInputV1 audienceComputeSizesInputV1 = new AudienceComputeSizesInputV1(); // AudienceComputeSizesInputV1 | try { - AudienceSizeEstimationV1Response result = apiInstance.estimateAudienceSize(audienceEstimateSizeInputV1); + AudienceSizeEntityV1ListResponse result = apiInstance.computeAudiencesSizes(audienceComputeSizesInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#estimateAudienceSize"); + System.err.println("Exception when calling AudienceApi#computeAudiencesSizes"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1010,11 +1104,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceEstimateSizeInputV1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | | +| **audienceComputeSizesInputV1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | | ### Return type -[**AudienceSizeEstimationV1Response**](AudienceSizeEstimationV1Response.md) +[**AudienceSizeEntityV1ListResponse**](AudienceSizeEntityV1ListResponse.md) ### Authorization @@ -1035,13 +1129,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentContactListStatistics +## estimateAudienceSegmentSize -> ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(audienceSegmentId) +> AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1) -Returns the statistics of a contact list segment. +Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. ### Example @@ -1082,12 +1176,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - Integer audienceSegmentId = 56; // Integer | The segment ID. + AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1 = new AudienceSegmentEstimateSizeInputV1(); // AudienceSegmentEstimateSizeInputV1 | try { - ContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(audienceSegmentId); + AudienceSegmentSizeEstimationV1Response result = apiInstance.estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); + System.err.println("Exception when calling AudienceApi#estimateAudienceSegmentSize"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1102,11 +1196,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentId** | **Integer**| The segment ID. | | +| **audienceSegmentEstimateSizeInputV1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | | ### Return type -[**ContactListStatisticsEntityV1Response**](ContactListStatisticsEntityV1Response.md) +[**AudienceSegmentSizeEstimationV1Response**](AudienceSegmentSizeEstimationV1Response.md) ### Authorization @@ -1114,7 +1208,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json @@ -1122,17 +1216,18 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | +| **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentsInMarketBrands +## estimateAudienceSize -> InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(advertiserId, country) +> AudienceSizeEstimationV1Response estimateAudienceSize(audienceEstimateSizeInputV1) -Returns a list with all available in-market brands that can be used to define an in-market segment. +Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. ### Example @@ -1173,13 +1268,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String advertiserId = "advertiserId_example"; // String | The advertiser ID. - String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. + AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1 = new AudienceEstimateSizeInputV1(); // AudienceEstimateSizeInputV1 | try { - InMarketAudienceSegmentBrandEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketBrands(advertiserId, country); + AudienceSizeEstimationV1Response result = apiInstance.estimateAudienceSize(audienceEstimateSizeInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketBrands"); + System.err.println("Exception when calling AudienceApi#estimateAudienceSize"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1194,12 +1288,103 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **advertiserId** | **String**| The advertiser ID. | | -| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | +| **audienceEstimateSizeInputV1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | | ### Return type -[**InMarketAudienceSegmentBrandEntityV1ListResponse**](InMarketAudienceSegmentBrandEntityV1ListResponse.md) +[**AudienceSizeEstimationV1Response**](AudienceSizeEstimationV1Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success or partial success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | + + +## getAudienceSegmentContactListStatistics + +> ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(audienceSegmentId) + + + +Returns the statistics of a contact list segment. + +### Example + +```java +package com.criteo.api.marketingsolutions.v2024_07; + +import com.criteo.api.marketingsolutions.v2024_07.ApiClient; +import com.criteo.api.marketingsolutions.v2024_07.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_07.ApiException; +import com.criteo.api.marketingsolutions.v2024_07.Configuration; +import com.criteo.api.marketingsolutions.v2024_07.auth.*; +import com.criteo.api.marketingsolutions.v2024_07.model.*; +import com.criteo.api.marketingsolutions.v2024_07.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + Integer audienceSegmentId = 56; // Integer | The segment ID. + try { + ContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(audienceSegmentId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **audienceSegmentId** | **Integer**| The segment ID. | | + +### Return type + +[**ContactListStatisticsEntityV1Response**](ContactListStatisticsEntityV1Response.md) ### Authorization @@ -1219,13 +1404,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentsInMarketInterests +## getAudienceSegmentsInMarketBrands -> InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(advertiserId, country) +> InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(advertiserId, country) -Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. +Returns a list with all available in-market brands that can be used to define an in-market segment. ### Example @@ -1269,10 +1454,10 @@ public class Example { String advertiserId = "advertiserId_example"; // String | The advertiser ID. String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. try { - InMarketAudienceSegmentInterestEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketInterests(advertiserId, country); + InMarketAudienceSegmentBrandEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketBrands(advertiserId, country); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketInterests"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketBrands"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1292,7 +1477,7 @@ public class Example { ### Return type -[**InMarketAudienceSegmentInterestEntityV1ListResponse**](InMarketAudienceSegmentInterestEntityV1ListResponse.md) +[**InMarketAudienceSegmentBrandEntityV1ListResponse**](InMarketAudienceSegmentBrandEntityV1ListResponse.md) ### Authorization @@ -1312,13 +1497,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## searchAudienceSegments +## getAudienceSegmentsInMarketInterests -> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset) +> InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(advertiserId, country) -Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. +Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. ### Example @@ -1359,14 +1544,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1 = new AudienceSegmentSearchInputV1(); // AudienceSegmentSearchInputV1 | Segment search filters. - Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. - Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. + String advertiserId = "advertiserId_example"; // String | The advertiser ID. + String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. try { - AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset); + InMarketAudienceSegmentInterestEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketInterests(advertiserId, country); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketInterests"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1381,13 +1565,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentSearchInputV1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | | -| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | -| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | +| **advertiserId** | **String**| The advertiser ID. | | +| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | ### Return type -[**AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse**](AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) +[**InMarketAudienceSegmentInterestEntityV1ListResponse**](InMarketAudienceSegmentInterestEntityV1ListResponse.md) ### Authorization @@ -1395,7 +1578,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Content-Type**: Not defined - **Accept**: text/plain, application/json, text/json @@ -1403,18 +1586,17 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | -| **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## searchAudiences +## searchAudienceSegments -> AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(audienceSearchInputV1, limit, offset) +> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset) -Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. +Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -1455,14 +1637,14 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSearchInputV1 audienceSearchInputV1 = new AudienceSearchInputV1(); // AudienceSearchInputV1 | Audience search filters. + AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1 = new AudienceSegmentSearchInputV1(); // AudienceSegmentSearchInputV1 | Segment search filters. Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - AudienceEntityV1AudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(audienceSearchInputV1, limit, offset); + AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#searchAudiences"); + System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1477,13 +1659,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSearchInputV1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | | +| **audienceSegmentSearchInputV1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | | | **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | | **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -[**AudienceEntityV1AudienceSearchMetadataV1ListResponse**](AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) +[**AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse**](AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) ### Authorization @@ -1504,13 +1686,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## updateContactListIdentifiers +## searchAudiences -> ModifyAudienceResponse updateContactListIdentifiers(audienceSegmentId, contactlistAmendmentRequest) +> AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(audienceSearchInputV1, limit, offset) -Add/remove identifiers to or from a contact list audience-segment. +Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -1551,13 +1733,14 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend - ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | + AudienceSearchInputV1 audienceSearchInputV1 = new AudienceSearchInputV1(); // AudienceSearchInputV1 | Audience search filters. + Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. + Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - ModifyAudienceResponse result = apiInstance.updateContactListIdentifiers(audienceSegmentId, contactlistAmendmentRequest); + AudienceEntityV1AudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(audienceSearchInputV1, limit, offset); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#updateContactListIdentifiers"); + System.err.println("Exception when calling AudienceApi#searchAudiences"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1572,12 +1755,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | -| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | +| **audienceSearchInputV1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | | +| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | +| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -[**ModifyAudienceResponse**](ModifyAudienceResponse.md) +[**AudienceEntityV1AudienceSearchMetadataV1ListResponse**](AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) ### Authorization @@ -1585,14 +1769,15 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json -- **Accept**: application/json +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Summary of created request | - | -| **403** | Forbidden | - | -| **404** | Audience 123 not found | - | +| **200** | Success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | diff --git a/sdks/marketingsolutions_2024-07/docs/CampaignApi.md b/sdks/marketingsolutions_2024-07/docs/CampaignApi.md index 387d4fac..870c926e 100644 --- a/sdks/marketingsolutions_2024-07/docs/CampaignApi.md +++ b/sdks/marketingsolutions_2024-07/docs/CampaignApi.md @@ -1,6 +1,6 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-07/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2024-07/docs/ContactlistAmendmentAttributes.md index f0a2c263..cd54aaf1 100644 --- a/sdks/marketingsolutions_2024-07/docs/ContactlistAmendmentAttributes.md +++ b/sdks/marketingsolutions_2024-07/docs/ContactlistAmendmentAttributes.md @@ -10,7 +10,7 @@ the name of the entity type |------------ | ------------- | ------------- | -------------| |**operation** | [**OperationEnum**](#OperationEnum) | Operation to add or remove users | | |**identifierType** | [**IdentifierTypeEnum**](#IdentifierTypeEnum) | What type of identifiers are used | [optional] | -|**identifiers** | **List<String>** | The users tos add or remove, each in the schema specified | | +|**identifiers** | **List<String>** | The users to add or remove, each in the schema specified | | |**gumCallerId** | **Integer** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] | @@ -32,7 +32,6 @@ the name of the entity type | MADID | "madid" | | IDENTITYLINK | "identityLink" | | GUM | "gum" | -| CUSTOMERID | "customerid" | | PHONENUMBER | "phoneNumber" | diff --git a/sdks/marketingsolutions_2024-07/docs/CreativeApi.md b/sdks/marketingsolutions_2024-07/docs/CreativeApi.md index 6a93cc14..fe719485 100644 --- a/sdks/marketingsolutions_2024-07/docs/CreativeApi.md +++ b/sdks/marketingsolutions_2024-07/docs/CreativeApi.md @@ -1,6 +1,6 @@ # CreativeApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-07/docs/GatewayApi.md b/sdks/marketingsolutions_2024-07/docs/GatewayApi.md index e0369a74..7a5e08d0 100644 --- a/sdks/marketingsolutions_2024-07/docs/GatewayApi.md +++ b/sdks/marketingsolutions_2024-07/docs/GatewayApi.md @@ -1,6 +1,6 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/ApiClient.java b/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/ApiClient.java index 31a19b09..cd1d773e 100644 --- a/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/ApiClient.java +++ b/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2024.07.0.240826/java"); + setUserAgent("OpenAPI-Generator/2024.07.0.241029/java"); authentications = new HashMap(); } diff --git a/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/api/AnalyticsApi.java b/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/api/AnalyticsApi.java index 1393e607..126a2404 100644 --- a/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/api/AnalyticsApi.java +++ b/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/api/AnalyticsApi.java @@ -27,6 +27,7 @@ import java.io.IOException; +import java.io.File; import com.criteo.api.marketingsolutions.v2024_07.model.Outcome; import com.criteo.api.marketingsolutions.v2024_07.model.PlacementsReportQueryMessageListRequest; import com.criteo.api.marketingsolutions.v2024_07.model.StatisticsReportQueryMessage; @@ -155,7 +156,7 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -165,8 +166,8 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa
403 Forbidden -
*/ - public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { - ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); + public File getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); return localVarResp.getData(); } @@ -174,7 +175,7 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -184,9 +185,9 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM
403 Forbidden -
*/ - public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -205,10 +206,10 @@ public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessa 403 Forbidden - */ - public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -255,7 +256,9 @@ public okhttp3.Call getPlacementsReportCall(PlacementsReportQueryMessageListRequ "text/plain", "application/json", "text/json", + "text/csv", "application/xml", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/xml" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); @@ -288,7 +291,7 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -298,8 +301,8 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery
403 Forbidden -
*/ - public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); + public File getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -307,7 +310,7 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -317,9 +320,9 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem
403 Forbidden -
*/ - public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -338,10 +341,10 @@ public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQuery 403 Forbidden - */ - public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -422,7 +425,7 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -432,8 +435,8 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ
403 Forbidden -
*/ - public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); + public File getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -441,7 +444,7 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -451,9 +454,9 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr
403 Forbidden -
*/ - public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -472,10 +475,10 @@ public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQ 403 Forbidden - */ - public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/api/AudienceApi.java b/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/api/AudienceApi.java index 1d5e2ccf..1b4326d3 100644 --- a/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/api/AudienceApi.java +++ b/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/api/AudienceApi.java @@ -945,6 +945,542 @@ public okhttp3.Call bulkUpdateAudiencesAsync(AudienceBulkUpdateInputV1 audienceB localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for call07audiencesAudienceSegmentIdContactlistDelete + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call07audiencesAudienceSegmentIdContactlistDeleteCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-07/audiences/{audience-segment-id}/contactlist" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call07audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call07audiencesAudienceSegmentIdContactlistDelete(Async)"); + } + + return call07audiencesAudienceSegmentIdContactlistDeleteCall(audienceSegmentId, _callback); + + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return DeleteAudienceContactListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public DeleteAudienceContactListResponse call07audiencesAudienceSegmentIdContactlistDelete(String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = call07audiencesAudienceSegmentIdContactlistDeleteWithHttpInfo(audienceSegmentId); + return localVarResp.getData(); + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return ApiResponse<DeleteAudienceContactListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public ApiResponse call07audiencesAudienceSegmentIdContactlistDeleteWithHttpInfo(String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = call07audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call07audiencesAudienceSegmentIdContactlistDeleteAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call07audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call07audiencesAudienceSegmentIdContactlistPatch + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call07audiencesAudienceSegmentIdContactlistPatchCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = contactlistAmendmentRequest; + + // create path and map variables + String localVarPath = "/2024-07/audiences/{audience-segment-id}/contactlist" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call07audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call07audiencesAudienceSegmentIdContactlistPatch(Async)"); + } + + // verify the required parameter 'contactlistAmendmentRequest' is set + if (contactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling call07audiencesAudienceSegmentIdContactlistPatch(Async)"); + } + + return call07audiencesAudienceSegmentIdContactlistPatchCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ModifyAudienceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ModifyAudienceResponse call07audiencesAudienceSegmentIdContactlistPatch(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = call07audiencesAudienceSegmentIdContactlistPatchWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); + return localVarResp.getData(); + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ApiResponse<ModifyAudienceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ApiResponse call07audiencesAudienceSegmentIdContactlistPatchWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = call07audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call07audiencesAudienceSegmentIdContactlistPatchAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call07audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(Async)"); + } + + return call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(audienceSegmentId, _callback); + + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return DeleteAudienceContactListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public DeleteAudienceContactListResponse call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(audienceSegmentId); + return localVarResp.getData(); + } + + /** + * + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return ApiResponse<DeleteAudienceContactListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public ApiResponse call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
+ */ + public okhttp3.Call call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = contactlistAmendmentRequest; + + // create path and map variables + String localVarPath = "/2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); + } + + // verify the required parameter 'contactlistAmendmentRequest' is set + if (contactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); + } + + return call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ModifyAudienceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ModifyAudienceResponse call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); + return localVarResp.getData(); + } + + /** + * + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ApiResponse<ModifyAudienceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public ApiResponse call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
+ */ + public okhttp3.Call call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = call07marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for computeAudienceSegmentsSizes * @param audienceSegmentComputeSizesInputV1 (required) @@ -1225,133 +1761,6 @@ public okhttp3.Call computeAudiencesSizesAsync(AudienceComputeSizesInputV1 audie localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for deleteContactListIdentifiers - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public okhttp3.Call deleteContactListIdentifiersCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" - .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteContactListIdentifiersValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentId' is set - if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling deleteContactListIdentifiers(Async)"); - } - - return deleteContactListIdentifiersCall(audienceSegmentId, _callback); - - } - - /** - * - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @return DeleteAudienceContactListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public DeleteAudienceContactListResponse deleteContactListIdentifiers(String audienceSegmentId) throws ApiException { - ApiResponse localVarResp = deleteContactListIdentifiersWithHttpInfo(audienceSegmentId); - return localVarResp.getData(); - } - - /** - * - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @return ApiResponse<DeleteAudienceContactListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public ApiResponse deleteContactListIdentifiersWithHttpInfo(String audienceSegmentId) throws ApiException { - okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public okhttp3.Call deleteContactListIdentifiersAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } /** * Build call for estimateAudienceSegmentSize * @param audienceSegmentEstimateSizeInputV1 (required) @@ -2375,145 +2784,4 @@ public okhttp3.Call searchAudiencesAsync(AudienceSearchInputV1 audienceSearchInp localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for updateContactListIdentifiers - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public okhttp3.Call updateContactListIdentifiersCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = contactlistAmendmentRequest; - - // create path and map variables - String localVarPath = "/2024-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" - .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateContactListIdentifiersValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentId' is set - if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling updateContactListIdentifiers(Async)"); - } - - // verify the required parameter 'contactlistAmendmentRequest' is set - if (contactlistAmendmentRequest == null) { - throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling updateContactListIdentifiers(Async)"); - } - - return updateContactListIdentifiersCall(audienceSegmentId, contactlistAmendmentRequest, _callback); - - } - - /** - * - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ModifyAudienceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public ModifyAudienceResponse updateContactListIdentifiers(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - ApiResponse localVarResp = updateContactListIdentifiersWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); - return localVarResp.getData(); - } - - /** - * - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ApiResponse<ModifyAudienceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public ApiResponse updateContactListIdentifiersWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public okhttp3.Call updateContactListIdentifiersAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/model/ContactlistAmendmentAttributes.java index f162d0ff..0a0bec31 100644 --- a/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/model/ContactlistAmendmentAttributes.java +++ b/sdks/marketingsolutions_2024-07/src/main/java/com/criteo/api/marketingsolutions/v2024_07/model/ContactlistAmendmentAttributes.java @@ -115,8 +115,6 @@ public enum IdentifierTypeEnum { GUM("gum"), - CUSTOMERID("customerid"), - PHONENUMBER("phoneNumber"); private String value; @@ -228,7 +226,7 @@ public ContactlistAmendmentAttributes addIdentifiersItem(String identifiersItem) } /** - * The users tos add or remove, each in the schema specified + * The users to add or remove, each in the schema specified * @return identifiers **/ @javax.annotation.Nonnull diff --git a/sdks/marketingsolutions_2023-07/.github/workflows/maven.yml b/sdks/marketingsolutions_2024-10/.github/workflows/maven.yml similarity index 100% rename from sdks/marketingsolutions_2023-07/.github/workflows/maven.yml rename to sdks/marketingsolutions_2024-10/.github/workflows/maven.yml diff --git a/sdks/marketingsolutions_2023-07/.gitignore b/sdks/marketingsolutions_2024-10/.gitignore similarity index 100% rename from sdks/marketingsolutions_2023-07/.gitignore rename to sdks/marketingsolutions_2024-10/.gitignore diff --git a/sdks/marketingsolutions_2024-10/.openapi-generator/FILES b/sdks/marketingsolutions_2024-10/.openapi-generator/FILES new file mode 100644 index 00000000..74b5bef0 --- /dev/null +++ b/sdks/marketingsolutions_2024-10/.openapi-generator/FILES @@ -0,0 +1,542 @@ +.github/workflows/maven.yml +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +build.gradle +build.sbt +docs/Ad.md +docs/AdListResponse.md +docs/AdResource.md +docs/AdResponse.md +docs/AdSetAudienceLinkEntityV1.md +docs/AdSetAudienceLinkEntityV1Resource.md +docs/AdSetAudienceLinkEntityV1Response.md +docs/AdSetAudienceLinkInputEntityV1.md +docs/AdSetCategoryBid.md +docs/AdSetCategoryBidListResponse.md +docs/AdSetCategoryBidResource.md +docs/AdSetDeliveryLimitationsV24Q1.md +docs/AdSetDisplayMultiplier.md +docs/AdSetDisplayMultiplierListResponse.md +docs/AdSetDisplayMultiplierResource.md +docs/AdSetFrequencyCappingV24Q1.md +docs/AdSetGeoLocationV24Q1.md +docs/AdSetSearchFilterV24Q1.md +docs/AdSetSearchRequestV24Q1.md +docs/AdSetTargetingRuleV24Q1.md +docs/AdSetTargetingV24Q1.md +docs/AdWrite.md +docs/AdWriteRequest.md +docs/AdWriteResource.md +docs/AdaptiveAttributes.md +docs/AdaptiveColors.md +docs/AdaptiveWriteAttributes.md +docs/AdvertiserApi.md +docs/AlgebraNodeV1.md +docs/AnalyticsApi.md +docs/ApplicationSummaryModel.md +docs/ApplicationSummaryModelResource.md +docs/ApplicationSummaryModelResponse.md +docs/AudienceApi.md +docs/AudienceBulkCreateInputV1.md +docs/AudienceBulkDeleteInputV1.md +docs/AudienceBulkUpdateInputV1.md +docs/AudienceComputeSizeEntityV1Resource.md +docs/AudienceComputeSizesInputV1.md +docs/AudienceCreateEntityV1.md +docs/AudienceCreateEntityV1Resource.md +docs/AudienceDeleteEntityV1Resource.md +docs/AudienceEntityV1.md +docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md +docs/AudienceEntityV1ListResponse.md +docs/AudienceEntityV1Resource.md +docs/AudienceError.md +docs/AudienceEstimateSizeEntityV1.md +docs/AudienceEstimateSizeEntityV1Resource.md +docs/AudienceEstimateSizeInputV1.md +docs/AudienceIdEntityV1ListResponse.md +docs/AudienceIdEntityV1Resource.md +docs/AudienceNameDescription.md +docs/AudienceSearchEntityV1.md +docs/AudienceSearchEntityV1Resource.md +docs/AudienceSearchInputV1.md +docs/AudienceSearchMetadataV1.md +docs/AudienceSegmentBulkCreateInputV1.md +docs/AudienceSegmentBulkDeleteInputV1.md +docs/AudienceSegmentBulkUpdateInputV1.md +docs/AudienceSegmentComputeSizeEntityV1Resource.md +docs/AudienceSegmentComputeSizesInputV1.md +docs/AudienceSegmentCreateEntityV1.md +docs/AudienceSegmentCreateEntityV1Resource.md +docs/AudienceSegmentDeleteEntityV1Resource.md +docs/AudienceSegmentEntityV1.md +docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md +docs/AudienceSegmentEntityV1ListResponse.md +docs/AudienceSegmentEntityV1Resource.md +docs/AudienceSegmentEstimateSizeInputV1.md +docs/AudienceSegmentIdEntityV1ListResponse.md +docs/AudienceSegmentIdEntityV1Resource.md +docs/AudienceSegmentSearchEntityV1.md +docs/AudienceSegmentSearchEntityV1Resource.md +docs/AudienceSegmentSearchInputV1.md +docs/AudienceSegmentSearchMetadataV1.md +docs/AudienceSegmentSizeEntityV1.md +docs/AudienceSegmentSizeEntityV1ListResponse.md +docs/AudienceSegmentSizeEntityV1Resource.md +docs/AudienceSegmentSizeEstimationEntityV1.md +docs/AudienceSegmentSizeEstimationEntityV1Resource.md +docs/AudienceSegmentSizeEstimationV1.md +docs/AudienceSegmentSizeEstimationV1Resource.md +docs/AudienceSegmentSizeEstimationV1Response.md +docs/AudienceSegmentUpdateEntityV1.md +docs/AudienceSegmentUpdateEntityV1Resource.md +docs/AudienceSizeEntityV1.md +docs/AudienceSizeEntityV1ListResponse.md +docs/AudienceSizeEntityV1Resource.md +docs/AudienceSizeEstimationV1.md +docs/AudienceSizeEstimationV1Resource.md +docs/AudienceSizeEstimationV1Response.md +docs/AudienceUpdateEntityV1.md +docs/AudienceUpdateEntityV1Resource.md +docs/AudienceWarning.md +docs/BasicAudienceDefinition.md +docs/BehavioralV1.md +docs/CampaignApi.md +docs/CampaignSearchFiltersV23Q1.md +docs/CampaignSearchRequestV23Q1.md +docs/CampaignSpendLimitV23Q1.md +docs/CampaignV23Q1.md +docs/CampaignV23Q1ListResponse.md +docs/CampaignV23Q1Resource.md +docs/CampaignV23Q1Response.md +docs/CommonProblem.md +docs/ContactListStatisticsEntityV1.md +docs/ContactListStatisticsEntityV1Resource.md +docs/ContactListStatisticsEntityV1Response.md +docs/ContactListV1.md +docs/ContactlistAmendment.md +docs/ContactlistAmendmentAttributes.md +docs/ContactlistAmendmentRequest.md +docs/ContactlistOperation.md +docs/ContactlistOperationAttributes.md +docs/Coupon.md +docs/CouponListResponse.md +docs/CouponResource.md +docs/CouponResponse.md +docs/CouponSupportedSizes.md +docs/CouponSupportedSizesResource.md +docs/CouponSupportedSizesResponse.md +docs/CreateAdSetBiddingV24Q1.md +docs/CreateAdSetBudgetV24Q1.md +docs/CreateAdSetGeoLocationV24Q1.md +docs/CreateAdSetScheduleV24Q1.md +docs/CreateAdSetTargetingV24Q1.md +docs/CreateAdSetV24Q1.md +docs/CreateAdSetV24Q1Request.md +docs/CreateAdSetV24Q1Resource.md +docs/CreateCampaign.md +docs/CreateCampaignRequest.md +docs/CreateCampaignResource.md +docs/CreateCampaignSpendLimit.md +docs/CreateCoupon.md +docs/CreateCouponRequest.md +docs/CreateCouponResource.md +docs/CreateImageSlide.md +docs/Creative.md +docs/CreativeApi.md +docs/CreativeListResponse.md +docs/CreativeResource.md +docs/CreativeResponse.md +docs/CreativeWrite.md +docs/CreativeWriteRequest.md +docs/CreativeWriteResource.md +docs/CriteoApiError.md +docs/CriteoApiWarning.md +docs/DeleteAudienceContactListResponse.md +docs/DynamicAttributes.md +docs/DynamicWriteAttributes.md +docs/EntityOfPortfolioMessage.md +docs/ErrorCodeResponse.md +docs/GatewayApi.md +docs/GetPortfolioResponse.md +docs/HtmlTagAttributes.md +docs/HtmlTagWriteAttributes.md +docs/ImageAttributes.md +docs/ImageSet.md +docs/ImageSetBase64.md +docs/ImageShape.md +docs/ImageSlide.md +docs/ImageWriteAttributes.md +docs/InMarketAudienceSegmentBrandEntityV1.md +docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md +docs/InMarketAudienceSegmentBrandEntityV1Resource.md +docs/InMarketAudienceSegmentInterestEntityV1.md +docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md +docs/InMarketAudienceSegmentInterestEntityV1Resource.md +docs/InMarketCreateV1.md +docs/InMarketSizeEstimationV1.md +docs/InMarketUpdateV1.md +docs/InMarketV1.md +docs/LocationCreateV1.md +docs/LocationSizeEstimationV1.md +docs/LocationUpdateV1.md +docs/LocationV1.md +docs/LookalikeCreateV1.md +docs/LookalikeUpdateV1.md +docs/LookalikeV1.md +docs/ModifyAudienceResponse.md +docs/NillableAdSetTargetingRuleV24Q1.md +docs/NillableAdSetTargetingRuleV24Q1Value.md +docs/NillableDateTime.md +docs/NillableDecimal.md +docs/NillableGenderV1.md +docs/NillableInt32.md +docs/NillableString.md +docs/Outcome.md +docs/PatchAdSetBiddingV24Q1.md +docs/PatchAdSetBudgetV24Q1.md +docs/PatchAdSetCategoryBid.md +docs/PatchAdSetCategoryBidListRequest.md +docs/PatchAdSetCategoryBidResource.md +docs/PatchAdSetCategoryBidResultListResponse.md +docs/PatchAdSetCategoryBidResultResource.md +docs/PatchAdSetDisplayMultiplier.md +docs/PatchAdSetDisplayMultiplierListRequest.md +docs/PatchAdSetDisplayMultiplierResource.md +docs/PatchAdSetDisplayMultiplierResultListResponse.md +docs/PatchAdSetDisplayMultiplierResultResource.md +docs/PatchAdSetSchedulingV24Q1.md +docs/PatchAdSetV24Q1.md +docs/PatchCampaign.md +docs/PatchCampaignListRequest.md +docs/PatchCampaignSpendLimit.md +docs/PatchCampaignWriteResource.md +docs/PatchResultCampaignListResponse.md +docs/PatchResultCampaignReadResource.md +docs/PlacementsReportQueryMessage.md +docs/PlacementsReportQueryMessageListRequest.md +docs/PlacementsReportQueryMessageResource.md +docs/PointOfInterestV1.md +docs/PortfolioMessage.md +docs/ProspectingCreateV1.md +docs/ProspectingUpdateV1.md +docs/ProspectingV1.md +docs/ReadAdSetBiddingV24Q1.md +docs/ReadAdSetBudgetV24Q1.md +docs/ReadAdSetScheduleV24Q1.md +docs/ReadAdSetV24Q1.md +docs/ReadModelAdSetId.md +docs/ReadModelAdSetIdV24Q1.md +docs/ReadModelReadAdSetV24Q1.md +docs/RequestsAdSetId.md +docs/RequestsPatchAdSetV24Q1.md +docs/ResponseReadAdSetV24Q1.md +docs/ResponsesAdSetId.md +docs/ResponsesAdSetIdV24Q1.md +docs/ResponsesReadAdSetV24Q1.md +docs/RetargetingCreateV1.md +docs/RetargetingUpdateV1.md +docs/RetargetingV1.md +docs/Size.md +docs/StatisticsReportQueryMessage.md +docs/Tag.md +docs/TransactionsReportQueryMessage.md +docs/TransactionsReportQueryMessageListRequest.md +docs/TransactionsReportQueryMessageResource.md +docs/TransparencyQueryMessage.md +docs/TransparencyReport.md +docs/TransparencyReportFile.md +docs/TransparencyReportListResponse.md +docs/TransparencyReportResource.md +docs/UpdateCoupon.md +docs/UpdateCouponRequest.md +docs/UpdateCouponResource.md +docs/VideoDetail.md +docs/WriteModelAdSetId.md +docs/WriteModelPatchAdSetV24Q1.md +git_push.sh +gradle.properties +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper.properties +gradlew +gradlew.bat +pom.xml +settings.gradle +src/main/AndroidManifest.xml +src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiCallback.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiClient.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiClientBuilder.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiException.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/Configuration.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/GzipRequestInterceptor.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/JSON.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/Pair.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/ProgressRequestBody.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/ProgressResponseBody.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/ServerConfiguration.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/ServerVariable.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/StringUtil.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AdvertiserApi.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AnalyticsApi.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AudienceApi.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/CampaignApi.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/CreativeApi.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/GatewayApi.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/ApiKeyAuth.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/Authentication.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/HttpBasicAuth.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/HttpBearerAuth.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuth.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuthFlow.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuthOkHttpClient.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/RetryingOAuth.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AbstractOpenApiSchema.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Ad.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1Response.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkInputEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBid.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBidListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBidResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDeliveryLimitationsV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplier.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplierListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplierResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetFrequencyCappingV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetGeoLocationV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetSearchFilterV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetSearchRequestV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetTargetingRuleV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetTargetingV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWrite.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWriteRequest.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWriteResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveAttributes.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveColors.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveWriteAttributes.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AlgebraNodeV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModel.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModelResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModelResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkCreateInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkDeleteInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkUpdateInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceComputeSizeEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceComputeSizesInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceCreateEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceCreateEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceDeleteEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1ListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceError.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceIdEntityV1ListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceIdEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceNameDescription.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchMetadataV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkCreateInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkDeleteInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkUpdateInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentComputeSizeEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentComputeSizesInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentCreateEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentCreateEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentDeleteEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1ListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEstimateSizeInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentIdEntityV1ListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentIdEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchInputV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchMetadataV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1ListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1Response.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentUpdateEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentUpdateEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1ListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1Response.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceUpdateEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceUpdateEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceWarning.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/BasicAudienceDefinition.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/BehavioralV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSearchFiltersV23Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSearchRequestV23Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSpendLimitV23Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1ListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1Response.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CommonProblem.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1Response.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendment.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendmentAttributes.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendmentRequest.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistOperation.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistOperationAttributes.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Coupon.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizes.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizesResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizesResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetBiddingV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetBudgetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetGeoLocationV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetScheduleV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetTargetingV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1Request.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaign.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignRequest.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignSpendLimit.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCoupon.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCouponRequest.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCouponResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateImageSlide.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Creative.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWrite.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWriteRequest.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWriteResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CriteoApiError.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CriteoApiWarning.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DeleteAudienceContactListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DynamicAttributes.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DynamicWriteAttributes.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/EntityOfPortfolioMessage.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ErrorCodeResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/GetPortfolioResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/HtmlTagAttributes.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/HtmlTagWriteAttributes.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageAttributes.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSet.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSetBase64.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageShape.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSlide.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageWriteAttributes.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1Resource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketCreateV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketSizeEstimationV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketUpdateV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationCreateV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationSizeEstimationV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationUpdateV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeCreateV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeUpdateV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ModifyAudienceResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableAdSetTargetingRuleV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableAdSetTargetingRuleV24Q1Value.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableDateTime.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableDecimal.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableGenderV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableInt32.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableString.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Outcome.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetBiddingV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetBudgetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBid.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidListRequest.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResultListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResultResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplier.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierListRequest.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResultListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResultResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetSchedulingV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaign.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignListRequest.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignSpendLimit.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignWriteResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchResultCampaignListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchResultCampaignReadResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessage.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessageListRequest.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessageResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PointOfInterestV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PortfolioMessage.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingCreateV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingUpdateV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetBiddingV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetBudgetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetScheduleV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelAdSetId.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelAdSetIdV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelReadAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RequestsAdSetId.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RequestsPatchAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponseReadAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesAdSetId.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesAdSetIdV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesReadAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingCreateV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingUpdateV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingV1.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Size.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/StatisticsReportQueryMessage.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Tag.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessage.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessageListRequest.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessageResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyQueryMessage.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReport.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportFile.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportListResponse.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCoupon.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCouponRequest.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCouponResource.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/VideoDetail.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/WriteModelAdSetId.java +src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/WriteModelPatchAdSetV24Q1.java +src/test/java/com/criteo/api/marketingsolutions/v2024_10/ExampleApplication.java +src/test/java/com/criteo/api/marketingsolutions/v2024_10/GatewayApiTest.java diff --git a/sdks/marketingsolutions_2023-07/.openapi-generator/VERSION b/sdks/marketingsolutions_2024-10/.openapi-generator/VERSION similarity index 100% rename from sdks/marketingsolutions_2023-07/.openapi-generator/VERSION rename to sdks/marketingsolutions_2024-10/.openapi-generator/VERSION diff --git a/sdks/marketingsolutions_2023-07/README.md b/sdks/marketingsolutions_2024-10/README.md similarity index 72% rename from sdks/marketingsolutions_2023-07/README.md rename to sdks/marketingsolutions_2024-10/README.md index a7dd919a..611a3991 100644 --- a/sdks/marketingsolutions_2023-07/README.md +++ b/sdks/marketingsolutions_2024-10/README.md @@ -1,14 +1,14 @@ -# JAVA SDK for Criteo API marketingsolutions for 2023_07 version +# JAVA SDK for Criteo API marketingsolutions for 2024_10 version ## Introduction API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. -More information: [https://developers.criteo.com/](https://developers.criteo.com/) +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). Criteo API -- Package version: 2023.07.0.240826 +- Package version: 2024.10.0.241029 *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.criteo criteo-api-marketingsolutions-sdk - 2023.07.0.240826 + 2024.10.0.241029 compile ``` @@ -48,7 +48,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.criteo:criteo-api-marketingsolutions-sdk:2023.07.0.240826" +compile "com.criteo:criteo-api-marketingsolutions-sdk:2024.10.0.241029" ``` ### Others @@ -61,11 +61,11 @@ At first generate the JAR by executing: Then manually install the following JARs: -* `build/libs/criteo-api-marketingsolutions-sdk-2023.07.0.240826.jar` +* `build/libs/criteo-api-marketingsolutions-sdk-2024.10.0.241029.jar` ## Example -Please see [src/test/java/com/criteo/api/marketingsolutions/v2023_07/ExampleApplication.java](src/test/java/com/criteo/api/marketingsolutions/v2023_07/ExampleApplication.java) for an example on how to perform a simple call. +Please see [src/test/java/com/criteo/api/marketingsolutions/v2024_10/ExampleApplication.java](src/test/java/com/criteo/api/marketingsolutions/v2024_10/ExampleApplication.java) for an example on how to perform a simple call. ## Documentation for API Endpoints @@ -73,65 +73,63 @@ All URIs are relative to *https://api.criteo.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AdvertiserApi* | [**apiPortfolioGet**](docs/AdvertiserApi.md#apiPortfolioGet) | **GET** /2023-07/advertisers/me | -*AnalyticsApi* | [**getAdsetReport**](docs/AnalyticsApi.md#getAdsetReport) | **POST** /2023-07/statistics/report | -*AnalyticsApi* | [**getPlacementsReport**](docs/AnalyticsApi.md#getPlacementsReport) | **POST** /2023-07/placements/report | -*AnalyticsApi* | [**getTransactionsReport**](docs/AnalyticsApi.md#getTransactionsReport) | **POST** /2023-07/transactions/report | -*AnalyticsApi* | [**getTransparencyReport**](docs/AnalyticsApi.md#getTransparencyReport) | **POST** /2023-07/log-level/advertisers/{advertiser-id}/report | -*AudienceApi* | [**bulkCreateAudienceSegments**](docs/AudienceApi.md#bulkCreateAudienceSegments) | **POST** /2023-07/marketing-solutions/audience-segments/create | -*AudienceApi* | [**bulkCreateAudiences**](docs/AudienceApi.md#bulkCreateAudiences) | **POST** /2023-07/marketing-solutions/audiences/create | -*AudienceApi* | [**bulkDeleteAudienceSegments**](docs/AudienceApi.md#bulkDeleteAudienceSegments) | **POST** /2023-07/marketing-solutions/audience-segments/delete | -*AudienceApi* | [**bulkDeleteAudiences**](docs/AudienceApi.md#bulkDeleteAudiences) | **POST** /2023-07/marketing-solutions/audiences/delete | -*AudienceApi* | [**bulkUpdateAudienceSegments**](docs/AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2023-07/marketing-solutions/audience-segments | -*AudienceApi* | [**bulkUpdateAudiences**](docs/AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2023-07/marketing-solutions/audiences | -*AudienceApi* | [**computeAudienceSegmentsSizes**](docs/AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2023-07/marketing-solutions/audience-segments/compute-sizes | -*AudienceApi* | [**computeAudiencesSizes**](docs/AudienceApi.md#computeAudiencesSizes) | **POST** /2023-07/marketing-solutions/audiences/compute-sizes | -*AudienceApi* | [**createAudience**](docs/AudienceApi.md#createAudience) | **POST** /2023-07/audiences | -*AudienceApi* | [**deleteIdentifiers**](docs/AudienceApi.md#deleteIdentifiers) | **DELETE** /2023-07/audiences/{audience-id}/contactlist | -*AudienceApi* | [**estimateAudienceSegmentSize**](docs/AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2023-07/marketing-solutions/audience-segments/estimate-size | -*AudienceApi* | [**estimateAudienceSize**](docs/AudienceApi.md#estimateAudienceSize) | **POST** /2023-07/marketing-solutions/audiences/estimate-size | -*AudienceApi* | [**getAudienceSegmentContactListStatistics**](docs/AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2023-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | -*AudienceApi* | [**getAudienceSegmentsInMarketBrands**](docs/AudienceApi.md#getAudienceSegmentsInMarketBrands) | **GET** /2023-07/marketing-solutions/audience-segments/in-market-brands | -*AudienceApi* | [**getAudienceSegmentsInMarketInterests**](docs/AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2023-07/marketing-solutions/audience-segments/in-market-interests | -*AudienceApi* | [**getAudiences**](docs/AudienceApi.md#getAudiences) | **GET** /2023-07/audiences | -*AudienceApi* | [**modifyAudience**](docs/AudienceApi.md#modifyAudience) | **PATCH** /2023-07/audiences/{audience-id} | -*AudienceApi* | [**modifyAudienceUsers**](docs/AudienceApi.md#modifyAudienceUsers) | **PATCH** /2023-07/audiences/{audience-id}/contactlist | -*AudienceApi* | [**removeAudience**](docs/AudienceApi.md#removeAudience) | **DELETE** /2023-07/audiences/{audience-id} | -*AudienceApi* | [**searchAudienceSegments**](docs/AudienceApi.md#searchAudienceSegments) | **POST** /2023-07/marketing-solutions/audience-segments/search | -*AudienceApi* | [**searchAudiences**](docs/AudienceApi.md#searchAudiences) | **POST** /2023-07/marketing-solutions/audiences/search | -*CampaignApi* | [**createAdSet**](docs/CampaignApi.md#createAdSet) | **POST** /2023-07/marketing-solutions/ad-sets | -*CampaignApi* | [**createCampaign**](docs/CampaignApi.md#createCampaign) | **POST** /2023-07/marketing-solutions/campaigns | -*CampaignApi* | [**getAdSet**](docs/CampaignApi.md#getAdSet) | **GET** /2023-07/marketing-solutions/ad-sets/{adSetId} | -*CampaignApi* | [**getCampaign**](docs/CampaignApi.md#getCampaign) | **GET** /2023-07/marketing-solutions/campaigns/{campaign-id} | -*CampaignApi* | [**getCategoryBidList**](docs/CampaignApi.md#getCategoryBidList) | **GET** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids | -*CampaignApi* | [**getDisplayMultipliers**](docs/CampaignApi.md#getDisplayMultipliers) | **GET** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | -*CampaignApi* | [**patchAdSets**](docs/CampaignApi.md#patchAdSets) | **PATCH** /2023-07/marketing-solutions/ad-sets | -*CampaignApi* | [**patchCampaigns**](docs/CampaignApi.md#patchCampaigns) | **PATCH** /2023-07/marketing-solutions/campaigns | -*CampaignApi* | [**patchCategoryBidList**](docs/CampaignApi.md#patchCategoryBidList) | **PATCH** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids | -*CampaignApi* | [**patchDisplayMultipliers**](docs/CampaignApi.md#patchDisplayMultipliers) | **PATCH** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | -*CampaignApi* | [**searchAdSets**](docs/CampaignApi.md#searchAdSets) | **POST** /2023-07/marketing-solutions/ad-sets/search | -*CampaignApi* | [**searchCampaigns**](docs/CampaignApi.md#searchCampaigns) | **POST** /2023-07/marketing-solutions/campaigns/search | -*CampaignApi* | [**startAdSets**](docs/CampaignApi.md#startAdSets) | **POST** /2023-07/marketing-solutions/ad-sets/start | -*CampaignApi* | [**stopAdSets**](docs/CampaignApi.md#stopAdSets) | **POST** /2023-07/marketing-solutions/ad-sets/stop | -*CampaignApi* | [**updateAdSetAudience**](docs/CampaignApi.md#updateAdSetAudience) | **PUT** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/audience | -*CreativeApi* | [**createAdvertiserAd**](docs/CreativeApi.md#createAdvertiserAd) | **POST** /2023-07/marketing-solutions/advertisers/{advertiser-id}/ads | -*CreativeApi* | [**createAdvertiserCoupon**](docs/CreativeApi.md#createAdvertiserCoupon) | **POST** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons | -*CreativeApi* | [**createAdvertiserCreative**](docs/CreativeApi.md#createAdvertiserCreative) | **POST** /2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives | -*CreativeApi* | [**deleteAd**](docs/CreativeApi.md#deleteAd) | **DELETE** /2023-07/marketing-solutions/ads/{id} | -*CreativeApi* | [**deleteAdvertiserCoupon**](docs/CreativeApi.md#deleteAdvertiserCoupon) | **DELETE** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | -*CreativeApi* | [**deleteCreative**](docs/CreativeApi.md#deleteCreative) | **DELETE** /2023-07/marketing-solutions/creatives/{id} | -*CreativeApi* | [**editAdvertiserCoupon**](docs/CreativeApi.md#editAdvertiserCoupon) | **PUT** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | -*CreativeApi* | [**editCreative**](docs/CreativeApi.md#editCreative) | **PUT** /2023-07/marketing-solutions/creatives/{id} | -*CreativeApi* | [**generateCreativePreview**](docs/CreativeApi.md#generateCreativePreview) | **POST** /2023-07/marketing-solutions/creatives/{id}/preview | -*CreativeApi* | [**getAd**](docs/CreativeApi.md#getAd) | **GET** /2023-07/marketing-solutions/ads/{id} | -*CreativeApi* | [**getAdvertiserAds**](docs/CreativeApi.md#getAdvertiserAds) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/ads | -*CreativeApi* | [**getAdvertiserCoupon**](docs/CreativeApi.md#getAdvertiserCoupon) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | -*CreativeApi* | [**getAdvertiserCouponPreview**](docs/CreativeApi.md#getAdvertiserCouponPreview) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}/preview | -*CreativeApi* | [**getAdvertiserCouponSupportedSizes**](docs/CreativeApi.md#getAdvertiserCouponSupportedSizes) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes | -*CreativeApi* | [**getAdvertiserCoupons**](docs/CreativeApi.md#getAdvertiserCoupons) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons | -*CreativeApi* | [**getAdvertiserCreatives**](docs/CreativeApi.md#getAdvertiserCreatives) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives | -*CreativeApi* | [**getCreative**](docs/CreativeApi.md#getCreative) | **GET** /2023-07/marketing-solutions/creatives/{id} | -*GatewayApi* | [**getCurrentApplication**](docs/GatewayApi.md#getCurrentApplication) | **GET** /2023-07/marketing-solutions/me | +*AdvertiserApi* | [**apiPortfolioGet**](docs/AdvertiserApi.md#apiPortfolioGet) | **GET** /2024-10/advertisers/me | +*AnalyticsApi* | [**getAdsetReport**](docs/AnalyticsApi.md#getAdsetReport) | **POST** /2024-10/statistics/report | +*AnalyticsApi* | [**getPlacementsReport**](docs/AnalyticsApi.md#getPlacementsReport) | **POST** /2024-10/placements/report | +*AnalyticsApi* | [**getTransactionsReport**](docs/AnalyticsApi.md#getTransactionsReport) | **POST** /2024-10/transactions/report | +*AnalyticsApi* | [**getTransparencyReport**](docs/AnalyticsApi.md#getTransparencyReport) | **POST** /2024-10/log-level/advertisers/{advertiser-id}/report | +*AudienceApi* | [**bulkCreateAudienceSegments**](docs/AudienceApi.md#bulkCreateAudienceSegments) | **POST** /2024-10/marketing-solutions/audience-segments/create | +*AudienceApi* | [**bulkCreateAudiences**](docs/AudienceApi.md#bulkCreateAudiences) | **POST** /2024-10/marketing-solutions/audiences/create | +*AudienceApi* | [**bulkDeleteAudienceSegments**](docs/AudienceApi.md#bulkDeleteAudienceSegments) | **POST** /2024-10/marketing-solutions/audience-segments/delete | +*AudienceApi* | [**bulkDeleteAudiences**](docs/AudienceApi.md#bulkDeleteAudiences) | **POST** /2024-10/marketing-solutions/audiences/delete | +*AudienceApi* | [**bulkUpdateAudienceSegments**](docs/AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2024-10/marketing-solutions/audience-segments | +*AudienceApi* | [**bulkUpdateAudiences**](docs/AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2024-10/marketing-solutions/audiences | +*AudienceApi* | [**call10audiencesAudienceSegmentIdContactlistDelete**](docs/AudienceApi.md#call10audiencesAudienceSegmentIdContactlistDelete) | **DELETE** /2024-10/audiences/{audience-segment-id}/contactlist | +*AudienceApi* | [**call10audiencesAudienceSegmentIdContactlistPatch**](docs/AudienceApi.md#call10audiencesAudienceSegmentIdContactlistPatch) | **PATCH** /2024-10/audiences/{audience-segment-id}/contactlist | +*AudienceApi* | [**call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](docs/AudienceApi.md#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /2024-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | +*AudienceApi* | [**call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](docs/AudienceApi.md#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /2024-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | +*AudienceApi* | [**computeAudienceSegmentsSizes**](docs/AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2024-10/marketing-solutions/audience-segments/compute-sizes | +*AudienceApi* | [**computeAudiencesSizes**](docs/AudienceApi.md#computeAudiencesSizes) | **POST** /2024-10/marketing-solutions/audiences/compute-sizes | +*AudienceApi* | [**estimateAudienceSegmentSize**](docs/AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2024-10/marketing-solutions/audience-segments/estimate-size | +*AudienceApi* | [**estimateAudienceSize**](docs/AudienceApi.md#estimateAudienceSize) | **POST** /2024-10/marketing-solutions/audiences/estimate-size | +*AudienceApi* | [**getAudienceSegmentContactListStatistics**](docs/AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2024-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics | +*AudienceApi* | [**getAudienceSegmentsInMarketBrands**](docs/AudienceApi.md#getAudienceSegmentsInMarketBrands) | **GET** /2024-10/marketing-solutions/audience-segments/in-market-brands | +*AudienceApi* | [**getAudienceSegmentsInMarketInterests**](docs/AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2024-10/marketing-solutions/audience-segments/in-market-interests | +*AudienceApi* | [**searchAudienceSegments**](docs/AudienceApi.md#searchAudienceSegments) | **POST** /2024-10/marketing-solutions/audience-segments/search | +*AudienceApi* | [**searchAudiences**](docs/AudienceApi.md#searchAudiences) | **POST** /2024-10/marketing-solutions/audiences/search | +*CampaignApi* | [**createAdSetV24Q1**](docs/CampaignApi.md#createAdSetV24Q1) | **POST** /2024-10/marketing-solutions/ad-sets | +*CampaignApi* | [**createCampaign**](docs/CampaignApi.md#createCampaign) | **POST** /2024-10/marketing-solutions/campaigns | +*CampaignApi* | [**getAdSetV24Q1**](docs/CampaignApi.md#getAdSetV24Q1) | **GET** /2024-10/marketing-solutions/ad-sets/{ad-set-id} | +*CampaignApi* | [**getCampaignV23Q1**](docs/CampaignApi.md#getCampaignV23Q1) | **GET** /2024-10/marketing-solutions/campaigns/{campaign-id} | +*CampaignApi* | [**getCategoryBidList**](docs/CampaignApi.md#getCategoryBidList) | **GET** /2024-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids | +*CampaignApi* | [**getDisplayMultipliers**](docs/CampaignApi.md#getDisplayMultipliers) | **GET** /2024-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | +*CampaignApi* | [**patchAdSetsV24Q1**](docs/CampaignApi.md#patchAdSetsV24Q1) | **PATCH** /2024-10/marketing-solutions/ad-sets | +*CampaignApi* | [**patchCampaigns**](docs/CampaignApi.md#patchCampaigns) | **PATCH** /2024-10/marketing-solutions/campaigns | +*CampaignApi* | [**patchCategoryBidList**](docs/CampaignApi.md#patchCategoryBidList) | **PATCH** /2024-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids | +*CampaignApi* | [**patchDisplayMultipliers**](docs/CampaignApi.md#patchDisplayMultipliers) | **PATCH** /2024-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | +*CampaignApi* | [**searchAdSetsV24Q1**](docs/CampaignApi.md#searchAdSetsV24Q1) | **POST** /2024-10/marketing-solutions/ad-sets/search | +*CampaignApi* | [**searchCampaignsV23Q1**](docs/CampaignApi.md#searchCampaignsV23Q1) | **POST** /2024-10/marketing-solutions/campaigns/search | +*CampaignApi* | [**startAdSets**](docs/CampaignApi.md#startAdSets) | **POST** /2024-10/marketing-solutions/ad-sets/start | +*CampaignApi* | [**stopAdSets**](docs/CampaignApi.md#stopAdSets) | **POST** /2024-10/marketing-solutions/ad-sets/stop | +*CampaignApi* | [**updateAdSetAudience**](docs/CampaignApi.md#updateAdSetAudience) | **PUT** /2024-10/marketing-solutions/ad-sets/{ad-set-id}/audience | +*CreativeApi* | [**createAdvertiserAd**](docs/CreativeApi.md#createAdvertiserAd) | **POST** /2024-10/marketing-solutions/advertisers/{advertiser-id}/ads | +*CreativeApi* | [**createAdvertiserCoupon**](docs/CreativeApi.md#createAdvertiserCoupon) | **POST** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons | +*CreativeApi* | [**createAdvertiserCreative**](docs/CreativeApi.md#createAdvertiserCreative) | **POST** /2024-10/marketing-solutions/advertisers/{advertiser-id}/creatives | +*CreativeApi* | [**deleteAd**](docs/CreativeApi.md#deleteAd) | **DELETE** /2024-10/marketing-solutions/ads/{id} | +*CreativeApi* | [**deleteAdvertiserCoupon**](docs/CreativeApi.md#deleteAdvertiserCoupon) | **DELETE** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | +*CreativeApi* | [**deleteCreative**](docs/CreativeApi.md#deleteCreative) | **DELETE** /2024-10/marketing-solutions/creatives/{id} | +*CreativeApi* | [**editAdvertiserCoupon**](docs/CreativeApi.md#editAdvertiserCoupon) | **PUT** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | +*CreativeApi* | [**editCreative**](docs/CreativeApi.md#editCreative) | **PUT** /2024-10/marketing-solutions/creatives/{id} | +*CreativeApi* | [**generateCreativePreview**](docs/CreativeApi.md#generateCreativePreview) | **POST** /2024-10/marketing-solutions/creatives/{id}/preview | +*CreativeApi* | [**getAd**](docs/CreativeApi.md#getAd) | **GET** /2024-10/marketing-solutions/ads/{id} | +*CreativeApi* | [**getAdvertiserAds**](docs/CreativeApi.md#getAdvertiserAds) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/ads | +*CreativeApi* | [**getAdvertiserCoupon**](docs/CreativeApi.md#getAdvertiserCoupon) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | +*CreativeApi* | [**getAdvertiserCouponPreview**](docs/CreativeApi.md#getAdvertiserCouponPreview) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}/preview | +*CreativeApi* | [**getAdvertiserCouponSupportedSizes**](docs/CreativeApi.md#getAdvertiserCouponSupportedSizes) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes | +*CreativeApi* | [**getAdvertiserCoupons**](docs/CreativeApi.md#getAdvertiserCoupons) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons | +*CreativeApi* | [**getAdvertiserCreatives**](docs/CreativeApi.md#getAdvertiserCreatives) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/creatives | +*CreativeApi* | [**getCreative**](docs/CreativeApi.md#getCreative) | **GET** /2024-10/marketing-solutions/creatives/{id} | +*GatewayApi* | [**getCurrentApplication**](docs/GatewayApi.md#getCurrentApplication) | **GET** /2024-10/marketing-solutions/me | ## Documentation for Models @@ -147,15 +145,16 @@ Class | Method | HTTP request | Description - [AdSetCategoryBid](docs/AdSetCategoryBid.md) - [AdSetCategoryBidListResponse](docs/AdSetCategoryBidListResponse.md) - [AdSetCategoryBidResource](docs/AdSetCategoryBidResource.md) - - [AdSetDeliveryLimitations](docs/AdSetDeliveryLimitations.md) + - [AdSetDeliveryLimitationsV24Q1](docs/AdSetDeliveryLimitationsV24Q1.md) - [AdSetDisplayMultiplier](docs/AdSetDisplayMultiplier.md) - [AdSetDisplayMultiplierListResponse](docs/AdSetDisplayMultiplierListResponse.md) - [AdSetDisplayMultiplierResource](docs/AdSetDisplayMultiplierResource.md) - - [AdSetFrequencyCapping](docs/AdSetFrequencyCapping.md) - - [AdSetGeoLocation](docs/AdSetGeoLocation.md) - - [AdSetSearchFilter](docs/AdSetSearchFilter.md) - - [AdSetTargeting](docs/AdSetTargeting.md) - - [AdSetTargetingRule](docs/AdSetTargetingRule.md) + - [AdSetFrequencyCappingV24Q1](docs/AdSetFrequencyCappingV24Q1.md) + - [AdSetGeoLocationV24Q1](docs/AdSetGeoLocationV24Q1.md) + - [AdSetSearchFilterV24Q1](docs/AdSetSearchFilterV24Q1.md) + - [AdSetSearchRequestV24Q1](docs/AdSetSearchRequestV24Q1.md) + - [AdSetTargetingRuleV24Q1](docs/AdSetTargetingRuleV24Q1.md) + - [AdSetTargetingV24Q1](docs/AdSetTargetingV24Q1.md) - [AdWrite](docs/AdWrite.md) - [AdWriteRequest](docs/AdWriteRequest.md) - [AdWriteResource](docs/AdWriteResource.md) @@ -166,8 +165,6 @@ Class | Method | HTTP request | Description - [ApplicationSummaryModel](docs/ApplicationSummaryModel.md) - [ApplicationSummaryModelResource](docs/ApplicationSummaryModelResource.md) - [ApplicationSummaryModelResponse](docs/ApplicationSummaryModelResponse.md) - - [Audience](docs/Audience.md) - - [AudienceAttributes](docs/AudienceAttributes.md) - [AudienceBulkCreateInputV1](docs/AudienceBulkCreateInputV1.md) - [AudienceBulkDeleteInputV1](docs/AudienceBulkDeleteInputV1.md) - [AudienceBulkUpdateInputV1](docs/AudienceBulkUpdateInputV1.md) @@ -231,15 +228,11 @@ Class | Method | HTTP request | Description - [AudienceWarning](docs/AudienceWarning.md) - [BasicAudienceDefinition](docs/BasicAudienceDefinition.md) - [BehavioralV1](docs/BehavioralV1.md) - - [Campaign](docs/Campaign.md) - - [CampaignListResponse](docs/CampaignListResponse.md) - - [CampaignReadResource](docs/CampaignReadResource.md) - - [CampaignResponse](docs/CampaignResponse.md) - - [CampaignSearchFilters](docs/CampaignSearchFilters.md) - - [CampaignSearchRequest](docs/CampaignSearchRequest.md) - - [CampaignSpendLimit](docs/CampaignSpendLimit.md) + - [CampaignSearchFiltersV23Q1](docs/CampaignSearchFiltersV23Q1.md) + - [CampaignSearchRequestV23Q1](docs/CampaignSearchRequestV23Q1.md) - [CampaignSpendLimitV23Q1](docs/CampaignSpendLimitV23Q1.md) - [CampaignV23Q1](docs/CampaignV23Q1.md) + - [CampaignV23Q1ListResponse](docs/CampaignV23Q1ListResponse.md) - [CampaignV23Q1Resource](docs/CampaignV23Q1Resource.md) - [CampaignV23Q1Response](docs/CampaignV23Q1Response.md) - [CommonProblem](docs/CommonProblem.md) @@ -259,14 +252,14 @@ Class | Method | HTTP request | Description - [CouponSupportedSizes](docs/CouponSupportedSizes.md) - [CouponSupportedSizesResource](docs/CouponSupportedSizesResource.md) - [CouponSupportedSizesResponse](docs/CouponSupportedSizesResponse.md) - - [CreateAdSet](docs/CreateAdSet.md) - - [CreateAdSetBidding](docs/CreateAdSetBidding.md) - - [CreateAdSetBudget](docs/CreateAdSetBudget.md) - - [CreateAdSetGeoLocation](docs/CreateAdSetGeoLocation.md) - - [CreateAdSetRequest](docs/CreateAdSetRequest.md) - - [CreateAdSetResource](docs/CreateAdSetResource.md) - - [CreateAdSetSchedule](docs/CreateAdSetSchedule.md) - - [CreateAdSetTargeting](docs/CreateAdSetTargeting.md) + - [CreateAdSetBiddingV24Q1](docs/CreateAdSetBiddingV24Q1.md) + - [CreateAdSetBudgetV24Q1](docs/CreateAdSetBudgetV24Q1.md) + - [CreateAdSetGeoLocationV24Q1](docs/CreateAdSetGeoLocationV24Q1.md) + - [CreateAdSetScheduleV24Q1](docs/CreateAdSetScheduleV24Q1.md) + - [CreateAdSetTargetingV24Q1](docs/CreateAdSetTargetingV24Q1.md) + - [CreateAdSetV24Q1](docs/CreateAdSetV24Q1.md) + - [CreateAdSetV24Q1Request](docs/CreateAdSetV24Q1Request.md) + - [CreateAdSetV24Q1Resource](docs/CreateAdSetV24Q1Resource.md) - [CreateCampaign](docs/CreateCampaign.md) - [CreateCampaignRequest](docs/CreateCampaignRequest.md) - [CreateCampaignResource](docs/CreateCampaignResource.md) @@ -285,12 +278,10 @@ Class | Method | HTTP request | Description - [CriteoApiError](docs/CriteoApiError.md) - [CriteoApiWarning](docs/CriteoApiWarning.md) - [DeleteAudienceContactListResponse](docs/DeleteAudienceContactListResponse.md) - - [DeleteAudienceResponse](docs/DeleteAudienceResponse.md) - [DynamicAttributes](docs/DynamicAttributes.md) - [DynamicWriteAttributes](docs/DynamicWriteAttributes.md) - [EntityOfPortfolioMessage](docs/EntityOfPortfolioMessage.md) - [ErrorCodeResponse](docs/ErrorCodeResponse.md) - - [GetAudiencesResponse](docs/GetAudiencesResponse.md) - [GetPortfolioResponse](docs/GetPortfolioResponse.md) - [HtmlTagAttributes](docs/HtmlTagAttributes.md) - [HtmlTagWriteAttributes](docs/HtmlTagWriteAttributes.md) @@ -318,21 +309,16 @@ Class | Method | HTTP request | Description - [LookalikeUpdateV1](docs/LookalikeUpdateV1.md) - [LookalikeV1](docs/LookalikeV1.md) - [ModifyAudienceResponse](docs/ModifyAudienceResponse.md) - - [NewAudience](docs/NewAudience.md) - - [NewAudienceAttributes](docs/NewAudienceAttributes.md) - - [NewAudienceRequest](docs/NewAudienceRequest.md) - - [NewAudienceResponse](docs/NewAudienceResponse.md) - - [NillableAdSetTargetingRule](docs/NillableAdSetTargetingRule.md) - - [NillableAdSetTargetingRuleValue](docs/NillableAdSetTargetingRuleValue.md) + - [NillableAdSetTargetingRuleV24Q1](docs/NillableAdSetTargetingRuleV24Q1.md) + - [NillableAdSetTargetingRuleV24Q1Value](docs/NillableAdSetTargetingRuleV24Q1Value.md) - [NillableDateTime](docs/NillableDateTime.md) - [NillableDecimal](docs/NillableDecimal.md) - [NillableGenderV1](docs/NillableGenderV1.md) - [NillableInt32](docs/NillableInt32.md) - [NillableString](docs/NillableString.md) - [Outcome](docs/Outcome.md) - - [PatchAdSet](docs/PatchAdSet.md) - - [PatchAdSetBidding](docs/PatchAdSetBidding.md) - - [PatchAdSetBudget](docs/PatchAdSetBudget.md) + - [PatchAdSetBiddingV24Q1](docs/PatchAdSetBiddingV24Q1.md) + - [PatchAdSetBudgetV24Q1](docs/PatchAdSetBudgetV24Q1.md) - [PatchAdSetCategoryBid](docs/PatchAdSetCategoryBid.md) - [PatchAdSetCategoryBidListRequest](docs/PatchAdSetCategoryBidListRequest.md) - [PatchAdSetCategoryBidResource](docs/PatchAdSetCategoryBidResource.md) @@ -343,7 +329,8 @@ Class | Method | HTTP request | Description - [PatchAdSetDisplayMultiplierResource](docs/PatchAdSetDisplayMultiplierResource.md) - [PatchAdSetDisplayMultiplierResultListResponse](docs/PatchAdSetDisplayMultiplierResultListResponse.md) - [PatchAdSetDisplayMultiplierResultResource](docs/PatchAdSetDisplayMultiplierResultResource.md) - - [PatchAdSetScheduling](docs/PatchAdSetScheduling.md) + - [PatchAdSetSchedulingV24Q1](docs/PatchAdSetSchedulingV24Q1.md) + - [PatchAdSetV24Q1](docs/PatchAdSetV24Q1.md) - [PatchCampaign](docs/PatchCampaign.md) - [PatchCampaignListRequest](docs/PatchCampaignListRequest.md) - [PatchCampaignSpendLimit](docs/PatchCampaignSpendLimit.md) @@ -358,21 +345,19 @@ Class | Method | HTTP request | Description - [ProspectingCreateV1](docs/ProspectingCreateV1.md) - [ProspectingUpdateV1](docs/ProspectingUpdateV1.md) - [ProspectingV1](docs/ProspectingV1.md) - - [ReadAdSet](docs/ReadAdSet.md) - - [ReadAdSetBidding](docs/ReadAdSetBidding.md) - - [ReadAdSetBudget](docs/ReadAdSetBudget.md) - - [ReadAdSetSchedule](docs/ReadAdSetSchedule.md) + - [ReadAdSetBiddingV24Q1](docs/ReadAdSetBiddingV24Q1.md) + - [ReadAdSetBudgetV24Q1](docs/ReadAdSetBudgetV24Q1.md) + - [ReadAdSetScheduleV24Q1](docs/ReadAdSetScheduleV24Q1.md) + - [ReadAdSetV24Q1](docs/ReadAdSetV24Q1.md) - [ReadModelAdSetId](docs/ReadModelAdSetId.md) - - [ReadModelReadAdSet](docs/ReadModelReadAdSet.md) - - [ReplaceAudience](docs/ReplaceAudience.md) - - [ReplaceAudienceRequest](docs/ReplaceAudienceRequest.md) - - [ReplaceAudienceResponse](docs/ReplaceAudienceResponse.md) - - [RequestAdSetSearch](docs/RequestAdSetSearch.md) + - [ReadModelAdSetIdV24Q1](docs/ReadModelAdSetIdV24Q1.md) + - [ReadModelReadAdSetV24Q1](docs/ReadModelReadAdSetV24Q1.md) - [RequestsAdSetId](docs/RequestsAdSetId.md) - - [RequestsPatchAdSet](docs/RequestsPatchAdSet.md) - - [ResponseReadAdSet](docs/ResponseReadAdSet.md) + - [RequestsPatchAdSetV24Q1](docs/RequestsPatchAdSetV24Q1.md) + - [ResponseReadAdSetV24Q1](docs/ResponseReadAdSetV24Q1.md) - [ResponsesAdSetId](docs/ResponsesAdSetId.md) - - [ResponsesReadAdSet](docs/ResponsesReadAdSet.md) + - [ResponsesAdSetIdV24Q1](docs/ResponsesAdSetIdV24Q1.md) + - [ResponsesReadAdSetV24Q1](docs/ResponsesReadAdSetV24Q1.md) - [RetargetingCreateV1](docs/RetargetingCreateV1.md) - [RetargetingUpdateV1](docs/RetargetingUpdateV1.md) - [RetargetingV1](docs/RetargetingV1.md) @@ -392,7 +377,7 @@ Class | Method | HTTP request | Description - [UpdateCouponResource](docs/UpdateCouponResource.md) - [VideoDetail](docs/VideoDetail.md) - [WriteModelAdSetId](docs/WriteModelAdSetId.md) - - [WriteModelPatchAdSet](docs/WriteModelPatchAdSet.md) + - [WriteModelPatchAdSetV24Q1](docs/WriteModelPatchAdSetV24Q1.md) ## Recommendation diff --git a/sdks/marketingsolutions_2023-07/api/openapi.yaml b/sdks/marketingsolutions_2024-10/api/openapi.yaml similarity index 93% rename from sdks/marketingsolutions_2023-07/api/openapi.yaml rename to sdks/marketingsolutions_2024-10/api/openapi.yaml index d13d512d..fc280763 100644 --- a/sdks/marketingsolutions_2023-07/api/openapi.yaml +++ b/sdks/marketingsolutions_2024-10/api/openapi.yaml @@ -2,46 +2,33 @@ openapi: 3.0.1 info: description: Criteo API - MarketingSolutions title: Criteo API - version: 2023-07 + version: 2024-10 servers: - url: https://api.criteo.com security: - oauth: [] paths: - /2023-07/audiences: - get: - description: Get a list of all the audiences for the user or for the given advertiser_id - operationId: getAudiences + /2024-10/audiences/{audience-segment-id}/contactlist: + delete: + description: Delete all identifiers from a contact list audience-segment. parameters: - - description: |- - The advertiser id to get all the audiences for. - Mandatory for internal users. For external users, - if you don't provide it, we will take into account the advertisers from your portfolio - explode: true - in: query - name: advertiser-id - required: false + - description: The id of the contact list audience-segment to amend + explode: false + in: path + name: audience-segment-id + required: true schema: format: int32 type: string - style: form + style: simple responses: "200": content: application/json: example: data: - - type: AudienceContactlist id: "1" - attributes: - advertiserId: "18" - name: Audience name - description: Audience - created: 2018-12-10T10:00:50.0000000+00:00 - updated: 2018-12-10T10:17:15.0000000+00:00 - nbLines: 100 - nbLinesEmail: 10 - nbMatchesEmail: 10 + type: AudienceContactlist errors: [] warnings: - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 @@ -51,8 +38,8 @@ paths: title: '''nbValidIds'' is deprecated' detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers schema: - $ref: '#/components/schemas/GetAudiencesResponse' - description: The list was retrieved. + $ref: '#/components/schemas/DeleteAudienceContactListResponse' + description: The Contact List was emptied "403": content: application/json: @@ -77,82 +64,41 @@ paths: tags: - Audience x-accepts: application/json - post: - description: Create an Audience for an Advertiser - operationId: createAudience - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NewAudienceRequest' - required: true - x-bodyName: body - responses: - "200": - content: - application/json: - example: - data: - id: "1" - type: Audience - errors: [] - warnings: - - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 - type: deprecation - code: deprecated-field - instance: /audiences/314195 - title: '''nbValidIds'' is deprecated' - detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers - schema: - $ref: '#/components/schemas/NewAudienceResponse' - description: The audience was created - "403": - content: - application/json: - example: - errors: - - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 - type: validation - code: audience-invalid - instance: /audience/314159 - title: Audience is invalid - detail: "Audience is not found, please choose a valid audience" - warnings: - - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 - type: deprecation - code: deprecated-field - instance: /audiences/314195 - title: '''nbValidIds'' is deprecated' - detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers - schema: - $ref: '#/components/schemas/ErrorCodeResponse' - description: Forbidden - tags: - - Audience - x-content-type: application/json - x-accepts: application/json - /2023-07/audiences/{audience-id}: - delete: - description: Delete an audience by id - operationId: removeAudience + patch: + description: Add/remove identifiers to or from a contact list audience-segment. parameters: - - description: The id of the audience to amend + - description: The id of the contact list audience-segment to amend explode: false in: path - name: audience-id + name: audience-segment-id required: true schema: format: int32 type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContactlistAmendmentRequest' + required: true + x-bodyName: body responses: "200": content: application/json: example: data: - id: "1" - type: Audience + type: ContactlistAmendment + attributes: + contactListId: 12 + operation: add + requestDate: 2018-12-10T10:00:50.0000000+00:00 + identifierType: madid + nbValidIdentifiers: 7343 + nbInvalidIdentifiers: 13 + sampleInvalidIdentifiers: + - InvalidIdentifier errors: [] warnings: - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 @@ -162,8 +108,8 @@ paths: title: '''nbValidIds'' is deprecated' detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers schema: - $ref: '#/components/schemas/DeleteAudienceResponse' - description: The audience was deleted + $ref: '#/components/schemas/ModifyAudienceResponse' + description: Summary of created request "403": content: application/json: @@ -185,52 +131,7 @@ paths: schema: $ref: '#/components/schemas/ErrorCodeResponse' description: Forbidden - tags: - - Audience - x-accepts: application/json - patch: - description: Update user audience specified by the audience id - operationId: modifyAudience - parameters: - - description: The id of the audience to amend - explode: false - in: path - name: audience-id - required: true - schema: - format: int32 - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ReplaceAudienceRequest' - required: true - x-bodyName: body - responses: - "200": - content: - application/json: - example: - data: - id: "1" - type: AudienceContactlist - attributes: - name: example audience - description: example audience description - errors: [] - warnings: - - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 - type: deprecation - code: deprecated-field - instance: /audiences/314195 - title: '''nbValidIds'' is deprecated' - detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers - schema: - $ref: '#/components/schemas/ReplaceAudienceResponse' - description: The audience was updated - "403": + "404": content: application/json: example: @@ -250,20 +151,19 @@ paths: detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers schema: $ref: '#/components/schemas/ErrorCodeResponse' - description: Forbidden + description: Audience 123 not found tags: - Audience x-content-type: application/json x-accepts: application/json - /2023-07/audiences/{audience-id}/contactlist: + /2024-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list: delete: description: Delete all identifiers from a contact list audience-segment. - operationId: deleteIdentifiers parameters: - - description: The id of the audience to amend + - description: The id of the contact list audience-segment to amend explode: false in: path - name: audience-id + name: audience-segment-id required: true schema: format: int32 @@ -287,7 +187,7 @@ paths: detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers schema: $ref: '#/components/schemas/DeleteAudienceContactListResponse' - description: The contactlist was deleted + description: The Contact List was emptied "403": content: application/json: @@ -313,13 +213,12 @@ paths: - Audience x-accepts: application/json patch: - description: Add/remove users to or from a contact list audience-segment. - operationId: modifyAudienceUsers + description: Add/remove identifiers to or from a contact list audience-segment. parameters: - - description: The id of the audience to amend + - description: The id of the contact list audience-segment to amend explode: false in: path - name: audience-id + name: audience-segment-id required: true schema: format: int32 @@ -405,7 +304,7 @@ paths: - Audience x-content-type: application/json x-accepts: application/json - /2023-07/marketing-solutions/me: + /2024-10/marketing-solutions/me: get: description: Get information about the currently logged application operationId: GetCurrentApplication @@ -423,7 +322,7 @@ paths: tags: - Gateway x-accepts: application/json - /2023-07/marketing-solutions/ad-sets/{ad-set-id}/audience: + /2024-10/marketing-solutions/ad-sets/{ad-set-id}/audience: put: description: Link or unlink an audience with an ad set operationId: updateAdSetAudience @@ -488,7 +387,7 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments: + /2024-10/marketing-solutions/audience-segments: patch: description: "Updates the properties of all segments with a valid configuration,\ \ and returns their IDs. For those that cannot be updated, one or multiple\ @@ -546,7 +445,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/compute-sizes: + /2024-10/marketing-solutions/audience-segments/compute-sizes: post: description: Gets the size of all segments. An error is returned for those whose size calculation is not supported. @@ -603,7 +502,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/create: + /2024-10/marketing-solutions/audience-segments/create: post: description: "Creates all segments with a valid configuration, and returns their\ \ IDs. For those that cannot be created, one or multiple errors are returned." @@ -660,7 +559,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/delete: + /2024-10/marketing-solutions/audience-segments/delete: post: description: Delete the segments associated to the given audience IDs. operationId: bulkDeleteAudienceSegments @@ -716,7 +615,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/estimate-size: + /2024-10/marketing-solutions/audience-segments/estimate-size: post: description: Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. @@ -773,7 +672,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/in-market-brands: + /2024-10/marketing-solutions/audience-segments/in-market-brands: get: description: Returns a list with all available in-market brands that can be used to define an in-market segment. @@ -823,7 +722,7 @@ paths: tags: - Audience x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/in-market-interests: + /2024-10/marketing-solutions/audience-segments/in-market-interests: get: description: Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond @@ -874,7 +773,7 @@ paths: tags: - Audience x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/search: + /2024-10/marketing-solutions/audience-segments/search: post: description: "Returns a list of segments that match the provided filters. If\ \ present, the filters are AND'ed together when applied." @@ -955,7 +854,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list: + /2024-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics: get: description: Returns the statistics of a contact list segment. operationId: getAudienceSegmentContactListStatistics @@ -997,7 +896,7 @@ paths: tags: - Audience x-accepts: application/json - /2023-07/marketing-solutions/audiences: + /2024-10/marketing-solutions/audiences: patch: description: "Updates the properties of all audiences with a valid configuration,\ \ and returns their IDs. For those that cannot be updated, one or multiple\ @@ -1055,7 +954,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audiences/compute-sizes: + /2024-10/marketing-solutions/audiences/compute-sizes: post: description: Gets the size of all audiences. An error is returned for those whose size calculation is not supported. @@ -1112,7 +1011,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audiences/create: + /2024-10/marketing-solutions/audiences/create: post: description: "Creates all audiences with a valid configuration, and returns\ \ their IDs. For those that cannot be created, one or multiple errors are\ @@ -1170,7 +1069,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audiences/delete: + /2024-10/marketing-solutions/audiences/delete: post: description: Deletes the audiences associated to the given audience IDs. operationId: bulkDeleteAudiences @@ -1232,7 +1131,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audiences/estimate-size: + /2024-10/marketing-solutions/audiences/estimate-size: post: description: Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. @@ -1289,7 +1188,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audiences/search: + /2024-10/marketing-solutions/audiences/search: post: description: "Returns a list of audiences that match the provided filters. If\ \ present, the filters are AND'ed together when applied." @@ -1370,25 +1269,24 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/ad-sets: + /2024-10/marketing-solutions/ad-sets: patch: - deprecated: true description: Patch a list of AdSets. - operationId: PatchAdSets + operationId: PatchAdSetsV24Q1 requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/RequestsPatchAdSet' + $ref: '#/components/schemas/RequestsPatchAdSetV24Q1' application/json: schema: - $ref: '#/components/schemas/RequestsPatchAdSet' + $ref: '#/components/schemas/RequestsPatchAdSetV24Q1' text/json: schema: - $ref: '#/components/schemas/RequestsPatchAdSet' + $ref: '#/components/schemas/RequestsPatchAdSetV24Q1' application/*+json: schema: - $ref: '#/components/schemas/RequestsPatchAdSet' + $ref: '#/components/schemas/RequestsPatchAdSetV24Q1' description: List of adsets to patch. x-bodyName: adSets responses: @@ -1396,13 +1294,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ResponsesAdSetId' + $ref: '#/components/schemas/ResponsesAdSetIdV24Q1' application/json: schema: - $ref: '#/components/schemas/ResponsesAdSetId' + $ref: '#/components/schemas/ResponsesAdSetIdV24Q1' text/json: schema: - $ref: '#/components/schemas/ResponsesAdSetId' + $ref: '#/components/schemas/ResponsesAdSetIdV24Q1' description: List of patched adSets. "401": content: @@ -1422,23 +1320,22 @@ paths: x-content-type: application/json-patch+json x-accepts: application/json post: - deprecated: true description: Create the specified ad set - operationId: CreateAdSet + operationId: CreateAdSetV24Q1 requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/CreateAdSetRequest' + $ref: '#/components/schemas/CreateAdSetV24Q1Request' application/json: schema: - $ref: '#/components/schemas/CreateAdSetRequest' + $ref: '#/components/schemas/CreateAdSetV24Q1Request' text/json: schema: - $ref: '#/components/schemas/CreateAdSetRequest' + $ref: '#/components/schemas/CreateAdSetV24Q1Request' application/*+json: schema: - $ref: '#/components/schemas/CreateAdSetRequest' + $ref: '#/components/schemas/CreateAdSetV24Q1Request' description: the ad sets to create required: true x-bodyName: adSet @@ -1447,13 +1344,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ResponseReadAdSet' + $ref: '#/components/schemas/ResponseReadAdSetV24Q1' application/json: schema: - $ref: '#/components/schemas/ResponseReadAdSet' + $ref: '#/components/schemas/ResponseReadAdSetV24Q1' text/json: schema: - $ref: '#/components/schemas/ResponseReadAdSet' + $ref: '#/components/schemas/ResponseReadAdSetV24Q1' description: The ad set that has been created and errors / warnings "400": content: @@ -1471,38 +1368,37 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/ad-sets/search: + /2024-10/marketing-solutions/ad-sets/search: post: - deprecated: true description: Search for ad sets - operationId: SearchAdSets + operationId: SearchAdSetsV24Q1 requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/RequestAdSetSearch' + $ref: '#/components/schemas/AdSetSearchRequestV24Q1' application/json: schema: - $ref: '#/components/schemas/RequestAdSetSearch' + $ref: '#/components/schemas/AdSetSearchRequestV24Q1' text/json: schema: - $ref: '#/components/schemas/RequestAdSetSearch' + $ref: '#/components/schemas/AdSetSearchRequestV24Q1' application/*+json: schema: - $ref: '#/components/schemas/RequestAdSetSearch' + $ref: '#/components/schemas/AdSetSearchRequestV24Q1' x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/ResponsesReadAdSet' + $ref: '#/components/schemas/ResponsesReadAdSetV24Q1' application/json: schema: - $ref: '#/components/schemas/ResponsesReadAdSet' + $ref: '#/components/schemas/ResponsesReadAdSetV24Q1' text/json: schema: - $ref: '#/components/schemas/ResponsesReadAdSet' + $ref: '#/components/schemas/ResponsesReadAdSetV24Q1' description: data for the ad sets "400": content: @@ -1515,7 +1411,8 @@ paths: text/plain: {} application/json: {} text/json: {} - description: Forbidden + description: The API client is not authorized to access this resource or + the resource does not exist. "401": content: text/plain: {} @@ -1526,7 +1423,7 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/ad-sets/start: + /2024-10/marketing-solutions/ad-sets/start: post: description: Start the specified list of ad sets operationId: StartAdSets @@ -1576,7 +1473,7 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/ad-sets/stop: + /2024-10/marketing-solutions/ad-sets/stop: post: description: Stop the specified list of ad sets operationId: StopAdSets @@ -1626,7 +1523,49 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids: + /2024-10/marketing-solutions/ad-sets/{ad-set-id}: + get: + description: Get the data for the specified ad set + operationId: GetAdSetV24Q1 + parameters: + - description: Id of the ad set + explode: false + in: path + name: ad-set-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/ResponseReadAdSetV24Q1' + application/json: + schema: + $ref: '#/components/schemas/ResponseReadAdSetV24Q1' + text/json: + schema: + $ref: '#/components/schemas/ResponseReadAdSetV24Q1' + description: data for the ad set + "401": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The API client is not properly authenticated. + "403": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The API client is not authorized to access this resource or + the resource does not exist. + tags: + - Campaign + x-accepts: application/json + /2024-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids: get: description: Get the Category Bids for all valid Categories associated to an Ad Set @@ -1741,7 +1680,7 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers: + /2024-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers: get: description: Get the Display Multipliers for all valid Categories associated to an Ad Set @@ -1856,50 +1795,7 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/ad-sets/{adSetId}: - get: - deprecated: true - description: Get the data for the specified ad set - operationId: GetAdSet - parameters: - - description: Id of the ad set - explode: false - in: path - name: adSetId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - text/plain: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - application/json: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - text/json: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - description: data for the ad set - "401": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The API client is not properly authenticated. - "403": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The API client is not authorized to access this resource or - the resource does not exist. - tags: - - Campaign - x-accepts: application/json - /2023-07/marketing-solutions/campaigns: + /2024-10/marketing-solutions/campaigns: patch: description: Patch a list of Campaigns. operationId: PatchCampaigns @@ -1998,25 +1894,24 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/campaigns/search: + /2024-10/marketing-solutions/campaigns/search: post: - deprecated: true description: Search for campaigns - operationId: SearchCampaigns + operationId: SearchCampaignsV23Q1 requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/CampaignSearchRequest' + $ref: '#/components/schemas/CampaignSearchRequestV23Q1' application/json: schema: - $ref: '#/components/schemas/CampaignSearchRequest' + $ref: '#/components/schemas/CampaignSearchRequestV23Q1' text/json: schema: - $ref: '#/components/schemas/CampaignSearchRequest' + $ref: '#/components/schemas/CampaignSearchRequestV23Q1' application/*+json: schema: - $ref: '#/components/schemas/CampaignSearchRequest' + $ref: '#/components/schemas/CampaignSearchRequestV23Q1' description: filters on campaigns x-bodyName: request responses: @@ -2024,13 +1919,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/CampaignListResponse' + $ref: '#/components/schemas/CampaignV23Q1ListResponse' application/json: schema: - $ref: '#/components/schemas/CampaignListResponse' + $ref: '#/components/schemas/CampaignV23Q1ListResponse' text/json: schema: - $ref: '#/components/schemas/CampaignListResponse' + $ref: '#/components/schemas/CampaignV23Q1ListResponse' description: data for the campaigns "400": content: @@ -2054,11 +1949,10 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/campaigns/{campaign-id}: + /2024-10/marketing-solutions/campaigns/{campaign-id}: get: - deprecated: true description: Get the data for the specified campaign - operationId: GetCampaign + operationId: GetCampaignV23Q1 parameters: - description: Id of the campaign explode: false @@ -2073,13 +1967,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/CampaignResponse' + $ref: '#/components/schemas/CampaignV23Q1Response' application/json: schema: - $ref: '#/components/schemas/CampaignResponse' + $ref: '#/components/schemas/CampaignV23Q1Response' text/json: schema: - $ref: '#/components/schemas/CampaignResponse' + $ref: '#/components/schemas/CampaignV23Q1Response' description: data for the campaign "401": content: @@ -2097,7 +1991,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/marketing-solutions/ads/{id}: + /2024-10/marketing-solutions/ads/{id}: delete: description: Delete an Ad operationId: DeleteAd @@ -2170,7 +2064,7 @@ paths: tags: - Creative x-accepts: application/json - /2023-07/marketing-solutions/advertisers/{advertiser-id}/ads: + /2024-10/marketing-solutions/advertisers/{advertiser-id}/ads: get: description: Get the list of self-services Ads for a given advertiser operationId: GetAdvertiserAds @@ -2299,7 +2193,7 @@ paths: - Creative x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons: + /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons: get: description: Get the list of self-services Coupons for a given advertiser operationId: GetAdvertiserCoupons @@ -2416,7 +2310,7 @@ paths: - Creative x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes: + /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes: get: description: Get the list of Coupon supported sizes operationId: GetAdvertiserCouponSupportedSizes @@ -2466,7 +2360,7 @@ paths: tags: - Creative x-accepts: application/json - /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}: + /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}: delete: description: Delete a Coupon operationId: DeleteAdvertiserCoupon @@ -2604,7 +2498,7 @@ paths: - Creative x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}/preview: + /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}/preview: get: description: Get the preview of a specific Coupon operationId: GetAdvertiserCouponPreview @@ -2671,7 +2565,7 @@ paths: tags: - Creative x-accepts: application/json - /2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives: + /2024-10/marketing-solutions/advertisers/{advertiser-id}/creatives: get: description: Get the list of self-services Creatives for a given advertiser operationId: GetAdvertiserCreatives @@ -2800,7 +2694,7 @@ paths: - Creative x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/creatives/{id}: + /2024-10/marketing-solutions/creatives/{id}: delete: description: Delete a Creative if there are no ads binded to it operationId: DeleteCreative @@ -2934,7 +2828,7 @@ paths: - Creative x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/creatives/{id}/preview: + /2024-10/marketing-solutions/creatives/{id}/preview: post: description: Generate a preview of a specific Creative operationId: GenerateCreativePreview @@ -2993,7 +2887,7 @@ paths: tags: - Creative x-accepts: application/json - /2023-07/log-level/advertisers/{advertiser-id}/report: + /2024-10/log-level/advertisers/{advertiser-id}/report: post: description: This Statistics endpoint provides publisher data. operationId: GetTransparencyReport @@ -3151,7 +3045,7 @@ paths: - Analytics x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/placements/report: + /2024-10/placements/report: post: description: "Your ads are placed in different domains (publishers) and environments\ \ (websites and apps). Thanks to the placements endpoint, you can analyse\ @@ -3177,23 +3071,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary + type: string + text/csv: + schema: + format: binary type: string application/xml: schema: - format: byte + format: binary type: string - text/xml: + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3290,7 +3188,7 @@ paths: - Analytics x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/statistics/report: + /2024-10/statistics/report: post: description: "This Statistics endpoint provides adset related data. It is an\ \ upgrade of our previous Statistics endpoint, and includes new metrics and\ @@ -3475,27 +3373,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3616,7 +3514,7 @@ paths: - Analytics x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/transactions/report: + /2024-10/transactions/report: post: description: This Transactions endpoint provides transactions id related data. operationId: GetTransactionsReport @@ -3639,27 +3537,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3780,7 +3678,7 @@ paths: - Analytics x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/advertisers/me: + /2024-10/advertisers/me: get: description: Fetch the portfolio of Advertisers for this account operationId: ApiPortfolioGet @@ -3825,313 +3723,11 @@ paths: schema: $ref: '#/components/schemas/GetPortfolioResponse' description: Unauthorized - tags: - - Advertiser - x-accepts: application/json -components: - schemas: - GetAudiencesResponse: - description: Body of the GET audience operation - example: - data: - - attributes: - nbLinesEmail: 6 - nbLines: 0 - created: 2000-01-23T04:56:07.000+00:00 - name: name - description: description - nbMatchesEmail: 1 - updated: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId - id: "314159" - type: Audience - - attributes: - nbLinesEmail: 6 - nbLines: 0 - created: 2000-01-23T04:56:07.000+00:00 - name: name - description: description - nbMatchesEmail: 1 - updated: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId - id: "314159" - type: Audience - warnings: - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - errors: - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - properties: - data: - items: - $ref: '#/components/schemas/Audience' - type: array - errors: - items: - $ref: '#/components/schemas/AudienceError' - type: array - warnings: - items: - $ref: '#/components/schemas/AudienceWarning' - type: array - required: - - data - - errors - - warnings - type: object - ErrorCodeResponse: - description: Definition of the error code - properties: - errors: - items: - $ref: '#/components/schemas/AudienceError' - type: array - warnings: - items: - $ref: '#/components/schemas/AudienceWarning' - nullable: true - type: array - required: - - errors - type: object - NewAudienceResponse: - description: Response of a newly created audience - example: - data: - attributes: - name: name - description: description - id: id - type: type - warnings: - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - errors: - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - properties: - data: - $ref: '#/components/schemas/BasicAudienceDefinition' - errors: - items: - $ref: '#/components/schemas/AudienceError' - type: array - warnings: - items: - $ref: '#/components/schemas/AudienceWarning' - type: array - required: - - data - - errors - - warnings - type: object - DeleteAudienceResponse: - description: Response of an audience deletion - example: - data: - attributes: - name: name - description: description - id: id - type: type - warnings: - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - errors: - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - properties: - data: - $ref: '#/components/schemas/BasicAudienceDefinition' - errors: - items: - $ref: '#/components/schemas/AudienceError' - type: array - warnings: - items: - $ref: '#/components/schemas/AudienceWarning' - type: array - required: - - data - - errors - - warnings - type: object - ReplaceAudienceResponse: - description: Response of an audience replacement - example: - data: - attributes: - name: name - description: description - id: id - type: type - warnings: - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - errors: - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: "{}" - stackTrace: - - stackTrace - - stackTrace - type: access-control - title: title - properties: - data: - $ref: '#/components/schemas/BasicAudienceDefinition' - errors: - items: - $ref: '#/components/schemas/AudienceError' - type: array - warnings: - items: - $ref: '#/components/schemas/AudienceWarning' - type: array - required: - - data - - errors - - warnings - type: object + tags: + - Advertiser + x-accepts: application/json +components: + schemas: DeleteAudienceContactListResponse: description: Response of a contactlist deletion example: @@ -4199,6 +3795,21 @@ components: - errors - warnings type: object + ErrorCodeResponse: + description: Definition of the error code + properties: + errors: + items: + $ref: '#/components/schemas/AudienceError' + type: array + warnings: + items: + $ref: '#/components/schemas/AudienceWarning' + nullable: true + type: array + required: + - errors + type: object ModifyAudienceResponse: description: Parameters to modify an audience example: @@ -4272,33 +3883,6 @@ components: - errors - warnings type: object - NewAudienceRequest: - description: Body of creation of a new audience - example: - data: - attributes: - name: name - description: description - advertiserId: advertiserId - type: Audience - properties: - data: - $ref: '#/components/schemas/NewAudience' - type: object - ReplaceAudienceRequest: - description: Request to replace an audience - example: - data: - attributes: - name: name - description: description - type: Audience - properties: - data: - $ref: '#/components/schemas/ReplaceAudience' - required: - - data - type: object ContactlistAmendmentRequest: description: Request for a contactlist amendment example: @@ -4317,33 +3901,24 @@ components: required: - data type: object - Audience: - description: Definition of an audience and all its information + BasicAudienceDefinition: + description: Common definition of an audience example: attributes: - nbLinesEmail: 6 - nbLines: 0 - created: 2000-01-23T04:56:07.000+00:00 name: name description: description - nbMatchesEmail: 1 - updated: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId - id: "314159" - type: Audience + id: id + type: type properties: + id: + description: the id of the entity type + type: string type: description: the name of the entity type - example: Audience - type: string - id: - description: id of the Audience - example: "314159" type: string attributes: - $ref: '#/components/schemas/Audience_attributes' + $ref: '#/components/schemas/AudienceNameDescription' required: - - attributes - id - type type: object @@ -4477,27 +4052,6 @@ components: - instance - type type: object - BasicAudienceDefinition: - description: Common definition of an audience - example: - attributes: - name: name - description: description - id: id - type: type - properties: - id: - description: the id of the entity type - type: string - type: - description: the name of the entity type - type: string - attributes: - $ref: '#/components/schemas/AudienceNameDescription' - required: - - id - - type - type: object ContactlistOperation: description: Response definition of a contactlist operation example: @@ -4522,43 +4076,6 @@ components: - attributes - type type: object - NewAudience: - description: "Body for the creation of a new audience (name, advertiserId, etc)" - example: - attributes: - name: name - description: description - advertiserId: advertiserId - type: Audience - properties: - type: - description: the name of the entity type - example: Audience - type: string - attributes: - $ref: '#/components/schemas/NewAudience_attributes' - required: - - attributes - - type - type: object - ReplaceAudience: - description: Parameters required to replace an audience - example: - attributes: - name: name - description: description - type: Audience - properties: - type: - description: the name of the entity type - example: Audience - type: string - attributes: - $ref: '#/components/schemas/AudienceNameDescription' - required: - - attributes - - type - type: object ContactlistAmendment: description: Parameters for the amendment of a contactlist example: @@ -8587,14 +8104,16 @@ components: nullable: true type: integer type: object - ResponsesAdSetId: + ResponsesAdSetIdV24Q1: description: List of output resources example: data: - - id: id - type: AdSetId - - id: id - type: AdSetId + - attributes: "{}" + id: id + type: AdSetIdV24Q1 + - attributes: "{}" + id: id + type: AdSetIdV24Q1 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8640,7 +8159,7 @@ components: properties: data: items: - $ref: '#/components/schemas/ReadModelAdSetId' + $ref: '#/components/schemas/ReadModelAdSetIdV24Q1' nullable: true readOnly: true type: array @@ -8660,7 +8179,7 @@ components: type: array x-nullable: true type: object - ResponseReadAdSet: + ResponseReadAdSetV24Q1: description: output resource example: data: @@ -8694,25 +8213,24 @@ components: - other - other bidding: - bidStrategy: actions - bidAmount: - value: 0.8008281904610115 + bidAmount: 0.8008281904610115 costController: COS campaignId: campaignId name: name datasetId: datasetId mediaType: display destinationEnvironment: undefined + videoChannel: olv advertiserId: advertiserId + objective: customAction budget: budgetDeliverySmoothing: accelerated budgetDeliveryWeek: undefined - budgetAmount: - value: 0.8008281904610115 + budgetAmount: 1.4658129805029452 budgetRenewal: undefined budgetStrategy: capped id: id - type: ReadAdSet + type: ReadAdSetV24Q1 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8757,7 +8275,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ReadModelReadAdSet' + $ref: '#/components/schemas/ReadModelReadAdSetV24Q1' warnings: items: $ref: '#/components/schemas/CommonProblem' @@ -8773,7 +8291,7 @@ components: type: array x-nullable: true type: object - ResponsesReadAdSet: + ResponsesReadAdSetV24Q1: description: List of output resources example: data: @@ -8807,25 +8325,24 @@ components: - other - other bidding: - bidStrategy: actions - bidAmount: - value: 0.8008281904610115 + bidAmount: 0.8008281904610115 costController: COS campaignId: campaignId name: name datasetId: datasetId mediaType: display destinationEnvironment: undefined + videoChannel: olv advertiserId: advertiserId + objective: customAction budget: budgetDeliverySmoothing: accelerated budgetDeliveryWeek: undefined - budgetAmount: - value: 0.8008281904610115 + budgetAmount: 1.4658129805029452 budgetRenewal: undefined budgetStrategy: capped id: id - type: ReadAdSet + type: ReadAdSetV24Q1 - attributes: schedule: endDate: @@ -8856,25 +8373,24 @@ components: - other - other bidding: - bidStrategy: actions - bidAmount: - value: 0.8008281904610115 + bidAmount: 0.8008281904610115 costController: COS campaignId: campaignId name: name datasetId: datasetId mediaType: display destinationEnvironment: undefined + videoChannel: olv advertiserId: advertiserId + objective: customAction budget: budgetDeliverySmoothing: accelerated budgetDeliveryWeek: undefined - budgetAmount: - value: 0.8008281904610115 + budgetAmount: 1.4658129805029452 budgetRenewal: undefined budgetStrategy: capped id: id - type: ReadAdSet + type: ReadAdSetV24Q1 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8920,7 +8436,7 @@ components: properties: data: items: - $ref: '#/components/schemas/ReadModelReadAdSet' + $ref: '#/components/schemas/ReadModelReadAdSetV24Q1' nullable: true readOnly: true type: array @@ -8940,20 +8456,14 @@ components: type: array x-nullable: true type: object - AdSetCategoryBidListResponse: - description: Data model for a list of response resources + ResponsesAdSetId: + description: List of output resources example: data: - - attributes: - bidAmount: 0.8008281904610115 - categoryName: categoryName - id: id - type: AdSetCategoryBid - - attributes: - bidAmount: 0.8008281904610115 - categoryName: categoryName - id: id - type: AdSetCategoryBid + - id: id + type: AdSetId + - id: id + type: AdSetId warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8999,8 +8509,9 @@ components: properties: data: items: - $ref: '#/components/schemas/AdSetCategoryBidResource' + $ref: '#/components/schemas/ReadModelAdSetId' nullable: true + readOnly: true type: array x-nullable: true warnings: @@ -9018,13 +8529,19 @@ components: type: array x-nullable: true type: object - PatchAdSetCategoryBidResultListResponse: + AdSetCategoryBidListResponse: description: Data model for a list of response resources example: data: - - id: id + - attributes: + bidAmount: 0.8008281904610115 + categoryName: categoryName + id: id type: AdSetCategoryBid - - id: id + - attributes: + bidAmount: 0.8008281904610115 + categoryName: categoryName + id: id type: AdSetCategoryBid warnings: - traceId: traceId @@ -9071,7 +8588,7 @@ components: properties: data: items: - $ref: '#/components/schemas/PatchAdSetCategoryBidResultResource' + $ref: '#/components/schemas/AdSetCategoryBidResource' nullable: true type: array x-nullable: true @@ -9090,20 +8607,14 @@ components: type: array x-nullable: true type: object - AdSetDisplayMultiplierListResponse: + PatchAdSetCategoryBidResultListResponse: description: Data model for a list of response resources example: data: - - attributes: - displayMultiplier: 0.8008281904610115 - categoryName: categoryName - id: id - type: AdSetDisplayMultiplier - - attributes: - displayMultiplier: 0.8008281904610115 - categoryName: categoryName - id: id - type: AdSetDisplayMultiplier + - id: id + type: AdSetCategoryBid + - id: id + type: AdSetCategoryBid warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -9149,7 +8660,7 @@ components: properties: data: items: - $ref: '#/components/schemas/AdSetDisplayMultiplierResource' + $ref: '#/components/schemas/PatchAdSetCategoryBidResultResource' nullable: true type: array x-nullable: true @@ -9168,13 +8679,19 @@ components: type: array x-nullable: true type: object - PatchAdSetDisplayMultiplierResultListResponse: + AdSetDisplayMultiplierListResponse: description: Data model for a list of response resources example: data: - - id: id + - attributes: + displayMultiplier: 0.8008281904610115 + categoryName: categoryName + id: id type: AdSetDisplayMultiplier - - id: id + - attributes: + displayMultiplier: 0.8008281904610115 + categoryName: categoryName + id: id type: AdSetDisplayMultiplier warnings: - traceId: traceId @@ -9221,7 +8738,7 @@ components: properties: data: items: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultResource' + $ref: '#/components/schemas/AdSetDisplayMultiplierResource' nullable: true type: array x-nullable: true @@ -9240,14 +8757,14 @@ components: type: array x-nullable: true type: object - PatchResultCampaignListResponse: - description: List of output resources + PatchAdSetDisplayMultiplierResultListResponse: + description: Data model for a list of response resources example: data: - id: id - type: Campaign + type: AdSetDisplayMultiplier - id: id - type: Campaign + type: AdSetDisplayMultiplier warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -9293,9 +8810,8 @@ components: properties: data: items: - $ref: '#/components/schemas/PatchResultCampaignReadResource' + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultResource' nullable: true - readOnly: true type: array x-nullable: true warnings: @@ -9313,20 +8829,13 @@ components: type: array x-nullable: true type: object - CampaignV23Q1Response: - description: Data model for response resource + PatchResultCampaignListResponse: + description: List of output resources example: data: - attributes: - goal: unspecified - name: name - spendLimit: - spendLimitRenewal: undefined - spendLimitAmount: - value: 0.8008281904610115 - spendLimitType: capped - advertiserId: advertiserId - id: id + - id: id + type: Campaign + - id: id type: Campaign warnings: - traceId: traceId @@ -9372,7 +8881,12 @@ components: title: title properties: data: - $ref: '#/components/schemas/CampaignV23Q1Resource' + items: + $ref: '#/components/schemas/PatchResultCampaignReadResource' + nullable: true + readOnly: true + type: array + x-nullable: true warnings: items: $ref: '#/components/schemas/CommonProblem' @@ -9388,24 +8902,12 @@ components: type: array x-nullable: true type: object - CampaignListResponse: - description: List of output resources + CampaignV23Q1Response: + description: Data model for response resource example: data: - - attributes: - goal: Unspecified - name: name - spendLimit: - spendLimitRenewal: undefined - spendLimitAmount: - value: 0.8008281904610115 - spendLimitType: capped - advertiserId: advertiserId - objective: objective - id: id - type: Campaign - - attributes: - goal: Unspecified + attributes: + goal: unspecified name: name spendLimit: spendLimitRenewal: undefined @@ -9413,7 +8915,6 @@ components: value: 0.8008281904610115 spendLimitType: capped advertiserId: advertiserId - objective: objective id: id type: Campaign warnings: @@ -9460,12 +8961,7 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/CampaignReadResource' - nullable: true - readOnly: true - type: array - x-nullable: true + $ref: '#/components/schemas/CampaignV23Q1Resource' warnings: items: $ref: '#/components/schemas/CommonProblem' @@ -9481,12 +8977,23 @@ components: type: array x-nullable: true type: object - CampaignResponse: - description: output resource + CampaignV23Q1ListResponse: + description: Data model for a list of response resources example: data: - attributes: - goal: Unspecified + - attributes: + goal: unspecified + name: name + spendLimit: + spendLimitRenewal: undefined + spendLimitAmount: + value: 0.8008281904610115 + spendLimitType: capped + advertiserId: advertiserId + id: id + type: Campaign + - attributes: + goal: unspecified name: name spendLimit: spendLimitRenewal: undefined @@ -9494,7 +9001,6 @@ components: value: 0.8008281904610115 spendLimitType: capped advertiserId: advertiserId - objective: objective id: id type: Campaign warnings: @@ -9541,7 +9047,11 @@ components: title: title properties: data: - $ref: '#/components/schemas/CampaignReadResource' + items: + $ref: '#/components/schemas/CampaignV23Q1Resource' + nullable: true + type: array + x-nullable: true warnings: items: $ref: '#/components/schemas/CommonProblem' @@ -9557,7 +9067,7 @@ components: type: array x-nullable: true type: object - RequestsPatchAdSet: + RequestsPatchAdSetV24Q1: description: List of input resources example: data: @@ -9600,7 +9110,7 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: PatchAdSet + type: PatchAdSetV24Q1 - attributes: targeting: geoLocation: @@ -9640,16 +9150,16 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: PatchAdSet + type: PatchAdSetV24Q1 properties: data: items: - $ref: '#/components/schemas/WriteModelPatchAdSet' + $ref: '#/components/schemas/WriteModelPatchAdSetV24Q1' nullable: true type: array x-nullable: true type: object - CreateAdSetRequest: + CreateAdSetV24Q1Request: description: Data model for an input resources example: data: @@ -9705,9 +9215,9 @@ components: type: AdSet properties: data: - $ref: '#/components/schemas/CreateAdSetResource' + $ref: '#/components/schemas/CreateAdSetV24Q1Resource' type: object - RequestAdSetSearch: + AdSetSearchRequestV24Q1: description: request payload of the search endpoint example: filters: @@ -9722,7 +9232,7 @@ components: - campaignIds properties: filters: - $ref: '#/components/schemas/AdSetSearchFilter' + $ref: '#/components/schemas/AdSetSearchFilterV24Q1' type: object RequestsAdSetId: description: List of input resources @@ -9825,7 +9335,7 @@ components: data: $ref: '#/components/schemas/CreateCampaignResource' type: object - CampaignSearchRequest: + CampaignSearchRequestV23Q1: description: request payload of the search endpoint example: filters: @@ -9837,13 +9347,14 @@ components: - campaignIds properties: filters: - $ref: '#/components/schemas/CampaignSearchFilters' + $ref: '#/components/schemas/CampaignSearchFiltersV23Q1' type: object - ReadModelAdSetId: + ReadModelAdSetIdV24Q1: description: read model data for resources example: + attributes: "{}" id: id - type: AdSetId + type: AdSetIdV24Q1 properties: id: description: Id of the entity @@ -9852,13 +9363,16 @@ components: type: string x-nullable: true type: - example: AdSetId + example: AdSetIdV24Q1 nullable: true readOnly: true type: string x-nullable: true + attributes: + description: ad set id model + type: object type: object - ReadModelReadAdSet: + ReadModelReadAdSetV24Q1: description: read model data for resources example: attributes: @@ -9891,25 +9405,24 @@ components: - other - other bidding: - bidStrategy: actions - bidAmount: - value: 0.8008281904610115 + bidAmount: 0.8008281904610115 costController: COS campaignId: campaignId name: name datasetId: datasetId mediaType: display destinationEnvironment: undefined + videoChannel: olv advertiserId: advertiserId + objective: customAction budget: budgetDeliverySmoothing: accelerated budgetDeliveryWeek: undefined - budgetAmount: - value: 0.8008281904610115 + budgetAmount: 1.4658129805029452 budgetRenewal: undefined budgetStrategy: capped id: id - type: ReadAdSet + type: ReadAdSetV24Q1 properties: id: description: Id of the entity @@ -9918,13 +9431,32 @@ components: type: string x-nullable: true type: - example: ReadAdSet + example: ReadAdSetV24Q1 nullable: true readOnly: true type: string x-nullable: true attributes: - $ref: '#/components/schemas/ReadAdSet' + $ref: '#/components/schemas/ReadAdSetV24Q1' + type: object + ReadModelAdSetId: + description: read model data for resources + example: + id: id + type: AdSetId + properties: + id: + description: Id of the entity + nullable: true + readOnly: true + type: string + x-nullable: true + type: + example: AdSetId + nullable: true + readOnly: true + type: string + x-nullable: true type: object AdSetCategoryBidResource: description: Data model for a Resource @@ -10046,38 +9578,7 @@ components: nullable: true type: string type: object - CampaignReadResource: - description: read model data for resources - example: - attributes: - goal: Unspecified - name: name - spendLimit: - spendLimitRenewal: undefined - spendLimitAmount: - value: 0.8008281904610115 - spendLimitType: capped - advertiserId: advertiserId - objective: objective - id: id - type: Campaign - properties: - id: - description: Id of the entity - nullable: true - readOnly: true - type: string - x-nullable: true - type: - example: Campaign - nullable: true - readOnly: true - type: string - x-nullable: true - attributes: - $ref: '#/components/schemas/Campaign' - type: object - WriteModelPatchAdSet: + WriteModelPatchAdSetV24Q1: description: write model data for resources example: attributes: @@ -10119,7 +9620,7 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: PatchAdSet + type: PatchAdSetV24Q1 properties: id: description: Id of the entity @@ -10128,14 +9629,14 @@ components: x-nullable: true type: description: Canonical type name of the entity - example: PatchAdSet + example: PatchAdSetV24Q1 nullable: true type: string x-nullable: true attributes: - $ref: '#/components/schemas/PatchAdSet' + $ref: '#/components/schemas/PatchAdSetV24Q1' type: object - CreateAdSetResource: + CreateAdSetV24Q1Resource: description: Data model for a Resource example: attributes: @@ -10190,14 +9691,14 @@ components: type: AdSet properties: attributes: - $ref: '#/components/schemas/CreateAdSet' + $ref: '#/components/schemas/CreateAdSetV24Q1' type: description: Canonical type name of the entity example: AdSet nullable: true type: string type: object - AdSetSearchFilter: + AdSetSearchFilterV24Q1: description: filter on ad set ids example: adSetIds: @@ -10334,7 +9835,7 @@ components: nullable: true type: string type: object - CampaignSearchFilters: + CampaignSearchFiltersV23Q1: description: filters on campaign example: advertiserIds: @@ -10357,7 +9858,10 @@ components: type: array x-nullable: true type: object - ReadAdSet: + AdSetIdV24Q1: + description: ad set id model + type: object + ReadAdSetV24Q1: description: ad set read model example: schedule: @@ -10389,21 +9893,20 @@ components: - other - other bidding: - bidStrategy: actions - bidAmount: - value: 0.8008281904610115 + bidAmount: 0.8008281904610115 costController: COS campaignId: campaignId name: name datasetId: datasetId mediaType: display destinationEnvironment: undefined + videoChannel: olv advertiserId: advertiserId + objective: customAction budget: budgetDeliverySmoothing: accelerated budgetDeliveryWeek: undefined - budgetAmount: - value: 0.8008281904610115 + budgetAmount: 1.4658129805029452 budgetRenewal: undefined budgetStrategy: capped properties: @@ -10430,14 +9933,29 @@ components: - app nullable: true type: string + objective: + enum: + - customAction + - clicks + - conversions + - displays + - appPromotion + - revenue + - storeConversions + - value + - reach + - visits + - videoViews + nullable: true + type: string schedule: - $ref: '#/components/schemas/ReadAdSetSchedule' + $ref: '#/components/schemas/ReadAdSetScheduleV24Q1' bidding: - $ref: '#/components/schemas/ReadAdSetBidding' + $ref: '#/components/schemas/ReadAdSetBiddingV24Q1' targeting: - $ref: '#/components/schemas/AdSetTargeting' + $ref: '#/components/schemas/AdSetTargetingV24Q1' budget: - $ref: '#/components/schemas/ReadAdSetBudget' + $ref: '#/components/schemas/ReadAdSetBudgetV24Q1' mediaType: enum: - display @@ -10445,6 +9963,13 @@ components: nullable: true type: string x-nullable: true + videoChannel: + enum: + - olv + - ctv + nullable: true + type: string + x-nullable: true type: object AdSetCategoryBid: description: Category Bid information about a Category for a given Ad Set. @@ -10515,42 +10040,7 @@ components: nullable: true type: string type: object - Campaign: - description: campaign read model - example: - goal: Unspecified - name: name - spendLimit: - spendLimitRenewal: undefined - spendLimitAmount: - value: 0.8008281904610115 - spendLimitType: capped - advertiserId: advertiserId - objective: objective - properties: - name: - nullable: true - type: string - x-nullable: true - advertiserId: - nullable: true - type: string - x-nullable: true - objective: - nullable: true - type: string - x-nullable: true - spendLimit: - $ref: '#/components/schemas/CampaignSpendLimit' - goal: - enum: - - Unspecified - - Acquisition - - Retention - nullable: true - type: string - type: object - PatchAdSet: + PatchAdSetV24Q1: description: ad set patch model example: targeting: @@ -10596,15 +10086,15 @@ components: type: string x-nullable: true scheduling: - $ref: '#/components/schemas/PatchAdSetScheduling' + $ref: '#/components/schemas/PatchAdSetSchedulingV24Q1' bidding: - $ref: '#/components/schemas/PatchAdSetBidding' + $ref: '#/components/schemas/PatchAdSetBiddingV24Q1' targeting: - $ref: '#/components/schemas/AdSetTargeting' + $ref: '#/components/schemas/AdSetTargetingV24Q1' budget: - $ref: '#/components/schemas/PatchAdSetBudget' + $ref: '#/components/schemas/PatchAdSetBudgetV24Q1' type: object - CreateAdSet: + CreateAdSetV24Q1: description: ad set create model example: schedule: @@ -10687,13 +10177,13 @@ components: - videoViews type: string schedule: - $ref: '#/components/schemas/CreateAdSetSchedule' + $ref: '#/components/schemas/CreateAdSetScheduleV24Q1' bidding: - $ref: '#/components/schemas/CreateAdSetBidding' + $ref: '#/components/schemas/CreateAdSetBiddingV24Q1' targeting: - $ref: '#/components/schemas/CreateAdSetTargeting' + $ref: '#/components/schemas/CreateAdSetTargetingV24Q1' budget: - $ref: '#/components/schemas/CreateAdSetBudget' + $ref: '#/components/schemas/CreateAdSetBudgetV24Q1' trackingCode: description: The click tracking code associated to this Ad Set. nullable: true @@ -10791,7 +10281,7 @@ components: - name - spendLimit type: object - ReadAdSetSchedule: + ReadAdSetScheduleV24Q1: description: ad set schedule read model example: endDate: @@ -10826,32 +10316,20 @@ components: nullable: true type: string type: object - ReadAdSetBidding: + ReadAdSetBiddingV24Q1: description: ad set bidding read model example: - bidStrategy: actions - bidAmount: - value: 0.8008281904610115 + bidAmount: 0.8008281904610115 costController: COS properties: bidAmount: - $ref: '#/components/schemas/NillableDecimal' - bidStrategy: - description: The intended optimization for the Ad Set - enum: - - actions - - clicks - - conversions - - displays - - installs - - revenue - - storeConversions - - value - - viewedImpressions - - Visits - - completedVideoViews + description: Decimal value target relating to the `adSetObjective` specified. + May be `null` for objectives that do not require a target value. At most + 4 decimals are supported. Additional decimals are rounded. + format: double nullable: true - type: string + type: number + x-nullable: true costController: description: How spend is controlled enum: @@ -10863,10 +10341,11 @@ components: - CPSV - CPV - dailyBudget + - targetCPM nullable: true type: string type: object - AdSetTargeting: + AdSetTargetingV24Q1: description: ad set targeting model example: geoLocation: @@ -10891,19 +10370,18 @@ components: - other properties: deliveryLimitations: - $ref: '#/components/schemas/AdSetDeliveryLimitations' + $ref: '#/components/schemas/AdSetDeliveryLimitationsV24Q1' geoLocation: - $ref: '#/components/schemas/AdSetGeoLocation' + $ref: '#/components/schemas/AdSetGeoLocationV24Q1' frequencyCapping: - $ref: '#/components/schemas/AdSetFrequencyCapping' + $ref: '#/components/schemas/AdSetFrequencyCappingV24Q1' type: object - ReadAdSetBudget: + ReadAdSetBudgetV24Q1: description: ad set budget read model example: budgetDeliverySmoothing: accelerated budgetDeliveryWeek: undefined - budgetAmount: - value: 0.8008281904610115 + budgetAmount: 1.4658129805029452 budgetRenewal: undefined budgetStrategy: capped properties: @@ -10919,6 +10397,7 @@ components: - daily - monthly - lifetime + - weekly nullable: true type: string budgetDeliverySmoothing: @@ -10941,34 +10420,12 @@ components: nullable: true type: string budgetAmount: - $ref: '#/components/schemas/NillableDecimal' - type: object - CampaignSpendLimitV23Q1: - description: campaign spend limit model - example: - spendLimitRenewal: undefined - spendLimitAmount: - value: 0.8008281904610115 - spendLimitType: capped - properties: - spendLimitType: - enum: - - capped - - uncapped - nullable: true - type: string - spendLimitRenewal: - enum: - - undefined - - daily - - monthly - - lifetime + format: double nullable: true - type: string - spendLimitAmount: - $ref: '#/components/schemas/NillableDecimal' + type: number + x-nullable: true type: object - CampaignSpendLimit: + CampaignSpendLimitV23Q1: description: campaign spend limit model example: spendLimitRenewal: undefined @@ -10993,7 +10450,7 @@ components: spendLimitAmount: $ref: '#/components/schemas/NillableDecimal' type: object - PatchAdSetScheduling: + PatchAdSetSchedulingV24Q1: description: ad set schedule patch model example: endDate: @@ -11006,7 +10463,7 @@ components: endDate: $ref: '#/components/schemas/NillableDateTime' type: object - PatchAdSetBidding: + PatchAdSetBiddingV24Q1: description: ad set bidding patch model example: bidAmount: @@ -11015,7 +10472,7 @@ components: bidAmount: $ref: '#/components/schemas/NillableDecimal' type: object - PatchAdSetBudget: + PatchAdSetBudgetV24Q1: description: ad set budget patch model example: budgetDeliverySmoothing: accelerated @@ -11038,6 +10495,7 @@ components: - daily - monthly - lifetime + - weekly nullable: true type: string x-nullable: true @@ -11064,7 +10522,7 @@ components: budgetAmount: $ref: '#/components/schemas/NillableDecimal' type: object - CreateAdSetSchedule: + CreateAdSetScheduleV24Q1: description: ad set schedule create model example: endDate: 2000-01-23T04:56:07.000+00:00 @@ -11081,7 +10539,7 @@ components: required: - startDate type: object - CreateAdSetBidding: + CreateAdSetBiddingV24Q1: description: ad set bidding create model example: bidAmount: 0.8008281904610115 @@ -11106,11 +10564,12 @@ components: - CPSV - CPV - dailyBudget + - targetCPM type: string required: - costController type: object - CreateAdSetTargeting: + CreateAdSetTargetingV24Q1: description: Targeting configuration of the ad set example: geoLocation: @@ -11144,15 +10603,15 @@ components: - other properties: deliveryLimitations: - $ref: '#/components/schemas/AdSetDeliveryLimitations' + $ref: '#/components/schemas/AdSetDeliveryLimitationsV24Q1' geoLocation: - $ref: '#/components/schemas/CreateAdSetGeoLocation' + $ref: '#/components/schemas/CreateAdSetGeoLocationV24Q1' frequencyCapping: - $ref: '#/components/schemas/AdSetFrequencyCapping' + $ref: '#/components/schemas/AdSetFrequencyCappingV24Q1' required: - frequencyCapping type: object - CreateAdSetBudget: + CreateAdSetBudgetV24Q1: description: ad set budget create model example: budgetDeliverySmoothing: accelerated @@ -11172,6 +10631,7 @@ components: - daily - monthly - lifetime + - weekly nullable: true type: string budgetDeliverySmoothing: @@ -11271,22 +10731,7 @@ components: type: string x-nullable: true type: object - NillableDecimal: - description: "structure that encapsulates an object that have valid business\ - \ null values. If the structure is provided (i.e. not null), then the value\ - \ in it, even null, is provided." - example: - value: 0.8008281904610115 - nullable: true - properties: - value: - format: double - nullable: true - type: number - x-nullable: true - type: object - x-nullable: true - AdSetDeliveryLimitations: + AdSetDeliveryLimitationsV24Q1: description: ad set delivery limitations model example: operatingSystems: @@ -11330,7 +10775,7 @@ components: type: array x-nullable: true type: object - AdSetGeoLocation: + AdSetGeoLocationV24Q1: description: ad set geolocation model example: zipCodes: @@ -11341,13 +10786,13 @@ components: value: null properties: countries: - $ref: '#/components/schemas/NillableAdSetTargetingRule' + $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q1' subdivisions: - $ref: '#/components/schemas/NillableAdSetTargetingRule' + $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q1' zipCodes: - $ref: '#/components/schemas/NillableAdSetTargetingRule' + $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q1' type: object - AdSetFrequencyCapping: + AdSetFrequencyCappingV24Q1: description: ad set frequency capping model example: maximumImpressions: 6 @@ -11366,7 +10811,22 @@ components: nullable: true type: integer type: object - CreateAdSetGeoLocation: + NillableDecimal: + description: "structure that encapsulates an object that have valid business\ + \ null values. If the structure is provided (i.e. not null), then the value\ + \ in it, even null, is provided." + example: + value: 0.8008281904610115 + nullable: true + properties: + value: + format: double + nullable: true + type: number + x-nullable: true + type: object + x-nullable: true + CreateAdSetGeoLocationV24Q1: description: Geolocation configuration of the ad set example: zipCodes: @@ -11386,13 +10846,13 @@ components: operand: undefined properties: countries: - $ref: '#/components/schemas/AdSetTargetingRule' + $ref: '#/components/schemas/AdSetTargetingRuleV24Q1' subdivisions: - $ref: '#/components/schemas/AdSetTargetingRule' + $ref: '#/components/schemas/AdSetTargetingRuleV24Q1' zipCodes: - $ref: '#/components/schemas/AdSetTargetingRule' + $ref: '#/components/schemas/AdSetTargetingRuleV24Q1' type: object - NillableAdSetTargetingRule: + NillableAdSetTargetingRuleV24Q1: description: "structure that encapsulates an object that have valid business\ \ null values. If the structure is provided (i.e. not null), then the value\ \ in it, even null, is provided." @@ -11400,9 +10860,9 @@ components: value: null properties: value: - $ref: '#/components/schemas/NillableAdSetTargetingRule_value' + $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q1_value' type: object - AdSetTargetingRule: + AdSetTargetingRuleV24Q1: description: ad set targeting rule model example: values: @@ -14807,55 +14267,6 @@ components: nullable: true type: string type: object - Audience_attributes: - example: - nbLinesEmail: 6 - nbLines: 0 - created: 2000-01-23T04:56:07.000+00:00 - name: name - description: description - nbMatchesEmail: 1 - updated: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId - properties: - advertiserId: - description: The advertiser id that owns this Audience - format: int32 - nullable: true - type: string - name: - description: The name of the Audience - type: string - description: - description: The string description of the Audience - type: string - created: - description: Date and time ISO 8601 formatted string - format: date-time - type: string - updated: - description: Date and time ISO 8601 formatted string - format: date-time - type: string - nbLines: - description: The number of line in the audience available once processed - nullable: true - type: integer - nbLinesEmail: - description: The number of email line in the audience available once processed - nullable: true - type: integer - nbMatchesEmail: - description: The number of email matches in the audience available once - processed - nullable: true - type: integer - required: - - created - - description - - name - - updated - type: object ContactlistOperation_attributes: description: the contactlist operation attributes example: @@ -14902,26 +14313,6 @@ components: required: - operation type: object - NewAudience_attributes: - example: - name: name - description: description - advertiserId: advertiserId - properties: - advertiserId: - description: The advertiser id to create the audience for - nullable: true - type: string - name: - description: The name of the new audience - type: string - description: - description: The description of the audience - nullable: true - type: string - required: - - name - type: object ContactlistAmendment_attributes: description: the name of the entity type example: @@ -14945,12 +14336,11 @@ components: - madid - identityLink - gum - - customerid - phoneNumber nullable: true type: string identifiers: - description: "The users tos add or remove, each in the schema specified" + description: "The users to add or remove, each in the schema specified" items: type: string type: array @@ -14963,9 +14353,9 @@ components: - identifiers - operation type: object - NillableAdSetTargetingRule_value: + NillableAdSetTargetingRuleV24Q1_value: allOf: - - $ref: '#/components/schemas/AdSetTargetingRule' + - $ref: '#/components/schemas/AdSetTargetingRuleV24Q1' nullable: true type: object x-nullable: true diff --git a/sdks/marketingsolutions_2023-07/build.gradle b/sdks/marketingsolutions_2024-10/build.gradle similarity index 97% rename from sdks/marketingsolutions_2023-07/build.gradle rename to sdks/marketingsolutions_2024-10/build.gradle index 8c2c552b..13b01fd3 100644 --- a/sdks/marketingsolutions_2023-07/build.gradle +++ b/sdks/marketingsolutions_2024-10/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2023.07.0.240826' +version = '2024.10.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-marketingsolutions-sdk' - version '2023.07.0.240826' + version '2024.10.0.241029' from components.java artifact sourcesJar artifact javadocJar @@ -82,7 +82,7 @@ publishing { pom { packaging = 'jar' name = 'com.criteo:criteo-api-marketingsolutions-sdk' - description = 'JAVA SDK for Criteo API marketingsolutions for 2023_07 version' + description = 'JAVA SDK for Criteo API marketingsolutions for 2024_10 version' url = 'https://github.com/criteo/criteo-api-java-sdk' licenses { license { diff --git a/sdks/marketingsolutions_2023-07/docs/Ad.md b/sdks/marketingsolutions_2024-10/docs/Ad.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/Ad.md rename to sdks/marketingsolutions_2024-10/docs/Ad.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdListResponse.md b/sdks/marketingsolutions_2024-10/docs/AdListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdListResponse.md rename to sdks/marketingsolutions_2024-10/docs/AdListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdResource.md b/sdks/marketingsolutions_2024-10/docs/AdResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdResource.md rename to sdks/marketingsolutions_2024-10/docs/AdResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdResponse.md b/sdks/marketingsolutions_2024-10/docs/AdResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdResponse.md rename to sdks/marketingsolutions_2024-10/docs/AdResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AdSetAudienceLinkEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AdSetAudienceLinkEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AdSetAudienceLinkEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AdSetAudienceLinkEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Response.md b/sdks/marketingsolutions_2024-10/docs/AdSetAudienceLinkEntityV1Response.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Response.md rename to sdks/marketingsolutions_2024-10/docs/AdSetAudienceLinkEntityV1Response.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkInputEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AdSetAudienceLinkInputEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkInputEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AdSetAudienceLinkInputEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBid.md b/sdks/marketingsolutions_2024-10/docs/AdSetCategoryBid.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdSetCategoryBid.md rename to sdks/marketingsolutions_2024-10/docs/AdSetCategoryBid.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidListResponse.md b/sdks/marketingsolutions_2024-10/docs/AdSetCategoryBidListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidListResponse.md rename to sdks/marketingsolutions_2024-10/docs/AdSetCategoryBidListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidResource.md b/sdks/marketingsolutions_2024-10/docs/AdSetCategoryBidResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidResource.md rename to sdks/marketingsolutions_2024-10/docs/AdSetCategoryBidResource.md diff --git a/sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitationsV24Q1.md b/sdks/marketingsolutions_2024-10/docs/AdSetDeliveryLimitationsV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitationsV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/AdSetDeliveryLimitationsV24Q1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplier.md b/sdks/marketingsolutions_2024-10/docs/AdSetDisplayMultiplier.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplier.md rename to sdks/marketingsolutions_2024-10/docs/AdSetDisplayMultiplier.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierListResponse.md b/sdks/marketingsolutions_2024-10/docs/AdSetDisplayMultiplierListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierListResponse.md rename to sdks/marketingsolutions_2024-10/docs/AdSetDisplayMultiplierListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierResource.md b/sdks/marketingsolutions_2024-10/docs/AdSetDisplayMultiplierResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierResource.md rename to sdks/marketingsolutions_2024-10/docs/AdSetDisplayMultiplierResource.md diff --git a/sdks/marketingsolutions_preview/docs/AdSetFrequencyCappingV24Q1.md b/sdks/marketingsolutions_2024-10/docs/AdSetFrequencyCappingV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/AdSetFrequencyCappingV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/AdSetFrequencyCappingV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/AdSetGeoLocationV24Q1.md b/sdks/marketingsolutions_2024-10/docs/AdSetGeoLocationV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/AdSetGeoLocationV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/AdSetGeoLocationV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/AdSetSearchFilterV24Q1.md b/sdks/marketingsolutions_2024-10/docs/AdSetSearchFilterV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/AdSetSearchFilterV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/AdSetSearchFilterV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/AdSetSearchRequestV24Q1.md b/sdks/marketingsolutions_2024-10/docs/AdSetSearchRequestV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/AdSetSearchRequestV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/AdSetSearchRequestV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/AdSetTargetingRuleV24Q1.md b/sdks/marketingsolutions_2024-10/docs/AdSetTargetingRuleV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/AdSetTargetingRuleV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/AdSetTargetingRuleV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/AdSetTargetingV24Q1.md b/sdks/marketingsolutions_2024-10/docs/AdSetTargetingV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/AdSetTargetingV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/AdSetTargetingV24Q1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdWrite.md b/sdks/marketingsolutions_2024-10/docs/AdWrite.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdWrite.md rename to sdks/marketingsolutions_2024-10/docs/AdWrite.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdWriteRequest.md b/sdks/marketingsolutions_2024-10/docs/AdWriteRequest.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdWriteRequest.md rename to sdks/marketingsolutions_2024-10/docs/AdWriteRequest.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdWriteResource.md b/sdks/marketingsolutions_2024-10/docs/AdWriteResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdWriteResource.md rename to sdks/marketingsolutions_2024-10/docs/AdWriteResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdaptiveAttributes.md b/sdks/marketingsolutions_2024-10/docs/AdaptiveAttributes.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdaptiveAttributes.md rename to sdks/marketingsolutions_2024-10/docs/AdaptiveAttributes.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdaptiveColors.md b/sdks/marketingsolutions_2024-10/docs/AdaptiveColors.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdaptiveColors.md rename to sdks/marketingsolutions_2024-10/docs/AdaptiveColors.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdaptiveWriteAttributes.md b/sdks/marketingsolutions_2024-10/docs/AdaptiveWriteAttributes.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AdaptiveWriteAttributes.md rename to sdks/marketingsolutions_2024-10/docs/AdaptiveWriteAttributes.md diff --git a/sdks/marketingsolutions_2023-07/docs/AdvertiserApi.md b/sdks/marketingsolutions_2024-10/docs/AdvertiserApi.md similarity index 80% rename from sdks/marketingsolutions_2023-07/docs/AdvertiserApi.md rename to sdks/marketingsolutions_2024-10/docs/AdvertiserApi.md index cd3d4bc4..4c45b176 100644 --- a/sdks/marketingsolutions_2023-07/docs/AdvertiserApi.md +++ b/sdks/marketingsolutions_2024-10/docs/AdvertiserApi.md @@ -1,10 +1,10 @@ # AdvertiserApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**apiPortfolioGet**](AdvertiserApi.md#apiPortfolioGet) | **GET** /2023-07/advertisers/me | | +| [**apiPortfolioGet**](AdvertiserApi.md#apiPortfolioGet) | **GET** /2024-10/advertisers/me | | @@ -19,15 +19,15 @@ Fetch the portfolio of Advertisers for this account ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; - -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AdvertiserApi; +package com.criteo.api.marketingsolutions.v2024_10; + +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AdvertiserApi; public class Example { public static void main(String[] args) { diff --git a/sdks/marketingsolutions_2023-07/docs/AlgebraNodeV1.md b/sdks/marketingsolutions_2024-10/docs/AlgebraNodeV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AlgebraNodeV1.md rename to sdks/marketingsolutions_2024-10/docs/AlgebraNodeV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AnalyticsApi.md b/sdks/marketingsolutions_2024-10/docs/AnalyticsApi.md similarity index 81% rename from sdks/marketingsolutions_2023-07/docs/AnalyticsApi.md rename to sdks/marketingsolutions_2024-10/docs/AnalyticsApi.md index b96d5808..5a89c256 100644 --- a/sdks/marketingsolutions_2023-07/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_2024-10/docs/AnalyticsApi.md @@ -1,19 +1,19 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getAdsetReport**](AnalyticsApi.md#getAdsetReport) | **POST** /2023-07/statistics/report | | -| [**getPlacementsReport**](AnalyticsApi.md#getPlacementsReport) | **POST** /2023-07/placements/report | | -| [**getTransactionsReport**](AnalyticsApi.md#getTransactionsReport) | **POST** /2023-07/transactions/report | | -| [**getTransparencyReport**](AnalyticsApi.md#getTransparencyReport) | **POST** /2023-07/log-level/advertisers/{advertiser-id}/report | | +| [**getAdsetReport**](AnalyticsApi.md#getAdsetReport) | **POST** /2024-10/statistics/report | | +| [**getPlacementsReport**](AnalyticsApi.md#getPlacementsReport) | **POST** /2024-10/placements/report | | +| [**getTransactionsReport**](AnalyticsApi.md#getTransactionsReport) | **POST** /2024-10/transactions/report | | +| [**getTransparencyReport**](AnalyticsApi.md#getTransparencyReport) | **POST** /2024-10/log-level/advertisers/{advertiser-id}/report | | ## getAdsetReport -> byte[] getAdsetReport(statisticsReportQueryMessage) +> File getAdsetReport(statisticsReportQueryMessage) @@ -22,15 +22,15 @@ This Statistics endpoint provides adset related data. It is an upgrade of our pr ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AnalyticsApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AnalyticsApi; public class Example { public static void main(String[] args) { @@ -60,7 +60,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); StatisticsReportQueryMessage statisticsReportQueryMessage = new StatisticsReportQueryMessage(); // StatisticsReportQueryMessage | try { - byte[] result = apiInstance.getAdsetReport(statisticsReportQueryMessage); + File result = apiInstance.getAdsetReport(statisticsReportQueryMessage); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getAdsetReport"); @@ -82,7 +82,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -104,7 +104,7 @@ public class Example { ## getPlacementsReport -> byte[] getPlacementsReport(placementsReportQueryMessageListRequest) +> File getPlacementsReport(placementsReportQueryMessageListRequest) @@ -113,15 +113,15 @@ Your ads are placed in different domains (publishers) and environments (websites ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AnalyticsApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AnalyticsApi; public class Example { public static void main(String[] args) { @@ -151,7 +151,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest = new PlacementsReportQueryMessageListRequest(); // PlacementsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); + File result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getPlacementsReport"); @@ -173,7 +173,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -182,7 +182,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json, application/xml, text/xml +- **Accept**: text/plain, application/json, text/json, text/csv, application/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/xml ### HTTP response details @@ -195,7 +195,7 @@ public class Example { ## getTransactionsReport -> byte[] getTransactionsReport(transactionsReportQueryMessageListRequest) +> File getTransactionsReport(transactionsReportQueryMessageListRequest) @@ -204,15 +204,15 @@ This Transactions endpoint provides transactions id related data. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AnalyticsApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AnalyticsApi; public class Example { public static void main(String[] args) { @@ -242,7 +242,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest = new TransactionsReportQueryMessageListRequest(); // TransactionsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); + File result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getTransactionsReport"); @@ -264,7 +264,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -295,15 +295,15 @@ This Statistics endpoint provides publisher data. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; - -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AnalyticsApi; +package com.criteo.api.marketingsolutions.v2024_10; + +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AnalyticsApi; public class Example { public static void main(String[] args) { diff --git a/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModel.md b/sdks/marketingsolutions_2024-10/docs/ApplicationSummaryModel.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModel.md rename to sdks/marketingsolutions_2024-10/docs/ApplicationSummaryModel.md diff --git a/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResource.md b/sdks/marketingsolutions_2024-10/docs/ApplicationSummaryModelResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResource.md rename to sdks/marketingsolutions_2024-10/docs/ApplicationSummaryModelResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResponse.md b/sdks/marketingsolutions_2024-10/docs/ApplicationSummaryModelResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResponse.md rename to sdks/marketingsolutions_2024-10/docs/ApplicationSummaryModelResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceApi.md b/sdks/marketingsolutions_2024-10/docs/AudienceApi.md similarity index 76% rename from sdks/marketingsolutions_2023-07/docs/AudienceApi.md rename to sdks/marketingsolutions_2024-10/docs/AudienceApi.md index e98a0064..094642b9 100644 --- a/sdks/marketingsolutions_2023-07/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2024-10/docs/AudienceApi.md @@ -1,30 +1,28 @@ # AudienceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**bulkCreateAudienceSegments**](AudienceApi.md#bulkCreateAudienceSegments) | **POST** /2023-07/marketing-solutions/audience-segments/create | | -| [**bulkCreateAudiences**](AudienceApi.md#bulkCreateAudiences) | **POST** /2023-07/marketing-solutions/audiences/create | | -| [**bulkDeleteAudienceSegments**](AudienceApi.md#bulkDeleteAudienceSegments) | **POST** /2023-07/marketing-solutions/audience-segments/delete | | -| [**bulkDeleteAudiences**](AudienceApi.md#bulkDeleteAudiences) | **POST** /2023-07/marketing-solutions/audiences/delete | | -| [**bulkUpdateAudienceSegments**](AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2023-07/marketing-solutions/audience-segments | | -| [**bulkUpdateAudiences**](AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2023-07/marketing-solutions/audiences | | -| [**computeAudienceSegmentsSizes**](AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2023-07/marketing-solutions/audience-segments/compute-sizes | | -| [**computeAudiencesSizes**](AudienceApi.md#computeAudiencesSizes) | **POST** /2023-07/marketing-solutions/audiences/compute-sizes | | -| [**createAudience**](AudienceApi.md#createAudience) | **POST** /2023-07/audiences | | -| [**deleteIdentifiers**](AudienceApi.md#deleteIdentifiers) | **DELETE** /2023-07/audiences/{audience-id}/contactlist | | -| [**estimateAudienceSegmentSize**](AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2023-07/marketing-solutions/audience-segments/estimate-size | | -| [**estimateAudienceSize**](AudienceApi.md#estimateAudienceSize) | **POST** /2023-07/marketing-solutions/audiences/estimate-size | | -| [**getAudienceSegmentContactListStatistics**](AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2023-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | -| [**getAudienceSegmentsInMarketBrands**](AudienceApi.md#getAudienceSegmentsInMarketBrands) | **GET** /2023-07/marketing-solutions/audience-segments/in-market-brands | | -| [**getAudienceSegmentsInMarketInterests**](AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2023-07/marketing-solutions/audience-segments/in-market-interests | | -| [**getAudiences**](AudienceApi.md#getAudiences) | **GET** /2023-07/audiences | | -| [**modifyAudience**](AudienceApi.md#modifyAudience) | **PATCH** /2023-07/audiences/{audience-id} | | -| [**modifyAudienceUsers**](AudienceApi.md#modifyAudienceUsers) | **PATCH** /2023-07/audiences/{audience-id}/contactlist | | -| [**removeAudience**](AudienceApi.md#removeAudience) | **DELETE** /2023-07/audiences/{audience-id} | | -| [**searchAudienceSegments**](AudienceApi.md#searchAudienceSegments) | **POST** /2023-07/marketing-solutions/audience-segments/search | | -| [**searchAudiences**](AudienceApi.md#searchAudiences) | **POST** /2023-07/marketing-solutions/audiences/search | | +| [**bulkCreateAudienceSegments**](AudienceApi.md#bulkCreateAudienceSegments) | **POST** /2024-10/marketing-solutions/audience-segments/create | | +| [**bulkCreateAudiences**](AudienceApi.md#bulkCreateAudiences) | **POST** /2024-10/marketing-solutions/audiences/create | | +| [**bulkDeleteAudienceSegments**](AudienceApi.md#bulkDeleteAudienceSegments) | **POST** /2024-10/marketing-solutions/audience-segments/delete | | +| [**bulkDeleteAudiences**](AudienceApi.md#bulkDeleteAudiences) | **POST** /2024-10/marketing-solutions/audiences/delete | | +| [**bulkUpdateAudienceSegments**](AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2024-10/marketing-solutions/audience-segments | | +| [**bulkUpdateAudiences**](AudienceApi.md#bulkUpdateAudiences) | **PATCH** /2024-10/marketing-solutions/audiences | | +| [**call10audiencesAudienceSegmentIdContactlistDelete**](AudienceApi.md#call10audiencesAudienceSegmentIdContactlistDelete) | **DELETE** /2024-10/audiences/{audience-segment-id}/contactlist | | +| [**call10audiencesAudienceSegmentIdContactlistPatch**](AudienceApi.md#call10audiencesAudienceSegmentIdContactlistPatch) | **PATCH** /2024-10/audiences/{audience-segment-id}/contactlist | | +| [**call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](AudienceApi.md#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /2024-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | +| [**call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](AudienceApi.md#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /2024-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | +| [**computeAudienceSegmentsSizes**](AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /2024-10/marketing-solutions/audience-segments/compute-sizes | | +| [**computeAudiencesSizes**](AudienceApi.md#computeAudiencesSizes) | **POST** /2024-10/marketing-solutions/audiences/compute-sizes | | +| [**estimateAudienceSegmentSize**](AudienceApi.md#estimateAudienceSegmentSize) | **POST** /2024-10/marketing-solutions/audience-segments/estimate-size | | +| [**estimateAudienceSize**](AudienceApi.md#estimateAudienceSize) | **POST** /2024-10/marketing-solutions/audiences/estimate-size | | +| [**getAudienceSegmentContactListStatistics**](AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2024-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics | | +| [**getAudienceSegmentsInMarketBrands**](AudienceApi.md#getAudienceSegmentsInMarketBrands) | **GET** /2024-10/marketing-solutions/audience-segments/in-market-brands | | +| [**getAudienceSegmentsInMarketInterests**](AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /2024-10/marketing-solutions/audience-segments/in-market-interests | | +| [**searchAudienceSegments**](AudienceApi.md#searchAudienceSegments) | **POST** /2024-10/marketing-solutions/audience-segments/search | | +| [**searchAudiences**](AudienceApi.md#searchAudiences) | **POST** /2024-10/marketing-solutions/audiences/search | | @@ -39,15 +37,15 @@ Creates all segments with a valid configuration, and returns their IDs. For thos ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -131,15 +129,15 @@ Creates all audiences with a valid configuration, and returns their IDs. For tho ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -223,15 +221,15 @@ Delete the segments associated to the given audience IDs. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -315,15 +313,15 @@ Deletes the audiences associated to the given audience IDs. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -408,15 +406,15 @@ Updates the properties of all segments with a valid configuration, and returns t ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -500,15 +498,15 @@ Updates the properties of all audiences with a valid configuration, and returns ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -581,26 +579,26 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## computeAudienceSegmentsSizes +## call10audiencesAudienceSegmentIdContactlistDelete -> AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1) +> DeleteAudienceContactListResponse call10audiencesAudienceSegmentIdContactlistDelete(audienceSegmentId) -Gets the size of all segments. An error is returned for those whose size calculation is not supported. +Delete all identifiers from a contact list audience-segment. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -628,12 +626,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1 = new AudienceSegmentComputeSizesInputV1(); // AudienceSegmentComputeSizesInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend try { - AudienceSegmentSizeEntityV1ListResponse result = apiInstance.computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1); + DeleteAudienceContactListResponse result = apiInstance.call10audiencesAudienceSegmentIdContactlistDelete(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#computeAudienceSegmentsSizes"); + System.err.println("Exception when calling AudienceApi#call10audiencesAudienceSegmentIdContactlistDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -648,11 +646,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentComputeSizesInputV1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | ### Return type -[**AudienceSegmentSizeEntityV1ListResponse**](AudienceSegmentSizeEntityV1ListResponse.md) +[**DeleteAudienceContactListResponse**](DeleteAudienceContactListResponse.md) ### Authorization @@ -660,39 +658,37 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: Not defined +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success or partial success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | The Contact List was emptied | - | +| **403** | Forbidden | - | -## computeAudiencesSizes +## call10audiencesAudienceSegmentIdContactlistPatch -> AudienceSizeEntityV1ListResponse computeAudiencesSizes(audienceComputeSizesInputV1) +> ModifyAudienceResponse call10audiencesAudienceSegmentIdContactlistPatch(audienceSegmentId, contactlistAmendmentRequest) -Gets the size of all audiences. An error is returned for those whose size calculation is not supported. +Add/remove identifiers to or from a contact list audience-segment. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -720,12 +716,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceComputeSizesInputV1 audienceComputeSizesInputV1 = new AudienceComputeSizesInputV1(); // AudienceComputeSizesInputV1 | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend + ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | try { - AudienceSizeEntityV1ListResponse result = apiInstance.computeAudiencesSizes(audienceComputeSizesInputV1); + ModifyAudienceResponse result = apiInstance.call10audiencesAudienceSegmentIdContactlistPatch(audienceSegmentId, contactlistAmendmentRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#computeAudiencesSizes"); + System.err.println("Exception when calling AudienceApi#call10audiencesAudienceSegmentIdContactlistPatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -740,11 +737,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceComputeSizesInputV1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | +| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | ### Return type -[**AudienceSizeEntityV1ListResponse**](AudienceSizeEntityV1ListResponse.md) +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) ### Authorization @@ -752,39 +750,38 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: application/json +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success or partial success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | Summary of created request | - | +| **403** | Forbidden | - | +| **404** | Audience 123 not found | - | -## createAudience +## call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete -> NewAudienceResponse createAudience(newAudienceRequest) +> DeleteAudienceContactListResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId) -Create an Audience for an Advertiser +Delete all identifiers from a contact list audience-segment. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -812,12 +809,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - NewAudienceRequest newAudienceRequest = new NewAudienceRequest(); // NewAudienceRequest | + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend try { - NewAudienceResponse result = apiInstance.createAudience(newAudienceRequest); + DeleteAudienceContactListResponse result = apiInstance.call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#createAudience"); + System.err.println("Exception when calling AudienceApi#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -832,11 +829,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **newAudienceRequest** | [**NewAudienceRequest**](NewAudienceRequest.md)| | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | ### Return type -[**NewAudienceResponse**](NewAudienceResponse.md) +[**DeleteAudienceContactListResponse**](DeleteAudienceContactListResponse.md) ### Authorization @@ -844,37 +841,37 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | The audience was created | - | +| **200** | The Contact List was emptied | - | | **403** | Forbidden | - | -## deleteIdentifiers +## call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch -> DeleteAudienceContactListResponse deleteIdentifiers(audienceId) +> ModifyAudienceResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest) -Delete all identifiers from a contact list audience-segment. +Add/remove identifiers to or from a contact list audience-segment. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -902,12 +899,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String audienceId = "audienceId_example"; // String | The id of the audience to amend + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend + ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | try { - DeleteAudienceContactListResponse result = apiInstance.deleteIdentifiers(audienceId); + ModifyAudienceResponse result = apiInstance.call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#deleteIdentifiers"); + System.err.println("Exception when calling AudienceApi#call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -922,11 +920,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceId** | **String**| The id of the audience to amend | | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | +| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | ### Return type -[**DeleteAudienceContactListResponse**](DeleteAudienceContactListResponse.md) +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) ### Authorization @@ -934,37 +933,38 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | The contactlist was deleted | - | +| **200** | Summary of created request | - | | **403** | Forbidden | - | +| **404** | Audience 123 not found | - | -## estimateAudienceSegmentSize +## computeAudienceSegmentsSizes -> AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1) +> AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1) -Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. +Gets the size of all segments. An error is returned for those whose size calculation is not supported. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -992,12 +992,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1 = new AudienceSegmentEstimateSizeInputV1(); // AudienceSegmentEstimateSizeInputV1 | + AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1 = new AudienceSegmentComputeSizesInputV1(); // AudienceSegmentComputeSizesInputV1 | try { - AudienceSegmentSizeEstimationV1Response result = apiInstance.estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1); + AudienceSegmentSizeEntityV1ListResponse result = apiInstance.computeAudienceSegmentsSizes(audienceSegmentComputeSizesInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#estimateAudienceSegmentSize"); + System.err.println("Exception when calling AudienceApi#computeAudienceSegmentsSizes"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1012,11 +1012,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentEstimateSizeInputV1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | | +| **audienceSegmentComputeSizesInputV1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | | ### Return type -[**AudienceSegmentSizeEstimationV1Response**](AudienceSegmentSizeEstimationV1Response.md) +[**AudienceSegmentSizeEntityV1ListResponse**](AudienceSegmentSizeEntityV1ListResponse.md) ### Authorization @@ -1031,32 +1031,32 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | Success or partial success | - | | **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## estimateAudienceSize +## computeAudiencesSizes -> AudienceSizeEstimationV1Response estimateAudienceSize(audienceEstimateSizeInputV1) +> AudienceSizeEntityV1ListResponse computeAudiencesSizes(audienceComputeSizesInputV1) -Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. +Gets the size of all audiences. An error is returned for those whose size calculation is not supported. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -1084,12 +1084,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1 = new AudienceEstimateSizeInputV1(); // AudienceEstimateSizeInputV1 | + AudienceComputeSizesInputV1 audienceComputeSizesInputV1 = new AudienceComputeSizesInputV1(); // AudienceComputeSizesInputV1 | try { - AudienceSizeEstimationV1Response result = apiInstance.estimateAudienceSize(audienceEstimateSizeInputV1); + AudienceSizeEntityV1ListResponse result = apiInstance.computeAudiencesSizes(audienceComputeSizesInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#estimateAudienceSize"); + System.err.println("Exception when calling AudienceApi#computeAudiencesSizes"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1104,11 +1104,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceEstimateSizeInputV1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | | +| **audienceComputeSizesInputV1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | | ### Return type -[**AudienceSizeEstimationV1Response**](AudienceSizeEstimationV1Response.md) +[**AudienceSizeEntityV1ListResponse**](AudienceSizeEntityV1ListResponse.md) ### Authorization @@ -1129,26 +1129,26 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentContactListStatistics +## estimateAudienceSegmentSize -> ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(audienceSegmentId) +> AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1) -Returns the statistics of a contact list segment. +Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -1176,12 +1176,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - Integer audienceSegmentId = 56; // Integer | The segment ID. + AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1 = new AudienceSegmentEstimateSizeInputV1(); // AudienceSegmentEstimateSizeInputV1 | try { - ContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(audienceSegmentId); + AudienceSegmentSizeEstimationV1Response result = apiInstance.estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); + System.err.println("Exception when calling AudienceApi#estimateAudienceSegmentSize"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1196,11 +1196,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentId** | **Integer**| The segment ID. | | +| **audienceSegmentEstimateSizeInputV1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | | ### Return type -[**ContactListStatisticsEntityV1Response**](ContactListStatisticsEntityV1Response.md) +[**AudienceSegmentSizeEstimationV1Response**](AudienceSegmentSizeEstimationV1Response.md) ### Authorization @@ -1208,7 +1208,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json @@ -1216,30 +1216,31 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | +| **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentsInMarketBrands +## estimateAudienceSize -> InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(advertiserId, country) +> AudienceSizeEstimationV1Response estimateAudienceSize(audienceEstimateSizeInputV1) -Returns a list with all available in-market brands that can be used to define an in-market segment. +Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -1267,13 +1268,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String advertiserId = "advertiserId_example"; // String | The advertiser ID. - String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. + AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1 = new AudienceEstimateSizeInputV1(); // AudienceEstimateSizeInputV1 | try { - InMarketAudienceSegmentBrandEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketBrands(advertiserId, country); + AudienceSizeEstimationV1Response result = apiInstance.estimateAudienceSize(audienceEstimateSizeInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketBrands"); + System.err.println("Exception when calling AudienceApi#estimateAudienceSize"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1288,12 +1288,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **advertiserId** | **String**| The advertiser ID. | | -| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | +| **audienceEstimateSizeInputV1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | | ### Return type -[**InMarketAudienceSegmentBrandEntityV1ListResponse**](InMarketAudienceSegmentBrandEntityV1ListResponse.md) +[**AudienceSizeEstimationV1Response**](AudienceSizeEstimationV1Response.md) ### Authorization @@ -1301,38 +1300,39 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | Success or partial success | - | +| **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## getAudienceSegmentsInMarketInterests +## getAudienceSegmentContactListStatistics -> InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(advertiserId, country) +> ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(audienceSegmentId) -Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. +Returns the statistics of a contact list segment. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -1360,13 +1360,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String advertiserId = "advertiserId_example"; // String | The advertiser ID. - String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. + Integer audienceSegmentId = 56; // Integer | The segment ID. try { - InMarketAudienceSegmentInterestEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketInterests(advertiserId, country); + ContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketInterests"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1381,12 +1380,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **advertiserId** | **String**| The advertiser ID. | | -| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | +| **audienceSegmentId** | **Integer**| The segment ID. | | ### Return type -[**InMarketAudienceSegmentInterestEntityV1ListResponse**](InMarketAudienceSegmentInterestEntityV1ListResponse.md) +[**ContactListStatisticsEntityV1Response**](ContactListStatisticsEntityV1Response.md) ### Authorization @@ -1406,26 +1404,26 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## getAudiences +## getAudienceSegmentsInMarketBrands -> GetAudiencesResponse getAudiences(advertiserId) +> InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(advertiserId, country) -Get a list of all the audiences for the user or for the given advertiser_id +Returns a list with all available in-market brands that can be used to define an in-market segment. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -1453,12 +1451,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String advertiserId = "advertiserId_example"; // String | The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio + String advertiserId = "advertiserId_example"; // String | The advertiser ID. + String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. try { - GetAudiencesResponse result = apiInstance.getAudiences(advertiserId); + InMarketAudienceSegmentBrandEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketBrands(advertiserId, country); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getAudiences"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketBrands"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1473,11 +1472,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **advertiserId** | **String**| The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio | [optional] | +| **advertiserId** | **String**| The advertiser ID. | | +| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | ### Return type -[**GetAudiencesResponse**](GetAudiencesResponse.md) +[**InMarketAudienceSegmentBrandEntityV1ListResponse**](InMarketAudienceSegmentBrandEntityV1ListResponse.md) ### Authorization @@ -1486,221 +1486,37 @@ public class Example { ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | The list was retrieved. | - | -| **403** | Forbidden | - | - - -## modifyAudience - -> ReplaceAudienceResponse modifyAudience(audienceId, replaceAudienceRequest) - - - -Update user audience specified by the audience id - -### Example - -```java -package com.criteo.api.marketingsolutions.v2023_07; - -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - AudienceApi apiInstance = new AudienceApi(defaultClient); - String audienceId = "audienceId_example"; // String | The id of the audience to amend - ReplaceAudienceRequest replaceAudienceRequest = new ReplaceAudienceRequest(); // ReplaceAudienceRequest | - try { - ReplaceAudienceResponse result = apiInstance.modifyAudience(audienceId, replaceAudienceRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#modifyAudience"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **audienceId** | **String**| The id of the audience to amend | | -| **replaceAudienceRequest** | [**ReplaceAudienceRequest**](ReplaceAudienceRequest.md)| | | - -### Return type - -[**ReplaceAudienceResponse**](ReplaceAudienceResponse.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | The audience was updated | - | -| **403** | Forbidden | - | - - -## modifyAudienceUsers - -> ModifyAudienceResponse modifyAudienceUsers(audienceId, contactlistAmendmentRequest) - - - -Add/remove users to or from a contact list audience-segment. - -### Example - -```java -package com.criteo.api.marketingsolutions.v2023_07; - -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - AudienceApi apiInstance = new AudienceApi(defaultClient); - String audienceId = "audienceId_example"; // String | The id of the audience to amend - ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | - try { - ModifyAudienceResponse result = apiInstance.modifyAudienceUsers(audienceId, contactlistAmendmentRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#modifyAudienceUsers"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **audienceId** | **String**| The id of the audience to amend | | -| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | - -### Return type - -[**ModifyAudienceResponse**](ModifyAudienceResponse.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Summary of created request | - | -| **403** | Forbidden | - | -| **404** | Audience 123 not found | - | +| **200** | Success | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | -## removeAudience +## getAudienceSegmentsInMarketInterests -> DeleteAudienceResponse removeAudience(audienceId) +> InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(advertiserId, country) -Delete an audience by id +Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -1728,12 +1544,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String audienceId = "audienceId_example"; // String | The id of the audience to amend + String advertiserId = "advertiserId_example"; // String | The advertiser ID. + String country = "country_example"; // String | The ISO 3166-1 alpha-2 country code. try { - DeleteAudienceResponse result = apiInstance.removeAudience(audienceId); + InMarketAudienceSegmentInterestEntityV1ListResponse result = apiInstance.getAudienceSegmentsInMarketInterests(advertiserId, country); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#removeAudience"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentsInMarketInterests"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1748,11 +1565,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceId** | **String**| The id of the audience to amend | | +| **advertiserId** | **String**| The advertiser ID. | | +| **country** | **String**| The ISO 3166-1 alpha-2 country code. | | ### Return type -[**DeleteAudienceResponse**](DeleteAudienceResponse.md) +[**InMarketAudienceSegmentInterestEntityV1ListResponse**](InMarketAudienceSegmentInterestEntityV1ListResponse.md) ### Authorization @@ -1761,14 +1579,15 @@ public class Example { ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | The audience was deleted | - | -| **403** | Forbidden | - | +| **200** | Success | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | ## searchAudienceSegments @@ -1782,15 +1601,15 @@ Returns a list of segments that match the provided filters. If present, the filt ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { @@ -1878,15 +1697,15 @@ Returns a list of audiences that match the provided filters. If present, the fil ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; - -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.AudienceApi; +package com.criteo.api.marketingsolutions.v2024_10; + +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.AudienceApi; public class Example { public static void main(String[] args) { diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceBulkCreateInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceBulkCreateInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceBulkCreateInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceBulkCreateInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceBulkDeleteInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceBulkDeleteInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceBulkDeleteInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceBulkDeleteInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceBulkUpdateInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceBulkUpdateInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceBulkUpdateInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceBulkUpdateInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceComputeSizeEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceComputeSizeEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceComputeSizeEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceComputeSizeEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceComputeSizesInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceComputeSizesInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceComputeSizesInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceComputeSizesInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceCreateEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceCreateEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceCreateEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceCreateEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceDeleteEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceDeleteEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceDeleteEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceDeleteEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md b/sdks/marketingsolutions_2024-10/docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md rename to sdks/marketingsolutions_2024-10/docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1ListResponse.md b/sdks/marketingsolutions_2024-10/docs/AudienceEntityV1ListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceEntityV1ListResponse.md rename to sdks/marketingsolutions_2024-10/docs/AudienceEntityV1ListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceError.md b/sdks/marketingsolutions_2024-10/docs/AudienceError.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceError.md rename to sdks/marketingsolutions_2024-10/docs/AudienceError.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceEstimateSizeEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceEstimateSizeEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceEstimateSizeEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceEstimateSizeEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceEstimateSizeInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceEstimateSizeInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1ListResponse.md b/sdks/marketingsolutions_2024-10/docs/AudienceIdEntityV1ListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1ListResponse.md rename to sdks/marketingsolutions_2024-10/docs/AudienceIdEntityV1ListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceIdEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceIdEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceNameDescription.md b/sdks/marketingsolutions_2024-10/docs/AudienceNameDescription.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceNameDescription.md rename to sdks/marketingsolutions_2024-10/docs/AudienceNameDescription.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSearchEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSearchEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSearchEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSearchEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSearchInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSearchInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSearchInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSearchInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSearchMetadataV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSearchMetadataV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSearchMetadataV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSearchMetadataV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkCreateInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentBulkCreateInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkCreateInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentBulkCreateInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkDeleteInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentBulkDeleteInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkDeleteInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentBulkDeleteInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkUpdateInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentBulkUpdateInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkUpdateInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentBulkUpdateInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizeEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentComputeSizeEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizeEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentComputeSizeEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizesInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentComputeSizesInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizesInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentComputeSizesInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentCreateEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentCreateEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentCreateEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentCreateEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentDeleteEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentDeleteEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentDeleteEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentDeleteEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1ListResponse.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentEntityV1ListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1ListResponse.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentEntityV1ListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEstimateSizeInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentEstimateSizeInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentEstimateSizeInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentEstimateSizeInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1ListResponse.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentIdEntityV1ListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1ListResponse.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentIdEntityV1ListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentIdEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentIdEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSearchEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSearchEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSearchEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSearchEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchInputV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSearchInputV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchInputV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSearchInputV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchMetadataV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSearchMetadataV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchMetadataV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSearchMetadataV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1ListResponse.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEntityV1ListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1ListResponse.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEntityV1ListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEstimationEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEstimationEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEstimationEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEstimationEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEstimationV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEstimationV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEstimationV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEstimationV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Response.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEstimationV1Response.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Response.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentSizeEstimationV1Response.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentUpdateEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentUpdateEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSegmentUpdateEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSegmentUpdateEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSizeEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSizeEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1ListResponse.md b/sdks/marketingsolutions_2024-10/docs/AudienceSizeEntityV1ListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1ListResponse.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSizeEntityV1ListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSizeEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSizeEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceSizeEstimationV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSizeEstimationV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceSizeEstimationV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSizeEstimationV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Response.md b/sdks/marketingsolutions_2024-10/docs/AudienceSizeEstimationV1Response.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Response.md rename to sdks/marketingsolutions_2024-10/docs/AudienceSizeEstimationV1Response.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1.md b/sdks/marketingsolutions_2024-10/docs/AudienceUpdateEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/AudienceUpdateEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/AudienceUpdateEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/AudienceUpdateEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceWarning.md b/sdks/marketingsolutions_2024-10/docs/AudienceWarning.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/AudienceWarning.md rename to sdks/marketingsolutions_2024-10/docs/AudienceWarning.md diff --git a/sdks/marketingsolutions_2023-07/docs/BasicAudienceDefinition.md b/sdks/marketingsolutions_2024-10/docs/BasicAudienceDefinition.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/BasicAudienceDefinition.md rename to sdks/marketingsolutions_2024-10/docs/BasicAudienceDefinition.md diff --git a/sdks/marketingsolutions_2023-07/docs/BehavioralV1.md b/sdks/marketingsolutions_2024-10/docs/BehavioralV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/BehavioralV1.md rename to sdks/marketingsolutions_2024-10/docs/BehavioralV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignApi.md b/sdks/marketingsolutions_2024-10/docs/CampaignApi.md similarity index 80% rename from sdks/marketingsolutions_2023-07/docs/CampaignApi.md rename to sdks/marketingsolutions_2024-10/docs/CampaignApi.md index 584a8cab..7ad80959 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignApi.md +++ b/sdks/marketingsolutions_2024-10/docs/CampaignApi.md @@ -1,30 +1,30 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createAdSet**](CampaignApi.md#createAdSet) | **POST** /2023-07/marketing-solutions/ad-sets | | -| [**createCampaign**](CampaignApi.md#createCampaign) | **POST** /2023-07/marketing-solutions/campaigns | | -| [**getAdSet**](CampaignApi.md#getAdSet) | **GET** /2023-07/marketing-solutions/ad-sets/{adSetId} | | -| [**getCampaign**](CampaignApi.md#getCampaign) | **GET** /2023-07/marketing-solutions/campaigns/{campaign-id} | | -| [**getCategoryBidList**](CampaignApi.md#getCategoryBidList) | **GET** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids | | -| [**getDisplayMultipliers**](CampaignApi.md#getDisplayMultipliers) | **GET** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | | -| [**patchAdSets**](CampaignApi.md#patchAdSets) | **PATCH** /2023-07/marketing-solutions/ad-sets | | -| [**patchCampaigns**](CampaignApi.md#patchCampaigns) | **PATCH** /2023-07/marketing-solutions/campaigns | | -| [**patchCategoryBidList**](CampaignApi.md#patchCategoryBidList) | **PATCH** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids | | -| [**patchDisplayMultipliers**](CampaignApi.md#patchDisplayMultipliers) | **PATCH** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | | -| [**searchAdSets**](CampaignApi.md#searchAdSets) | **POST** /2023-07/marketing-solutions/ad-sets/search | | -| [**searchCampaigns**](CampaignApi.md#searchCampaigns) | **POST** /2023-07/marketing-solutions/campaigns/search | | -| [**startAdSets**](CampaignApi.md#startAdSets) | **POST** /2023-07/marketing-solutions/ad-sets/start | | -| [**stopAdSets**](CampaignApi.md#stopAdSets) | **POST** /2023-07/marketing-solutions/ad-sets/stop | | -| [**updateAdSetAudience**](CampaignApi.md#updateAdSetAudience) | **PUT** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/audience | | +| [**createAdSetV24Q1**](CampaignApi.md#createAdSetV24Q1) | **POST** /2024-10/marketing-solutions/ad-sets | | +| [**createCampaign**](CampaignApi.md#createCampaign) | **POST** /2024-10/marketing-solutions/campaigns | | +| [**getAdSetV24Q1**](CampaignApi.md#getAdSetV24Q1) | **GET** /2024-10/marketing-solutions/ad-sets/{ad-set-id} | | +| [**getCampaignV23Q1**](CampaignApi.md#getCampaignV23Q1) | **GET** /2024-10/marketing-solutions/campaigns/{campaign-id} | | +| [**getCategoryBidList**](CampaignApi.md#getCategoryBidList) | **GET** /2024-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids | | +| [**getDisplayMultipliers**](CampaignApi.md#getDisplayMultipliers) | **GET** /2024-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | | +| [**patchAdSetsV24Q1**](CampaignApi.md#patchAdSetsV24Q1) | **PATCH** /2024-10/marketing-solutions/ad-sets | | +| [**patchCampaigns**](CampaignApi.md#patchCampaigns) | **PATCH** /2024-10/marketing-solutions/campaigns | | +| [**patchCategoryBidList**](CampaignApi.md#patchCategoryBidList) | **PATCH** /2024-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids | | +| [**patchDisplayMultipliers**](CampaignApi.md#patchDisplayMultipliers) | **PATCH** /2024-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | | +| [**searchAdSetsV24Q1**](CampaignApi.md#searchAdSetsV24Q1) | **POST** /2024-10/marketing-solutions/ad-sets/search | | +| [**searchCampaignsV23Q1**](CampaignApi.md#searchCampaignsV23Q1) | **POST** /2024-10/marketing-solutions/campaigns/search | | +| [**startAdSets**](CampaignApi.md#startAdSets) | **POST** /2024-10/marketing-solutions/ad-sets/start | | +| [**stopAdSets**](CampaignApi.md#stopAdSets) | **POST** /2024-10/marketing-solutions/ad-sets/stop | | +| [**updateAdSetAudience**](CampaignApi.md#updateAdSetAudience) | **PUT** /2024-10/marketing-solutions/ad-sets/{ad-set-id}/audience | | -## createAdSet +## createAdSetV24Q1 -> ResponseReadAdSet createAdSet(createAdSetRequest) +> ResponseReadAdSetV24Q1 createAdSetV24Q1(createAdSetV24Q1Request) @@ -33,15 +33,15 @@ Create the specified ad set ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -69,12 +69,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - CreateAdSetRequest createAdSetRequest = new CreateAdSetRequest(); // CreateAdSetRequest | the ad sets to create + CreateAdSetV24Q1Request createAdSetV24Q1Request = new CreateAdSetV24Q1Request(); // CreateAdSetV24Q1Request | the ad sets to create try { - ResponseReadAdSet result = apiInstance.createAdSet(createAdSetRequest); + ResponseReadAdSetV24Q1 result = apiInstance.createAdSetV24Q1(createAdSetV24Q1Request); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#createAdSet"); + System.err.println("Exception when calling CampaignApi#createAdSetV24Q1"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -89,11 +89,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **createAdSetRequest** | [**CreateAdSetRequest**](CreateAdSetRequest.md)| the ad sets to create | | +| **createAdSetV24Q1Request** | [**CreateAdSetV24Q1Request**](CreateAdSetV24Q1Request.md)| the ad sets to create | | ### Return type -[**ResponseReadAdSet**](ResponseReadAdSet.md) +[**ResponseReadAdSetV24Q1**](ResponseReadAdSetV24Q1.md) ### Authorization @@ -124,15 +124,15 @@ Create the specified campaign ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -204,9 +204,9 @@ public class Example { | **401** | The API client is not properly authenticated. | - | -## getAdSet +## getAdSetV24Q1 -> ResponseReadAdSet getAdSet(adSetId) +> ResponseReadAdSetV24Q1 getAdSetV24Q1(adSetId) @@ -215,15 +215,15 @@ Get the data for the specified ad set ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -253,10 +253,10 @@ public class Example { CampaignApi apiInstance = new CampaignApi(defaultClient); String adSetId = "adSetId_example"; // String | Id of the ad set try { - ResponseReadAdSet result = apiInstance.getAdSet(adSetId); + ResponseReadAdSetV24Q1 result = apiInstance.getAdSetV24Q1(adSetId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getAdSet"); + System.err.println("Exception when calling CampaignApi#getAdSetV24Q1"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -275,7 +275,7 @@ public class Example { ### Return type -[**ResponseReadAdSet**](ResponseReadAdSet.md) +[**ResponseReadAdSetV24Q1**](ResponseReadAdSetV24Q1.md) ### Authorization @@ -295,9 +295,9 @@ public class Example { | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | -## getCampaign +## getCampaignV23Q1 -> CampaignResponse getCampaign(campaignId) +> CampaignV23Q1Response getCampaignV23Q1(campaignId) @@ -306,15 +306,15 @@ Get the data for the specified campaign ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -344,10 +344,10 @@ public class Example { CampaignApi apiInstance = new CampaignApi(defaultClient); String campaignId = "campaignId_example"; // String | Id of the campaign try { - CampaignResponse result = apiInstance.getCampaign(campaignId); + CampaignV23Q1Response result = apiInstance.getCampaignV23Q1(campaignId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getCampaign"); + System.err.println("Exception when calling CampaignApi#getCampaignV23Q1"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -366,7 +366,7 @@ public class Example { ### Return type -[**CampaignResponse**](CampaignResponse.md) +[**CampaignV23Q1Response**](CampaignV23Q1Response.md) ### Authorization @@ -397,15 +397,15 @@ Get the Category Bids for all valid Categories associated to an Ad Set ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -489,15 +489,15 @@ Get the Display Multipliers for all valid Categories associated to an Ad Set ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -570,9 +570,9 @@ public class Example { | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | -## patchAdSets +## patchAdSetsV24Q1 -> ResponsesAdSetId patchAdSets(requestsPatchAdSet) +> ResponsesAdSetIdV24Q1 patchAdSetsV24Q1(requestsPatchAdSetV24Q1) @@ -581,15 +581,15 @@ Patch a list of AdSets. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -617,12 +617,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - RequestsPatchAdSet requestsPatchAdSet = new RequestsPatchAdSet(); // RequestsPatchAdSet | List of adsets to patch. + RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1 = new RequestsPatchAdSetV24Q1(); // RequestsPatchAdSetV24Q1 | List of adsets to patch. try { - ResponsesAdSetId result = apiInstance.patchAdSets(requestsPatchAdSet); + ResponsesAdSetIdV24Q1 result = apiInstance.patchAdSetsV24Q1(requestsPatchAdSetV24Q1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#patchAdSets"); + System.err.println("Exception when calling CampaignApi#patchAdSetsV24Q1"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -637,11 +637,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **requestsPatchAdSet** | [**RequestsPatchAdSet**](RequestsPatchAdSet.md)| List of adsets to patch. | [optional] | +| **requestsPatchAdSetV24Q1** | [**RequestsPatchAdSetV24Q1**](RequestsPatchAdSetV24Q1.md)| List of adsets to patch. | [optional] | ### Return type -[**ResponsesAdSetId**](ResponsesAdSetId.md) +[**ResponsesAdSetIdV24Q1**](ResponsesAdSetIdV24Q1.md) ### Authorization @@ -672,15 +672,15 @@ Patch a list of Campaigns. ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -763,15 +763,15 @@ Patch Category Bids for one or more Categories in a single request. Partial succ ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -857,15 +857,15 @@ Patch Display Multipliers for one or more Categories in a single request. Partia ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -940,9 +940,9 @@ public class Example { | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | -## searchAdSets +## searchAdSetsV24Q1 -> ResponsesReadAdSet searchAdSets(requestAdSetSearch) +> ResponsesReadAdSetV24Q1 searchAdSetsV24Q1(adSetSearchRequestV24Q1) @@ -951,15 +951,15 @@ Search for ad sets ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -987,12 +987,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - RequestAdSetSearch requestAdSetSearch = new RequestAdSetSearch(); // RequestAdSetSearch | + AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1 = new AdSetSearchRequestV24Q1(); // AdSetSearchRequestV24Q1 | try { - ResponsesReadAdSet result = apiInstance.searchAdSets(requestAdSetSearch); + ResponsesReadAdSetV24Q1 result = apiInstance.searchAdSetsV24Q1(adSetSearchRequestV24Q1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#searchAdSets"); + System.err.println("Exception when calling CampaignApi#searchAdSetsV24Q1"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1007,11 +1007,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **requestAdSetSearch** | [**RequestAdSetSearch**](RequestAdSetSearch.md)| | [optional] | +| **adSetSearchRequestV24Q1** | [**AdSetSearchRequestV24Q1**](AdSetSearchRequestV24Q1.md)| | [optional] | ### Return type -[**ResponsesReadAdSet**](ResponsesReadAdSet.md) +[**ResponsesReadAdSetV24Q1**](ResponsesReadAdSetV24Q1.md) ### Authorization @@ -1028,13 +1028,13 @@ public class Example { |-------------|-------------|------------------| | **200** | data for the ad sets | - | | **400** | Bad Request | - | -| **403** | Forbidden | - | +| **403** | The API client is not authorized to access this resource or the resource does not exist. | - | | **401** | The API client is not properly authenticated. | - | -## searchCampaigns +## searchCampaignsV23Q1 -> CampaignListResponse searchCampaigns(campaignSearchRequest) +> CampaignV23Q1ListResponse searchCampaignsV23Q1(campaignSearchRequestV23Q1) @@ -1043,15 +1043,15 @@ Search for campaigns ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1079,12 +1079,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - CampaignSearchRequest campaignSearchRequest = new CampaignSearchRequest(); // CampaignSearchRequest | filters on campaigns + CampaignSearchRequestV23Q1 campaignSearchRequestV23Q1 = new CampaignSearchRequestV23Q1(); // CampaignSearchRequestV23Q1 | filters on campaigns try { - CampaignListResponse result = apiInstance.searchCampaigns(campaignSearchRequest); + CampaignV23Q1ListResponse result = apiInstance.searchCampaignsV23Q1(campaignSearchRequestV23Q1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#searchCampaigns"); + System.err.println("Exception when calling CampaignApi#searchCampaignsV23Q1"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1099,11 +1099,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **campaignSearchRequest** | [**CampaignSearchRequest**](CampaignSearchRequest.md)| filters on campaigns | [optional] | +| **campaignSearchRequestV23Q1** | [**CampaignSearchRequestV23Q1**](CampaignSearchRequestV23Q1.md)| filters on campaigns | [optional] | ### Return type -[**CampaignListResponse**](CampaignListResponse.md) +[**CampaignV23Q1ListResponse**](CampaignV23Q1ListResponse.md) ### Authorization @@ -1135,15 +1135,15 @@ Start the specified list of ad sets ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1226,15 +1226,15 @@ Stop the specified list of ad sets ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1317,15 +1317,15 @@ Link or unlink an audience with an ad set ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; - -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CampaignApi; +package com.criteo.api.marketingsolutions.v2024_10; + +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignSearchFilters.md b/sdks/marketingsolutions_2024-10/docs/CampaignSearchFiltersV23Q1.md similarity index 90% rename from sdks/marketingsolutions_2023-07/docs/CampaignSearchFilters.md rename to sdks/marketingsolutions_2024-10/docs/CampaignSearchFiltersV23Q1.md index c3aeaf44..d61aa592 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignSearchFilters.md +++ b/sdks/marketingsolutions_2024-10/docs/CampaignSearchFiltersV23Q1.md @@ -1,6 +1,6 @@ -# CampaignSearchFilters +# CampaignSearchFiltersV23Q1 filters on campaign diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignSearchRequest.md b/sdks/marketingsolutions_2024-10/docs/CampaignSearchRequestV23Q1.md similarity index 56% rename from sdks/marketingsolutions_2023-07/docs/CampaignSearchRequest.md rename to sdks/marketingsolutions_2024-10/docs/CampaignSearchRequestV23Q1.md index 9fb345c5..d72c2d8c 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignSearchRequest.md +++ b/sdks/marketingsolutions_2024-10/docs/CampaignSearchRequestV23Q1.md @@ -1,6 +1,6 @@ -# CampaignSearchRequest +# CampaignSearchRequestV23Q1 request payload of the search endpoint @@ -8,7 +8,7 @@ request payload of the search endpoint | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**filters** | [**CampaignSearchFilters**](CampaignSearchFilters.md) | | [optional] | +|**filters** | [**CampaignSearchFiltersV23Q1**](CampaignSearchFiltersV23Q1.md) | | [optional] | diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimitV23Q1.md b/sdks/marketingsolutions_2024-10/docs/CampaignSpendLimitV23Q1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CampaignSpendLimitV23Q1.md rename to sdks/marketingsolutions_2024-10/docs/CampaignSpendLimitV23Q1.md diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1.md b/sdks/marketingsolutions_2024-10/docs/CampaignV23Q1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CampaignV23Q1.md rename to sdks/marketingsolutions_2024-10/docs/CampaignV23Q1.md diff --git a/sdks/marketingsolutions_2023-07/docs/ResponseReadAdSet.md b/sdks/marketingsolutions_2024-10/docs/CampaignV23Q1ListResponse.md similarity index 64% rename from sdks/marketingsolutions_2023-07/docs/ResponseReadAdSet.md rename to sdks/marketingsolutions_2024-10/docs/CampaignV23Q1ListResponse.md index 0f8c1541..6f552a01 100644 --- a/sdks/marketingsolutions_2023-07/docs/ResponseReadAdSet.md +++ b/sdks/marketingsolutions_2024-10/docs/CampaignV23Q1ListResponse.md @@ -1,14 +1,14 @@ -# ResponseReadAdSet +# CampaignV23Q1ListResponse -output resource +Data model for a list of response resources ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**ReadModelReadAdSet**](ReadModelReadAdSet.md) | | [optional] | +|**data** | [**List<CampaignV23Q1Resource>**](CampaignV23Q1Resource.md) | | [optional] | |**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | |**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Resource.md b/sdks/marketingsolutions_2024-10/docs/CampaignV23Q1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Resource.md rename to sdks/marketingsolutions_2024-10/docs/CampaignV23Q1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Response.md b/sdks/marketingsolutions_2024-10/docs/CampaignV23Q1Response.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Response.md rename to sdks/marketingsolutions_2024-10/docs/CampaignV23Q1Response.md diff --git a/sdks/marketingsolutions_2023-07/docs/CommonProblem.md b/sdks/marketingsolutions_2024-10/docs/CommonProblem.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CommonProblem.md rename to sdks/marketingsolutions_2024-10/docs/CommonProblem.md diff --git a/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1.md b/sdks/marketingsolutions_2024-10/docs/ContactListStatisticsEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/ContactListStatisticsEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/ContactListStatisticsEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/ContactListStatisticsEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Response.md b/sdks/marketingsolutions_2024-10/docs/ContactListStatisticsEntityV1Response.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Response.md rename to sdks/marketingsolutions_2024-10/docs/ContactListStatisticsEntityV1Response.md diff --git a/sdks/marketingsolutions_2023-07/docs/ContactListV1.md b/sdks/marketingsolutions_2024-10/docs/ContactListV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ContactListV1.md rename to sdks/marketingsolutions_2024-10/docs/ContactListV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/ContactlistAmendment.md b/sdks/marketingsolutions_2024-10/docs/ContactlistAmendment.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ContactlistAmendment.md rename to sdks/marketingsolutions_2024-10/docs/ContactlistAmendment.md diff --git a/sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2024-10/docs/ContactlistAmendmentAttributes.md similarity index 85% rename from sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentAttributes.md rename to sdks/marketingsolutions_2024-10/docs/ContactlistAmendmentAttributes.md index f0a2c263..cd54aaf1 100644 --- a/sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentAttributes.md +++ b/sdks/marketingsolutions_2024-10/docs/ContactlistAmendmentAttributes.md @@ -10,7 +10,7 @@ the name of the entity type |------------ | ------------- | ------------- | -------------| |**operation** | [**OperationEnum**](#OperationEnum) | Operation to add or remove users | | |**identifierType** | [**IdentifierTypeEnum**](#IdentifierTypeEnum) | What type of identifiers are used | [optional] | -|**identifiers** | **List<String>** | The users tos add or remove, each in the schema specified | | +|**identifiers** | **List<String>** | The users to add or remove, each in the schema specified | | |**gumCallerId** | **Integer** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] | @@ -32,7 +32,6 @@ the name of the entity type | MADID | "madid" | | IDENTITYLINK | "identityLink" | | GUM | "gum" | -| CUSTOMERID | "customerid" | | PHONENUMBER | "phoneNumber" | diff --git a/sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentRequest.md b/sdks/marketingsolutions_2024-10/docs/ContactlistAmendmentRequest.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentRequest.md rename to sdks/marketingsolutions_2024-10/docs/ContactlistAmendmentRequest.md diff --git a/sdks/marketingsolutions_2023-07/docs/ContactlistOperation.md b/sdks/marketingsolutions_2024-10/docs/ContactlistOperation.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ContactlistOperation.md rename to sdks/marketingsolutions_2024-10/docs/ContactlistOperation.md diff --git a/sdks/marketingsolutions_2023-07/docs/ContactlistOperationAttributes.md b/sdks/marketingsolutions_2024-10/docs/ContactlistOperationAttributes.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ContactlistOperationAttributes.md rename to sdks/marketingsolutions_2024-10/docs/ContactlistOperationAttributes.md diff --git a/sdks/marketingsolutions_2023-07/docs/Coupon.md b/sdks/marketingsolutions_2024-10/docs/Coupon.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/Coupon.md rename to sdks/marketingsolutions_2024-10/docs/Coupon.md diff --git a/sdks/marketingsolutions_2023-07/docs/CouponListResponse.md b/sdks/marketingsolutions_2024-10/docs/CouponListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CouponListResponse.md rename to sdks/marketingsolutions_2024-10/docs/CouponListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/CouponResource.md b/sdks/marketingsolutions_2024-10/docs/CouponResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CouponResource.md rename to sdks/marketingsolutions_2024-10/docs/CouponResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/CouponResponse.md b/sdks/marketingsolutions_2024-10/docs/CouponResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CouponResponse.md rename to sdks/marketingsolutions_2024-10/docs/CouponResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizes.md b/sdks/marketingsolutions_2024-10/docs/CouponSupportedSizes.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CouponSupportedSizes.md rename to sdks/marketingsolutions_2024-10/docs/CouponSupportedSizes.md diff --git a/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResource.md b/sdks/marketingsolutions_2024-10/docs/CouponSupportedSizesResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResource.md rename to sdks/marketingsolutions_2024-10/docs/CouponSupportedSizesResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResponse.md b/sdks/marketingsolutions_2024-10/docs/CouponSupportedSizesResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResponse.md rename to sdks/marketingsolutions_2024-10/docs/CouponSupportedSizesResponse.md diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetBiddingV24Q1.md b/sdks/marketingsolutions_2024-10/docs/CreateAdSetBiddingV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/CreateAdSetBiddingV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/CreateAdSetBiddingV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetBudgetV24Q1.md b/sdks/marketingsolutions_2024-10/docs/CreateAdSetBudgetV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/CreateAdSetBudgetV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/CreateAdSetBudgetV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetGeoLocationV24Q1.md b/sdks/marketingsolutions_2024-10/docs/CreateAdSetGeoLocationV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/CreateAdSetGeoLocationV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/CreateAdSetGeoLocationV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetScheduleV24Q1.md b/sdks/marketingsolutions_2024-10/docs/CreateAdSetScheduleV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/CreateAdSetScheduleV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/CreateAdSetScheduleV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetTargetingV24Q1.md b/sdks/marketingsolutions_2024-10/docs/CreateAdSetTargetingV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/CreateAdSetTargetingV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/CreateAdSetTargetingV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetV24Q1.md b/sdks/marketingsolutions_2024-10/docs/CreateAdSetV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/CreateAdSetV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/CreateAdSetV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetV24Q1Request.md b/sdks/marketingsolutions_2024-10/docs/CreateAdSetV24Q1Request.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/CreateAdSetV24Q1Request.md rename to sdks/marketingsolutions_2024-10/docs/CreateAdSetV24Q1Request.md diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetV24Q1Resource.md b/sdks/marketingsolutions_2024-10/docs/CreateAdSetV24Q1Resource.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/CreateAdSetV24Q1Resource.md rename to sdks/marketingsolutions_2024-10/docs/CreateAdSetV24Q1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreateCampaign.md b/sdks/marketingsolutions_2024-10/docs/CreateCampaign.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreateCampaign.md rename to sdks/marketingsolutions_2024-10/docs/CreateCampaign.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreateCampaignRequest.md b/sdks/marketingsolutions_2024-10/docs/CreateCampaignRequest.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreateCampaignRequest.md rename to sdks/marketingsolutions_2024-10/docs/CreateCampaignRequest.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreateCampaignResource.md b/sdks/marketingsolutions_2024-10/docs/CreateCampaignResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreateCampaignResource.md rename to sdks/marketingsolutions_2024-10/docs/CreateCampaignResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreateCampaignSpendLimit.md b/sdks/marketingsolutions_2024-10/docs/CreateCampaignSpendLimit.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreateCampaignSpendLimit.md rename to sdks/marketingsolutions_2024-10/docs/CreateCampaignSpendLimit.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreateCoupon.md b/sdks/marketingsolutions_2024-10/docs/CreateCoupon.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreateCoupon.md rename to sdks/marketingsolutions_2024-10/docs/CreateCoupon.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreateCouponRequest.md b/sdks/marketingsolutions_2024-10/docs/CreateCouponRequest.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreateCouponRequest.md rename to sdks/marketingsolutions_2024-10/docs/CreateCouponRequest.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreateCouponResource.md b/sdks/marketingsolutions_2024-10/docs/CreateCouponResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreateCouponResource.md rename to sdks/marketingsolutions_2024-10/docs/CreateCouponResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreateImageSlide.md b/sdks/marketingsolutions_2024-10/docs/CreateImageSlide.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreateImageSlide.md rename to sdks/marketingsolutions_2024-10/docs/CreateImageSlide.md diff --git a/sdks/marketingsolutions_2023-07/docs/Creative.md b/sdks/marketingsolutions_2024-10/docs/Creative.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/Creative.md rename to sdks/marketingsolutions_2024-10/docs/Creative.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreativeApi.md b/sdks/marketingsolutions_2024-10/docs/CreativeApi.md similarity index 85% rename from sdks/marketingsolutions_2023-07/docs/CreativeApi.md rename to sdks/marketingsolutions_2024-10/docs/CreativeApi.md index 446192e0..7f61a30b 100644 --- a/sdks/marketingsolutions_2023-07/docs/CreativeApi.md +++ b/sdks/marketingsolutions_2024-10/docs/CreativeApi.md @@ -1,26 +1,26 @@ # CreativeApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createAdvertiserAd**](CreativeApi.md#createAdvertiserAd) | **POST** /2023-07/marketing-solutions/advertisers/{advertiser-id}/ads | | -| [**createAdvertiserCoupon**](CreativeApi.md#createAdvertiserCoupon) | **POST** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons | | -| [**createAdvertiserCreative**](CreativeApi.md#createAdvertiserCreative) | **POST** /2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives | | -| [**deleteAd**](CreativeApi.md#deleteAd) | **DELETE** /2023-07/marketing-solutions/ads/{id} | | -| [**deleteAdvertiserCoupon**](CreativeApi.md#deleteAdvertiserCoupon) | **DELETE** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | | -| [**deleteCreative**](CreativeApi.md#deleteCreative) | **DELETE** /2023-07/marketing-solutions/creatives/{id} | | -| [**editAdvertiserCoupon**](CreativeApi.md#editAdvertiserCoupon) | **PUT** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | | -| [**editCreative**](CreativeApi.md#editCreative) | **PUT** /2023-07/marketing-solutions/creatives/{id} | | -| [**generateCreativePreview**](CreativeApi.md#generateCreativePreview) | **POST** /2023-07/marketing-solutions/creatives/{id}/preview | | -| [**getAd**](CreativeApi.md#getAd) | **GET** /2023-07/marketing-solutions/ads/{id} | | -| [**getAdvertiserAds**](CreativeApi.md#getAdvertiserAds) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/ads | | -| [**getAdvertiserCoupon**](CreativeApi.md#getAdvertiserCoupon) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | | -| [**getAdvertiserCouponPreview**](CreativeApi.md#getAdvertiserCouponPreview) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}/preview | | -| [**getAdvertiserCouponSupportedSizes**](CreativeApi.md#getAdvertiserCouponSupportedSizes) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes | | -| [**getAdvertiserCoupons**](CreativeApi.md#getAdvertiserCoupons) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons | | -| [**getAdvertiserCreatives**](CreativeApi.md#getAdvertiserCreatives) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives | | -| [**getCreative**](CreativeApi.md#getCreative) | **GET** /2023-07/marketing-solutions/creatives/{id} | | +| [**createAdvertiserAd**](CreativeApi.md#createAdvertiserAd) | **POST** /2024-10/marketing-solutions/advertisers/{advertiser-id}/ads | | +| [**createAdvertiserCoupon**](CreativeApi.md#createAdvertiserCoupon) | **POST** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons | | +| [**createAdvertiserCreative**](CreativeApi.md#createAdvertiserCreative) | **POST** /2024-10/marketing-solutions/advertisers/{advertiser-id}/creatives | | +| [**deleteAd**](CreativeApi.md#deleteAd) | **DELETE** /2024-10/marketing-solutions/ads/{id} | | +| [**deleteAdvertiserCoupon**](CreativeApi.md#deleteAdvertiserCoupon) | **DELETE** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | | +| [**deleteCreative**](CreativeApi.md#deleteCreative) | **DELETE** /2024-10/marketing-solutions/creatives/{id} | | +| [**editAdvertiserCoupon**](CreativeApi.md#editAdvertiserCoupon) | **PUT** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | | +| [**editCreative**](CreativeApi.md#editCreative) | **PUT** /2024-10/marketing-solutions/creatives/{id} | | +| [**generateCreativePreview**](CreativeApi.md#generateCreativePreview) | **POST** /2024-10/marketing-solutions/creatives/{id}/preview | | +| [**getAd**](CreativeApi.md#getAd) | **GET** /2024-10/marketing-solutions/ads/{id} | | +| [**getAdvertiserAds**](CreativeApi.md#getAdvertiserAds) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/ads | | +| [**getAdvertiserCoupon**](CreativeApi.md#getAdvertiserCoupon) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | | +| [**getAdvertiserCouponPreview**](CreativeApi.md#getAdvertiserCouponPreview) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}/preview | | +| [**getAdvertiserCouponSupportedSizes**](CreativeApi.md#getAdvertiserCouponSupportedSizes) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes | | +| [**getAdvertiserCoupons**](CreativeApi.md#getAdvertiserCoupons) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons | | +| [**getAdvertiserCreatives**](CreativeApi.md#getAdvertiserCreatives) | **GET** /2024-10/marketing-solutions/advertisers/{advertiser-id}/creatives | | +| [**getCreative**](CreativeApi.md#getCreative) | **GET** /2024-10/marketing-solutions/creatives/{id} | | @@ -35,15 +35,15 @@ Create an Ad ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -129,15 +129,15 @@ Create a Coupon ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -222,15 +222,15 @@ Create a Creative ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -316,15 +316,15 @@ Delete an Ad ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -407,15 +407,15 @@ Delete a Coupon ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -499,15 +499,15 @@ Delete a Creative if there are no ads binded to it ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -590,15 +590,15 @@ Edit a specific Coupon ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -684,15 +684,15 @@ Edit a specific Creative ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -778,15 +778,15 @@ Generate a preview of a specific Creative ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -873,15 +873,15 @@ Get an Ad from its id ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -965,15 +965,15 @@ Get the list of self-services Ads for a given advertiser ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -1061,15 +1061,15 @@ Get a Coupon from its id ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -1154,15 +1154,15 @@ Get the preview of a specific Coupon ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -1251,15 +1251,15 @@ Get the list of Coupon supported sizes ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -1344,15 +1344,15 @@ Get the list of self-services Coupons for a given advertiser ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -1439,15 +1439,15 @@ Get the list of self-services Creatives for a given advertiser ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { @@ -1535,15 +1535,15 @@ Get a Creative from its id ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; - -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.CreativeApi; +package com.criteo.api.marketingsolutions.v2024_10; + +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.CreativeApi; public class Example { public static void main(String[] args) { diff --git a/sdks/marketingsolutions_2023-07/docs/CreativeListResponse.md b/sdks/marketingsolutions_2024-10/docs/CreativeListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreativeListResponse.md rename to sdks/marketingsolutions_2024-10/docs/CreativeListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreativeResource.md b/sdks/marketingsolutions_2024-10/docs/CreativeResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreativeResource.md rename to sdks/marketingsolutions_2024-10/docs/CreativeResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreativeResponse.md b/sdks/marketingsolutions_2024-10/docs/CreativeResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreativeResponse.md rename to sdks/marketingsolutions_2024-10/docs/CreativeResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreativeWrite.md b/sdks/marketingsolutions_2024-10/docs/CreativeWrite.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreativeWrite.md rename to sdks/marketingsolutions_2024-10/docs/CreativeWrite.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreativeWriteRequest.md b/sdks/marketingsolutions_2024-10/docs/CreativeWriteRequest.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreativeWriteRequest.md rename to sdks/marketingsolutions_2024-10/docs/CreativeWriteRequest.md diff --git a/sdks/marketingsolutions_2023-07/docs/CreativeWriteResource.md b/sdks/marketingsolutions_2024-10/docs/CreativeWriteResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CreativeWriteResource.md rename to sdks/marketingsolutions_2024-10/docs/CreativeWriteResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/CriteoApiError.md b/sdks/marketingsolutions_2024-10/docs/CriteoApiError.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CriteoApiError.md rename to sdks/marketingsolutions_2024-10/docs/CriteoApiError.md diff --git a/sdks/marketingsolutions_2023-07/docs/CriteoApiWarning.md b/sdks/marketingsolutions_2024-10/docs/CriteoApiWarning.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/CriteoApiWarning.md rename to sdks/marketingsolutions_2024-10/docs/CriteoApiWarning.md diff --git a/sdks/marketingsolutions_2023-07/docs/DeleteAudienceContactListResponse.md b/sdks/marketingsolutions_2024-10/docs/DeleteAudienceContactListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/DeleteAudienceContactListResponse.md rename to sdks/marketingsolutions_2024-10/docs/DeleteAudienceContactListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/DynamicAttributes.md b/sdks/marketingsolutions_2024-10/docs/DynamicAttributes.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/DynamicAttributes.md rename to sdks/marketingsolutions_2024-10/docs/DynamicAttributes.md diff --git a/sdks/marketingsolutions_2023-07/docs/DynamicWriteAttributes.md b/sdks/marketingsolutions_2024-10/docs/DynamicWriteAttributes.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/DynamicWriteAttributes.md rename to sdks/marketingsolutions_2024-10/docs/DynamicWriteAttributes.md diff --git a/sdks/marketingsolutions_2023-07/docs/EntityOfPortfolioMessage.md b/sdks/marketingsolutions_2024-10/docs/EntityOfPortfolioMessage.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/EntityOfPortfolioMessage.md rename to sdks/marketingsolutions_2024-10/docs/EntityOfPortfolioMessage.md diff --git a/sdks/marketingsolutions_2023-07/docs/ErrorCodeResponse.md b/sdks/marketingsolutions_2024-10/docs/ErrorCodeResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ErrorCodeResponse.md rename to sdks/marketingsolutions_2024-10/docs/ErrorCodeResponse.md diff --git a/sdks/retailmedia_2023-07/docs/GatewayApi.md b/sdks/marketingsolutions_2024-10/docs/GatewayApi.md similarity index 80% rename from sdks/retailmedia_2023-07/docs/GatewayApi.md rename to sdks/marketingsolutions_2024-10/docs/GatewayApi.md index 73c8e2ae..c0c7d334 100644 --- a/sdks/retailmedia_2023-07/docs/GatewayApi.md +++ b/sdks/marketingsolutions_2024-10/docs/GatewayApi.md @@ -1,10 +1,10 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getCurrentApplication**](GatewayApi.md#getCurrentApplication) | **GET** /2023-07/retail-media/me | | +| [**getCurrentApplication**](GatewayApi.md#getCurrentApplication) | **GET** /2024-10/marketing-solutions/me | | @@ -19,15 +19,15 @@ Get information about the currently logged application ### Example ```java -package com.criteo.api.retailmedia.v2023_07; - -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.GatewayApi; +package com.criteo.api.marketingsolutions.v2024_10; + +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.auth.*; +import com.criteo.api.marketingsolutions.v2024_10.model.*; +import com.criteo.api.marketingsolutions.v2024_10.api.GatewayApi; public class Example { public static void main(String[] args) { diff --git a/sdks/marketingsolutions_2023-07/docs/GetPortfolioResponse.md b/sdks/marketingsolutions_2024-10/docs/GetPortfolioResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/GetPortfolioResponse.md rename to sdks/marketingsolutions_2024-10/docs/GetPortfolioResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/HtmlTagAttributes.md b/sdks/marketingsolutions_2024-10/docs/HtmlTagAttributes.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/HtmlTagAttributes.md rename to sdks/marketingsolutions_2024-10/docs/HtmlTagAttributes.md diff --git a/sdks/marketingsolutions_2023-07/docs/HtmlTagWriteAttributes.md b/sdks/marketingsolutions_2024-10/docs/HtmlTagWriteAttributes.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/HtmlTagWriteAttributes.md rename to sdks/marketingsolutions_2024-10/docs/HtmlTagWriteAttributes.md diff --git a/sdks/marketingsolutions_2023-07/docs/ImageAttributes.md b/sdks/marketingsolutions_2024-10/docs/ImageAttributes.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ImageAttributes.md rename to sdks/marketingsolutions_2024-10/docs/ImageAttributes.md diff --git a/sdks/marketingsolutions_2023-07/docs/ImageSet.md b/sdks/marketingsolutions_2024-10/docs/ImageSet.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ImageSet.md rename to sdks/marketingsolutions_2024-10/docs/ImageSet.md diff --git a/sdks/marketingsolutions_2023-07/docs/ImageSetBase64.md b/sdks/marketingsolutions_2024-10/docs/ImageSetBase64.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ImageSetBase64.md rename to sdks/marketingsolutions_2024-10/docs/ImageSetBase64.md diff --git a/sdks/marketingsolutions_2023-07/docs/ImageShape.md b/sdks/marketingsolutions_2024-10/docs/ImageShape.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ImageShape.md rename to sdks/marketingsolutions_2024-10/docs/ImageShape.md diff --git a/sdks/marketingsolutions_2023-07/docs/ImageSlide.md b/sdks/marketingsolutions_2024-10/docs/ImageSlide.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ImageSlide.md rename to sdks/marketingsolutions_2024-10/docs/ImageSlide.md diff --git a/sdks/marketingsolutions_2023-07/docs/ImageWriteAttributes.md b/sdks/marketingsolutions_2024-10/docs/ImageWriteAttributes.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ImageWriteAttributes.md rename to sdks/marketingsolutions_2024-10/docs/ImageWriteAttributes.md diff --git a/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1.md b/sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentBrandEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentBrandEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md b/sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md rename to sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentBrandEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentBrandEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1.md b/sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentInterestEntityV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1.md rename to sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentInterestEntityV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md b/sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md rename to sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1Resource.md b/sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentInterestEntityV1Resource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1Resource.md rename to sdks/marketingsolutions_2024-10/docs/InMarketAudienceSegmentInterestEntityV1Resource.md diff --git a/sdks/marketingsolutions_2023-07/docs/InMarketCreateV1.md b/sdks/marketingsolutions_2024-10/docs/InMarketCreateV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/InMarketCreateV1.md rename to sdks/marketingsolutions_2024-10/docs/InMarketCreateV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/InMarketSizeEstimationV1.md b/sdks/marketingsolutions_2024-10/docs/InMarketSizeEstimationV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/InMarketSizeEstimationV1.md rename to sdks/marketingsolutions_2024-10/docs/InMarketSizeEstimationV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/InMarketUpdateV1.md b/sdks/marketingsolutions_2024-10/docs/InMarketUpdateV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/InMarketUpdateV1.md rename to sdks/marketingsolutions_2024-10/docs/InMarketUpdateV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/InMarketV1.md b/sdks/marketingsolutions_2024-10/docs/InMarketV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/InMarketV1.md rename to sdks/marketingsolutions_2024-10/docs/InMarketV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/LocationCreateV1.md b/sdks/marketingsolutions_2024-10/docs/LocationCreateV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/LocationCreateV1.md rename to sdks/marketingsolutions_2024-10/docs/LocationCreateV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/LocationSizeEstimationV1.md b/sdks/marketingsolutions_2024-10/docs/LocationSizeEstimationV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/LocationSizeEstimationV1.md rename to sdks/marketingsolutions_2024-10/docs/LocationSizeEstimationV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/LocationUpdateV1.md b/sdks/marketingsolutions_2024-10/docs/LocationUpdateV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/LocationUpdateV1.md rename to sdks/marketingsolutions_2024-10/docs/LocationUpdateV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/LocationV1.md b/sdks/marketingsolutions_2024-10/docs/LocationV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/LocationV1.md rename to sdks/marketingsolutions_2024-10/docs/LocationV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/LookalikeCreateV1.md b/sdks/marketingsolutions_2024-10/docs/LookalikeCreateV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/LookalikeCreateV1.md rename to sdks/marketingsolutions_2024-10/docs/LookalikeCreateV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/LookalikeUpdateV1.md b/sdks/marketingsolutions_2024-10/docs/LookalikeUpdateV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/LookalikeUpdateV1.md rename to sdks/marketingsolutions_2024-10/docs/LookalikeUpdateV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/LookalikeV1.md b/sdks/marketingsolutions_2024-10/docs/LookalikeV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/LookalikeV1.md rename to sdks/marketingsolutions_2024-10/docs/LookalikeV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/ModifyAudienceResponse.md b/sdks/marketingsolutions_2024-10/docs/ModifyAudienceResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ModifyAudienceResponse.md rename to sdks/marketingsolutions_2024-10/docs/ModifyAudienceResponse.md diff --git a/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV24Q1.md b/sdks/marketingsolutions_2024-10/docs/NillableAdSetTargetingRuleV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/NillableAdSetTargetingRuleV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV24Q1Value.md b/sdks/marketingsolutions_2024-10/docs/NillableAdSetTargetingRuleV24Q1Value.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV24Q1Value.md rename to sdks/marketingsolutions_2024-10/docs/NillableAdSetTargetingRuleV24Q1Value.md diff --git a/sdks/marketingsolutions_2023-07/docs/NillableDateTime.md b/sdks/marketingsolutions_2024-10/docs/NillableDateTime.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/NillableDateTime.md rename to sdks/marketingsolutions_2024-10/docs/NillableDateTime.md diff --git a/sdks/marketingsolutions_2023-07/docs/NillableDecimal.md b/sdks/marketingsolutions_2024-10/docs/NillableDecimal.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/NillableDecimal.md rename to sdks/marketingsolutions_2024-10/docs/NillableDecimal.md diff --git a/sdks/marketingsolutions_2023-07/docs/NillableGenderV1.md b/sdks/marketingsolutions_2024-10/docs/NillableGenderV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/NillableGenderV1.md rename to sdks/marketingsolutions_2024-10/docs/NillableGenderV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/NillableInt32.md b/sdks/marketingsolutions_2024-10/docs/NillableInt32.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/NillableInt32.md rename to sdks/marketingsolutions_2024-10/docs/NillableInt32.md diff --git a/sdks/marketingsolutions_2023-07/docs/NillableString.md b/sdks/marketingsolutions_2024-10/docs/NillableString.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/NillableString.md rename to sdks/marketingsolutions_2024-10/docs/NillableString.md diff --git a/sdks/marketingsolutions_2023-07/docs/Outcome.md b/sdks/marketingsolutions_2024-10/docs/Outcome.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/Outcome.md rename to sdks/marketingsolutions_2024-10/docs/Outcome.md diff --git a/sdks/marketingsolutions_preview/docs/PatchAdSetBiddingV24Q1.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetBiddingV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/PatchAdSetBiddingV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetBiddingV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/PatchAdSetBudgetV24Q1.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetBudgetV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/PatchAdSetBudgetV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetBudgetV24Q1.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBid.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetCategoryBid.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBid.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetCategoryBid.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidListRequest.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetCategoryBidListRequest.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidListRequest.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetCategoryBidListRequest.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResource.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetCategoryBidResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResource.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetCategoryBidResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultListResponse.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetCategoryBidResultListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultListResponse.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetCategoryBidResultListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultResource.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetCategoryBidResultResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultResource.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetCategoryBidResultResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplier.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetDisplayMultiplier.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplier.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetDisplayMultiplier.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierListRequest.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetDisplayMultiplierListRequest.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierListRequest.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetDisplayMultiplierListRequest.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResource.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetDisplayMultiplierResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResource.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetDisplayMultiplierResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultResource.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetDisplayMultiplierResultResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultResource.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetDisplayMultiplierResultResource.md diff --git a/sdks/marketingsolutions_preview/docs/PatchAdSetSchedulingV24Q1.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetSchedulingV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/PatchAdSetSchedulingV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetSchedulingV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/PatchAdSetV24Q1.md b/sdks/marketingsolutions_2024-10/docs/PatchAdSetV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/PatchAdSetV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/PatchAdSetV24Q1.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchCampaign.md b/sdks/marketingsolutions_2024-10/docs/PatchCampaign.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchCampaign.md rename to sdks/marketingsolutions_2024-10/docs/PatchCampaign.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchCampaignListRequest.md b/sdks/marketingsolutions_2024-10/docs/PatchCampaignListRequest.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchCampaignListRequest.md rename to sdks/marketingsolutions_2024-10/docs/PatchCampaignListRequest.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchCampaignSpendLimit.md b/sdks/marketingsolutions_2024-10/docs/PatchCampaignSpendLimit.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchCampaignSpendLimit.md rename to sdks/marketingsolutions_2024-10/docs/PatchCampaignSpendLimit.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchCampaignWriteResource.md b/sdks/marketingsolutions_2024-10/docs/PatchCampaignWriteResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchCampaignWriteResource.md rename to sdks/marketingsolutions_2024-10/docs/PatchCampaignWriteResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignListResponse.md b/sdks/marketingsolutions_2024-10/docs/PatchResultCampaignListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchResultCampaignListResponse.md rename to sdks/marketingsolutions_2024-10/docs/PatchResultCampaignListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignReadResource.md b/sdks/marketingsolutions_2024-10/docs/PatchResultCampaignReadResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PatchResultCampaignReadResource.md rename to sdks/marketingsolutions_2024-10/docs/PatchResultCampaignReadResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessage.md b/sdks/marketingsolutions_2024-10/docs/PlacementsReportQueryMessage.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessage.md rename to sdks/marketingsolutions_2024-10/docs/PlacementsReportQueryMessage.md diff --git a/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2024-10/docs/PlacementsReportQueryMessageListRequest.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessageListRequest.md rename to sdks/marketingsolutions_2024-10/docs/PlacementsReportQueryMessageListRequest.md diff --git a/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessageResource.md b/sdks/marketingsolutions_2024-10/docs/PlacementsReportQueryMessageResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessageResource.md rename to sdks/marketingsolutions_2024-10/docs/PlacementsReportQueryMessageResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/PointOfInterestV1.md b/sdks/marketingsolutions_2024-10/docs/PointOfInterestV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PointOfInterestV1.md rename to sdks/marketingsolutions_2024-10/docs/PointOfInterestV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/PortfolioMessage.md b/sdks/marketingsolutions_2024-10/docs/PortfolioMessage.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/PortfolioMessage.md rename to sdks/marketingsolutions_2024-10/docs/PortfolioMessage.md diff --git a/sdks/marketingsolutions_2023-07/docs/ProspectingCreateV1.md b/sdks/marketingsolutions_2024-10/docs/ProspectingCreateV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ProspectingCreateV1.md rename to sdks/marketingsolutions_2024-10/docs/ProspectingCreateV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/ProspectingUpdateV1.md b/sdks/marketingsolutions_2024-10/docs/ProspectingUpdateV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ProspectingUpdateV1.md rename to sdks/marketingsolutions_2024-10/docs/ProspectingUpdateV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/ProspectingV1.md b/sdks/marketingsolutions_2024-10/docs/ProspectingV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ProspectingV1.md rename to sdks/marketingsolutions_2024-10/docs/ProspectingV1.md diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSetBiddingV24Q1.md b/sdks/marketingsolutions_2024-10/docs/ReadAdSetBiddingV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/ReadAdSetBiddingV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/ReadAdSetBiddingV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSetBudgetV24Q1.md b/sdks/marketingsolutions_2024-10/docs/ReadAdSetBudgetV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/ReadAdSetBudgetV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/ReadAdSetBudgetV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSetScheduleV24Q1.md b/sdks/marketingsolutions_2024-10/docs/ReadAdSetScheduleV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/ReadAdSetScheduleV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/ReadAdSetScheduleV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSetV24Q1.md b/sdks/marketingsolutions_2024-10/docs/ReadAdSetV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/ReadAdSetV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/ReadAdSetV24Q1.md diff --git a/sdks/marketingsolutions_2023-07/docs/ReadModelAdSetId.md b/sdks/marketingsolutions_2024-10/docs/ReadModelAdSetId.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ReadModelAdSetId.md rename to sdks/marketingsolutions_2024-10/docs/ReadModelAdSetId.md diff --git a/sdks/marketingsolutions_preview/docs/ReadModelAdSetIdV24Q1.md b/sdks/marketingsolutions_2024-10/docs/ReadModelAdSetIdV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/ReadModelAdSetIdV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/ReadModelAdSetIdV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/ReadModelReadAdSetV24Q1.md b/sdks/marketingsolutions_2024-10/docs/ReadModelReadAdSetV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/ReadModelReadAdSetV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/ReadModelReadAdSetV24Q1.md diff --git a/sdks/marketingsolutions_2023-07/docs/RequestsAdSetId.md b/sdks/marketingsolutions_2024-10/docs/RequestsAdSetId.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/RequestsAdSetId.md rename to sdks/marketingsolutions_2024-10/docs/RequestsAdSetId.md diff --git a/sdks/marketingsolutions_preview/docs/RequestsPatchAdSetV24Q1.md b/sdks/marketingsolutions_2024-10/docs/RequestsPatchAdSetV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/RequestsPatchAdSetV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/RequestsPatchAdSetV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/ResponseReadAdSetV24Q1.md b/sdks/marketingsolutions_2024-10/docs/ResponseReadAdSetV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/ResponseReadAdSetV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/ResponseReadAdSetV24Q1.md diff --git a/sdks/marketingsolutions_2023-07/docs/ResponsesAdSetId.md b/sdks/marketingsolutions_2024-10/docs/ResponsesAdSetId.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/ResponsesAdSetId.md rename to sdks/marketingsolutions_2024-10/docs/ResponsesAdSetId.md diff --git a/sdks/marketingsolutions_preview/docs/ResponsesAdSetIdV24Q1.md b/sdks/marketingsolutions_2024-10/docs/ResponsesAdSetIdV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/ResponsesAdSetIdV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/ResponsesAdSetIdV24Q1.md diff --git a/sdks/marketingsolutions_preview/docs/ResponsesReadAdSetV24Q1.md b/sdks/marketingsolutions_2024-10/docs/ResponsesReadAdSetV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/ResponsesReadAdSetV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/ResponsesReadAdSetV24Q1.md diff --git a/sdks/marketingsolutions_2023-07/docs/RetargetingCreateV1.md b/sdks/marketingsolutions_2024-10/docs/RetargetingCreateV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/RetargetingCreateV1.md rename to sdks/marketingsolutions_2024-10/docs/RetargetingCreateV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/RetargetingUpdateV1.md b/sdks/marketingsolutions_2024-10/docs/RetargetingUpdateV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/RetargetingUpdateV1.md rename to sdks/marketingsolutions_2024-10/docs/RetargetingUpdateV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/RetargetingV1.md b/sdks/marketingsolutions_2024-10/docs/RetargetingV1.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/RetargetingV1.md rename to sdks/marketingsolutions_2024-10/docs/RetargetingV1.md diff --git a/sdks/marketingsolutions_2023-07/docs/Size.md b/sdks/marketingsolutions_2024-10/docs/Size.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/Size.md rename to sdks/marketingsolutions_2024-10/docs/Size.md diff --git a/sdks/marketingsolutions_2023-07/docs/StatisticsReportQueryMessage.md b/sdks/marketingsolutions_2024-10/docs/StatisticsReportQueryMessage.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/StatisticsReportQueryMessage.md rename to sdks/marketingsolutions_2024-10/docs/StatisticsReportQueryMessage.md diff --git a/sdks/marketingsolutions_2023-07/docs/Tag.md b/sdks/marketingsolutions_2024-10/docs/Tag.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/Tag.md rename to sdks/marketingsolutions_2024-10/docs/Tag.md diff --git a/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessage.md b/sdks/marketingsolutions_2024-10/docs/TransactionsReportQueryMessage.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessage.md rename to sdks/marketingsolutions_2024-10/docs/TransactionsReportQueryMessage.md diff --git a/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2024-10/docs/TransactionsReportQueryMessageListRequest.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessageListRequest.md rename to sdks/marketingsolutions_2024-10/docs/TransactionsReportQueryMessageListRequest.md diff --git a/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessageResource.md b/sdks/marketingsolutions_2024-10/docs/TransactionsReportQueryMessageResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessageResource.md rename to sdks/marketingsolutions_2024-10/docs/TransactionsReportQueryMessageResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/TransparencyQueryMessage.md b/sdks/marketingsolutions_2024-10/docs/TransparencyQueryMessage.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/TransparencyQueryMessage.md rename to sdks/marketingsolutions_2024-10/docs/TransparencyQueryMessage.md diff --git a/sdks/marketingsolutions_2023-07/docs/TransparencyReport.md b/sdks/marketingsolutions_2024-10/docs/TransparencyReport.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/TransparencyReport.md rename to sdks/marketingsolutions_2024-10/docs/TransparencyReport.md diff --git a/sdks/marketingsolutions_2023-07/docs/TransparencyReportFile.md b/sdks/marketingsolutions_2024-10/docs/TransparencyReportFile.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/TransparencyReportFile.md rename to sdks/marketingsolutions_2024-10/docs/TransparencyReportFile.md diff --git a/sdks/marketingsolutions_2023-07/docs/TransparencyReportListResponse.md b/sdks/marketingsolutions_2024-10/docs/TransparencyReportListResponse.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/TransparencyReportListResponse.md rename to sdks/marketingsolutions_2024-10/docs/TransparencyReportListResponse.md diff --git a/sdks/marketingsolutions_2023-07/docs/TransparencyReportResource.md b/sdks/marketingsolutions_2024-10/docs/TransparencyReportResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/TransparencyReportResource.md rename to sdks/marketingsolutions_2024-10/docs/TransparencyReportResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/UpdateCoupon.md b/sdks/marketingsolutions_2024-10/docs/UpdateCoupon.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/UpdateCoupon.md rename to sdks/marketingsolutions_2024-10/docs/UpdateCoupon.md diff --git a/sdks/marketingsolutions_2023-07/docs/UpdateCouponRequest.md b/sdks/marketingsolutions_2024-10/docs/UpdateCouponRequest.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/UpdateCouponRequest.md rename to sdks/marketingsolutions_2024-10/docs/UpdateCouponRequest.md diff --git a/sdks/marketingsolutions_2023-07/docs/UpdateCouponResource.md b/sdks/marketingsolutions_2024-10/docs/UpdateCouponResource.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/UpdateCouponResource.md rename to sdks/marketingsolutions_2024-10/docs/UpdateCouponResource.md diff --git a/sdks/marketingsolutions_2023-07/docs/VideoDetail.md b/sdks/marketingsolutions_2024-10/docs/VideoDetail.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/VideoDetail.md rename to sdks/marketingsolutions_2024-10/docs/VideoDetail.md diff --git a/sdks/marketingsolutions_2023-07/docs/WriteModelAdSetId.md b/sdks/marketingsolutions_2024-10/docs/WriteModelAdSetId.md similarity index 100% rename from sdks/marketingsolutions_2023-07/docs/WriteModelAdSetId.md rename to sdks/marketingsolutions_2024-10/docs/WriteModelAdSetId.md diff --git a/sdks/marketingsolutions_preview/docs/WriteModelPatchAdSetV24Q1.md b/sdks/marketingsolutions_2024-10/docs/WriteModelPatchAdSetV24Q1.md similarity index 100% rename from sdks/marketingsolutions_preview/docs/WriteModelPatchAdSetV24Q1.md rename to sdks/marketingsolutions_2024-10/docs/WriteModelPatchAdSetV24Q1.md diff --git a/sdks/marketingsolutions_2023-07/gradle/wrapper/gradle-wrapper.jar b/sdks/marketingsolutions_2024-10/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from sdks/marketingsolutions_2023-07/gradle/wrapper/gradle-wrapper.jar rename to sdks/marketingsolutions_2024-10/gradle/wrapper/gradle-wrapper.jar diff --git a/sdks/marketingsolutions_2023-07/gradle/wrapper/gradle-wrapper.properties b/sdks/marketingsolutions_2024-10/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from sdks/marketingsolutions_2023-07/gradle/wrapper/gradle-wrapper.properties rename to sdks/marketingsolutions_2024-10/gradle/wrapper/gradle-wrapper.properties diff --git a/sdks/marketingsolutions_2023-07/gradlew b/sdks/marketingsolutions_2024-10/gradlew similarity index 100% rename from sdks/marketingsolutions_2023-07/gradlew rename to sdks/marketingsolutions_2024-10/gradlew diff --git a/sdks/marketingsolutions_2023-07/gradlew.bat b/sdks/marketingsolutions_2024-10/gradlew.bat similarity index 100% rename from sdks/marketingsolutions_2023-07/gradlew.bat rename to sdks/marketingsolutions_2024-10/gradlew.bat diff --git a/sdks/marketingsolutions_2023-07/settings.gradle b/sdks/marketingsolutions_2024-10/settings.gradle similarity index 100% rename from sdks/marketingsolutions_2023-07/settings.gradle rename to sdks/marketingsolutions_2024-10/settings.gradle diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiCallback.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiCallback.java similarity index 94% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiCallback.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiCallback.java index 45d5798d..a8e14569 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiCallback.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiCallback.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import java.io.IOException; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClient.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiClient.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClient.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiClient.java index 9ed64bc8..285b0d65 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClient.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiClient.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import okhttp3.*; import okhttp3.internal.http.HttpMethod; @@ -52,13 +52,13 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import com.criteo.api.marketingsolutions.v2023_07.auth.Authentication; -import com.criteo.api.marketingsolutions.v2023_07.auth.HttpBasicAuth; -import com.criteo.api.marketingsolutions.v2023_07.auth.HttpBearerAuth; -import com.criteo.api.marketingsolutions.v2023_07.auth.ApiKeyAuth; -import com.criteo.api.marketingsolutions.v2023_07.auth.OAuth; -import com.criteo.api.marketingsolutions.v2023_07.auth.RetryingOAuth; -import com.criteo.api.marketingsolutions.v2023_07.auth.OAuthFlow; +import com.criteo.api.marketingsolutions.v2024_10.auth.Authentication; +import com.criteo.api.marketingsolutions.v2024_10.auth.HttpBasicAuth; +import com.criteo.api.marketingsolutions.v2024_10.auth.HttpBearerAuth; +import com.criteo.api.marketingsolutions.v2024_10.auth.ApiKeyAuth; +import com.criteo.api.marketingsolutions.v2024_10.auth.OAuth; +import com.criteo.api.marketingsolutions.v2024_10.auth.RetryingOAuth; +import com.criteo.api.marketingsolutions.v2024_10.auth.OAuthFlow; /** *

ApiClient class.

@@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2023.07.0.240826/java"); + setUserAgent("OpenAPI-Generator/2024.10.0.241029/java"); authentications = new HashMap(); } @@ -386,7 +386,7 @@ public DateFormat getDateFormat() { *

Setter for the field dateFormat.

* * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.criteo.api.marketingsolutions.v2023_07.ApiClient} object + * @return a {@link com.criteo.api.marketingsolutions.v2024_10.ApiClient} object */ public ApiClient setDateFormat(DateFormat dateFormat) { JSON.setDateFormat(dateFormat); @@ -397,7 +397,7 @@ public ApiClient setDateFormat(DateFormat dateFormat) { *

Set SqlDateFormat.

* * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.criteo.api.marketingsolutions.v2023_07.ApiClient} object + * @return a {@link com.criteo.api.marketingsolutions.v2024_10.ApiClient} object */ public ApiClient setSqlDateFormat(DateFormat dateFormat) { JSON.setSqlDateFormat(dateFormat); @@ -408,7 +408,7 @@ public ApiClient setSqlDateFormat(DateFormat dateFormat) { *

Set OffsetDateTimeFormat.

* * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.criteo.api.marketingsolutions.v2023_07.ApiClient} object + * @return a {@link com.criteo.api.marketingsolutions.v2024_10.ApiClient} object */ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { JSON.setOffsetDateTimeFormat(dateFormat); @@ -419,7 +419,7 @@ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { *

Set LocalDateFormat.

* * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.criteo.api.marketingsolutions.v2023_07.ApiClient} object + * @return a {@link com.criteo.api.marketingsolutions.v2024_10.ApiClient} object */ public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { JSON.setLocalDateFormat(dateFormat); @@ -430,7 +430,7 @@ public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { *

Set LenientOnJson.

* * @param lenientOnJson a boolean - * @return a {@link com.criteo.api.marketingsolutions.v2023_07.ApiClient} object + * @return a {@link com.criteo.api.marketingsolutions.v2024_10.ApiClient} object */ public ApiClient setLenientOnJson(boolean lenientOnJson) { JSON.setLenientOnJson(lenientOnJson); @@ -944,7 +944,7 @@ public String escapeString(String str) { * @param response HTTP response * @param returnType The type of the Java object * @return The deserialized Java object - * @throws com.criteo.api.marketingsolutions.v2023_07.ApiException If fail to deserialize response body, i.e. cannot read response body + * @throws com.criteo.api.marketingsolutions.v2024_10.ApiException If fail to deserialize response body, i.e. cannot read response body * or the Content-Type of the response is not supported. */ @SuppressWarnings("unchecked") @@ -1005,7 +1005,7 @@ public T deserialize(Response response, Type returnType) throws ApiException * @param obj The Java object * @param contentType The request Content-Type * @return The serialized request body - * @throws com.criteo.api.marketingsolutions.v2023_07.ApiException If fail to serialize the given object + * @throws com.criteo.api.marketingsolutions.v2024_10.ApiException If fail to serialize the given object */ public RequestBody serialize(Object obj, String contentType) throws ApiException { if (obj instanceof byte[]) { @@ -1035,7 +1035,7 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException * Download file from the given response. * * @param response An instance of the Response object - * @throws com.criteo.api.marketingsolutions.v2023_07.ApiException If fail to read file content from response and write to disk + * @throws com.criteo.api.marketingsolutions.v2024_10.ApiException If fail to read file content from response and write to disk * @return Downloaded file */ public File downloadFileFromResponse(Response response) throws ApiException { @@ -1099,7 +1099,7 @@ public File prepareDownloadFile(Response response) throws IOException { * @param Type * @param call An instance of the Call object * @return ApiResponse<T> - * @throws com.criteo.api.marketingsolutions.v2023_07.ApiException If fail to execute the call + * @throws com.criteo.api.marketingsolutions.v2024_10.ApiException If fail to execute the call */ public ApiResponse execute(Call call) throws ApiException { return execute(call, null); @@ -1114,7 +1114,7 @@ public ApiResponse execute(Call call) throws ApiException { * @return ApiResponse object containing response status, headers and * data, which is a Java object deserialized from response body and would be null * when returnType is null. - * @throws com.criteo.api.marketingsolutions.v2023_07.ApiException If fail to execute the call + * @throws com.criteo.api.marketingsolutions.v2024_10.ApiException If fail to execute the call */ public ApiResponse execute(Call call, Type returnType) throws ApiException { try { @@ -1178,7 +1178,7 @@ public void onResponse(Call call, Response response) throws IOException { * @param response Response * @param returnType Return type * @return Type - * @throws com.criteo.api.marketingsolutions.v2023_07.ApiException If the response has an unsuccessful status code or + * @throws com.criteo.api.marketingsolutions.v2024_10.ApiException If the response has an unsuccessful status code or * fail to deserialize the response body */ public T handleResponse(Response response, Type returnType) throws ApiException { @@ -1225,7 +1225,7 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept * @param authNames The authentications to apply * @param callback Callback for upload/download progress * @return The HTTP call - * @throws com.criteo.api.marketingsolutions.v2023_07.ApiException If fail to serialize the request body object + * @throws com.criteo.api.marketingsolutions.v2024_10.ApiException If fail to serialize the request body object */ public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); @@ -1248,7 +1248,7 @@ public Call buildCall(String baseUrl, String path, String method, List que * @param authNames The authentications to apply * @param callback Callback for upload/download progress * @return The HTTP request - * @throws com.criteo.api.marketingsolutions.v2023_07.ApiException If fail to serialize the request body object + * @throws com.criteo.api.marketingsolutions.v2024_10.ApiException If fail to serialize the request body object */ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams @@ -1411,7 +1411,7 @@ public void processCookieParams(Map cookieParams, Request.Builde * @param payload HTTP request body * @param method HTTP method * @param uri URI - * @throws com.criteo.api.marketingsolutions.v2023_07.ApiException If fails to update the parameters + * @throws com.criteo.api.marketingsolutions.v2024_10.ApiException If fails to update the parameters */ public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { @@ -1622,7 +1622,7 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti * * @param requestBody The HTTP request object * @return The string representation of the HTTP request body - * @throws com.criteo.api.marketingsolutions.v2023_07.ApiException If fail to serialize the request body object into a string + * @throws com.criteo.api.marketingsolutions.v2024_10.ApiException If fail to serialize the request body object into a string */ private String requestBodyToString(RequestBody requestBody) throws ApiException { if (requestBody != null) { diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClientBuilder.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiClientBuilder.java similarity index 87% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClientBuilder.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiClientBuilder.java index 3829b50a..9af02e74 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClientBuilder.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiClientBuilder.java @@ -1,4 +1,4 @@ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import java.util.Map; import java.util.HashMap; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiException.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiException.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiException.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiException.java index bdf2eeb9..e102360c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiException.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiException.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import java.util.Map; import java.util.List; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiResponse.java similarity index 94% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiResponse.java index 280c38d9..5b480c51 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ApiResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import java.util.List; import java.util.Map; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/Configuration.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/Configuration.java similarity index 90% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/Configuration.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/Configuration.java index 521ad4c8..65e35c6a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/Configuration.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/Configuration.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/GzipRequestInterceptor.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/GzipRequestInterceptor.java similarity index 96% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/GzipRequestInterceptor.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/GzipRequestInterceptor.java index 39db0cd9..15c1b192 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/GzipRequestInterceptor.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import okhttp3.*; import okio.Buffer; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/JSON.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/JSON.java similarity index 65% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/JSON.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/JSON.java index 6f9aa39a..7f4d2eba 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/JSON.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/JSON.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -93,263 +93,250 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.Ad.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetAudienceLinkEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetAudienceLinkEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetAudienceLinkEntityV1Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetAudienceLinkInputEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetCategoryBid.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetCategoryBidListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetCategoryBidResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetDeliveryLimitations.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetDisplayMultiplier.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetDisplayMultiplierListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetDisplayMultiplierResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetFrequencyCapping.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetGeoLocation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetSearchFilter.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetTargeting.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdSetTargetingRule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdWrite.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdWriteRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdWriteResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdaptiveAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdaptiveColors.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AdaptiveWriteAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AlgebraNodeV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ApplicationSummaryModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ApplicationSummaryModelResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ApplicationSummaryModelResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.Audience.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceBulkCreateInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceBulkDeleteInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceBulkUpdateInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceComputeSizeEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceComputeSizesInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceCreateEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceCreateEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceDeleteEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceEntityV1AudienceSearchMetadataV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceEntityV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceError.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceEstimateSizeEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceEstimateSizeEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceEstimateSizeInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceIdEntityV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceIdEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceNameDescription.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSearchEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSearchEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSearchInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSearchMetadataV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentBulkCreateInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentBulkDeleteInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentBulkUpdateInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentComputeSizeEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentComputeSizesInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentCreateEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentCreateEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentDeleteEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentEntityV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentEstimateSizeInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentIdEntityV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentIdEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSearchEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSearchEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSearchInputV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSearchMetadataV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEntityV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEstimationEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEstimationEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEstimationV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEstimationV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEstimationV1Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentUpdateEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentUpdateEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEntityV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEstimationV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEstimationV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEstimationV1Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceUpdateEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceUpdateEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.AudienceWarning.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.BasicAudienceDefinition.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.BehavioralV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.Campaign.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CampaignListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CampaignReadResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CampaignResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CampaignSearchFilters.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CampaignSearchRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CampaignSpendLimit.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CampaignSpendLimitV23Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CampaignV23Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CampaignV23Q1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CampaignV23Q1Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ContactListStatisticsEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ContactListStatisticsEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ContactListStatisticsEntityV1Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ContactListV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ContactlistAmendment.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ContactlistAmendmentAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ContactlistAmendmentRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ContactlistOperation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ContactlistOperationAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.Coupon.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CouponListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CouponResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CouponResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CouponSupportedSizes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CouponSupportedSizesResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CouponSupportedSizesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetBidding.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetBudget.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetGeoLocation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetSchedule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetTargeting.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateCampaign.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateCampaignRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateCampaignResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateCampaignSpendLimit.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateCoupon.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateCouponRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateCouponResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreateImageSlide.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.Creative.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreativeListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreativeResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreativeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreativeWrite.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreativeWriteRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CreativeWriteResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CriteoApiError.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.CriteoApiWarning.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.DeleteAudienceContactListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.DeleteAudienceResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.DynamicAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.DynamicWriteAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.EntityOfPortfolioMessage.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ErrorCodeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.GetAudiencesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.GetPortfolioResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.HtmlTagAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.HtmlTagWriteAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ImageAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ImageSet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ImageSetBase64.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ImageShape.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ImageSlide.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ImageWriteAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentBrandEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentBrandEntityV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentBrandEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentInterestEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentInterestEntityV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentInterestEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.InMarketCreateV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.InMarketSizeEstimationV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.InMarketUpdateV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.InMarketV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.LocationCreateV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.LocationSizeEstimationV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.LocationUpdateV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.LocationV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.LookalikeCreateV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.LookalikeUpdateV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.LookalikeV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ModifyAudienceResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.NewAudience.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.NewAudienceAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.NewAudienceRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.NewAudienceResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.NillableAdSetTargetingRule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.NillableAdSetTargetingRuleValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.NillableDateTime.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.NillableDecimal.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.NillableGenderV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.NillableInt32.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.NillableString.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.Outcome.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetBidding.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetBudget.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetCategoryBid.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetCategoryBidListRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetCategoryBidResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetCategoryBidResultListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetCategoryBidResultResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetDisplayMultiplier.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetDisplayMultiplierListRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetDisplayMultiplierResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetDisplayMultiplierResultListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetDisplayMultiplierResultResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetScheduling.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchCampaign.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchCampaignListRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchCampaignSpendLimit.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchCampaignWriteResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchResultCampaignListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PatchResultCampaignReadResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PlacementsReportQueryMessage.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PlacementsReportQueryMessageListRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PlacementsReportQueryMessageResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PointOfInterestV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.PortfolioMessage.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ProspectingCreateV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ProspectingUpdateV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ProspectingV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ReadAdSet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ReadAdSetBidding.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ReadAdSetBudget.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ReadAdSetSchedule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ReadModelAdSetId.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ReadModelReadAdSet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ReplaceAudience.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ReplaceAudienceRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ReplaceAudienceResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.RequestAdSetSearch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.RequestsAdSetId.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.RequestsPatchAdSet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ResponseReadAdSet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ResponsesAdSetId.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.ResponsesReadAdSet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.RetargetingCreateV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.RetargetingUpdateV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.RetargetingV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.Size.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.StatisticsReportQueryMessage.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.Tag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.TransactionsReportQueryMessage.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.TransactionsReportQueryMessageListRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.TransactionsReportQueryMessageResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.TransparencyQueryMessage.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.TransparencyReport.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.TransparencyReportFile.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.TransparencyReportListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.TransparencyReportResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.UpdateCoupon.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.UpdateCouponRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.UpdateCouponResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.VideoDetail.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.WriteModelAdSetId.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2023_07.model.WriteModelPatchAdSet.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.Ad.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetAudienceLinkEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetAudienceLinkEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetAudienceLinkEntityV1Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetAudienceLinkInputEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetCategoryBid.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetCategoryBidListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetCategoryBidResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetDeliveryLimitationsV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetDisplayMultiplier.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetDisplayMultiplierListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetDisplayMultiplierResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetFrequencyCappingV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetGeoLocationV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetSearchFilterV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetSearchRequestV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetTargetingRuleV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdSetTargetingV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdWrite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdWriteRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdWriteResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdaptiveAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdaptiveColors.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AdaptiveWriteAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AlgebraNodeV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ApplicationSummaryModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ApplicationSummaryModelResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ApplicationSummaryModelResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceBulkCreateInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceBulkDeleteInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceBulkUpdateInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceComputeSizeEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceComputeSizesInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceCreateEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceCreateEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceDeleteEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceEntityV1AudienceSearchMetadataV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceEntityV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceEstimateSizeEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceEstimateSizeEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceEstimateSizeInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceIdEntityV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceIdEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceNameDescription.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSearchEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSearchEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSearchInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSearchMetadataV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentBulkCreateInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentBulkDeleteInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentBulkUpdateInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentComputeSizeEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentComputeSizesInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentCreateEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentCreateEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentDeleteEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentEntityV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentEstimateSizeInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentIdEntityV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentIdEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSearchEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSearchEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSearchInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSearchMetadataV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEntityV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEstimationEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEstimationEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEstimationV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEstimationV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEstimationV1Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentUpdateEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentUpdateEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEntityV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEstimationV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEstimationV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEstimationV1Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceUpdateEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceUpdateEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.AudienceWarning.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.BasicAudienceDefinition.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.BehavioralV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CampaignSearchFiltersV23Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CampaignSearchRequestV23Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CampaignSpendLimitV23Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CampaignV23Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CampaignV23Q1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CampaignV23Q1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CampaignV23Q1Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ContactListStatisticsEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ContactListStatisticsEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ContactListStatisticsEntityV1Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ContactListV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ContactlistAmendment.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ContactlistAmendmentAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ContactlistAmendmentRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ContactlistOperation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ContactlistOperationAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.Coupon.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CouponListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CouponResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CouponResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CouponSupportedSizes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CouponSupportedSizesResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CouponSupportedSizesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetBiddingV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetBudgetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetGeoLocationV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetScheduleV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetTargetingV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetV24Q1Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetV24Q1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateCampaign.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateCampaignRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateCampaignResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateCampaignSpendLimit.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateCoupon.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateCouponRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateCouponResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreateImageSlide.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.Creative.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreativeListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreativeResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreativeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreativeWrite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreativeWriteRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CreativeWriteResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CriteoApiError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.CriteoApiWarning.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.DeleteAudienceContactListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.DynamicAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.DynamicWriteAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.EntityOfPortfolioMessage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ErrorCodeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.GetPortfolioResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.HtmlTagAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.HtmlTagWriteAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ImageAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ImageSet.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ImageSetBase64.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ImageShape.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ImageSlide.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ImageWriteAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentBrandEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentBrandEntityV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentBrandEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentInterestEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentInterestEntityV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentInterestEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.InMarketCreateV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.InMarketSizeEstimationV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.InMarketUpdateV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.InMarketV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.LocationCreateV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.LocationSizeEstimationV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.LocationUpdateV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.LocationV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.LookalikeCreateV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.LookalikeUpdateV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.LookalikeV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ModifyAudienceResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.NillableAdSetTargetingRuleV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.NillableAdSetTargetingRuleV24Q1Value.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.NillableDateTime.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.NillableDecimal.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.NillableGenderV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.NillableInt32.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.NillableString.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.Outcome.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetBiddingV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetBudgetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetCategoryBid.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetCategoryBidListRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetCategoryBidResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetCategoryBidResultListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetCategoryBidResultResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetDisplayMultiplier.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetDisplayMultiplierListRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetDisplayMultiplierResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetDisplayMultiplierResultListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetDisplayMultiplierResultResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetSchedulingV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchCampaign.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchCampaignListRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchCampaignSpendLimit.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchCampaignWriteResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchResultCampaignListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PatchResultCampaignReadResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PlacementsReportQueryMessage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PlacementsReportQueryMessageListRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PlacementsReportQueryMessageResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PointOfInterestV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.PortfolioMessage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ProspectingCreateV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ProspectingUpdateV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ProspectingV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ReadAdSetBiddingV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ReadAdSetBudgetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ReadAdSetScheduleV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ReadAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ReadModelAdSetId.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ReadModelAdSetIdV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ReadModelReadAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.RequestsAdSetId.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.RequestsPatchAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ResponseReadAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ResponsesAdSetId.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ResponsesAdSetIdV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.ResponsesReadAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.RetargetingCreateV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.RetargetingUpdateV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.RetargetingV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.Size.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.StatisticsReportQueryMessage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.Tag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.TransactionsReportQueryMessage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.TransactionsReportQueryMessageListRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.TransactionsReportQueryMessageResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.TransparencyQueryMessage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.TransparencyReport.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.TransparencyReportFile.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.TransparencyReportListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.TransparencyReportResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.UpdateCoupon.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.UpdateCouponRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.UpdateCouponResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.VideoDetail.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.WriteModelAdSetId.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.v2024_10.model.WriteModelPatchAdSetV24Q1.CustomTypeAdapterFactory()); gson = gsonBuilder.create(); } diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/Pair.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/Pair.java similarity index 91% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/Pair.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/Pair.java index 6bb87fed..915fa3e4 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/Pair.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/Pair.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Pair { diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ProgressRequestBody.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ProgressRequestBody.java similarity index 94% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ProgressRequestBody.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ProgressRequestBody.java index b77f9a81..8abc1e7a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ProgressRequestBody.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ProgressRequestBody.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import okhttp3.MediaType; import okhttp3.RequestBody; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ProgressResponseBody.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ProgressResponseBody.java similarity index 94% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ProgressResponseBody.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ProgressResponseBody.java index 6a128fe7..6cb7cef1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ProgressResponseBody.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ProgressResponseBody.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import okhttp3.MediaType; import okhttp3.ResponseBody; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ServerConfiguration.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ServerConfiguration.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ServerConfiguration.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ServerConfiguration.java index cb1def37..086190ec 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ServerConfiguration.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ServerConfiguration.java @@ -1,4 +1,4 @@ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import java.util.Map; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ServerVariable.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ServerVariable.java similarity index 93% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ServerVariable.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ServerVariable.java index b12a11ff..39f4ad59 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ServerVariable.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/ServerVariable.java @@ -1,4 +1,4 @@ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import java.util.HashSet; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/StringUtil.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/StringUtil.java similarity index 95% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/StringUtil.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/StringUtil.java index ac742e2f..872d8e7a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/StringUtil.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/StringUtil.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import java.util.Collection; import java.util.Iterator; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AdvertiserApi.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AdvertiserApi.java similarity index 90% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AdvertiserApi.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AdvertiserApi.java index 7ea7c305..29a9a3ee 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AdvertiserApi.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AdvertiserApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,23 +11,23 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.api; +package com.criteo.api.marketingsolutions.v2024_10.api; -import com.criteo.api.marketingsolutions.v2023_07.ApiCallback; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.ApiResponse; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.Pair; -import com.criteo.api.marketingsolutions.v2023_07.ProgressRequestBody; -import com.criteo.api.marketingsolutions.v2023_07.ProgressResponseBody; +import com.criteo.api.marketingsolutions.v2024_10.ApiCallback; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.ApiResponse; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ProgressRequestBody; +import com.criteo.api.marketingsolutions.v2024_10.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import com.criteo.api.marketingsolutions.v2023_07.model.GetPortfolioResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.GetPortfolioResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -102,7 +102,7 @@ public okhttp3.Call apiPortfolioGetCall(final ApiCallback _callback) throws ApiE Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/advertisers/me"; + String localVarPath = "/2024-10/advertisers/me"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AnalyticsApi.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AnalyticsApi.java similarity index 89% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AnalyticsApi.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AnalyticsApi.java index eca40974..5e2aebac 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AnalyticsApi.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AnalyticsApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,28 +11,29 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.api; +package com.criteo.api.marketingsolutions.v2024_10.api; -import com.criteo.api.marketingsolutions.v2023_07.ApiCallback; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.ApiResponse; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.Pair; -import com.criteo.api.marketingsolutions.v2023_07.ProgressRequestBody; -import com.criteo.api.marketingsolutions.v2023_07.ProgressResponseBody; +import com.criteo.api.marketingsolutions.v2024_10.ApiCallback; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.ApiResponse; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ProgressRequestBody; +import com.criteo.api.marketingsolutions.v2024_10.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import com.criteo.api.marketingsolutions.v2023_07.model.Outcome; -import com.criteo.api.marketingsolutions.v2023_07.model.PlacementsReportQueryMessageListRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.StatisticsReportQueryMessage; -import com.criteo.api.marketingsolutions.v2023_07.model.TransactionsReportQueryMessageListRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.TransparencyQueryMessage; -import com.criteo.api.marketingsolutions.v2023_07.model.TransparencyReportListResponse; +import java.io.File; +import com.criteo.api.marketingsolutions.v2024_10.model.Outcome; +import com.criteo.api.marketingsolutions.v2024_10.model.PlacementsReportQueryMessageListRequest; +import com.criteo.api.marketingsolutions.v2024_10.model.StatisticsReportQueryMessage; +import com.criteo.api.marketingsolutions.v2024_10.model.TransactionsReportQueryMessageListRequest; +import com.criteo.api.marketingsolutions.v2024_10.model.TransparencyQueryMessage; +import com.criteo.api.marketingsolutions.v2024_10.model.TransparencyReportListResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -109,7 +110,7 @@ public okhttp3.Call getAdsetReportCall(StatisticsReportQueryMessage statisticsRe Object localVarPostBody = statisticsReportQueryMessage; // create path and map variables - String localVarPath = "/2023-07/statistics/report"; + String localVarPath = "/2024-10/statistics/report"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -155,7 +156,7 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -165,8 +166,8 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa
403 Forbidden -
*/ - public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { - ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); + public File getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); return localVarResp.getData(); } @@ -174,7 +175,7 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -184,9 +185,9 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM
403 Forbidden -
*/ - public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -205,10 +206,10 @@ public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessa 403 Forbidden - */ - public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -243,7 +244,7 @@ public okhttp3.Call getPlacementsReportCall(PlacementsReportQueryMessageListRequ Object localVarPostBody = placementsReportQueryMessageListRequest; // create path and map variables - String localVarPath = "/2023-07/placements/report"; + String localVarPath = "/2024-10/placements/report"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -255,7 +256,9 @@ public okhttp3.Call getPlacementsReportCall(PlacementsReportQueryMessageListRequ "text/plain", "application/json", "text/json", + "text/csv", "application/xml", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/xml" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); @@ -288,7 +291,7 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -298,8 +301,8 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery
403 Forbidden -
*/ - public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); + public File getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -307,7 +310,7 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -317,9 +320,9 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem
403 Forbidden -
*/ - public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -338,10 +341,10 @@ public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQuery 403 Forbidden - */ - public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -376,7 +379,7 @@ public okhttp3.Call getTransactionsReportCall(TransactionsReportQueryMessageList Object localVarPostBody = transactionsReportQueryMessageListRequest; // create path and map variables - String localVarPath = "/2023-07/transactions/report"; + String localVarPath = "/2024-10/transactions/report"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -422,7 +425,7 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -432,8 +435,8 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ
403 Forbidden -
*/ - public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); + public File getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -441,7 +444,7 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -451,9 +454,9 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr
403 Forbidden -
*/ - public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -472,10 +475,10 @@ public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQ 403 Forbidden - */ - public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -511,7 +514,7 @@ public okhttp3.Call getTransparencyReportCall(Integer advertiserId, Transparency Object localVarPostBody = transparencyQueryMessage; // create path and map variables - String localVarPath = "/2023-07/log-level/advertisers/{advertiser-id}/report" + String localVarPath = "/2024-10/log-level/advertisers/{advertiser-id}/report" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())); List localVarQueryParams = new ArrayList(); diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AudienceApi.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AudienceApi.java similarity index 84% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AudienceApi.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AudienceApi.java index 5f4d6757..afe7f5a3 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/AudienceApi.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/AudienceApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,57 +11,51 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.api; +package com.criteo.api.marketingsolutions.v2024_10.api; -import com.criteo.api.marketingsolutions.v2023_07.ApiCallback; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.ApiResponse; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.Pair; -import com.criteo.api.marketingsolutions.v2023_07.ProgressRequestBody; -import com.criteo.api.marketingsolutions.v2023_07.ProgressResponseBody; +import com.criteo.api.marketingsolutions.v2024_10.ApiCallback; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.ApiResponse; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ProgressRequestBody; +import com.criteo.api.marketingsolutions.v2024_10.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceBulkCreateInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceBulkDeleteInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceBulkUpdateInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceComputeSizesInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceEntityV1AudienceSearchMetadataV1ListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceEntityV1ListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceEstimateSizeInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceIdEntityV1ListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSearchInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentBulkCreateInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentBulkDeleteInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentBulkUpdateInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentComputeSizesInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentEntityV1ListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentEstimateSizeInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentIdEntityV1ListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSearchInputV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEntityV1ListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEstimationV1Response; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEntityV1ListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEstimationV1Response; -import com.criteo.api.marketingsolutions.v2023_07.model.ContactListStatisticsEntityV1Response; -import com.criteo.api.marketingsolutions.v2023_07.model.ContactlistAmendmentRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.DeleteAudienceContactListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.DeleteAudienceResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.ErrorCodeResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.GetAudiencesResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentBrandEntityV1ListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentInterestEntityV1ListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.ModifyAudienceResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.NewAudienceRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.NewAudienceResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.ReplaceAudienceRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.ReplaceAudienceResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceBulkCreateInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceBulkDeleteInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceBulkUpdateInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceComputeSizesInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceEntityV1AudienceSearchMetadataV1ListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceEntityV1ListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceEstimateSizeInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceIdEntityV1ListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSearchInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentBulkCreateInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentBulkDeleteInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentBulkUpdateInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentComputeSizesInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentEntityV1ListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentEstimateSizeInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentIdEntityV1ListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSearchInputV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEntityV1ListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEstimationV1Response; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEntityV1ListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEstimationV1Response; +import com.criteo.api.marketingsolutions.v2024_10.model.ContactListStatisticsEntityV1Response; +import com.criteo.api.marketingsolutions.v2024_10.model.ContactlistAmendmentRequest; +import com.criteo.api.marketingsolutions.v2024_10.model.DeleteAudienceContactListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.ErrorCodeResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentBrandEntityV1ListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentInterestEntityV1ListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.ModifyAudienceResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -139,7 +133,7 @@ public okhttp3.Call bulkCreateAudienceSegmentsCall(AudienceSegmentBulkCreateInpu Object localVarPostBody = audienceSegmentBulkCreateInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audience-segments/create"; + String localVarPath = "/2024-10/marketing-solutions/audience-segments/create"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -279,7 +273,7 @@ public okhttp3.Call bulkCreateAudiencesCall(AudienceBulkCreateInputV1 audienceBu Object localVarPostBody = audienceBulkCreateInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audiences/create"; + String localVarPath = "/2024-10/marketing-solutions/audiences/create"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -419,7 +413,7 @@ public okhttp3.Call bulkDeleteAudienceSegmentsCall(AudienceSegmentBulkDeleteInpu Object localVarPostBody = audienceSegmentBulkDeleteInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audience-segments/delete"; + String localVarPath = "/2024-10/marketing-solutions/audience-segments/delete"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -560,7 +554,7 @@ public okhttp3.Call bulkDeleteAudiencesCall(AudienceBulkDeleteInputV1 audienceBu Object localVarPostBody = audienceBulkDeleteInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audiences/delete"; + String localVarPath = "/2024-10/marketing-solutions/audiences/delete"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -703,7 +697,7 @@ public okhttp3.Call bulkUpdateAudienceSegmentsCall(AudienceSegmentBulkUpdateInpu Object localVarPostBody = audienceSegmentBulkUpdateInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audience-segments"; + String localVarPath = "/2024-10/marketing-solutions/audience-segments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -843,7 +837,7 @@ public okhttp3.Call bulkUpdateAudiencesCall(AudienceBulkUpdateInputV1 audienceBu Object localVarPostBody = audienceBulkUpdateInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audiences"; + String localVarPath = "/2024-10/marketing-solutions/audiences"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -952,21 +946,19 @@ public okhttp3.Call bulkUpdateAudiencesAsync(AudienceBulkUpdateInputV1 audienceB return localVarCall; } /** - * Build call for computeAudienceSegmentsSizes - * @param audienceSegmentComputeSizesInputV1 (required) + * Build call for call10audiencesAudienceSegmentIdContactlistDelete + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 The Contact List was emptied -
403 Forbidden -
*/ - public okhttp3.Call computeAudienceSegmentsSizesCall(AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call10audiencesAudienceSegmentIdContactlistDeleteCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -980,10 +972,11 @@ public okhttp3.Call computeAudienceSegmentsSizesCall(AudienceSegmentComputeSizes basePath = null; } - Object localVarPostBody = audienceSegmentComputeSizesInputV1; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audience-segments/compute-sizes"; + String localVarPath = "/2024-10/audiences/{audience-segment-id}/contactlist" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -992,9 +985,7 @@ public okhttp3.Call computeAudienceSegmentsSizesCall(AudienceSegmentComputeSizes Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1002,10 +993,6 @@ public okhttp3.Call computeAudienceSegmentsSizesCall(AudienceSegmentComputeSizes } final String[] localVarContentTypes = { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1013,100 +1000,94 @@ public okhttp3.Call computeAudienceSegmentsSizesCall(AudienceSegmentComputeSizes } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call computeAudienceSegmentsSizesValidateBeforeCall(AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentComputeSizesInputV1' is set - if (audienceSegmentComputeSizesInputV1 == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentComputeSizesInputV1' when calling computeAudienceSegmentsSizes(Async)"); + private okhttp3.Call call10audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call10audiencesAudienceSegmentIdContactlistDelete(Async)"); } - return computeAudienceSegmentsSizesCall(audienceSegmentComputeSizesInputV1, _callback); + return call10audiencesAudienceSegmentIdContactlistDeleteCall(audienceSegmentId, _callback); } /** * - * Gets the size of all segments. An error is returned for those whose size calculation is not supported. - * @param audienceSegmentComputeSizesInputV1 (required) - * @return AudienceSegmentSizeEntityV1ListResponse + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return DeleteAudienceContactListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - - + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 The Contact List was emptied -
403 Forbidden -
*/ - public AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1) throws ApiException { - ApiResponse localVarResp = computeAudienceSegmentsSizesWithHttpInfo(audienceSegmentComputeSizesInputV1); + public DeleteAudienceContactListResponse call10audiencesAudienceSegmentIdContactlistDelete(String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = call10audiencesAudienceSegmentIdContactlistDeleteWithHttpInfo(audienceSegmentId); return localVarResp.getData(); } /** * - * Gets the size of all segments. An error is returned for those whose size calculation is not supported. - * @param audienceSegmentComputeSizesInputV1 (required) - * @return ApiResponse<AudienceSegmentSizeEntityV1ListResponse> + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return ApiResponse<DeleteAudienceContactListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - - + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 The Contact List was emptied -
403 Forbidden -
*/ - public ApiResponse computeAudienceSegmentsSizesWithHttpInfo(AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1) throws ApiException { - okhttp3.Call localVarCall = computeAudienceSegmentsSizesValidateBeforeCall(audienceSegmentComputeSizesInputV1, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse call10audiencesAudienceSegmentIdContactlistDeleteWithHttpInfo(String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = call10audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Gets the size of all segments. An error is returned for those whose size calculation is not supported. - * @param audienceSegmentComputeSizesInputV1 (required) + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - - - + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 The Contact List was emptied -
403 Forbidden -
*/ - public okhttp3.Call computeAudienceSegmentsSizesAsync(AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call10audiencesAudienceSegmentIdContactlistDeleteAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = computeAudienceSegmentsSizesValidateBeforeCall(audienceSegmentComputeSizesInputV1, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = call10audiencesAudienceSegmentIdContactlistDeleteValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for computeAudiencesSizes - * @param audienceComputeSizesInputV1 (required) + * Build call for call10audiencesAudienceSegmentIdContactlistPatch + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public okhttp3.Call computeAudiencesSizesCall(AudienceComputeSizesInputV1 audienceComputeSizesInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call10audiencesAudienceSegmentIdContactlistPatchCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1120,10 +1101,11 @@ public okhttp3.Call computeAudiencesSizesCall(AudienceComputeSizesInputV1 audien basePath = null; } - Object localVarPostBody = audienceComputeSizesInputV1; + Object localVarPostBody = contactlistAmendmentRequest; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audiences/compute-sizes"; + String localVarPath = "/2024-10/audiences/{audience-segment-id}/contactlist" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1132,9 +1114,7 @@ public okhttp3.Call computeAudiencesSizesCall(AudienceComputeSizesInputV1 audien Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1142,10 +1122,7 @@ public okhttp3.Call computeAudiencesSizesCall(AudienceComputeSizesInputV1 audien } final String[] localVarContentTypes = { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1153,98 +1130,103 @@ public okhttp3.Call computeAudiencesSizesCall(AudienceComputeSizesInputV1 audien } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call computeAudiencesSizesValidateBeforeCall(AudienceComputeSizesInputV1 audienceComputeSizesInputV1, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceComputeSizesInputV1' is set - if (audienceComputeSizesInputV1 == null) { - throw new ApiException("Missing the required parameter 'audienceComputeSizesInputV1' when calling computeAudiencesSizes(Async)"); + private okhttp3.Call call10audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call10audiencesAudienceSegmentIdContactlistPatch(Async)"); } - return computeAudiencesSizesCall(audienceComputeSizesInputV1, _callback); + // verify the required parameter 'contactlistAmendmentRequest' is set + if (contactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling call10audiencesAudienceSegmentIdContactlistPatch(Async)"); + } + + return call10audiencesAudienceSegmentIdContactlistPatchCall(audienceSegmentId, contactlistAmendmentRequest, _callback); } /** * - * Gets the size of all audiences. An error is returned for those whose size calculation is not supported. - * @param audienceComputeSizesInputV1 (required) - * @return AudienceSizeEntityV1ListResponse + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ModifyAudienceResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - - + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public AudienceSizeEntityV1ListResponse computeAudiencesSizes(AudienceComputeSizesInputV1 audienceComputeSizesInputV1) throws ApiException { - ApiResponse localVarResp = computeAudiencesSizesWithHttpInfo(audienceComputeSizesInputV1); + public ModifyAudienceResponse call10audiencesAudienceSegmentIdContactlistPatch(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = call10audiencesAudienceSegmentIdContactlistPatchWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); return localVarResp.getData(); } /** * - * Gets the size of all audiences. An error is returned for those whose size calculation is not supported. - * @param audienceComputeSizesInputV1 (required) - * @return ApiResponse<AudienceSizeEntityV1ListResponse> + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ApiResponse<ModifyAudienceResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - - + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public ApiResponse computeAudiencesSizesWithHttpInfo(AudienceComputeSizesInputV1 audienceComputeSizesInputV1) throws ApiException { - okhttp3.Call localVarCall = computeAudiencesSizesValidateBeforeCall(audienceComputeSizesInputV1, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse call10audiencesAudienceSegmentIdContactlistPatchWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = call10audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Gets the size of all audiences. An error is returned for those whose size calculation is not supported. - * @param audienceComputeSizesInputV1 (required) + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - - - + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public okhttp3.Call computeAudiencesSizesAsync(AudienceComputeSizesInputV1 audienceComputeSizesInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call10audiencesAudienceSegmentIdContactlistPatchAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = computeAudiencesSizesValidateBeforeCall(audienceComputeSizesInputV1, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = call10audiencesAudienceSegmentIdContactlistPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for createAudience - * @param newAudienceRequest (required) + * Build call for call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
Status Code Description Response Headers
200 The audience was created -
200 The Contact List was emptied -
403 Forbidden -
*/ - public okhttp3.Call createAudienceCall(NewAudienceRequest newAudienceRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1258,10 +1240,11 @@ public okhttp3.Call createAudienceCall(NewAudienceRequest newAudienceRequest, fi basePath = null; } - Object localVarPostBody = newAudienceRequest; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/audiences"; + String localVarPath = "/2024-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1278,7 +1261,6 @@ public okhttp3.Call createAudienceCall(NewAudienceRequest newAudienceRequest, fi } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1286,92 +1268,94 @@ public okhttp3.Call createAudienceCall(NewAudienceRequest newAudienceRequest, fi } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createAudienceValidateBeforeCall(NewAudienceRequest newAudienceRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'newAudienceRequest' is set - if (newAudienceRequest == null) { - throw new ApiException("Missing the required parameter 'newAudienceRequest' when calling createAudience(Async)"); + private okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(Async)"); } - return createAudienceCall(newAudienceRequest, _callback); + return call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(audienceSegmentId, _callback); } /** * - * Create an Audience for an Advertiser - * @param newAudienceRequest (required) - * @return NewAudienceResponse + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return DeleteAudienceContactListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 The audience was created -
200 The Contact List was emptied -
403 Forbidden -
*/ - public NewAudienceResponse createAudience(NewAudienceRequest newAudienceRequest) throws ApiException { - ApiResponse localVarResp = createAudienceWithHttpInfo(newAudienceRequest); + public DeleteAudienceContactListResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(audienceSegmentId); return localVarResp.getData(); } /** * - * Create an Audience for an Advertiser - * @param newAudienceRequest (required) - * @return ApiResponse<NewAudienceResponse> + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return ApiResponse<DeleteAudienceContactListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 The audience was created -
200 The Contact List was emptied -
403 Forbidden -
*/ - public ApiResponse createAudienceWithHttpInfo(NewAudienceRequest newAudienceRequest) throws ApiException { - okhttp3.Call localVarCall = createAudienceValidateBeforeCall(newAudienceRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Create an Audience for an Advertiser - * @param newAudienceRequest (required) + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
Status Code Description Response Headers
200 The audience was created -
200 The Contact List was emptied -
403 Forbidden -
*/ - public okhttp3.Call createAudienceAsync(NewAudienceRequest newAudienceRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createAudienceValidateBeforeCall(newAudienceRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteIdentifiers - * @param audienceId The id of the audience to amend (required) + * Build call for call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - + +
Status Code Description Response Headers
200 The contactlist was deleted -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public okhttp3.Call deleteIdentifiersCall(String audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1385,11 +1369,11 @@ public okhttp3.Call deleteIdentifiersCall(String audienceId, final ApiCallback _ basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = contactlistAmendmentRequest; // create path and map variables - String localVarPath = "/2023-07/audiences/{audience-id}/contactlist" - .replace("{" + "audience-id" + "}", localVarApiClient.escapeString(audienceId.toString())); + String localVarPath = "/2024-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1406,6 +1390,7 @@ public okhttp3.Call deleteIdentifiersCall(String audienceId, final ApiCallback _ } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1413,94 +1398,105 @@ public okhttp3.Call deleteIdentifiersCall(String audienceId, final ApiCallback _ } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteIdentifiersValidateBeforeCall(String audienceId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceId' is set - if (audienceId == null) { - throw new ApiException("Missing the required parameter 'audienceId' when calling deleteIdentifiers(Async)"); + private okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); + } + + // verify the required parameter 'contactlistAmendmentRequest' is set + if (contactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); } - return deleteIdentifiersCall(audienceId, _callback); + return call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(audienceSegmentId, contactlistAmendmentRequest, _callback); } /** * - * Delete all identifiers from a contact list audience-segment. - * @param audienceId The id of the audience to amend (required) - * @return DeleteAudienceContactListResponse + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ModifyAudienceResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + +
Status Code Description Response Headers
200 The contactlist was deleted -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public DeleteAudienceContactListResponse deleteIdentifiers(String audienceId) throws ApiException { - ApiResponse localVarResp = deleteIdentifiersWithHttpInfo(audienceId); + public ModifyAudienceResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); return localVarResp.getData(); } /** * - * Delete all identifiers from a contact list audience-segment. - * @param audienceId The id of the audience to amend (required) - * @return ApiResponse<DeleteAudienceContactListResponse> + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ApiResponse<ModifyAudienceResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + +
Status Code Description Response Headers
200 The contactlist was deleted -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public ApiResponse deleteIdentifiersWithHttpInfo(String audienceId) throws ApiException { - okhttp3.Call localVarCall = deleteIdentifiersValidateBeforeCall(audienceId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Delete all identifiers from a contact list audience-segment. - * @param audienceId The id of the audience to amend (required) + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - + +
Status Code Description Response Headers
200 The contactlist was deleted -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public okhttp3.Call deleteIdentifiersAsync(String audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteIdentifiersValidateBeforeCall(audienceId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = call10marketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for estimateAudienceSegmentSize - * @param audienceSegmentEstimateSizeInputV1 (required) + * Build call for computeAudienceSegmentsSizes + * @param audienceSegmentComputeSizesInputV1 (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
Status Code Description Response Headers
200 Success -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call estimateAudienceSegmentSizeCall(AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call computeAudienceSegmentsSizesCall(AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1514,10 +1510,10 @@ public okhttp3.Call estimateAudienceSegmentSizeCall(AudienceSegmentEstimateSizeI basePath = null; } - Object localVarPostBody = audienceSegmentEstimateSizeInputV1; + Object localVarPostBody = audienceSegmentComputeSizesInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audience-segments/estimate-size"; + String localVarPath = "/2024-10/marketing-solutions/audience-segments/compute-sizes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1551,84 +1547,84 @@ public okhttp3.Call estimateAudienceSegmentSizeCall(AudienceSegmentEstimateSizeI } @SuppressWarnings("rawtypes") - private okhttp3.Call estimateAudienceSegmentSizeValidateBeforeCall(AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentEstimateSizeInputV1' is set - if (audienceSegmentEstimateSizeInputV1 == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentEstimateSizeInputV1' when calling estimateAudienceSegmentSize(Async)"); + private okhttp3.Call computeAudienceSegmentsSizesValidateBeforeCall(AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentComputeSizesInputV1' is set + if (audienceSegmentComputeSizesInputV1 == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentComputeSizesInputV1' when calling computeAudienceSegmentsSizes(Async)"); } - return estimateAudienceSegmentSizeCall(audienceSegmentEstimateSizeInputV1, _callback); + return computeAudienceSegmentsSizesCall(audienceSegmentComputeSizesInputV1, _callback); } /** * - * Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. - * @param audienceSegmentEstimateSizeInputV1 (required) - * @return AudienceSegmentSizeEstimationV1Response + * Gets the size of all segments. An error is returned for those whose size calculation is not supported. + * @param audienceSegmentComputeSizesInputV1 (required) + * @return AudienceSegmentSizeEntityV1ListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 Success -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1) throws ApiException { - ApiResponse localVarResp = estimateAudienceSegmentSizeWithHttpInfo(audienceSegmentEstimateSizeInputV1); + public AudienceSegmentSizeEntityV1ListResponse computeAudienceSegmentsSizes(AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1) throws ApiException { + ApiResponse localVarResp = computeAudienceSegmentsSizesWithHttpInfo(audienceSegmentComputeSizesInputV1); return localVarResp.getData(); } /** * - * Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. - * @param audienceSegmentEstimateSizeInputV1 (required) - * @return ApiResponse<AudienceSegmentSizeEstimationV1Response> + * Gets the size of all segments. An error is returned for those whose size calculation is not supported. + * @param audienceSegmentComputeSizesInputV1 (required) + * @return ApiResponse<AudienceSegmentSizeEntityV1ListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 Success -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public ApiResponse estimateAudienceSegmentSizeWithHttpInfo(AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1) throws ApiException { - okhttp3.Call localVarCall = estimateAudienceSegmentSizeValidateBeforeCall(audienceSegmentEstimateSizeInputV1, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse computeAudienceSegmentsSizesWithHttpInfo(AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1) throws ApiException { + okhttp3.Call localVarCall = computeAudienceSegmentsSizesValidateBeforeCall(audienceSegmentComputeSizesInputV1, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. - * @param audienceSegmentEstimateSizeInputV1 (required) + * Gets the size of all segments. An error is returned for those whose size calculation is not supported. + * @param audienceSegmentComputeSizesInputV1 (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
Status Code Description Response Headers
200 Success -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call estimateAudienceSegmentSizeAsync(AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call computeAudienceSegmentsSizesAsync(AudienceSegmentComputeSizesInputV1 audienceSegmentComputeSizesInputV1, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = estimateAudienceSegmentSizeValidateBeforeCall(audienceSegmentEstimateSizeInputV1, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = computeAudienceSegmentsSizesValidateBeforeCall(audienceSegmentComputeSizesInputV1, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for estimateAudienceSize - * @param audienceEstimateSizeInputV1 (required) - * @param _callback Callback for upload/download progress + * Build call for computeAudiencesSizes + * @param audienceComputeSizesInputV1 (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details @@ -1640,7 +1636,7 @@ public okhttp3.Call estimateAudienceSegmentSizeAsync(AudienceSegmentEstimateSize 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call estimateAudienceSizeCall(AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call computeAudiencesSizesCall(AudienceComputeSizesInputV1 audienceComputeSizesInputV1, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1654,10 +1650,10 @@ public okhttp3.Call estimateAudienceSizeCall(AudienceEstimateSizeInputV1 audienc basePath = null; } - Object localVarPostBody = audienceEstimateSizeInputV1; + Object localVarPostBody = audienceComputeSizesInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audiences/estimate-size"; + String localVarPath = "/2024-10/marketing-solutions/audiences/compute-sizes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1691,21 +1687,21 @@ public okhttp3.Call estimateAudienceSizeCall(AudienceEstimateSizeInputV1 audienc } @SuppressWarnings("rawtypes") - private okhttp3.Call estimateAudienceSizeValidateBeforeCall(AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceEstimateSizeInputV1' is set - if (audienceEstimateSizeInputV1 == null) { - throw new ApiException("Missing the required parameter 'audienceEstimateSizeInputV1' when calling estimateAudienceSize(Async)"); + private okhttp3.Call computeAudiencesSizesValidateBeforeCall(AudienceComputeSizesInputV1 audienceComputeSizesInputV1, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceComputeSizesInputV1' is set + if (audienceComputeSizesInputV1 == null) { + throw new ApiException("Missing the required parameter 'audienceComputeSizesInputV1' when calling computeAudiencesSizes(Async)"); } - return estimateAudienceSizeCall(audienceEstimateSizeInputV1, _callback); + return computeAudiencesSizesCall(audienceComputeSizesInputV1, _callback); } /** * - * Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. - * @param audienceEstimateSizeInputV1 (required) - * @return AudienceSizeEstimationV1Response + * Gets the size of all audiences. An error is returned for those whose size calculation is not supported. + * @param audienceComputeSizesInputV1 (required) + * @return AudienceSizeEntityV1ListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1716,16 +1712,16 @@ private okhttp3.Call estimateAudienceSizeValidateBeforeCall(AudienceEstimateSize
403 The API client is not authorized to access this resource. -
*/ - public AudienceSizeEstimationV1Response estimateAudienceSize(AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1) throws ApiException { - ApiResponse localVarResp = estimateAudienceSizeWithHttpInfo(audienceEstimateSizeInputV1); + public AudienceSizeEntityV1ListResponse computeAudiencesSizes(AudienceComputeSizesInputV1 audienceComputeSizesInputV1) throws ApiException { + ApiResponse localVarResp = computeAudiencesSizesWithHttpInfo(audienceComputeSizesInputV1); return localVarResp.getData(); } /** * - * Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. - * @param audienceEstimateSizeInputV1 (required) - * @return ApiResponse<AudienceSizeEstimationV1Response> + * Gets the size of all audiences. An error is returned for those whose size calculation is not supported. + * @param audienceComputeSizesInputV1 (required) + * @return ApiResponse<AudienceSizeEntityV1ListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1736,16 +1732,16 @@ public AudienceSizeEstimationV1Response estimateAudienceSize(AudienceEstimateSiz
403 The API client is not authorized to access this resource. -
*/ - public ApiResponse estimateAudienceSizeWithHttpInfo(AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1) throws ApiException { - okhttp3.Call localVarCall = estimateAudienceSizeValidateBeforeCall(audienceEstimateSizeInputV1, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse computeAudiencesSizesWithHttpInfo(AudienceComputeSizesInputV1 audienceComputeSizesInputV1) throws ApiException { + okhttp3.Call localVarCall = computeAudiencesSizesValidateBeforeCall(audienceComputeSizesInputV1, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. - * @param audienceEstimateSizeInputV1 (required) + * Gets the size of all audiences. An error is returned for those whose size calculation is not supported. + * @param audienceComputeSizesInputV1 (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1758,16 +1754,16 @@ public ApiResponse estimateAudienceSizeWithHtt 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call estimateAudienceSizeAsync(AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call computeAudiencesSizesAsync(AudienceComputeSizesInputV1 audienceComputeSizesInputV1, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = estimateAudienceSizeValidateBeforeCall(audienceEstimateSizeInputV1, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = computeAudiencesSizesValidateBeforeCall(audienceComputeSizesInputV1, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getAudienceSegmentContactListStatistics - * @param audienceSegmentId The segment ID. (required) + * Build call for estimateAudienceSegmentSize + * @param audienceSegmentEstimateSizeInputV1 (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1775,11 +1771,12 @@ public okhttp3.Call estimateAudienceSizeAsync(AudienceEstimateSizeInputV1 audien +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call getAudienceSegmentContactListStatisticsCall(Integer audienceSegmentId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call estimateAudienceSegmentSizeCall(AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1793,11 +1790,10 @@ public okhttp3.Call getAudienceSegmentContactListStatisticsCall(Integer audience basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = audienceSegmentEstimateSizeInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" - .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + String localVarPath = "/2024-10/marketing-solutions/audience-segments/estimate-size"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1816,6 +1812,10 @@ public okhttp3.Call getAudienceSegmentContactListStatisticsCall(Integer audience } final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1823,63 +1823,65 @@ public okhttp3.Call getAudienceSegmentContactListStatisticsCall(Integer audience } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAudienceSegmentContactListStatisticsValidateBeforeCall(Integer audienceSegmentId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentId' is set - if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling getAudienceSegmentContactListStatistics(Async)"); + private okhttp3.Call estimateAudienceSegmentSizeValidateBeforeCall(AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentEstimateSizeInputV1' is set + if (audienceSegmentEstimateSizeInputV1 == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentEstimateSizeInputV1' when calling estimateAudienceSegmentSize(Async)"); } - return getAudienceSegmentContactListStatisticsCall(audienceSegmentId, _callback); + return estimateAudienceSegmentSizeCall(audienceSegmentEstimateSizeInputV1, _callback); } /** * - * Returns the statistics of a contact list segment. - * @param audienceSegmentId The segment ID. (required) - * @return ContactListStatisticsEntityV1Response + * Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. + * @param audienceSegmentEstimateSizeInputV1 (required) + * @return AudienceSegmentSizeEstimationV1Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(Integer audienceSegmentId) throws ApiException { - ApiResponse localVarResp = getAudienceSegmentContactListStatisticsWithHttpInfo(audienceSegmentId); + public AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1) throws ApiException { + ApiResponse localVarResp = estimateAudienceSegmentSizeWithHttpInfo(audienceSegmentEstimateSizeInputV1); return localVarResp.getData(); } /** * - * Returns the statistics of a contact list segment. - * @param audienceSegmentId The segment ID. (required) - * @return ApiResponse<ContactListStatisticsEntityV1Response> + * Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. + * @param audienceSegmentEstimateSizeInputV1 (required) + * @return ApiResponse<AudienceSegmentSizeEstimationV1Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public ApiResponse getAudienceSegmentContactListStatisticsWithHttpInfo(Integer audienceSegmentId) throws ApiException { - okhttp3.Call localVarCall = getAudienceSegmentContactListStatisticsValidateBeforeCall(audienceSegmentId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse estimateAudienceSegmentSizeWithHttpInfo(AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1) throws ApiException { + okhttp3.Call localVarCall = estimateAudienceSegmentSizeValidateBeforeCall(audienceSegmentEstimateSizeInputV1, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Returns the statistics of a contact list segment. - * @param audienceSegmentId The segment ID. (required) + * Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. + * @param audienceSegmentEstimateSizeInputV1 (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1887,33 +1889,34 @@ public ApiResponse getAudienceSegmentCont +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call getAudienceSegmentContactListStatisticsAsync(Integer audienceSegmentId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call estimateAudienceSegmentSizeAsync(AudienceSegmentEstimateSizeInputV1 audienceSegmentEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAudienceSegmentContactListStatisticsValidateBeforeCall(audienceSegmentId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = estimateAudienceSegmentSizeValidateBeforeCall(audienceSegmentEstimateSizeInputV1, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getAudienceSegmentsInMarketBrands - * @param advertiserId The advertiser ID. (required) - * @param country The ISO 3166-1 alpha-2 country code. (required) + * Build call for estimateAudienceSize + * @param audienceEstimateSizeInputV1 (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - + +
Status Code Description Response Headers
200 Success -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call getAudienceSegmentsInMarketBrandsCall(String advertiserId, String country, final ApiCallback _callback) throws ApiException { + public okhttp3.Call estimateAudienceSizeCall(AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1927,10 +1930,10 @@ public okhttp3.Call getAudienceSegmentsInMarketBrandsCall(String advertiserId, S basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = audienceEstimateSizeInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audience-segments/in-market-brands"; + String localVarPath = "/2024-10/marketing-solutions/audiences/estimate-size"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1938,14 +1941,6 @@ public okhttp3.Call getAudienceSegmentsInMarketBrandsCall(String advertiserId, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (advertiserId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("advertiser-id", advertiserId)); - } - - if (country != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("country", country)); - } - final String[] localVarAccepts = { "text/plain", "application/json", @@ -1957,6 +1952,10 @@ public okhttp3.Call getAudienceSegmentsInMarketBrandsCall(String advertiserId, S } final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1964,93 +1963,87 @@ public okhttp3.Call getAudienceSegmentsInMarketBrandsCall(String advertiserId, S } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAudienceSegmentsInMarketBrandsValidateBeforeCall(String advertiserId, String country, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'advertiserId' is set - if (advertiserId == null) { - throw new ApiException("Missing the required parameter 'advertiserId' when calling getAudienceSegmentsInMarketBrands(Async)"); - } - - // verify the required parameter 'country' is set - if (country == null) { - throw new ApiException("Missing the required parameter 'country' when calling getAudienceSegmentsInMarketBrands(Async)"); + private okhttp3.Call estimateAudienceSizeValidateBeforeCall(AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceEstimateSizeInputV1' is set + if (audienceEstimateSizeInputV1 == null) { + throw new ApiException("Missing the required parameter 'audienceEstimateSizeInputV1' when calling estimateAudienceSize(Async)"); } - return getAudienceSegmentsInMarketBrandsCall(advertiserId, country, _callback); + return estimateAudienceSizeCall(audienceEstimateSizeInputV1, _callback); } /** * - * Returns a list with all available in-market brands that can be used to define an in-market segment. - * @param advertiserId The advertiser ID. (required) - * @param country The ISO 3166-1 alpha-2 country code. (required) - * @return InMarketAudienceSegmentBrandEntityV1ListResponse + * Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. + * @param audienceEstimateSizeInputV1 (required) + * @return AudienceSizeEstimationV1Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + +
Status Code Description Response Headers
200 Success -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(String advertiserId, String country) throws ApiException { - ApiResponse localVarResp = getAudienceSegmentsInMarketBrandsWithHttpInfo(advertiserId, country); + public AudienceSizeEstimationV1Response estimateAudienceSize(AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1) throws ApiException { + ApiResponse localVarResp = estimateAudienceSizeWithHttpInfo(audienceEstimateSizeInputV1); return localVarResp.getData(); } /** * - * Returns a list with all available in-market brands that can be used to define an in-market segment. - * @param advertiserId The advertiser ID. (required) - * @param country The ISO 3166-1 alpha-2 country code. (required) - * @return ApiResponse<InMarketAudienceSegmentBrandEntityV1ListResponse> + * Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. + * @param audienceEstimateSizeInputV1 (required) + * @return ApiResponse<AudienceSizeEstimationV1Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + +
Status Code Description Response Headers
200 Success -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public ApiResponse getAudienceSegmentsInMarketBrandsWithHttpInfo(String advertiserId, String country) throws ApiException { - okhttp3.Call localVarCall = getAudienceSegmentsInMarketBrandsValidateBeforeCall(advertiserId, country, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse estimateAudienceSizeWithHttpInfo(AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1) throws ApiException { + okhttp3.Call localVarCall = estimateAudienceSizeValidateBeforeCall(audienceEstimateSizeInputV1, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Returns a list with all available in-market brands that can be used to define an in-market segment. - * @param advertiserId The advertiser ID. (required) - * @param country The ISO 3166-1 alpha-2 country code. (required) + * Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. + * @param audienceEstimateSizeInputV1 (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - + +
Status Code Description Response Headers
200 Success -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call getAudienceSegmentsInMarketBrandsAsync(String advertiserId, String country, final ApiCallback _callback) throws ApiException { + public okhttp3.Call estimateAudienceSizeAsync(AudienceEstimateSizeInputV1 audienceEstimateSizeInputV1, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAudienceSegmentsInMarketBrandsValidateBeforeCall(advertiserId, country, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = estimateAudienceSizeValidateBeforeCall(audienceEstimateSizeInputV1, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getAudienceSegmentsInMarketInterests - * @param advertiserId The advertiser ID. (required) - * @param country The ISO 3166-1 alpha-2 country code. (required) + * Build call for getAudienceSegmentContactListStatistics + * @param audienceSegmentId The segment ID. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2062,7 +2055,7 @@ public okhttp3.Call getAudienceSegmentsInMarketBrandsAsync(String advertiserId, 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call getAudienceSegmentsInMarketInterestsCall(String advertiserId, String country, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudienceSegmentContactListStatisticsCall(Integer audienceSegmentId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2079,7 +2072,8 @@ public okhttp3.Call getAudienceSegmentsInMarketInterestsCall(String advertiserId Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audience-segments/in-market-interests"; + String localVarPath = "/2024-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2087,14 +2081,6 @@ public okhttp3.Call getAudienceSegmentsInMarketInterestsCall(String advertiserId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (advertiserId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("advertiser-id", advertiserId)); - } - - if (country != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("country", country)); - } - final String[] localVarAccepts = { "text/plain", "application/json", @@ -2117,27 +2103,21 @@ public okhttp3.Call getAudienceSegmentsInMarketInterestsCall(String advertiserId } @SuppressWarnings("rawtypes") - private okhttp3.Call getAudienceSegmentsInMarketInterestsValidateBeforeCall(String advertiserId, String country, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'advertiserId' is set - if (advertiserId == null) { - throw new ApiException("Missing the required parameter 'advertiserId' when calling getAudienceSegmentsInMarketInterests(Async)"); - } - - // verify the required parameter 'country' is set - if (country == null) { - throw new ApiException("Missing the required parameter 'country' when calling getAudienceSegmentsInMarketInterests(Async)"); + private okhttp3.Call getAudienceSegmentContactListStatisticsValidateBeforeCall(Integer audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling getAudienceSegmentContactListStatistics(Async)"); } - return getAudienceSegmentsInMarketInterestsCall(advertiserId, country, _callback); + return getAudienceSegmentContactListStatisticsCall(audienceSegmentId, _callback); } /** * - * Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. - * @param advertiserId The advertiser ID. (required) - * @param country The ISO 3166-1 alpha-2 country code. (required) - * @return InMarketAudienceSegmentInterestEntityV1ListResponse + * Returns the statistics of a contact list segment. + * @param audienceSegmentId The segment ID. (required) + * @return ContactListStatisticsEntityV1Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2147,17 +2127,16 @@ private okhttp3.Call getAudienceSegmentsInMarketInterestsValidateBeforeCall(Stri
403 The API client is not authorized to access this resource. -
*/ - public InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(String advertiserId, String country) throws ApiException { - ApiResponse localVarResp = getAudienceSegmentsInMarketInterestsWithHttpInfo(advertiserId, country); + public ContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(Integer audienceSegmentId) throws ApiException { + ApiResponse localVarResp = getAudienceSegmentContactListStatisticsWithHttpInfo(audienceSegmentId); return localVarResp.getData(); } /** * - * Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. - * @param advertiserId The advertiser ID. (required) - * @param country The ISO 3166-1 alpha-2 country code. (required) - * @return ApiResponse<InMarketAudienceSegmentInterestEntityV1ListResponse> + * Returns the statistics of a contact list segment. + * @param audienceSegmentId The segment ID. (required) + * @return ApiResponse<ContactListStatisticsEntityV1Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2167,17 +2146,16 @@ public InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsIn
403 The API client is not authorized to access this resource. -
*/ - public ApiResponse getAudienceSegmentsInMarketInterestsWithHttpInfo(String advertiserId, String country) throws ApiException { - okhttp3.Call localVarCall = getAudienceSegmentsInMarketInterestsValidateBeforeCall(advertiserId, country, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getAudienceSegmentContactListStatisticsWithHttpInfo(Integer audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = getAudienceSegmentContactListStatisticsValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. - * @param advertiserId The advertiser ID. (required) - * @param country The ISO 3166-1 alpha-2 country code. (required) + * Returns the statistics of a contact list segment. + * @param audienceSegmentId The segment ID. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2189,27 +2167,29 @@ public ApiResponse getAudie 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call getAudienceSegmentsInMarketInterestsAsync(String advertiserId, String country, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudienceSegmentContactListStatisticsAsync(Integer audienceSegmentId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAudienceSegmentsInMarketInterestsValidateBeforeCall(advertiserId, country, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getAudienceSegmentContactListStatisticsValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getAudiences - * @param advertiserId The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio (optional) + * Build call for getAudienceSegmentsInMarketBrands + * @param advertiserId The advertiser ID. (required) + * @param country The ISO 3166-1 alpha-2 country code. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - + + +
Status Code Description Response Headers
200 The list was retrieved. -
403 Forbidden -
200 Success -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call getAudiencesCall(String advertiserId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudienceSegmentsInMarketBrandsCall(String advertiserId, String country, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2226,7 +2206,7 @@ public okhttp3.Call getAudiencesCall(String advertiserId, final ApiCallback _cal Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/audiences"; + String localVarPath = "/2024-10/marketing-solutions/audience-segments/in-market-brands"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2238,131 +2218,14 @@ public okhttp3.Call getAudiencesCall(String advertiserId, final ApiCallback _cal localVarQueryParams.addAll(localVarApiClient.parameterToPair("advertiser-id", advertiserId)); } - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAudiencesValidateBeforeCall(String advertiserId, final ApiCallback _callback) throws ApiException { - return getAudiencesCall(advertiserId, _callback); - - } - - /** - * - * Get a list of all the audiences for the user or for the given advertiser_id - * @param advertiserId The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio (optional) - * @return GetAudiencesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The list was retrieved. -
403 Forbidden -
- */ - public GetAudiencesResponse getAudiences(String advertiserId) throws ApiException { - ApiResponse localVarResp = getAudiencesWithHttpInfo(advertiserId); - return localVarResp.getData(); - } - - /** - * - * Get a list of all the audiences for the user or for the given advertiser_id - * @param advertiserId The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio (optional) - * @return ApiResponse<GetAudiencesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The list was retrieved. -
403 Forbidden -
- */ - public ApiResponse getAudiencesWithHttpInfo(String advertiserId) throws ApiException { - okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(advertiserId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Get a list of all the audiences for the user or for the given advertiser_id - * @param advertiserId The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The list was retrieved. -
403 Forbidden -
- */ - public okhttp3.Call getAudiencesAsync(String advertiserId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(advertiserId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for modifyAudience - * @param audienceId The id of the audience to amend (required) - * @param replaceAudienceRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The audience was updated -
403 Forbidden -
- */ - public okhttp3.Call modifyAudienceCall(String audienceId, ReplaceAudienceRequest replaceAudienceRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + if (country != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("country", country)); } - Object localVarPostBody = replaceAudienceRequest; - - // create path and map variables - String localVarPath = "/2023-07/audiences/{audience-id}" - .replace("{" + "audience-id" + "}", localVarApiClient.escapeString(audienceId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json" + "text/plain", + "application/json", + "text/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2370,7 +2233,6 @@ public okhttp3.Call modifyAudienceCall(String audienceId, ReplaceAudienceRequest } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2378,102 +2240,105 @@ public okhttp3.Call modifyAudienceCall(String audienceId, ReplaceAudienceRequest } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call modifyAudienceValidateBeforeCall(String audienceId, ReplaceAudienceRequest replaceAudienceRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceId' is set - if (audienceId == null) { - throw new ApiException("Missing the required parameter 'audienceId' when calling modifyAudience(Async)"); + private okhttp3.Call getAudienceSegmentsInMarketBrandsValidateBeforeCall(String advertiserId, String country, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'advertiserId' is set + if (advertiserId == null) { + throw new ApiException("Missing the required parameter 'advertiserId' when calling getAudienceSegmentsInMarketBrands(Async)"); } - // verify the required parameter 'replaceAudienceRequest' is set - if (replaceAudienceRequest == null) { - throw new ApiException("Missing the required parameter 'replaceAudienceRequest' when calling modifyAudience(Async)"); + // verify the required parameter 'country' is set + if (country == null) { + throw new ApiException("Missing the required parameter 'country' when calling getAudienceSegmentsInMarketBrands(Async)"); } - return modifyAudienceCall(audienceId, replaceAudienceRequest, _callback); + return getAudienceSegmentsInMarketBrandsCall(advertiserId, country, _callback); } /** * - * Update user audience specified by the audience id - * @param audienceId The id of the audience to amend (required) - * @param replaceAudienceRequest (required) - * @return ReplaceAudienceResponse + * Returns a list with all available in-market brands that can be used to define an in-market segment. + * @param advertiserId The advertiser ID. (required) + * @param country The ISO 3166-1 alpha-2 country code. (required) + * @return InMarketAudienceSegmentBrandEntityV1ListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - + + +
Status Code Description Response Headers
200 The audience was updated -
403 Forbidden -
200 Success -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public ReplaceAudienceResponse modifyAudience(String audienceId, ReplaceAudienceRequest replaceAudienceRequest) throws ApiException { - ApiResponse localVarResp = modifyAudienceWithHttpInfo(audienceId, replaceAudienceRequest); + public InMarketAudienceSegmentBrandEntityV1ListResponse getAudienceSegmentsInMarketBrands(String advertiserId, String country) throws ApiException { + ApiResponse localVarResp = getAudienceSegmentsInMarketBrandsWithHttpInfo(advertiserId, country); return localVarResp.getData(); } /** * - * Update user audience specified by the audience id - * @param audienceId The id of the audience to amend (required) - * @param replaceAudienceRequest (required) - * @return ApiResponse<ReplaceAudienceResponse> + * Returns a list with all available in-market brands that can be used to define an in-market segment. + * @param advertiserId The advertiser ID. (required) + * @param country The ISO 3166-1 alpha-2 country code. (required) + * @return ApiResponse<InMarketAudienceSegmentBrandEntityV1ListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - + + +
Status Code Description Response Headers
200 The audience was updated -
403 Forbidden -
200 Success -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public ApiResponse modifyAudienceWithHttpInfo(String audienceId, ReplaceAudienceRequest replaceAudienceRequest) throws ApiException { - okhttp3.Call localVarCall = modifyAudienceValidateBeforeCall(audienceId, replaceAudienceRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getAudienceSegmentsInMarketBrandsWithHttpInfo(String advertiserId, String country) throws ApiException { + okhttp3.Call localVarCall = getAudienceSegmentsInMarketBrandsValidateBeforeCall(advertiserId, country, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Update user audience specified by the audience id - * @param audienceId The id of the audience to amend (required) - * @param replaceAudienceRequest (required) + * Returns a list with all available in-market brands that can be used to define an in-market segment. + * @param advertiserId The advertiser ID. (required) + * @param country The ISO 3166-1 alpha-2 country code. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - + + +
Status Code Description Response Headers
200 The audience was updated -
403 Forbidden -
200 Success -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call modifyAudienceAsync(String audienceId, ReplaceAudienceRequest replaceAudienceRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudienceSegmentsInMarketBrandsAsync(String advertiserId, String country, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = modifyAudienceValidateBeforeCall(audienceId, replaceAudienceRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getAudienceSegmentsInMarketBrandsValidateBeforeCall(advertiserId, country, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for modifyAudienceUsers - * @param audienceId The id of the audience to amend (required) - * @param contactlistAmendmentRequest (required) + * Build call for getAudienceSegmentsInMarketInterests + * @param advertiserId The advertiser ID. (required) + * @param country The ISO 3166-1 alpha-2 country code. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
200 Success -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call modifyAudienceUsersCall(String audienceId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudienceSegmentsInMarketInterestsCall(String advertiserId, String country, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2487,11 +2352,10 @@ public okhttp3.Call modifyAudienceUsersCall(String audienceId, ContactlistAmendm basePath = null; } - Object localVarPostBody = contactlistAmendmentRequest; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/audiences/{audience-id}/contactlist" - .replace("{" + "audience-id" + "}", localVarApiClient.escapeString(audienceId.toString())); + String localVarPath = "/2024-10/marketing-solutions/audience-segments/in-market-interests"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2499,147 +2363,18 @@ public okhttp3.Call modifyAudienceUsersCall(String audienceId, ContactlistAmendm Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call modifyAudienceUsersValidateBeforeCall(String audienceId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceId' is set - if (audienceId == null) { - throw new ApiException("Missing the required parameter 'audienceId' when calling modifyAudienceUsers(Async)"); - } - - // verify the required parameter 'contactlistAmendmentRequest' is set - if (contactlistAmendmentRequest == null) { - throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling modifyAudienceUsers(Async)"); + if (advertiserId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("advertiser-id", advertiserId)); } - return modifyAudienceUsersCall(audienceId, contactlistAmendmentRequest, _callback); - - } - - /** - * - * Add/remove users to or from a contact list audience-segment. - * @param audienceId The id of the audience to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ModifyAudienceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public ModifyAudienceResponse modifyAudienceUsers(String audienceId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - ApiResponse localVarResp = modifyAudienceUsersWithHttpInfo(audienceId, contactlistAmendmentRequest); - return localVarResp.getData(); - } - - /** - * - * Add/remove users to or from a contact list audience-segment. - * @param audienceId The id of the audience to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ApiResponse<ModifyAudienceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public ApiResponse modifyAudienceUsersWithHttpInfo(String audienceId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - okhttp3.Call localVarCall = modifyAudienceUsersValidateBeforeCall(audienceId, contactlistAmendmentRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Add/remove users to or from a contact list audience-segment. - * @param audienceId The id of the audience to amend (required) - * @param contactlistAmendmentRequest (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
- */ - public okhttp3.Call modifyAudienceUsersAsync(String audienceId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = modifyAudienceUsersValidateBeforeCall(audienceId, contactlistAmendmentRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for removeAudience - * @param audienceId The id of the audience to amend (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The audience was deleted -
403 Forbidden -
- */ - public okhttp3.Call removeAudienceCall(String audienceId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + if (country != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("country", country)); } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2023-07/audiences/{audience-id}" - .replace("{" + "audience-id" + "}", localVarApiClient.escapeString(audienceId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json" + "text/plain", + "application/json", + "text/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2654,75 +2389,86 @@ public okhttp3.Call removeAudienceCall(String audienceId, final ApiCallback _cal } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call removeAudienceValidateBeforeCall(String audienceId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceId' is set - if (audienceId == null) { - throw new ApiException("Missing the required parameter 'audienceId' when calling removeAudience(Async)"); + private okhttp3.Call getAudienceSegmentsInMarketInterestsValidateBeforeCall(String advertiserId, String country, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'advertiserId' is set + if (advertiserId == null) { + throw new ApiException("Missing the required parameter 'advertiserId' when calling getAudienceSegmentsInMarketInterests(Async)"); } - return removeAudienceCall(audienceId, _callback); + // verify the required parameter 'country' is set + if (country == null) { + throw new ApiException("Missing the required parameter 'country' when calling getAudienceSegmentsInMarketInterests(Async)"); + } + + return getAudienceSegmentsInMarketInterestsCall(advertiserId, country, _callback); } /** * - * Delete an audience by id - * @param audienceId The id of the audience to amend (required) - * @return DeleteAudienceResponse + * Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. + * @param advertiserId The advertiser ID. (required) + * @param country The ISO 3166-1 alpha-2 country code. (required) + * @return InMarketAudienceSegmentInterestEntityV1ListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - + + +
Status Code Description Response Headers
200 The audience was deleted -
403 Forbidden -
200 Success -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public DeleteAudienceResponse removeAudience(String audienceId) throws ApiException { - ApiResponse localVarResp = removeAudienceWithHttpInfo(audienceId); + public InMarketAudienceSegmentInterestEntityV1ListResponse getAudienceSegmentsInMarketInterests(String advertiserId, String country) throws ApiException { + ApiResponse localVarResp = getAudienceSegmentsInMarketInterestsWithHttpInfo(advertiserId, country); return localVarResp.getData(); } /** * - * Delete an audience by id - * @param audienceId The id of the audience to amend (required) - * @return ApiResponse<DeleteAudienceResponse> + * Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. + * @param advertiserId The advertiser ID. (required) + * @param country The ISO 3166-1 alpha-2 country code. (required) + * @return ApiResponse<InMarketAudienceSegmentInterestEntityV1ListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - + + +
Status Code Description Response Headers
200 The audience was deleted -
403 Forbidden -
200 Success -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public ApiResponse removeAudienceWithHttpInfo(String audienceId) throws ApiException { - okhttp3.Call localVarCall = removeAudienceValidateBeforeCall(audienceId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getAudienceSegmentsInMarketInterestsWithHttpInfo(String advertiserId, String country) throws ApiException { + okhttp3.Call localVarCall = getAudienceSegmentsInMarketInterestsValidateBeforeCall(advertiserId, country, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Delete an audience by id - * @param audienceId The id of the audience to amend (required) + * Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. + * @param advertiserId The advertiser ID. (required) + * @param country The ISO 3166-1 alpha-2 country code. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - + + +
Status Code Description Response Headers
200 The audience was deleted -
403 Forbidden -
200 Success -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call removeAudienceAsync(String audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudienceSegmentsInMarketInterestsAsync(String advertiserId, String country, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = removeAudienceValidateBeforeCall(audienceId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getAudienceSegmentsInMarketInterestsValidateBeforeCall(advertiserId, country, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2760,7 +2506,7 @@ public okhttp3.Call searchAudienceSegmentsCall(AudienceSegmentSearchInputV1 audi Object localVarPostBody = audienceSegmentSearchInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audience-segments/search"; + String localVarPath = "/2024-10/marketing-solutions/audience-segments/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2916,7 +2662,7 @@ public okhttp3.Call searchAudiencesCall(AudienceSearchInputV1 audienceSearchInpu Object localVarPostBody = audienceSearchInputV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/audiences/search"; + String localVarPath = "/2024-10/marketing-solutions/audiences/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/CampaignApi.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/CampaignApi.java similarity index 88% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/CampaignApi.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/CampaignApi.java index 3f937afb..556a130a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/CampaignApi.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/CampaignApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,44 +11,44 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.api; +package com.criteo.api.marketingsolutions.v2024_10.api; -import com.criteo.api.marketingsolutions.v2023_07.ApiCallback; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.ApiResponse; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.Pair; -import com.criteo.api.marketingsolutions.v2023_07.ProgressRequestBody; -import com.criteo.api.marketingsolutions.v2023_07.ProgressResponseBody; +import com.criteo.api.marketingsolutions.v2024_10.ApiCallback; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.ApiResponse; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ProgressRequestBody; +import com.criteo.api.marketingsolutions.v2024_10.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetAudienceLinkEntityV1Response; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetAudienceLinkInputEntityV1; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetCategoryBidListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetDisplayMultiplierListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.CampaignListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.CampaignResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.CampaignSearchRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.CampaignV23Q1Response; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateCampaignRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetCategoryBidListRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetCategoryBidResultListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetDisplayMultiplierListRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetDisplayMultiplierResultListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchCampaignListRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchResultCampaignListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.RequestAdSetSearch; -import com.criteo.api.marketingsolutions.v2023_07.model.RequestsAdSetId; -import com.criteo.api.marketingsolutions.v2023_07.model.RequestsPatchAdSet; -import com.criteo.api.marketingsolutions.v2023_07.model.ResponseReadAdSet; -import com.criteo.api.marketingsolutions.v2023_07.model.ResponsesAdSetId; -import com.criteo.api.marketingsolutions.v2023_07.model.ResponsesReadAdSet; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetAudienceLinkEntityV1Response; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetAudienceLinkInputEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetCategoryBidListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetDisplayMultiplierListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetSearchRequestV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CampaignSearchRequestV23Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CampaignV23Q1ListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.CampaignV23Q1Response; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetV24Q1Request; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateCampaignRequest; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetCategoryBidListRequest; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetCategoryBidResultListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetDisplayMultiplierListRequest; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetDisplayMultiplierResultListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchCampaignListRequest; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchResultCampaignListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.RequestsAdSetId; +import com.criteo.api.marketingsolutions.v2024_10.model.RequestsPatchAdSetV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.ResponseReadAdSetV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.ResponsesAdSetId; +import com.criteo.api.marketingsolutions.v2024_10.model.ResponsesAdSetIdV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.ResponsesReadAdSetV24Q1; import java.lang.reflect.Type; import java.util.ArrayList; @@ -95,8 +95,8 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for createAdSet - * @param createAdSetRequest the ad sets to create (required) + * Build call for createAdSetV24Q1 + * @param createAdSetV24Q1Request the ad sets to create (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -107,10 +107,8 @@ public void setCustomBaseUrl(String customBaseUrl) { 400 Bad Request - 401 The API client is not properly authenticated. - - * @deprecated */ - @Deprecated - public okhttp3.Call createAdSetCall(CreateAdSetRequest createAdSetRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAdSetV24Q1Call(CreateAdSetV24Q1Request createAdSetV24Q1Request, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -124,10 +122,10 @@ public okhttp3.Call createAdSetCall(CreateAdSetRequest createAdSetRequest, final basePath = null; } - Object localVarPostBody = createAdSetRequest; + Object localVarPostBody = createAdSetV24Q1Request; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ad-sets"; + String localVarPath = "/2024-10/marketing-solutions/ad-sets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -160,23 +158,22 @@ public okhttp3.Call createAdSetCall(CreateAdSetRequest createAdSetRequest, final return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call createAdSetValidateBeforeCall(CreateAdSetRequest createAdSetRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'createAdSetRequest' is set - if (createAdSetRequest == null) { - throw new ApiException("Missing the required parameter 'createAdSetRequest' when calling createAdSet(Async)"); + private okhttp3.Call createAdSetV24Q1ValidateBeforeCall(CreateAdSetV24Q1Request createAdSetV24Q1Request, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'createAdSetV24Q1Request' is set + if (createAdSetV24Q1Request == null) { + throw new ApiException("Missing the required parameter 'createAdSetV24Q1Request' when calling createAdSetV24Q1(Async)"); } - return createAdSetCall(createAdSetRequest, _callback); + return createAdSetV24Q1Call(createAdSetV24Q1Request, _callback); } /** * * Create the specified ad set - * @param createAdSetRequest the ad sets to create (required) - * @return ResponseReadAdSet + * @param createAdSetV24Q1Request the ad sets to create (required) + * @return ResponseReadAdSetV24Q1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -185,19 +182,17 @@ private okhttp3.Call createAdSetValidateBeforeCall(CreateAdSetRequest createAdSe
400 Bad Request -
401 The API client is not properly authenticated. -
- * @deprecated */ - @Deprecated - public ResponseReadAdSet createAdSet(CreateAdSetRequest createAdSetRequest) throws ApiException { - ApiResponse localVarResp = createAdSetWithHttpInfo(createAdSetRequest); + public ResponseReadAdSetV24Q1 createAdSetV24Q1(CreateAdSetV24Q1Request createAdSetV24Q1Request) throws ApiException { + ApiResponse localVarResp = createAdSetV24Q1WithHttpInfo(createAdSetV24Q1Request); return localVarResp.getData(); } /** * * Create the specified ad set - * @param createAdSetRequest the ad sets to create (required) - * @return ApiResponse<ResponseReadAdSet> + * @param createAdSetV24Q1Request the ad sets to create (required) + * @return ApiResponse<ResponseReadAdSetV24Q1> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -206,19 +201,17 @@ public ResponseReadAdSet createAdSet(CreateAdSetRequest createAdSetRequest) thro
400 Bad Request -
401 The API client is not properly authenticated. -
- * @deprecated */ - @Deprecated - public ApiResponse createAdSetWithHttpInfo(CreateAdSetRequest createAdSetRequest) throws ApiException { - okhttp3.Call localVarCall = createAdSetValidateBeforeCall(createAdSetRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createAdSetV24Q1WithHttpInfo(CreateAdSetV24Q1Request createAdSetV24Q1Request) throws ApiException { + okhttp3.Call localVarCall = createAdSetV24Q1ValidateBeforeCall(createAdSetV24Q1Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Create the specified ad set - * @param createAdSetRequest the ad sets to create (required) + * @param createAdSetV24Q1Request the ad sets to create (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -229,13 +222,11 @@ public ApiResponse createAdSetWithHttpInfo(CreateAdSetRequest 400 Bad Request - 401 The API client is not properly authenticated. - - * @deprecated */ - @Deprecated - public okhttp3.Call createAdSetAsync(CreateAdSetRequest createAdSetRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAdSetV24Q1Async(CreateAdSetV24Q1Request createAdSetV24Q1Request, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createAdSetValidateBeforeCall(createAdSetRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createAdSetV24Q1ValidateBeforeCall(createAdSetV24Q1Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -270,7 +261,7 @@ public okhttp3.Call createCampaignCall(CreateCampaignRequest createCampaignReque Object localVarPostBody = createCampaignRequest; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/campaigns"; + String localVarPath = "/2024-10/marketing-solutions/campaigns"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -376,7 +367,7 @@ public okhttp3.Call createCampaignAsync(CreateCampaignRequest createCampaignRequ return localVarCall; } /** - * Build call for getAdSet + * Build call for getAdSetV24Q1 * @param adSetId Id of the ad set (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -388,10 +379,8 @@ public okhttp3.Call createCampaignAsync(CreateCampaignRequest createCampaignRequ 401 The API client is not properly authenticated. - 403 The API client is not authorized to access this resource or the resource does not exist. - - * @deprecated */ - @Deprecated - public okhttp3.Call getAdSetCall(String adSetId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdSetV24Q1Call(String adSetId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -408,8 +397,8 @@ public okhttp3.Call getAdSetCall(String adSetId, final ApiCallback _callback) th Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ad-sets/{adSetId}" - .replace("{" + "adSetId" + "}", localVarApiClient.escapeString(adSetId.toString())); + String localVarPath = "/2024-10/marketing-solutions/ad-sets/{ad-set-id}" + .replace("{" + "ad-set-id" + "}", localVarApiClient.escapeString(adSetId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -438,15 +427,14 @@ public okhttp3.Call getAdSetCall(String adSetId, final ApiCallback _callback) th return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call getAdSetValidateBeforeCall(String adSetId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAdSetV24Q1ValidateBeforeCall(String adSetId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'adSetId' is set if (adSetId == null) { - throw new ApiException("Missing the required parameter 'adSetId' when calling getAdSet(Async)"); + throw new ApiException("Missing the required parameter 'adSetId' when calling getAdSetV24Q1(Async)"); } - return getAdSetCall(adSetId, _callback); + return getAdSetV24Q1Call(adSetId, _callback); } @@ -454,7 +442,7 @@ private okhttp3.Call getAdSetValidateBeforeCall(String adSetId, final ApiCallbac * * Get the data for the specified ad set * @param adSetId Id of the ad set (required) - * @return ResponseReadAdSet + * @return ResponseReadAdSetV24Q1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -463,11 +451,9 @@ private okhttp3.Call getAdSetValidateBeforeCall(String adSetId, final ApiCallbac
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource or the resource does not exist. -
- * @deprecated */ - @Deprecated - public ResponseReadAdSet getAdSet(String adSetId) throws ApiException { - ApiResponse localVarResp = getAdSetWithHttpInfo(adSetId); + public ResponseReadAdSetV24Q1 getAdSetV24Q1(String adSetId) throws ApiException { + ApiResponse localVarResp = getAdSetV24Q1WithHttpInfo(adSetId); return localVarResp.getData(); } @@ -475,7 +461,7 @@ public ResponseReadAdSet getAdSet(String adSetId) throws ApiException { * * Get the data for the specified ad set * @param adSetId Id of the ad set (required) - * @return ApiResponse<ResponseReadAdSet> + * @return ApiResponse<ResponseReadAdSetV24Q1> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -484,12 +470,10 @@ public ResponseReadAdSet getAdSet(String adSetId) throws ApiException {
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource or the resource does not exist. -
- * @deprecated */ - @Deprecated - public ApiResponse getAdSetWithHttpInfo(String adSetId) throws ApiException { - okhttp3.Call localVarCall = getAdSetValidateBeforeCall(adSetId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getAdSetV24Q1WithHttpInfo(String adSetId) throws ApiException { + okhttp3.Call localVarCall = getAdSetV24Q1ValidateBeforeCall(adSetId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -507,18 +491,16 @@ public ApiResponse getAdSetWithHttpInfo(String adSetId) throw 401 The API client is not properly authenticated. - 403 The API client is not authorized to access this resource or the resource does not exist. - - * @deprecated */ - @Deprecated - public okhttp3.Call getAdSetAsync(String adSetId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdSetV24Q1Async(String adSetId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAdSetValidateBeforeCall(adSetId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getAdSetV24Q1ValidateBeforeCall(adSetId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getCampaign + * Build call for getCampaignV23Q1 * @param campaignId Id of the campaign (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -530,10 +512,8 @@ public okhttp3.Call getAdSetAsync(String adSetId, final ApiCallback 401 The API client is not properly authenticated. - 403 The API client is not authorized to access this resource or the resource does not exist. - - * @deprecated */ - @Deprecated - public okhttp3.Call getCampaignCall(String campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignV23Q1Call(String campaignId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -550,7 +530,7 @@ public okhttp3.Call getCampaignCall(String campaignId, final ApiCallback _callba Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/campaigns/{campaign-id}" + String localVarPath = "/2024-10/marketing-solutions/campaigns/{campaign-id}" .replace("{" + "campaign-id" + "}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); @@ -580,15 +560,14 @@ public okhttp3.Call getCampaignCall(String campaignId, final ApiCallback _callba return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignValidateBeforeCall(String campaignId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCampaignV23Q1ValidateBeforeCall(String campaignId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling getCampaign(Async)"); + throw new ApiException("Missing the required parameter 'campaignId' when calling getCampaignV23Q1(Async)"); } - return getCampaignCall(campaignId, _callback); + return getCampaignV23Q1Call(campaignId, _callback); } @@ -596,7 +575,7 @@ private okhttp3.Call getCampaignValidateBeforeCall(String campaignId, final ApiC * * Get the data for the specified campaign * @param campaignId Id of the campaign (required) - * @return CampaignResponse + * @return CampaignV23Q1Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -605,11 +584,9 @@ private okhttp3.Call getCampaignValidateBeforeCall(String campaignId, final ApiC
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource or the resource does not exist. -
- * @deprecated */ - @Deprecated - public CampaignResponse getCampaign(String campaignId) throws ApiException { - ApiResponse localVarResp = getCampaignWithHttpInfo(campaignId); + public CampaignV23Q1Response getCampaignV23Q1(String campaignId) throws ApiException { + ApiResponse localVarResp = getCampaignV23Q1WithHttpInfo(campaignId); return localVarResp.getData(); } @@ -617,7 +594,7 @@ public CampaignResponse getCampaign(String campaignId) throws ApiException { * * Get the data for the specified campaign * @param campaignId Id of the campaign (required) - * @return ApiResponse<CampaignResponse> + * @return ApiResponse<CampaignV23Q1Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -626,12 +603,10 @@ public CampaignResponse getCampaign(String campaignId) throws ApiException {
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource or the resource does not exist. -
- * @deprecated */ - @Deprecated - public ApiResponse getCampaignWithHttpInfo(String campaignId) throws ApiException { - okhttp3.Call localVarCall = getCampaignValidateBeforeCall(campaignId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getCampaignV23Q1WithHttpInfo(String campaignId) throws ApiException { + okhttp3.Call localVarCall = getCampaignV23Q1ValidateBeforeCall(campaignId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -649,13 +624,11 @@ public ApiResponse getCampaignWithHttpInfo(String campaignId) 401 The API client is not properly authenticated. - 403 The API client is not authorized to access this resource or the resource does not exist. - - * @deprecated */ - @Deprecated - public okhttp3.Call getCampaignAsync(String campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignV23Q1Async(String campaignId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCampaignValidateBeforeCall(campaignId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getCampaignV23Q1ValidateBeforeCall(campaignId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -691,7 +664,7 @@ public okhttp3.Call getCategoryBidListCall(String adSetId, final ApiCallback _ca Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids" + String localVarPath = "/2024-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids" .replace("{" + "ad-set-id" + "}", localVarApiClient.escapeString(adSetId.toString())); List localVarQueryParams = new ArrayList(); @@ -828,7 +801,7 @@ public okhttp3.Call getDisplayMultipliersCall(String adSetId, final ApiCallback Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers" + String localVarPath = "/2024-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers" .replace("{" + "ad-set-id" + "}", localVarApiClient.escapeString(adSetId.toString())); List localVarQueryParams = new ArrayList(); @@ -934,8 +907,8 @@ public okhttp3.Call getDisplayMultipliersAsync(String adSetId, final ApiCallback return localVarCall; } /** - * Build call for patchAdSets - * @param requestsPatchAdSet List of adsets to patch. (optional) + * Build call for patchAdSetsV24Q1 + * @param requestsPatchAdSetV24Q1 List of adsets to patch. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -946,10 +919,8 @@ public okhttp3.Call getDisplayMultipliersAsync(String adSetId, final ApiCallback 401 The API client is not properly authenticated. - 403 The API client is not authorized to access this resource or the resource does not exist. - - * @deprecated */ - @Deprecated - public okhttp3.Call patchAdSetsCall(RequestsPatchAdSet requestsPatchAdSet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchAdSetsV24Q1Call(RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -963,10 +934,10 @@ public okhttp3.Call patchAdSetsCall(RequestsPatchAdSet requestsPatchAdSet, final basePath = null; } - Object localVarPostBody = requestsPatchAdSet; + Object localVarPostBody = requestsPatchAdSetV24Q1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ad-sets"; + String localVarPath = "/2024-10/marketing-solutions/ad-sets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -999,18 +970,17 @@ public okhttp3.Call patchAdSetsCall(RequestsPatchAdSet requestsPatchAdSet, final return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call patchAdSetsValidateBeforeCall(RequestsPatchAdSet requestsPatchAdSet, final ApiCallback _callback) throws ApiException { - return patchAdSetsCall(requestsPatchAdSet, _callback); + private okhttp3.Call patchAdSetsV24Q1ValidateBeforeCall(RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1, final ApiCallback _callback) throws ApiException { + return patchAdSetsV24Q1Call(requestsPatchAdSetV24Q1, _callback); } /** * * Patch a list of AdSets. - * @param requestsPatchAdSet List of adsets to patch. (optional) - * @return ResponsesAdSetId + * @param requestsPatchAdSetV24Q1 List of adsets to patch. (optional) + * @return ResponsesAdSetIdV24Q1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1019,19 +989,17 @@ private okhttp3.Call patchAdSetsValidateBeforeCall(RequestsPatchAdSet requestsPa
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource or the resource does not exist. -
- * @deprecated */ - @Deprecated - public ResponsesAdSetId patchAdSets(RequestsPatchAdSet requestsPatchAdSet) throws ApiException { - ApiResponse localVarResp = patchAdSetsWithHttpInfo(requestsPatchAdSet); + public ResponsesAdSetIdV24Q1 patchAdSetsV24Q1(RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1) throws ApiException { + ApiResponse localVarResp = patchAdSetsV24Q1WithHttpInfo(requestsPatchAdSetV24Q1); return localVarResp.getData(); } /** * * Patch a list of AdSets. - * @param requestsPatchAdSet List of adsets to patch. (optional) - * @return ApiResponse<ResponsesAdSetId> + * @param requestsPatchAdSetV24Q1 List of adsets to patch. (optional) + * @return ApiResponse<ResponsesAdSetIdV24Q1> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1040,19 +1008,17 @@ public ResponsesAdSetId patchAdSets(RequestsPatchAdSet requestsPatchAdSet) throw
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource or the resource does not exist. -
- * @deprecated */ - @Deprecated - public ApiResponse patchAdSetsWithHttpInfo(RequestsPatchAdSet requestsPatchAdSet) throws ApiException { - okhttp3.Call localVarCall = patchAdSetsValidateBeforeCall(requestsPatchAdSet, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse patchAdSetsV24Q1WithHttpInfo(RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1) throws ApiException { + okhttp3.Call localVarCall = patchAdSetsV24Q1ValidateBeforeCall(requestsPatchAdSetV24Q1, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Patch a list of AdSets. - * @param requestsPatchAdSet List of adsets to patch. (optional) + * @param requestsPatchAdSetV24Q1 List of adsets to patch. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1063,13 +1029,11 @@ public ApiResponse patchAdSetsWithHttpInfo(RequestsPatchAdSet 401 The API client is not properly authenticated. - 403 The API client is not authorized to access this resource or the resource does not exist. - - * @deprecated */ - @Deprecated - public okhttp3.Call patchAdSetsAsync(RequestsPatchAdSet requestsPatchAdSet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchAdSetsV24Q1Async(RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchAdSetsValidateBeforeCall(requestsPatchAdSet, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchAdSetsV24Q1ValidateBeforeCall(requestsPatchAdSetV24Q1, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1104,7 +1068,7 @@ public okhttp3.Call patchCampaignsCall(PatchCampaignListRequest patchCampaignLis Object localVarPostBody = patchCampaignListRequest; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/campaigns"; + String localVarPath = "/2024-10/marketing-solutions/campaigns"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1237,7 +1201,7 @@ public okhttp3.Call patchCategoryBidListCall(String adSetId, PatchAdSetCategoryB Object localVarPostBody = patchAdSetCategoryBidListRequest; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids" + String localVarPath = "/2024-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids" .replace("{" + "ad-set-id" + "}", localVarApiClient.escapeString(adSetId.toString())); List localVarQueryParams = new ArrayList(); @@ -1382,7 +1346,7 @@ public okhttp3.Call patchDisplayMultipliersCall(String adSetId, PatchAdSetDispla Object localVarPostBody = patchAdSetDisplayMultiplierListRequest; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers" + String localVarPath = "/2024-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers" .replace("{" + "ad-set-id" + "}", localVarApiClient.escapeString(adSetId.toString())); List localVarQueryParams = new ArrayList(); @@ -1495,8 +1459,8 @@ public okhttp3.Call patchDisplayMultipliersAsync(String adSetId, PatchAdSetDispl return localVarCall; } /** - * Build call for searchAdSets - * @param requestAdSetSearch (optional) + * Build call for searchAdSetsV24Q1 + * @param adSetSearchRequestV24Q1 (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1505,13 +1469,11 @@ public okhttp3.Call patchDisplayMultipliersAsync(String adSetId, PatchAdSetDispl Status Code Description Response Headers 200 data for the ad sets - 400 Bad Request - - 403 Forbidden - + 403 The API client is not authorized to access this resource or the resource does not exist. - 401 The API client is not properly authenticated. - - * @deprecated */ - @Deprecated - public okhttp3.Call searchAdSetsCall(RequestAdSetSearch requestAdSetSearch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAdSetsV24Q1Call(AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1525,10 +1487,10 @@ public okhttp3.Call searchAdSetsCall(RequestAdSetSearch requestAdSetSearch, fina basePath = null; } - Object localVarPostBody = requestAdSetSearch; + Object localVarPostBody = adSetSearchRequestV24Q1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ad-sets/search"; + String localVarPath = "/2024-10/marketing-solutions/ad-sets/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1561,62 +1523,57 @@ public okhttp3.Call searchAdSetsCall(RequestAdSetSearch requestAdSetSearch, fina return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call searchAdSetsValidateBeforeCall(RequestAdSetSearch requestAdSetSearch, final ApiCallback _callback) throws ApiException { - return searchAdSetsCall(requestAdSetSearch, _callback); + private okhttp3.Call searchAdSetsV24Q1ValidateBeforeCall(AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1, final ApiCallback _callback) throws ApiException { + return searchAdSetsV24Q1Call(adSetSearchRequestV24Q1, _callback); } /** * * Search for ad sets - * @param requestAdSetSearch (optional) - * @return ResponsesReadAdSet + * @param adSetSearchRequestV24Q1 (optional) + * @return ResponsesReadAdSetV24Q1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 data for the ad sets -
400 Bad Request -
403 Forbidden -
403 The API client is not authorized to access this resource or the resource does not exist. -
401 The API client is not properly authenticated. -
- * @deprecated */ - @Deprecated - public ResponsesReadAdSet searchAdSets(RequestAdSetSearch requestAdSetSearch) throws ApiException { - ApiResponse localVarResp = searchAdSetsWithHttpInfo(requestAdSetSearch); + public ResponsesReadAdSetV24Q1 searchAdSetsV24Q1(AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1) throws ApiException { + ApiResponse localVarResp = searchAdSetsV24Q1WithHttpInfo(adSetSearchRequestV24Q1); return localVarResp.getData(); } /** * * Search for ad sets - * @param requestAdSetSearch (optional) - * @return ApiResponse<ResponsesReadAdSet> + * @param adSetSearchRequestV24Q1 (optional) + * @return ApiResponse<ResponsesReadAdSetV24Q1> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 data for the ad sets -
400 Bad Request -
403 Forbidden -
403 The API client is not authorized to access this resource or the resource does not exist. -
401 The API client is not properly authenticated. -
- * @deprecated */ - @Deprecated - public ApiResponse searchAdSetsWithHttpInfo(RequestAdSetSearch requestAdSetSearch) throws ApiException { - okhttp3.Call localVarCall = searchAdSetsValidateBeforeCall(requestAdSetSearch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse searchAdSetsV24Q1WithHttpInfo(AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1) throws ApiException { + okhttp3.Call localVarCall = searchAdSetsV24Q1ValidateBeforeCall(adSetSearchRequestV24Q1, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Search for ad sets - * @param requestAdSetSearch (optional) + * @param adSetSearchRequestV24Q1 (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1625,22 +1582,20 @@ public ApiResponse searchAdSetsWithHttpInfo(RequestAdSetSear Status Code Description Response Headers 200 data for the ad sets - 400 Bad Request - - 403 Forbidden - + 403 The API client is not authorized to access this resource or the resource does not exist. - 401 The API client is not properly authenticated. - - * @deprecated */ - @Deprecated - public okhttp3.Call searchAdSetsAsync(RequestAdSetSearch requestAdSetSearch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAdSetsV24Q1Async(AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = searchAdSetsValidateBeforeCall(requestAdSetSearch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = searchAdSetsV24Q1ValidateBeforeCall(adSetSearchRequestV24Q1, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for searchCampaigns - * @param campaignSearchRequest filters on campaigns (optional) + * Build call for searchCampaignsV23Q1 + * @param campaignSearchRequestV23Q1 filters on campaigns (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1652,10 +1607,8 @@ public okhttp3.Call searchAdSetsAsync(RequestAdSetSearch requestAdSetSearch, fin 403 Forbidden - 401 The API client is not properly authenticated. - - * @deprecated */ - @Deprecated - public okhttp3.Call searchCampaignsCall(CampaignSearchRequest campaignSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCampaignsV23Q1Call(CampaignSearchRequestV23Q1 campaignSearchRequestV23Q1, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1669,10 +1622,10 @@ public okhttp3.Call searchCampaignsCall(CampaignSearchRequest campaignSearchRequ basePath = null; } - Object localVarPostBody = campaignSearchRequest; + Object localVarPostBody = campaignSearchRequestV23Q1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/campaigns/search"; + String localVarPath = "/2024-10/marketing-solutions/campaigns/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1705,18 +1658,17 @@ public okhttp3.Call searchCampaignsCall(CampaignSearchRequest campaignSearchRequ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call searchCampaignsValidateBeforeCall(CampaignSearchRequest campaignSearchRequest, final ApiCallback _callback) throws ApiException { - return searchCampaignsCall(campaignSearchRequest, _callback); + private okhttp3.Call searchCampaignsV23Q1ValidateBeforeCall(CampaignSearchRequestV23Q1 campaignSearchRequestV23Q1, final ApiCallback _callback) throws ApiException { + return searchCampaignsV23Q1Call(campaignSearchRequestV23Q1, _callback); } /** * * Search for campaigns - * @param campaignSearchRequest filters on campaigns (optional) - * @return CampaignListResponse + * @param campaignSearchRequestV23Q1 filters on campaigns (optional) + * @return CampaignV23Q1ListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1726,19 +1678,17 @@ private okhttp3.Call searchCampaignsValidateBeforeCall(CampaignSearchRequest cam
403 Forbidden -
401 The API client is not properly authenticated. -
- * @deprecated */ - @Deprecated - public CampaignListResponse searchCampaigns(CampaignSearchRequest campaignSearchRequest) throws ApiException { - ApiResponse localVarResp = searchCampaignsWithHttpInfo(campaignSearchRequest); + public CampaignV23Q1ListResponse searchCampaignsV23Q1(CampaignSearchRequestV23Q1 campaignSearchRequestV23Q1) throws ApiException { + ApiResponse localVarResp = searchCampaignsV23Q1WithHttpInfo(campaignSearchRequestV23Q1); return localVarResp.getData(); } /** * * Search for campaigns - * @param campaignSearchRequest filters on campaigns (optional) - * @return ApiResponse<CampaignListResponse> + * @param campaignSearchRequestV23Q1 filters on campaigns (optional) + * @return ApiResponse<CampaignV23Q1ListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1748,19 +1698,17 @@ public CampaignListResponse searchCampaigns(CampaignSearchRequest campaignSearch
403 Forbidden -
401 The API client is not properly authenticated. -
- * @deprecated */ - @Deprecated - public ApiResponse searchCampaignsWithHttpInfo(CampaignSearchRequest campaignSearchRequest) throws ApiException { - okhttp3.Call localVarCall = searchCampaignsValidateBeforeCall(campaignSearchRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse searchCampaignsV23Q1WithHttpInfo(CampaignSearchRequestV23Q1 campaignSearchRequestV23Q1) throws ApiException { + okhttp3.Call localVarCall = searchCampaignsV23Q1ValidateBeforeCall(campaignSearchRequestV23Q1, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Search for campaigns - * @param campaignSearchRequest filters on campaigns (optional) + * @param campaignSearchRequestV23Q1 filters on campaigns (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1772,13 +1720,11 @@ public ApiResponse searchCampaignsWithHttpInfo(CampaignSea 403 Forbidden - 401 The API client is not properly authenticated. - - * @deprecated */ - @Deprecated - public okhttp3.Call searchCampaignsAsync(CampaignSearchRequest campaignSearchRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCampaignsV23Q1Async(CampaignSearchRequestV23Q1 campaignSearchRequestV23Q1, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = searchCampaignsValidateBeforeCall(campaignSearchRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = searchCampaignsV23Q1ValidateBeforeCall(campaignSearchRequestV23Q1, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1813,7 +1759,7 @@ public okhttp3.Call startAdSetsCall(RequestsAdSetId requestsAdSetId, final ApiCa Object localVarPostBody = requestsAdSetId; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ad-sets/start"; + String localVarPath = "/2024-10/marketing-solutions/ad-sets/start"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1944,7 +1890,7 @@ public okhttp3.Call stopAdSetsCall(RequestsAdSetId requestsAdSetId, final ApiCal Object localVarPostBody = requestsAdSetId; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ad-sets/stop"; + String localVarPath = "/2024-10/marketing-solutions/ad-sets/stop"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2077,7 +2023,7 @@ public okhttp3.Call updateAdSetAudienceCall(String adSetId, AdSetAudienceLinkInp Object localVarPostBody = adSetAudienceLinkInputEntityV1; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ad-sets/{ad-set-id}/audience" + String localVarPath = "/2024-10/marketing-solutions/ad-sets/{ad-set-id}/audience" .replace("{" + "ad-set-id" + "}", localVarApiClient.escapeString(adSetId.toString())); List localVarQueryParams = new ArrayList(); diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/CreativeApi.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/CreativeApi.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/CreativeApi.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/CreativeApi.java index 3650b6f4..956fdb37 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/CreativeApi.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/CreativeApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,33 +11,33 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.api; +package com.criteo.api.marketingsolutions.v2024_10.api; -import com.criteo.api.marketingsolutions.v2023_07.ApiCallback; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.ApiResponse; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.Pair; -import com.criteo.api.marketingsolutions.v2023_07.ProgressRequestBody; -import com.criteo.api.marketingsolutions.v2023_07.ProgressResponseBody; +import com.criteo.api.marketingsolutions.v2024_10.ApiCallback; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.ApiResponse; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ProgressRequestBody; +import com.criteo.api.marketingsolutions.v2024_10.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import com.criteo.api.marketingsolutions.v2023_07.model.AdListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.AdResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.AdWriteRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.CouponListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.CouponResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.CouponSupportedSizesResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateCouponRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.CreativeListResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.CreativeResponse; -import com.criteo.api.marketingsolutions.v2023_07.model.CreativeWriteRequest; -import com.criteo.api.marketingsolutions.v2023_07.model.UpdateCouponRequest; +import com.criteo.api.marketingsolutions.v2024_10.model.AdListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AdResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.AdWriteRequest; +import com.criteo.api.marketingsolutions.v2024_10.model.CouponListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.CouponResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.CouponSupportedSizesResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateCouponRequest; +import com.criteo.api.marketingsolutions.v2024_10.model.CreativeListResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.CreativeResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.CreativeWriteRequest; +import com.criteo.api.marketingsolutions.v2024_10.model.UpdateCouponRequest; import java.lang.reflect.Type; import java.util.ArrayList; @@ -116,7 +116,7 @@ public okhttp3.Call createAdvertiserAdCall(String advertiserId, AdWriteRequest a Object localVarPostBody = adWriteRequest; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/advertisers/{advertiser-id}/ads" + String localVarPath = "/2024-10/marketing-solutions/advertisers/{advertiser-id}/ads" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())); List localVarQueryParams = new ArrayList(); @@ -265,7 +265,7 @@ public okhttp3.Call createAdvertiserCouponCall(String advertiserId, CreateCoupon Object localVarPostBody = createCouponRequest; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons" + String localVarPath = "/2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())); List localVarQueryParams = new ArrayList(); @@ -412,7 +412,7 @@ public okhttp3.Call createAdvertiserCreativeCall(String advertiserId, CreativeWr Object localVarPostBody = creativeWriteRequest; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives" + String localVarPath = "/2024-10/marketing-solutions/advertisers/{advertiser-id}/creatives" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())); List localVarQueryParams = new ArrayList(); @@ -561,7 +561,7 @@ public okhttp3.Call deleteAdCall(Integer id, final ApiCallback _callback) throws Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ads/{id}" + String localVarPath = "/2024-10/marketing-solutions/ads/{id}" .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -691,7 +691,7 @@ public okhttp3.Call deleteAdvertiserCouponCall(String advertiserId, String id, f Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}" + String localVarPath = "/2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); @@ -827,7 +827,7 @@ public okhttp3.Call deleteCreativeCall(String id, final ApiCallback _callback) t Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/creatives/{id}" + String localVarPath = "/2024-10/marketing-solutions/creatives/{id}" .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -957,7 +957,7 @@ public okhttp3.Call editAdvertiserCouponCall(String advertiserId, String id, Upd Object localVarPostBody = updateCouponRequest; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}" + String localVarPath = "/2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); @@ -1110,7 +1110,7 @@ public okhttp3.Call editCreativeCall(String id, CreativeWriteRequest creativeWri Object localVarPostBody = creativeWriteRequest; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/creatives/{id}" + String localVarPath = "/2024-10/marketing-solutions/creatives/{id}" .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -1260,7 +1260,7 @@ public okhttp3.Call generateCreativePreviewCall(String id, Integer width, Intege Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/creatives/{id}/preview" + String localVarPath = "/2024-10/marketing-solutions/creatives/{id}/preview" .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -1408,7 +1408,7 @@ public okhttp3.Call getAdCall(Integer id, final ApiCallback _callback) throws Ap Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/ads/{id}" + String localVarPath = "/2024-10/marketing-solutions/ads/{id}" .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -1547,7 +1547,7 @@ public okhttp3.Call getAdvertiserAdsCall(String advertiserId, Integer limit, Int Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/advertisers/{advertiser-id}/ads" + String localVarPath = "/2024-10/marketing-solutions/advertisers/{advertiser-id}/ads" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())); List localVarQueryParams = new ArrayList(); @@ -1698,7 +1698,7 @@ public okhttp3.Call getAdvertiserCouponCall(String advertiserId, String id, fina Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}" + String localVarPath = "/2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); @@ -1843,7 +1843,7 @@ public okhttp3.Call getAdvertiserCouponPreviewCall(String advertiserId, String i Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}/preview" + String localVarPath = "/2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}/preview" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())) .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); @@ -2000,7 +2000,7 @@ public okhttp3.Call getAdvertiserCouponSupportedSizesCall(String advertiserId, S Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes" + String localVarPath = "/2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())); List localVarQueryParams = new ArrayList(); @@ -2142,7 +2142,7 @@ public okhttp3.Call getAdvertiserCouponsCall(String advertiserId, Integer limit, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons" + String localVarPath = "/2024-10/marketing-solutions/advertisers/{advertiser-id}/coupons" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())); List localVarQueryParams = new ArrayList(); @@ -2292,7 +2292,7 @@ public okhttp3.Call getAdvertiserCreativesCall(String advertiserId, Integer limi Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives" + String localVarPath = "/2024-10/marketing-solutions/advertisers/{advertiser-id}/creatives" .replace("{" + "advertiser-id" + "}", localVarApiClient.escapeString(advertiserId.toString())); List localVarQueryParams = new ArrayList(); @@ -2443,7 +2443,7 @@ public okhttp3.Call getCreativeCall(String id, final ApiCallback _callback) thro Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/creatives/{id}" + String localVarPath = "/2024-10/marketing-solutions/creatives/{id}" .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/GatewayApi.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/GatewayApi.java similarity index 90% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/GatewayApi.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/GatewayApi.java index 789f290c..a9add1e9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/api/GatewayApi.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/api/GatewayApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,23 +11,23 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.api; +package com.criteo.api.marketingsolutions.v2024_10.api; -import com.criteo.api.marketingsolutions.v2023_07.ApiCallback; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.ApiResponse; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.Pair; -import com.criteo.api.marketingsolutions.v2023_07.ProgressRequestBody; -import com.criteo.api.marketingsolutions.v2023_07.ProgressResponseBody; +import com.criteo.api.marketingsolutions.v2024_10.ApiCallback; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.ApiResponse; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ProgressRequestBody; +import com.criteo.api.marketingsolutions.v2024_10.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import com.criteo.api.marketingsolutions.v2023_07.model.ApplicationSummaryModelResponse; +import com.criteo.api.marketingsolutions.v2024_10.model.ApplicationSummaryModelResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -102,7 +102,7 @@ public okhttp3.Call getCurrentApplicationCall(final ApiCallback _callback) throw Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/marketing-solutions/me"; + String localVarPath = "/2024-10/marketing-solutions/me"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/ApiKeyAuth.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/ApiKeyAuth.java similarity index 88% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/ApiKeyAuth.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/ApiKeyAuth.java index c0da013d..dd796d55 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/ApiKeyAuth.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.auth; +package com.criteo.api.marketingsolutions.v2024_10.auth; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Pair; import java.net.URI; import java.util.Map; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/Authentication.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/Authentication.java similarity index 80% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/Authentication.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/Authentication.java index eccb115f..b81384d1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/Authentication.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/Authentication.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.auth; +package com.criteo.api.marketingsolutions.v2024_10.auth; -import com.criteo.api.marketingsolutions.v2023_07.Pair; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; import java.net.URI; import java.util.Map; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/HttpBasicAuth.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/HttpBasicAuth.java similarity index 84% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/HttpBasicAuth.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/HttpBasicAuth.java index c4e1b0c6..8ac9d4da 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/HttpBasicAuth.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.auth; +package com.criteo.api.marketingsolutions.v2024_10.auth; -import com.criteo.api.marketingsolutions.v2023_07.Pair; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; import okhttp3.Credentials; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/HttpBearerAuth.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/HttpBearerAuth.java similarity index 87% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/HttpBearerAuth.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/HttpBearerAuth.java index 607b41f2..f98f18ff 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/HttpBearerAuth.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/HttpBearerAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.auth; +package com.criteo.api.marketingsolutions.v2024_10.auth; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Pair; import java.net.URI; import java.util.Map; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuth.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuth.java similarity index 80% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuth.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuth.java index ea3442ef..95e58fce 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuth.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.auth; +package com.criteo.api.marketingsolutions.v2024_10.auth; -import com.criteo.api.marketingsolutions.v2023_07.Pair; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; import java.net.URI; import java.util.Map; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuthFlow.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuthFlow.java similarity index 84% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuthFlow.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuthFlow.java index 435c2a36..31fc7152 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuthFlow.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuthFlow.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.auth; +package com.criteo.api.marketingsolutions.v2024_10.auth; /** * OAuth flows that are supported by this client diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuthOkHttpClient.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuthOkHttpClient.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuthOkHttpClient.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuthOkHttpClient.java index 02ac9682..6b083352 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/OAuthOkHttpClient.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/OAuthOkHttpClient.java @@ -1,4 +1,4 @@ -package com.criteo.api.marketingsolutions.v2023_07.auth; +package com.criteo.api.marketingsolutions.v2024_10.auth; import okhttp3.OkHttpClient; import okhttp3.MediaType; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/RetryingOAuth.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/RetryingOAuth.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/RetryingOAuth.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/RetryingOAuth.java index b0ca9667..7871fe9e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/auth/RetryingOAuth.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/auth/RetryingOAuth.java @@ -1,7 +1,7 @@ -package com.criteo.api.marketingsolutions.v2023_07.auth; +package com.criteo.api.marketingsolutions.v2024_10.auth; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Pair; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.Pair; import okhttp3.Interceptor; import okhttp3.OkHttpClient; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AbstractOpenApiSchema.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AbstractOpenApiSchema.java similarity index 95% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AbstractOpenApiSchema.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AbstractOpenApiSchema.java index 25e553ad..17886a46 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AbstractOpenApiSchema.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AbstractOpenApiSchema.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,9 +11,9 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; import java.util.Objects; import java.lang.reflect.Type; import java.util.Map; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Ad.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Ad.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Ad.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Ad.java index 76e7a98d..36973fb6 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Ad.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Ad.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * An ad is the binding that connects a creative with an ad set diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdListResponse.java index e676ed81..86971260 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdResource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AdResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a list of response resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdResource.java index 65544dd7..1f6fc26e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.Ad; +import com.criteo.api.marketingsolutions.v2024_10.model.Ad; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdResponse.java index d6b55507..162c1925 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdResource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AdResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for response resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1.java index de55a1a2..d2e661b7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Link Audience with an ad set diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1Resource.java index f23e480e..3fba021e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetAudienceLinkEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetAudienceLinkEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Response.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1Response.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Response.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1Response.java index 7dac002c..82dfff1b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Response.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkEntityV1Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetAudienceLinkEntityV1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetAudienceLinkEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single entity diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkInputEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkInputEntityV1.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkInputEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkInputEntityV1.java index 72c42462..0aa6b29c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkInputEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetAudienceLinkInputEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetAudienceLinkEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetAudienceLinkEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Input to set audience ad set link. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBid.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBid.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBid.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBid.java index 9ea45d05..5e60e737 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBid.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBid.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Category Bid information about a Category for a given Ad Set. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBidListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBidListResponse.java index 0e1cd065..267721ca 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBidListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetCategoryBidResource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetCategoryBidResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a list of response resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBidResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBidResource.java index f7ce9707..0457665d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetCategoryBidResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetCategoryBid; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetCategoryBid; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDeliveryLimitationsV24Q1.java similarity index 99% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDeliveryLimitationsV24Q1.java index 7b85e77e..016a2b69 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDeliveryLimitationsV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set delivery limitations model diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplier.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplier.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplier.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplier.java index 001fd532..ada50c96 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplier.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Display Multiplier information about a Category for a given Ad Set. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplierListResponse.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplierListResponse.java index 08507666..762472d1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplierListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetDisplayMultiplierResource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetDisplayMultiplierResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a list of response resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplierResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplierResource.java index 7c1639dc..a6084219 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetDisplayMultiplierResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetDisplayMultiplier; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetDisplayMultiplier; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetFrequencyCappingV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetFrequencyCappingV24Q1.java index 1245cda5..553a3ec9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetFrequencyCappingV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set frequency capping model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetGeoLocationV24Q1.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetGeoLocationV24Q1.java index 000cd40f..9cd3897c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetGeoLocationV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.NillableAdSetTargetingRuleV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableAdSetTargetingRuleV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set geolocation model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetSearchFilterV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetSearchFilterV24Q1.java index 9b9adb40..77529f29 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetSearchFilterV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * filter on ad set ids diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetSearchRequestV24Q1.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetSearchRequestV24Q1.java index 8d460161..70921bdb 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetSearchRequestV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.AdSetSearchFilterV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetSearchFilterV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * request payload of the search endpoint diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetTargetingRuleV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetTargetingRuleV24Q1.java index 552c38c0..bed607c5 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetTargetingRuleV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set targeting rule model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetTargetingV24Q1.java similarity index 96% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetTargetingV24Q1.java index 30f4201e..e2ac1159 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdSetTargetingV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.AdSetDeliveryLimitationsV24Q1; -import com.criteo.api.marketingsolutions.preview.model.AdSetFrequencyCappingV24Q1; -import com.criteo.api.marketingsolutions.preview.model.AdSetGeoLocationV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetDeliveryLimitationsV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetFrequencyCappingV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetGeoLocationV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set targeting model diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWrite.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWrite.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWrite.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWrite.java index 959c7ecf..28a89afb 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWrite.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWrite.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Entity to create or update an ad diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWriteRequest.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWriteRequest.java index ae3c9a88..4c71b5f1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWriteRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdWriteResource; +import com.criteo.api.marketingsolutions.v2024_10.model.AdWriteResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for input resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWriteResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWriteResource.java index cf5fedbb..b147328b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdWriteResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdWrite; +import com.criteo.api.marketingsolutions.v2024_10.model.AdWrite; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveAttributes.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveAttributes.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveAttributes.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveAttributes.java index 7237086c..0afc0ae6 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveAttributes.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdaptiveColors; -import com.criteo.api.marketingsolutions.v2023_07.model.ImageSet; -import com.criteo.api.marketingsolutions.v2023_07.model.ImageShape; -import com.criteo.api.marketingsolutions.v2023_07.model.VideoDetail; +import com.criteo.api.marketingsolutions.v2024_10.model.AdaptiveColors; +import com.criteo.api.marketingsolutions.v2024_10.model.ImageSet; +import com.criteo.api.marketingsolutions.v2024_10.model.ImageShape; +import com.criteo.api.marketingsolutions.v2024_10.model.VideoDetail; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,7 +49,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * The attributes specific to Adaptive creatives diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveColors.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveColors.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveColors.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveColors.java index 792ed006..0baea81c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveColors.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveColors.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -41,7 +41,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Entity consists of the color aliases of the creative's elements diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveWriteAttributes.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveWriteAttributes.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveWriteAttributes.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveWriteAttributes.java index a234b932..552ead87 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveWriteAttributes.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AdaptiveWriteAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdaptiveColors; -import com.criteo.api.marketingsolutions.v2023_07.model.ImageSetBase64; +import com.criteo.api.marketingsolutions.v2024_10.model.AdaptiveColors; +import com.criteo.api.marketingsolutions.v2024_10.model.ImageSetBase64; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,7 +47,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * The attributes specific to create or update an Adaptive creative diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AlgebraNodeV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AlgebraNodeV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AlgebraNodeV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AlgebraNodeV1.java index dc7acbc7..cfe42c94 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AlgebraNodeV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AlgebraNodeV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Node in the audience algebra definition. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModel.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModel.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModel.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModel.java index c0b04fe8..2f98c95b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModel.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Used for the /me endpoint. Contains information about the currently authenticated application that we accept to give to our clients diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModelResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModelResource.java index 4f1391bf..afacb5e3 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.ApplicationSummaryModel; +import com.criteo.api.marketingsolutions.v2024_10.model.ApplicationSummaryModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModelResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModelResponse.java index 682dd4fb..9acd6725 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ApplicationSummaryModelResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.ApplicationSummaryModelResource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.ApplicationSummaryModelResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkCreateInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkCreateInputV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkCreateInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkCreateInputV1.java index 51045f9e..0a27abe1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkCreateInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkCreateInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceCreateEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceCreateEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Input to create one or more audiences. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkDeleteInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkDeleteInputV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkDeleteInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkDeleteInputV1.java index 945d4597..b6d233d9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkDeleteInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkDeleteInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceDeleteEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceDeleteEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Input to delete one or more audiences. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkUpdateInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkUpdateInputV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkUpdateInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkUpdateInputV1.java index 9086c3f6..8feb927f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkUpdateInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceBulkUpdateInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceUpdateEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceUpdateEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Input to update one or more audiences. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizeEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceComputeSizeEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizeEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceComputeSizeEntityV1Resource.java index 9ea80c2d..ccd09754 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceComputeSizeEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizesInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceComputeSizesInputV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizesInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceComputeSizesInputV1.java index fd0d05cf..03d4be84 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizesInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceComputeSizesInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceComputeSizeEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceComputeSizeEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Input to retrieve the size of one or more audiences. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceCreateEntityV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceCreateEntityV1.java index d8662f82..7e2f18cc 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceCreateEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AlgebraNodeV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AlgebraNodeV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Audience of people of interest for a marketer. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceCreateEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceCreateEntityV1Resource.java index c9e693ab..59c214cc 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceCreateEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceCreateEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceCreateEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceDeleteEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceDeleteEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceDeleteEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceDeleteEntityV1Resource.java index b4d3b40d..fcff9201 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceDeleteEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceDeleteEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1.java index 145b239d..402e0e6d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AlgebraNodeV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AlgebraNodeV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Audience of people of interest for a marketer. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java index d89aea8c..18b8cdeb 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceEntityV1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSearchMetadataV1; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSearchMetadataV1; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,7 +47,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities and metadata diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1ListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1ListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1ListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1ListResponse.java index 4911634c..ffe4ba49 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceEntityV1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1Resource.java index 1af54982..c9afd4c4 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceError.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceError.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceError.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceError.java index 49e7e60e..a8e33117 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceError.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceError.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Definition of an audience error diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeEntityV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeEntityV1.java index 55b9ec4f..815c4ef3 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AlgebraNodeV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AlgebraNodeV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Audience of people of interest for a marketer. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeEntityV1Resource.java index d728d9c8..35f1deb4 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceEstimateSizeEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceEstimateSizeEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeInputV1.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeInputV1.java index 39999039..203c447e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceEstimateSizeInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceEstimateSizeEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceEstimateSizeEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Input to estimate the size of an audience. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1ListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceIdEntityV1ListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1ListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceIdEntityV1ListResponse.java index fd567289..5448538b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceIdEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceIdEntityV1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceIdEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceIdEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceIdEntityV1Resource.java index 57704b31..d9d20c13 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceIdEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceNameDescription.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceNameDescription.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceNameDescription.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceNameDescription.java index db686442..9b7702f8 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceNameDescription.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceNameDescription.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Description of an audience with name and detailed description diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchEntityV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchEntityV1.java index c78f6a49..92c99020 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Available filters to perform a search on segments. If present, the filters are AND'ed together when applied. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchEntityV1Resource.java index 8a951863..0f5476a6 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSearchEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSearchEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchInputV1.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchInputV1.java index 4cad165f..c9bc274c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSearchEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSearchEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Audience search parameter diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchMetadataV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchMetadataV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchMetadataV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchMetadataV1.java index b49b2ceb..8d685de5 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchMetadataV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSearchMetadataV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Metadata for the audience search response. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkCreateInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkCreateInputV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkCreateInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkCreateInputV1.java index e6f04315..a24150c7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkCreateInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkCreateInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentCreateEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentCreateEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Input to create one or more audience segments. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkDeleteInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkDeleteInputV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkDeleteInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkDeleteInputV1.java index 34b51c25..abc2d24f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkDeleteInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkDeleteInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentDeleteEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentDeleteEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Input to delete one or more segments. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkUpdateInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkUpdateInputV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkUpdateInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkUpdateInputV1.java index 57ce0f7f..97fc18cf 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkUpdateInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentBulkUpdateInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentUpdateEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentUpdateEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Input to update one or more segments. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizeEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentComputeSizeEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizeEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentComputeSizeEntityV1Resource.java index 5a623bba..6d52e341 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentComputeSizeEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizesInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentComputeSizesInputV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizesInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentComputeSizesInputV1.java index 940c581d..e61dbbc7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizesInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentComputeSizesInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentComputeSizeEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentComputeSizeEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Input to retrieve the size of one or more segments. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentCreateEntityV1.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentCreateEntityV1.java index e9d2c699..e4ee2c10 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentCreateEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,15 +11,15 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.InMarketCreateV1; -import com.criteo.api.marketingsolutions.v2023_07.model.LocationCreateV1; -import com.criteo.api.marketingsolutions.v2023_07.model.LookalikeCreateV1; -import com.criteo.api.marketingsolutions.v2023_07.model.ProspectingCreateV1; -import com.criteo.api.marketingsolutions.v2023_07.model.RetargetingCreateV1; +import com.criteo.api.marketingsolutions.v2024_10.model.InMarketCreateV1; +import com.criteo.api.marketingsolutions.v2024_10.model.LocationCreateV1; +import com.criteo.api.marketingsolutions.v2024_10.model.LookalikeCreateV1; +import com.criteo.api.marketingsolutions.v2024_10.model.ProspectingCreateV1; +import com.criteo.api.marketingsolutions.v2024_10.model.RetargetingCreateV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,7 +47,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Set of rules that defines specific people to target. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentCreateEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentCreateEntityV1Resource.java index a4f4f91a..bf09ae74 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentCreateEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentCreateEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentCreateEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentDeleteEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentDeleteEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentDeleteEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentDeleteEntityV1Resource.java index 81d41cd1..6bf674c0 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentDeleteEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentDeleteEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1.java index 689ff667..4e645425 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,17 +11,17 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.BehavioralV1; -import com.criteo.api.marketingsolutions.v2023_07.model.ContactListV1; -import com.criteo.api.marketingsolutions.v2023_07.model.InMarketV1; -import com.criteo.api.marketingsolutions.v2023_07.model.LocationV1; -import com.criteo.api.marketingsolutions.v2023_07.model.LookalikeV1; -import com.criteo.api.marketingsolutions.v2023_07.model.ProspectingV1; -import com.criteo.api.marketingsolutions.v2023_07.model.RetargetingV1; +import com.criteo.api.marketingsolutions.v2024_10.model.BehavioralV1; +import com.criteo.api.marketingsolutions.v2024_10.model.ContactListV1; +import com.criteo.api.marketingsolutions.v2024_10.model.InMarketV1; +import com.criteo.api.marketingsolutions.v2024_10.model.LocationV1; +import com.criteo.api.marketingsolutions.v2024_10.model.LookalikeV1; +import com.criteo.api.marketingsolutions.v2024_10.model.ProspectingV1; +import com.criteo.api.marketingsolutions.v2024_10.model.RetargetingV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -50,7 +50,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Set of rules that defines specific people to target. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java index a0df74a9..b529dd64 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentEntityV1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSearchMetadataV1; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSearchMetadataV1; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,7 +47,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities and metadata diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1ListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1ListResponse.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1ListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1ListResponse.java index 782bb435..16f61b45 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentEntityV1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1Resource.java index a2566587..d386dbd8 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEstimateSizeInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEstimateSizeInputV1.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEstimateSizeInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEstimateSizeInputV1.java index 37571230..ccdcbc14 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEstimateSizeInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentEstimateSizeInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEstimationEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEstimationEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Input to estimate the size of an audience segment.. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1ListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentIdEntityV1ListResponse.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1ListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentIdEntityV1ListResponse.java index 6afd9772..f6b874bd 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentIdEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentIdEntityV1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentIdEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentIdEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentIdEntityV1Resource.java index d9b957b2..78b9b716 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentIdEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchEntityV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchEntityV1.java index efa078f1..0b2ed44a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Available filters to perform a search on audience segments. If present, the filters are AND'ed together when applied. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchEntityV1Resource.java index c79cf3c3..e95172cd 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSearchEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSearchEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchInputV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchInputV1.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchInputV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchInputV1.java index 221dbf56..b3046984 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchInputV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSearchEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSearchEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Audience segment search parameter diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchMetadataV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchMetadataV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchMetadataV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchMetadataV1.java index d45ae464..e14b066b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchMetadataV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSearchMetadataV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Metadata for the audience segment search response. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1.java index e8882a45..a3c41148 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Set of rules that defines specific people to target. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1ListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1ListResponse.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1ListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1ListResponse.java index 5c4cbdab..04ad5d17 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEntityV1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1Resource.java index e62e87ea..d690cf30 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationEntityV1.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationEntityV1.java index eccf28cb..35e504ad 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.InMarketSizeEstimationV1; -import com.criteo.api.marketingsolutions.v2023_07.model.LocationSizeEstimationV1; +import com.criteo.api.marketingsolutions.v2024_10.model.InMarketSizeEstimationV1; +import com.criteo.api.marketingsolutions.v2024_10.model.LocationSizeEstimationV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Set of rules that defines specific people to target. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationEntityV1Resource.java index 85a597db..164c78d1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEstimationEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEstimationEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1.java index 06c451aa..ab88211b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Segment size estimation diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1Resource.java index 5a1a2c59..fcc5fa04 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEstimationV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEstimationV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Response.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1Response.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Response.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1Response.java index 60d1d980..fc36bbab 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Response.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentSizeEstimationV1Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentSizeEstimationV1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentSizeEstimationV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentUpdateEntityV1.java similarity index 96% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentUpdateEntityV1.java index f816a372..eac719c1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentUpdateEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,16 +11,16 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.InMarketUpdateV1; -import com.criteo.api.marketingsolutions.v2023_07.model.LocationUpdateV1; -import com.criteo.api.marketingsolutions.v2023_07.model.LookalikeUpdateV1; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableString; -import com.criteo.api.marketingsolutions.v2023_07.model.ProspectingUpdateV1; -import com.criteo.api.marketingsolutions.v2023_07.model.RetargetingUpdateV1; +import com.criteo.api.marketingsolutions.v2024_10.model.InMarketUpdateV1; +import com.criteo.api.marketingsolutions.v2024_10.model.LocationUpdateV1; +import com.criteo.api.marketingsolutions.v2024_10.model.LookalikeUpdateV1; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableString; +import com.criteo.api.marketingsolutions.v2024_10.model.ProspectingUpdateV1; +import com.criteo.api.marketingsolutions.v2024_10.model.RetargetingUpdateV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,7 +48,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Set of rules that defines specific people to target. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentUpdateEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentUpdateEntityV1Resource.java index bd74667e..ffcfd8af 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSegmentUpdateEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSegmentUpdateEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSegmentUpdateEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1.java index 78d90f30..fb13e15c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Audience entity only with its size diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1ListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1ListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1ListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1ListResponse.java index 6e3e6f0a..3415e2d7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEntityV1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1Resource.java index d348e89b..4572e5d1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1.java index d770fc76..07c8bfa7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Audience size estimation diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1Resource.java index b04ae019..a302addb 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEstimationV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEstimationV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Response.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1Response.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Response.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1Response.java index 35993ac2..a46efaf9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Response.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceSizeEstimationV1Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceSizeEstimationV1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceSizeEstimationV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceUpdateEntityV1.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceUpdateEntityV1.java index e2501d64..61215942 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceUpdateEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AlgebraNodeV1; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableString; +import com.criteo.api.marketingsolutions.v2024_10.model.AlgebraNodeV1; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableString; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Audience of people of interest for a marketer. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceUpdateEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceUpdateEntityV1Resource.java index 9a3b3206..6d4cc386 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceUpdateEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceUpdateEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceUpdateEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceWarning.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceWarning.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceWarning.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceWarning.java index 6abfac2b..d53fb472 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceWarning.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/AudienceWarning.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Definition of the warning diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BasicAudienceDefinition.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/BasicAudienceDefinition.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BasicAudienceDefinition.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/BasicAudienceDefinition.java index 680fe636..3f7e7c23 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BasicAudienceDefinition.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/BasicAudienceDefinition.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceNameDescription; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceNameDescription; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Common definition of an audience diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BehavioralV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/BehavioralV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BehavioralV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/BehavioralV1.java index 828544fb..b2f713b8 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BehavioralV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/BehavioralV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings of a behavioral set of users provided by Criteo. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSearchFilters.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSearchFiltersV23Q1.java similarity index 83% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSearchFilters.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSearchFiltersV23Q1.java index e15ca86f..0f02924c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSearchFilters.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSearchFiltersV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,13 +44,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * filters on campaign */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CampaignSearchFilters { +public class CampaignSearchFiltersV23Q1 { public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) private List campaignIds = null; @@ -59,16 +59,16 @@ public class CampaignSearchFilters { @SerializedName(SERIALIZED_NAME_ADVERTISER_IDS) private List advertiserIds = null; - public CampaignSearchFilters() { + public CampaignSearchFiltersV23Q1() { } - public CampaignSearchFilters campaignIds(List campaignIds) { + public CampaignSearchFiltersV23Q1 campaignIds(List campaignIds) { this.campaignIds = campaignIds; return this; } - public CampaignSearchFilters addCampaignIdsItem(String campaignIdsItem) { + public CampaignSearchFiltersV23Q1 addCampaignIdsItem(String campaignIdsItem) { if (this.campaignIds == null) { this.campaignIds = null; } @@ -92,13 +92,13 @@ public void setCampaignIds(List campaignIds) { } - public CampaignSearchFilters advertiserIds(List advertiserIds) { + public CampaignSearchFiltersV23Q1 advertiserIds(List advertiserIds) { this.advertiserIds = advertiserIds; return this; } - public CampaignSearchFilters addAdvertiserIdsItem(String advertiserIdsItem) { + public CampaignSearchFiltersV23Q1 addAdvertiserIdsItem(String advertiserIdsItem) { if (this.advertiserIds == null) { this.advertiserIds = null; } @@ -134,9 +134,9 @@ public void setAdvertiserIds(List advertiserIds) { * * @param key name of the property * @param value value of the property - * @return the CampaignSearchFilters instance itself + * @return the CampaignSearchFiltersV23Q1 instance itself */ - public CampaignSearchFilters putAdditionalProperty(String key, Object value) { + public CampaignSearchFiltersV23Q1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -175,10 +175,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CampaignSearchFilters campaignSearchFilters = (CampaignSearchFilters) o; - return Objects.equals(this.campaignIds, campaignSearchFilters.campaignIds) && - Objects.equals(this.advertiserIds, campaignSearchFilters.advertiserIds)&& - Objects.equals(this.additionalProperties, campaignSearchFilters.additionalProperties); + CampaignSearchFiltersV23Q1 campaignSearchFiltersV23Q1 = (CampaignSearchFiltersV23Q1) o; + return Objects.equals(this.campaignIds, campaignSearchFiltersV23Q1.campaignIds) && + Objects.equals(this.advertiserIds, campaignSearchFiltersV23Q1.advertiserIds)&& + Objects.equals(this.additionalProperties, campaignSearchFiltersV23Q1.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -200,7 +200,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CampaignSearchFilters {\n"); + sb.append("class CampaignSearchFiltersV23Q1 {\n"); sb.append(" campaignIds: ").append(toIndentedString(campaignIds)).append("\n"); sb.append(" advertiserIds: ").append(toIndentedString(advertiserIds)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -237,12 +237,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CampaignSearchFilters + * @throws IOException if the JSON Object is invalid with respect to CampaignSearchFiltersV23Q1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CampaignSearchFilters.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignSearchFilters is not found in the empty JSON string", CampaignSearchFilters.openapiRequiredFields.toString())); + if (!CampaignSearchFiltersV23Q1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignSearchFiltersV23Q1 is not found in the empty JSON string", CampaignSearchFiltersV23Q1.openapiRequiredFields.toString())); } } // ensure the optional json data is an array if present @@ -259,16 +259,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CampaignSearchFilters.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CampaignSearchFilters' and its subtypes + if (!CampaignSearchFiltersV23Q1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CampaignSearchFiltersV23Q1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CampaignSearchFilters.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CampaignSearchFiltersV23Q1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CampaignSearchFilters value) throws IOException { + public void write(JsonWriter out, CampaignSearchFiltersV23Q1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -291,11 +291,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CampaignSearchFilters read(JsonReader in) throws IOException { + public CampaignSearchFiltersV23Q1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CampaignSearchFilters instance = thisAdapter.fromJsonTree(jsonObj); + CampaignSearchFiltersV23Q1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -322,18 +322,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CampaignSearchFilters given an JSON string + * Create an instance of CampaignSearchFiltersV23Q1 given an JSON string * * @param jsonString JSON string - * @return An instance of CampaignSearchFilters - * @throws IOException if the JSON string is invalid with respect to CampaignSearchFilters + * @return An instance of CampaignSearchFiltersV23Q1 + * @throws IOException if the JSON string is invalid with respect to CampaignSearchFiltersV23Q1 */ - public static CampaignSearchFilters fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CampaignSearchFilters.class); + public static CampaignSearchFiltersV23Q1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CampaignSearchFiltersV23Q1.class); } /** - * Convert an instance of CampaignSearchFilters to an JSON string + * Convert an instance of CampaignSearchFiltersV23Q1 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSearchRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSearchRequestV23Q1.java similarity index 79% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSearchRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSearchRequestV23Q1.java index ee87cf73..c489abc5 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSearchRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSearchRequestV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CampaignSearchFilters; +import com.criteo.api.marketingsolutions.v2024_10.model.CampaignSearchFiltersV23Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,21 +42,21 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * request payload of the search endpoint */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CampaignSearchRequest { +public class CampaignSearchRequestV23Q1 { public static final String SERIALIZED_NAME_FILTERS = "filters"; @SerializedName(SERIALIZED_NAME_FILTERS) - private CampaignSearchFilters filters; + private CampaignSearchFiltersV23Q1 filters; - public CampaignSearchRequest() { + public CampaignSearchRequestV23Q1() { } - public CampaignSearchRequest filters(CampaignSearchFilters filters) { + public CampaignSearchRequestV23Q1 filters(CampaignSearchFiltersV23Q1 filters) { this.filters = filters; return this; @@ -68,12 +68,12 @@ public CampaignSearchRequest filters(CampaignSearchFilters filters) { **/ @javax.annotation.Nullable - public CampaignSearchFilters getFilters() { + public CampaignSearchFiltersV23Q1 getFilters() { return filters; } - public void setFilters(CampaignSearchFilters filters) { + public void setFilters(CampaignSearchFiltersV23Q1 filters) { this.filters = filters; } @@ -90,9 +90,9 @@ public void setFilters(CampaignSearchFilters filters) { * * @param key name of the property * @param value value of the property - * @return the CampaignSearchRequest instance itself + * @return the CampaignSearchRequestV23Q1 instance itself */ - public CampaignSearchRequest putAdditionalProperty(String key, Object value) { + public CampaignSearchRequestV23Q1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CampaignSearchRequest campaignSearchRequest = (CampaignSearchRequest) o; - return Objects.equals(this.filters, campaignSearchRequest.filters)&& - Objects.equals(this.additionalProperties, campaignSearchRequest.additionalProperties); + CampaignSearchRequestV23Q1 campaignSearchRequestV23Q1 = (CampaignSearchRequestV23Q1) o; + return Objects.equals(this.filters, campaignSearchRequestV23Q1.filters)&& + Objects.equals(this.additionalProperties, campaignSearchRequestV23Q1.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CampaignSearchRequest {\n"); + sb.append("class CampaignSearchRequestV23Q1 {\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -179,17 +179,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CampaignSearchRequest + * @throws IOException if the JSON Object is invalid with respect to CampaignSearchRequestV23Q1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CampaignSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignSearchRequest is not found in the empty JSON string", CampaignSearchRequest.openapiRequiredFields.toString())); + if (!CampaignSearchRequestV23Q1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignSearchRequestV23Q1 is not found in the empty JSON string", CampaignSearchRequestV23Q1.openapiRequiredFields.toString())); } } // validate the optional field `filters` if (jsonObj.get("filters") != null && !jsonObj.get("filters").isJsonNull()) { - CampaignSearchFilters.validateJsonObject(jsonObj.getAsJsonObject("filters")); + CampaignSearchFiltersV23Q1.validateJsonObject(jsonObj.getAsJsonObject("filters")); } } @@ -197,16 +197,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CampaignSearchRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CampaignSearchRequest' and its subtypes + if (!CampaignSearchRequestV23Q1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CampaignSearchRequestV23Q1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CampaignSearchRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CampaignSearchRequestV23Q1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CampaignSearchRequest value) throws IOException { + public void write(JsonWriter out, CampaignSearchRequestV23Q1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -229,11 +229,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CampaignSearchRequest read(JsonReader in) throws IOException { + public CampaignSearchRequestV23Q1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CampaignSearchRequest instance = thisAdapter.fromJsonTree(jsonObj); + CampaignSearchRequestV23Q1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -260,18 +260,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CampaignSearchRequest given an JSON string + * Create an instance of CampaignSearchRequestV23Q1 given an JSON string * * @param jsonString JSON string - * @return An instance of CampaignSearchRequest - * @throws IOException if the JSON string is invalid with respect to CampaignSearchRequest + * @return An instance of CampaignSearchRequestV23Q1 + * @throws IOException if the JSON string is invalid with respect to CampaignSearchRequestV23Q1 */ - public static CampaignSearchRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CampaignSearchRequest.class); + public static CampaignSearchRequestV23Q1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CampaignSearchRequestV23Q1.class); } /** - * Convert an instance of CampaignSearchRequest to an JSON string + * Convert an instance of CampaignSearchRequestV23Q1 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimitV23Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSpendLimitV23Q1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimitV23Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSpendLimitV23Q1.java index 2098f731..2903816c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimitV23Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignSpendLimitV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableDecimal; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableDecimal; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * campaign spend limit model diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1.java index 04b8c44a..f09ae731 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CampaignSpendLimitV23Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CampaignSpendLimitV23Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * campaign read model diff --git a/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1ListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1ListResponse.java new file mode 100644 index 00000000..c49059a0 --- /dev/null +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1ListResponse.java @@ -0,0 +1,393 @@ +/* + * Criteo API + * Criteo API - MarketingSolutions + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.marketingsolutions.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.marketingsolutions.v2024_10.model.CampaignV23Q1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.marketingsolutions.v2024_10.JSON; + +/** + * Data model for a list of response resources + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CampaignV23Q1ListResponse { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public CampaignV23Q1ListResponse() { + } + + + public CampaignV23Q1ListResponse( + List warnings, + List errors + ) { + this(); + this.warnings = warnings; + this.errors = errors; + } + + public CampaignV23Q1ListResponse data(List data) { + + this.data = data; + return this; + } + + public CampaignV23Q1ListResponse addDataItem(CampaignV23Q1Resource dataItem) { + if (this.data == null) { + this.data = null; + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the CampaignV23Q1ListResponse instance itself + */ + public CampaignV23Q1ListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignV23Q1ListResponse campaignV23Q1ListResponse = (CampaignV23Q1ListResponse) o; + return Objects.equals(this.data, campaignV23Q1ListResponse.data) && + Objects.equals(this.warnings, campaignV23Q1ListResponse.warnings) && + Objects.equals(this.errors, campaignV23Q1ListResponse.errors)&& + Objects.equals(this.additionalProperties, campaignV23Q1ListResponse.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(data, warnings, errors, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignV23Q1ListResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + openapiFields.add("warnings"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to CampaignV23Q1ListResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!CampaignV23Q1ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignV23Q1ListResponse is not found in the empty JSON string", CampaignV23Q1ListResponse.openapiRequiredFields.toString())); + } + } + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + if (jsonArraydata != null) { + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + + // validate the optional field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + CampaignV23Q1Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CampaignV23Q1ListResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CampaignV23Q1ListResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CampaignV23Q1ListResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CampaignV23Q1ListResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public CampaignV23Q1ListResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + CampaignV23Q1ListResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CampaignV23Q1ListResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CampaignV23Q1ListResponse + * @throws IOException if the JSON string is invalid with respect to CampaignV23Q1ListResponse + */ + public static CampaignV23Q1ListResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CampaignV23Q1ListResponse.class); + } + + /** + * Convert an instance of CampaignV23Q1ListResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1Resource.java index e25592e1..50911ef2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CampaignV23Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CampaignV23Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Response.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1Response.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Response.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1Response.java index 30e0f270..f8e96c00 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Response.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CampaignV23Q1Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CampaignV23Q1Resource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.CampaignV23Q1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for response resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CommonProblem.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CommonProblem.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CommonProblem.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CommonProblem.java index ca91cb6d..3b0b678d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CommonProblem.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CommonProblem.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Common problem object. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1.java index 1ddf73e4..ca84a19d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Contact list statistics. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1Resource.java index 678fd221..eaaa43fc 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.ContactListStatisticsEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.ContactListStatisticsEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Response.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1Response.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Response.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1Response.java index 7f80cad0..53420419 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Response.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListStatisticsEntityV1Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.ContactListStatisticsEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.ContactListStatisticsEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single entity diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListV1.java index 600f7fc0..f91aef07 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactListV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users with your contact lists. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendment.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendment.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendment.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendment.java index 6aeb71ab..4b0ebfeb 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendment.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendment.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.ContactlistAmendmentAttributes; +import com.criteo.api.marketingsolutions.v2024_10.model.ContactlistAmendmentAttributes; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Parameters for the amendment of a contactlist diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendmentAttributes.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendmentAttributes.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendmentAttributes.java index 45ac1520..4aee53d4 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendmentAttributes.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendmentAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * the name of the entity type @@ -115,8 +115,6 @@ public enum IdentifierTypeEnum { GUM("gum"), - CUSTOMERID("customerid"), - PHONENUMBER("phoneNumber"); private String value; @@ -228,7 +226,7 @@ public ContactlistAmendmentAttributes addIdentifiersItem(String identifiersItem) } /** - * The users tos add or remove, each in the schema specified + * The users to add or remove, each in the schema specified * @return identifiers **/ @javax.annotation.Nonnull diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendmentRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendmentRequest.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendmentRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendmentRequest.java index d02c4237..2abff3d2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendmentRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistAmendmentRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.ContactlistAmendment; +import com.criteo.api.marketingsolutions.v2024_10.model.ContactlistAmendment; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Request for a contactlist amendment diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistOperation.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistOperation.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistOperation.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistOperation.java index 63d831f2..ebd2d8fe 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistOperation.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistOperation.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.ContactlistOperationAttributes; +import com.criteo.api.marketingsolutions.v2024_10.model.ContactlistOperationAttributes; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Response definition of a contactlist operation diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistOperationAttributes.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistOperationAttributes.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistOperationAttributes.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistOperationAttributes.java index a9c79313..60d94f46 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistOperationAttributes.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ContactlistOperationAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * the contactlist operation attributes diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Coupon.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Coupon.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Coupon.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Coupon.java index f9e59b0a..e37b0260 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Coupon.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Coupon.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.ImageSlide; +import com.criteo.api.marketingsolutions.v2024_10.model.ImageSlide; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Coupons are static images applied on ad set which can be displayed within an ad and link to a landing page. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponListResponse.java index cdea10c0..4d8470ff 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.CouponResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.CouponResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a list of response resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponResource.java index be58b58a..cb828846 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.Coupon; +import com.criteo.api.marketingsolutions.v2024_10.model.Coupon; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponResponse.java index 07f3c4d0..3dc5491b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.CouponResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.CouponResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for response resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizes.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizes.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizes.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizes.java index d57f225d..6787aba8 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizes.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Entity containing the list of Coupon supported sizes diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizesResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizesResource.java index c2b5a2ca..f2f43631 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizesResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CouponSupportedSizes; +import com.criteo.api.marketingsolutions.v2024_10.model.CouponSupportedSizes; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizesResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizesResponse.java index d7e9cfcd..3bed857d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CouponSupportedSizesResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.CouponSupportedSizesResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.CouponSupportedSizesResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for response resource diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBiddingV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetBiddingV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBiddingV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetBiddingV24Q1.java index d0416df4..a8230215 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBiddingV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetBiddingV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set bidding create model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudgetV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetBudgetV24Q1.java similarity index 99% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudgetV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetBudgetV24Q1.java index efe714aa..7cd5ac84 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudgetV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetBudgetV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set budget create model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocationV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetGeoLocationV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocationV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetGeoLocationV24Q1.java index 486977ef..163fad36 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocationV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetGeoLocationV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.AdSetTargetingRuleV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetTargetingRuleV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Geolocation configuration of the ad set diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetScheduleV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetScheduleV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetScheduleV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetScheduleV24Q1.java index cf2a48ae..f50ccff2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetScheduleV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetScheduleV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set schedule create model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargetingV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetTargetingV24Q1.java similarity index 96% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargetingV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetTargetingV24Q1.java index f0454b11..ca702186 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargetingV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetTargetingV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.AdSetDeliveryLimitationsV24Q1; -import com.criteo.api.marketingsolutions.preview.model.AdSetFrequencyCappingV24Q1; -import com.criteo.api.marketingsolutions.preview.model.CreateAdSetGeoLocationV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetDeliveryLimitationsV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetFrequencyCappingV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetGeoLocationV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Targeting configuration of the ad set diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1.java index 046d25a0..ab8f7c7f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.CreateAdSetBiddingV24Q1; -import com.criteo.api.marketingsolutions.preview.model.CreateAdSetBudgetV24Q1; -import com.criteo.api.marketingsolutions.preview.model.CreateAdSetScheduleV24Q1; -import com.criteo.api.marketingsolutions.preview.model.CreateAdSetTargetingV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetBiddingV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetBudgetV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetScheduleV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetTargetingV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set create model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1Request.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1Request.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1Request.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1Request.java index fc6fb80f..805f22c7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1Request.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetV24Q1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for an input resources diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1Resource.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1Resource.java index e480e7ad..d7be7467 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateAdSetV24Q1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateAdSetV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaign.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaign.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaign.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaign.java index 731e28c0..b4144485 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaign.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaign.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateCampaignSpendLimit; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateCampaignSpendLimit; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Campaign create model diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignRequest.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignRequest.java index 7f7b62e4..3b80ce9b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateCampaignResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateCampaignResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for an input resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignResource.java index f5eafd56..cd91caa8 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateCampaign; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateCampaign; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignSpendLimit.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignSpendLimit.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignSpendLimit.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignSpendLimit.java index 2ddb977d..9220cc4a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignSpendLimit.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCampaignSpendLimit.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * campaign spend limit create model diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCoupon.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCoupon.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCoupon.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCoupon.java index 9cbdc6ed..1772a859 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCoupon.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCoupon.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateImageSlide; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateImageSlide; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Entity to create a Coupon diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCouponRequest.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCouponRequest.java index 9309e398..528def0a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCouponRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateCouponResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateCouponResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for input resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCouponResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCouponResource.java index 8baf6fd8..e1b8f1ba 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateCouponResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateCoupon; +import com.criteo.api.marketingsolutions.v2024_10.model.CreateCoupon; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateImageSlide.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateImageSlide.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateImageSlide.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateImageSlide.java index f6ea496b..cb520905 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateImageSlide.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreateImageSlide.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Slide containing the images of the same size as a base-64 encoded string diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Creative.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Creative.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Creative.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Creative.java index 42ea9afe..8968c098 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Creative.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Creative.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdaptiveAttributes; -import com.criteo.api.marketingsolutions.v2023_07.model.DynamicAttributes; -import com.criteo.api.marketingsolutions.v2023_07.model.HtmlTagAttributes; -import com.criteo.api.marketingsolutions.v2023_07.model.ImageAttributes; +import com.criteo.api.marketingsolutions.v2024_10.model.AdaptiveAttributes; +import com.criteo.api.marketingsolutions.v2024_10.model.DynamicAttributes; +import com.criteo.api.marketingsolutions.v2024_10.model.HtmlTagAttributes; +import com.criteo.api.marketingsolutions.v2024_10.model.ImageAttributes; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A creative is a project with the necessary information to display a creative diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeListResponse.java index bbeb4e90..cce9de3d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.CreativeResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.CreativeResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a list of response resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeResource.java index 23a5bf9e..27635c5d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.Creative; +import com.criteo.api.marketingsolutions.v2024_10.model.Creative; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeResponse.java index 945d9845..5c3d5c26 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.CreativeResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.CreativeResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for response resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWrite.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWrite.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWrite.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWrite.java index c8ef7d57..4412105b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWrite.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWrite.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdaptiveWriteAttributes; -import com.criteo.api.marketingsolutions.v2023_07.model.DynamicWriteAttributes; -import com.criteo.api.marketingsolutions.v2023_07.model.HtmlTagWriteAttributes; -import com.criteo.api.marketingsolutions.v2023_07.model.ImageWriteAttributes; +import com.criteo.api.marketingsolutions.v2024_10.model.AdaptiveWriteAttributes; +import com.criteo.api.marketingsolutions.v2024_10.model.DynamicWriteAttributes; +import com.criteo.api.marketingsolutions.v2024_10.model.HtmlTagWriteAttributes; +import com.criteo.api.marketingsolutions.v2024_10.model.ImageWriteAttributes; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Entity to create or update a creative diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWriteRequest.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWriteRequest.java index b262660f..5c5687a0 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWriteRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CreativeWriteResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CreativeWriteResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for input resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWriteResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWriteResource.java index 096ccf09..fc885c1d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CreativeWriteResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CreativeWrite; +import com.criteo.api.marketingsolutions.v2024_10.model.CreativeWrite; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiError.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CriteoApiError.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiError.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CriteoApiError.java index 4092dd31..fb7e1c83 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiError.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CriteoApiError.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Criteo API response error diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiWarning.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CriteoApiWarning.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiWarning.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CriteoApiWarning.java index e1cf443b..c71fb90b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiWarning.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/CriteoApiWarning.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Criteo API response warning diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DeleteAudienceContactListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DeleteAudienceContactListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DeleteAudienceContactListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DeleteAudienceContactListResponse.java index eceebe86..9e5da54e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DeleteAudienceContactListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DeleteAudienceContactListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceError; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceWarning; -import com.criteo.api.marketingsolutions.v2023_07.model.BasicAudienceDefinition; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceError; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceWarning; +import com.criteo.api.marketingsolutions.v2024_10.model.BasicAudienceDefinition; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Response of a contactlist deletion diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicAttributes.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DynamicAttributes.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicAttributes.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DynamicAttributes.java index c89b1c05..f821ec1a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicAttributes.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DynamicAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.ImageShape; +import com.criteo.api.marketingsolutions.v2024_10.model.ImageShape; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * The attributes specific to Dynamic creatives diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicWriteAttributes.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DynamicWriteAttributes.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicWriteAttributes.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DynamicWriteAttributes.java index 157b7bd8..59141e10 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicWriteAttributes.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/DynamicWriteAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * The attributes specific to create or update a Dynamic creative diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/EntityOfPortfolioMessage.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/EntityOfPortfolioMessage.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/EntityOfPortfolioMessage.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/EntityOfPortfolioMessage.java index f271f4dc..32f42d5c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/EntityOfPortfolioMessage.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/EntityOfPortfolioMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PortfolioMessage; +import com.criteo.api.marketingsolutions.v2024_10.model.PortfolioMessage; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Generic Criteo API successful data model diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ErrorCodeResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ErrorCodeResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ErrorCodeResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ErrorCodeResponse.java index a8c3912e..bd3b6d54 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ErrorCodeResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ErrorCodeResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceError; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceWarning; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceError; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceWarning; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Definition of the error code diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/GetPortfolioResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/GetPortfolioResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/GetPortfolioResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/GetPortfolioResponse.java index 12cc793e..705fec7d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/GetPortfolioResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/GetPortfolioResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CriteoApiError; -import com.criteo.api.marketingsolutions.v2023_07.model.CriteoApiWarning; -import com.criteo.api.marketingsolutions.v2023_07.model.EntityOfPortfolioMessage; +import com.criteo.api.marketingsolutions.v2024_10.model.CriteoApiError; +import com.criteo.api.marketingsolutions.v2024_10.model.CriteoApiWarning; +import com.criteo.api.marketingsolutions.v2024_10.model.EntityOfPortfolioMessage; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,7 +47,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Portfolio fetch Response diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagAttributes.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/HtmlTagAttributes.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagAttributes.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/HtmlTagAttributes.java index c039c45c..3dac03a3 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagAttributes.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/HtmlTagAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.Tag; +import com.criteo.api.marketingsolutions.v2024_10.model.Tag; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * The attributes specific to HtmlTag creatives diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagWriteAttributes.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/HtmlTagWriteAttributes.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagWriteAttributes.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/HtmlTagWriteAttributes.java index 52cf089e..53612b5b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagWriteAttributes.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/HtmlTagWriteAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.Tag; +import com.criteo.api.marketingsolutions.v2024_10.model.Tag; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * The attributes specific to create or update a HtmlTag creative diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageAttributes.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageAttributes.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageAttributes.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageAttributes.java index b64152a1..c8e69382 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageAttributes.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * The attributes specific to Image creatives diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSet.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSet.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSet.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSet.java index 5a617aab..17c3ba80 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSet.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.ImageShape; +import com.criteo.api.marketingsolutions.v2024_10.model.ImageShape; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Entity consists of multiple images in different ratios and a headline text. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSetBase64.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSetBase64.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSetBase64.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSetBase64.java index fc09fc74..e04045f3 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSetBase64.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSetBase64.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Entity consists of multiple images in different ratios as a base-64 encoded and a headline text. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageShape.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageShape.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageShape.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageShape.java index 5b0e93db..6782fa92 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageShape.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageShape.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Entity containing the shape and url of the image diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSlide.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSlide.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSlide.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSlide.java index 6115f585..95eed5bd 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSlide.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageSlide.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Slide containing the image URLs diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageWriteAttributes.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageWriteAttributes.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageWriteAttributes.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageWriteAttributes.java index 020ac4e1..f47e5539 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageWriteAttributes.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ImageWriteAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * The attributes specific to create or update an Image creative diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1.java index ac83d868..c4b0fb3b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * In-market segment brand entity diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java index 0d634c78..d7a0dc88 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentBrandEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentBrandEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1Resource.java index 39a5a0fe..8772d496 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentBrandEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentBrandEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentBrandEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1.java index 3657a18b..90576fa2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * In-market segment interest entity diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java index c7dab3b4..cdc3fa2f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentInterestEntityV1Resource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentInterestEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1Resource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1Resource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1Resource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1Resource.java index 807725ec..eb207600 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1Resource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketAudienceSegmentInterestEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.InMarketAudienceSegmentInterestEntityV1; +import com.criteo.api.marketingsolutions.v2024_10.model.InMarketAudienceSegmentInterestEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketCreateV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketCreateV1.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketCreateV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketCreateV1.java index f4486f7c..c476a00e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketCreateV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketCreateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users based on high shopping intents and demographics. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketSizeEstimationV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketSizeEstimationV1.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketSizeEstimationV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketSizeEstimationV1.java index a163ef20..4535b176 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketSizeEstimationV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketSizeEstimationV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users based on high shopping intents and demographics. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketUpdateV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketUpdateV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketUpdateV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketUpdateV1.java index 297e1665..1f1c36d0 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketUpdateV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketUpdateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableGenderV1; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableGenderV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users based on high shopping intents and demographics. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketV1.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketV1.java index b6fa72b3..28c5ed6b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/InMarketV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users based on high shopping intents and demographics. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationCreateV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationCreateV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationCreateV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationCreateV1.java index 95cd64db..30229e88 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationCreateV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationCreateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PointOfInterestV1; +import com.criteo.api.marketingsolutions.v2024_10.model.PointOfInterestV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users based on their location. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationSizeEstimationV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationSizeEstimationV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationSizeEstimationV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationSizeEstimationV1.java index 2db81dd0..5a101a98 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationSizeEstimationV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationSizeEstimationV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PointOfInterestV1; +import com.criteo.api.marketingsolutions.v2024_10.model.PointOfInterestV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to define your audience based on their location. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationUpdateV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationUpdateV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationUpdateV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationUpdateV1.java index 7cd37ae3..ac483b3b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationUpdateV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationUpdateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PointOfInterestV1; +import com.criteo.api.marketingsolutions.v2024_10.model.PointOfInterestV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users based on their location. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationV1.java index 751dcce4..8a1fb172 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LocationV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PointOfInterestV1; +import com.criteo.api.marketingsolutions.v2024_10.model.PointOfInterestV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users based on their location. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeCreateV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeCreateV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeCreateV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeCreateV1.java index 6166d5da..f76b210b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeCreateV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeCreateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users close to a given seed segment. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeUpdateV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeUpdateV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeUpdateV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeUpdateV1.java index d8585000..c498c75e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeUpdateV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeUpdateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users that behave like a given seed segment diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeV1.java index d4b6a84d..eb396490 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/LookalikeV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users that behave like a given seed segment diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ModifyAudienceResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ModifyAudienceResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ModifyAudienceResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ModifyAudienceResponse.java index 48a131c4..acd53e35 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ModifyAudienceResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ModifyAudienceResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceError; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceWarning; -import com.criteo.api.marketingsolutions.v2023_07.model.ContactlistOperation; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceError; +import com.criteo.api.marketingsolutions.v2024_10.model.AudienceWarning; +import com.criteo.api.marketingsolutions.v2024_10.model.ContactlistOperation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Parameters to modify an audience diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableAdSetTargetingRuleV24Q1.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableAdSetTargetingRuleV24Q1.java index 6120c8de..c5381542 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableAdSetTargetingRuleV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.NillableAdSetTargetingRuleV24Q1Value; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableAdSetTargetingRuleV24Q1Value; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * structure that encapsulates an object that have valid business null values. If the structure is provided (i.e. not null), then the value in it, even null, is provided. diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q1Value.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableAdSetTargetingRuleV24Q1Value.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q1Value.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableAdSetTargetingRuleV24Q1Value.java index 22cb517f..a311d2b4 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q1Value.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableAdSetTargetingRuleV24Q1Value.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * NillableAdSetTargetingRuleV24Q1Value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableDateTime.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableDateTime.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableDateTime.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableDateTime.java index 6b86435c..8c19c7ae 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableDateTime.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableDateTime.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * structure that encapsulates an object that have valid business null values. If the structure is provided (i.e. not null), then the value in it, even null, is provided. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableDecimal.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableDecimal.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableDecimal.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableDecimal.java index 840849f3..397462c8 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableDecimal.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableDecimal.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * structure that encapsulates an object that have valid business null values. If the structure is provided (i.e. not null), then the value in it, even null, is provided. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableGenderV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableGenderV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableGenderV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableGenderV1.java index 852fb019..7c607448 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableGenderV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableGenderV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Placeholder object for value for which \"null\" is a valid business value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableInt32.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableInt32.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableInt32.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableInt32.java index a86ecd78..d464380e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableInt32.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableInt32.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Placeholder object for value for which \"null\" is a valid business value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableString.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableString.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableString.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableString.java index 195fcd4f..ded2af40 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableString.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/NillableString.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Placeholder object for string value for which \"null\" is a valid business value diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Outcome.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Outcome.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Outcome.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Outcome.java index 2ebf9507..ee37973f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Outcome.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Outcome.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * The outcome of an API call. diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBiddingV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetBiddingV24Q1.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBiddingV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetBiddingV24Q1.java index 98f1c9ee..e6e36e0e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBiddingV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetBiddingV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.NillableDecimal; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableDecimal; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set bidding patch model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudgetV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetBudgetV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudgetV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetBudgetV24Q1.java index 68ba9b16..0d2da901 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudgetV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetBudgetV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.NillableDecimal; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableDecimal; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set budget patch model diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBid.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBid.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBid.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBid.java index d62d8d0b..8bf7c8b5 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBid.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBid.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Category Bid to update for a given combination of Ad Set and Category. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidListRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidListRequest.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidListRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidListRequest.java index 7cf89bb9..e17ecd20 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidListRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetCategoryBidResource; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetCategoryBidResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a list of input resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResource.java index 7c634cf9..9283ab86 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetCategoryBid; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetCategoryBid; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResultListResponse.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResultListResponse.java index af290709..590c6479 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResultListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetCategoryBidResultResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetCategoryBidResultResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a list of response resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResultResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResultResource.java index d3b98ba7..788ec60b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetCategoryBidResultResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplier.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplier.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplier.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplier.java index 0aae8bc2..7d5727f9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplier.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Display Multiplier to update for a given combination of Ad Set and Category. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierListRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierListRequest.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierListRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierListRequest.java index f674e023..36737734 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierListRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetDisplayMultiplierResource; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetDisplayMultiplierResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a list of input resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResource.java index 49e46f0b..4e98092a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetDisplayMultiplier; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetDisplayMultiplier; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResultListResponse.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResultListResponse.java index d2952e73..e55d9950 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResultListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetDisplayMultiplierResultResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetDisplayMultiplierResultResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a list of response resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResultResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResultResource.java index 51ea55f0..eb5e1560 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetDisplayMultiplierResultResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetSchedulingV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetSchedulingV24Q1.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetSchedulingV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetSchedulingV24Q1.java index e7603728..e146be4f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetSchedulingV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetSchedulingV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.NillableDateTime; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableDateTime; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set schedule patch model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetV24Q1.java similarity index 96% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetV24Q1.java index 91de80f9..38f3ca5f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchAdSetV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.AdSetTargetingV24Q1; -import com.criteo.api.marketingsolutions.preview.model.PatchAdSetBiddingV24Q1; -import com.criteo.api.marketingsolutions.preview.model.PatchAdSetBudgetV24Q1; -import com.criteo.api.marketingsolutions.preview.model.PatchAdSetSchedulingV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetTargetingV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetBiddingV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetBudgetV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetSchedulingV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set patch model diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaign.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaign.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaign.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaign.java index e8e11000..f4d3e62a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaign.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaign.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchCampaignSpendLimit; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchCampaignSpendLimit; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * campaign patch model diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignListRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignListRequest.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignListRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignListRequest.java index ed0fbf47..4696230e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignListRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchCampaignWriteResource; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchCampaignWriteResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * List of input resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignSpendLimit.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignSpendLimit.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignSpendLimit.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignSpendLimit.java index 55ecd174..97e7ca84 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignSpendLimit.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignSpendLimit.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableDecimal; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableDecimal; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * campaign spend limit model diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignWriteResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignWriteResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignWriteResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignWriteResource.java index 75b290c9..d68565a5 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignWriteResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchCampaignWriteResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchCampaign; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchCampaign; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * write model data for resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchResultCampaignListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchResultCampaignListResponse.java index e414a455..8678e3cd 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchResultCampaignListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchResultCampaignReadResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchResultCampaignReadResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * List of output resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignReadResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchResultCampaignReadResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignReadResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchResultCampaignReadResource.java index 2e46b4f2..96dcbf86 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignReadResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PatchResultCampaignReadResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * read model data for resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessage.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessage.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessage.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessage.java index 862606d6..03d80a23 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessage.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * This is the message defining the query for Placements report diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessageListRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessageListRequest.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessageListRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessageListRequest.java index 7b05e30c..1d50def4 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessageListRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessageListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PlacementsReportQueryMessageResource; +import com.criteo.api.marketingsolutions.v2024_10.model.PlacementsReportQueryMessageResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API request for several value objects. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessageResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessageResource.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessageResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessageResource.java index a9fa243a..1a86c3a8 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessageResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PlacementsReportQueryMessageResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PlacementsReportQueryMessage; +import com.criteo.api.marketingsolutions.v2024_10.model.PlacementsReportQueryMessage; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A value resource exposed by the API. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PointOfInterestV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PointOfInterestV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PointOfInterestV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PointOfInterestV1.java index f6368dc7..ae478e7b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PointOfInterestV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PointOfInterestV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Named coordinate defined by its latitude and longitude. Latitude and Longitude are rounded at 5 decimals. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PortfolioMessage.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PortfolioMessage.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PortfolioMessage.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PortfolioMessage.java index 994034ad..2b44ec07 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PortfolioMessage.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/PortfolioMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Class with elementary info about advertiser diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingCreateV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingCreateV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingCreateV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingCreateV1.java index c179ec05..1320f273 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingCreateV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingCreateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target prospecting users to website visitors. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingUpdateV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingUpdateV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingUpdateV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingUpdateV1.java index c0a8a634..14f369ef 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingUpdateV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingUpdateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableInt32; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableInt32; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target prospecting users to website visitors. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingV1.java index 1ed55052..ef327bfa 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ProspectingV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target prospecting users to website visitors. diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetBiddingV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetBiddingV24Q1.java index b7e389d4..762dd1eb 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetBiddingV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set bidding read model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetBudgetV24Q1.java similarity index 99% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetBudgetV24Q1.java index 7e96a591..d57d00ea 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetBudgetV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set budget read model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetScheduleV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetScheduleV24Q1.java index 4cd6a928..2e1aae34 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetScheduleV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.NillableDateTime; +import com.criteo.api.marketingsolutions.v2024_10.model.NillableDateTime; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set schedule read model diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetV24Q1.java index ba2ad7b7..ad6ad336 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadAdSetV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.AdSetTargetingV24Q1; -import com.criteo.api.marketingsolutions.preview.model.ReadAdSetBiddingV24Q1; -import com.criteo.api.marketingsolutions.preview.model.ReadAdSetBudgetV24Q1; -import com.criteo.api.marketingsolutions.preview.model.ReadAdSetScheduleV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.AdSetTargetingV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.ReadAdSetBiddingV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.ReadAdSetBudgetV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.ReadAdSetScheduleV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * ad set read model diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelAdSetId.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelAdSetId.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelAdSetId.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelAdSetId.java index 10d925a0..2ff41cbd 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelAdSetId.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelAdSetId.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * read model data for resources diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetIdV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelAdSetIdV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetIdV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelAdSetIdV24Q1.java index 737e7ae8..ecad4908 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetIdV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelAdSetIdV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * read model data for resources diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelReadAdSetV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelReadAdSetV24Q1.java index 37742177..67d59d6e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ReadModelReadAdSetV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.ReadAdSetV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.ReadAdSetV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * read model data for resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsAdSetId.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RequestsAdSetId.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsAdSetId.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RequestsAdSetId.java index 0cca3e9d..0343a9b5 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsAdSetId.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RequestsAdSetId.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.WriteModelAdSetId; +import com.criteo.api.marketingsolutions.v2024_10.model.WriteModelAdSetId; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * List of input resources diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSetV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RequestsPatchAdSetV24Q1.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSetV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RequestsPatchAdSetV24Q1.java index 000bebbb..30ac98dd 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSetV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RequestsPatchAdSetV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.WriteModelPatchAdSetV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.WriteModelPatchAdSetV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * List of input resources diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponseReadAdSetV24Q1.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponseReadAdSetV24Q1.java index 64ec5a7e..e08f8eb9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponseReadAdSetV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.CommonProblem; -import com.criteo.api.marketingsolutions.preview.model.ReadModelReadAdSetV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.ReadModelReadAdSetV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * output resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesAdSetId.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesAdSetId.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesAdSetId.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesAdSetId.java index aa4fe22a..cd841781 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesAdSetId.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesAdSetId.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.ReadModelAdSetId; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.ReadModelAdSetId; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * List of output resources diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetIdV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesAdSetIdV24Q1.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetIdV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesAdSetIdV24Q1.java index 3db2818a..2d66e0cd 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetIdV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesAdSetIdV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.CommonProblem; -import com.criteo.api.marketingsolutions.preview.model.ReadModelAdSetIdV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.ReadModelAdSetIdV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * List of output resources diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesReadAdSetV24Q1.java similarity index 97% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesReadAdSetV24Q1.java index d76a4099..cc295109 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/ResponsesReadAdSetV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.CommonProblem; -import com.criteo.api.marketingsolutions.preview.model.ReadModelReadAdSetV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.ReadModelReadAdSetV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * List of output resources diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingCreateV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingCreateV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingCreateV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingCreateV1.java index 33e2a4dd..1ff17388 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingCreateV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingCreateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -41,7 +41,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users based on its type and days since last visit. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingUpdateV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingUpdateV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingUpdateV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingUpdateV1.java index 1de774b3..a1e30c32 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingUpdateV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingUpdateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users based on its type and days since last visit. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingV1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingV1.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingV1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingV1.java index 5122d3a7..e491176f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingV1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/RetargetingV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Settings to target users based on its type and days since last visit. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Size.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Size.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Size.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Size.java index 9d79952f..654ef5e8 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Size.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Size.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Size entity containing width and height of the creative diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/StatisticsReportQueryMessage.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/StatisticsReportQueryMessage.java similarity index 99% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/StatisticsReportQueryMessage.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/StatisticsReportQueryMessage.java index b77c6626..bb25c6d9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/StatisticsReportQueryMessage.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/StatisticsReportQueryMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * This is the message defining the query for Adset report diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Tag.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Tag.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Tag.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Tag.java index 5a80c92f..f828c07a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Tag.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/Tag.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.Size; +import com.criteo.api.marketingsolutions.v2024_10.model.Size; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Entity specifying the html of the tag and its size diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessage.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessage.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessage.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessage.java index 075264b2..1855f158 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessage.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * This is the message defining the query for Transaction report diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessageListRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessageListRequest.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessageListRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessageListRequest.java index cece61a0..b37d6805 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessageListRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessageListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.TransactionsReportQueryMessageResource; +import com.criteo.api.marketingsolutions.v2024_10.model.TransactionsReportQueryMessageResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API request for several value objects. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessageResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessageResource.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessageResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessageResource.java index aa4ec619..0d369b5e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessageResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransactionsReportQueryMessageResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.TransactionsReportQueryMessage; +import com.criteo.api.marketingsolutions.v2024_10.model.TransactionsReportQueryMessage; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A value resource exposed by the API. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyQueryMessage.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyQueryMessage.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyQueryMessage.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyQueryMessage.java index 0bb641cd..7977c4d2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyQueryMessage.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyQueryMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * This is the message defining the query for Transparency report diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReport.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReport.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReport.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReport.java index d11aa240..34c63695 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReport.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReport.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.TransparencyReportFile; +import com.criteo.api.marketingsolutions.v2024_10.model.TransparencyReportFile; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * This is the message defining the attribute response for Transparency report diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportFile.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportFile.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportFile.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportFile.java index e7b5b4ae..3bd0d8ec 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportFile.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportFile.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -41,7 +41,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * This is the message defining the file response for Transparency report diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportListResponse.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportListResponse.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportListResponse.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportListResponse.java index 65164f1b..e7528825 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportListResponse.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.TransparencyReportResource; +import com.criteo.api.marketingsolutions.v2024_10.model.CommonProblem; +import com.criteo.api.marketingsolutions.v2024_10.model.TransparencyReportResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several value objects. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportResource.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportResource.java index a6bbbf93..52320ea9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyReportResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/TransparencyReportResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.TransparencyReport; +import com.criteo.api.marketingsolutions.v2024_10.model.TransparencyReport; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * A value resource exposed by the API. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCoupon.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCoupon.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCoupon.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCoupon.java index e711050c..6663a78f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCoupon.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCoupon.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Entity to edit a Coupon diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponRequest.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCouponRequest.java similarity index 97% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponRequest.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCouponRequest.java index b8d0cf5f..71ed285a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponRequest.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCouponRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.UpdateCouponResource; +import com.criteo.api.marketingsolutions.v2024_10.model.UpdateCouponResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for input resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponResource.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCouponResource.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponResource.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCouponResource.java index 071632f9..4d7af054 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponResource.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/UpdateCouponResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.UpdateCoupon; +import com.criteo.api.marketingsolutions.v2024_10.model.UpdateCoupon; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/VideoDetail.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/VideoDetail.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/VideoDetail.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/VideoDetail.java index 94082548..3cb7eb0d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/VideoDetail.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/VideoDetail.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * Entity consists of the url of the video, its duration and its shape. diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelAdSetId.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/WriteModelAdSetId.java similarity index 98% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelAdSetId.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/WriteModelAdSetId.java index 72e667ea..e977f746 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelAdSetId.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/WriteModelAdSetId.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * write model data for resources diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSetV24Q1.java b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/WriteModelPatchAdSetV24Q1.java similarity index 98% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSetV24Q1.java rename to sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/WriteModelPatchAdSetV24Q1.java index 0707e5dd..5806a2e7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSetV24Q1.java +++ b/sdks/marketingsolutions_2024-10/src/main/java/com/criteo/api/marketingsolutions/v2024_10/model/WriteModelPatchAdSetV24Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.marketingsolutions.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.PatchAdSetV24Q1; +import com.criteo.api.marketingsolutions.v2024_10.model.PatchAdSetV24Q1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.marketingsolutions.v2024_10.JSON; /** * write model data for resources diff --git a/sdks/marketingsolutions_2023-07/src/test/java/com/criteo/api/marketingsolutions/v2023_07/ExampleApplication.java b/sdks/marketingsolutions_2024-10/src/test/java/com/criteo/api/marketingsolutions/v2024_10/ExampleApplication.java similarity index 81% rename from sdks/marketingsolutions_2023-07/src/test/java/com/criteo/api/marketingsolutions/v2023_07/ExampleApplication.java rename to sdks/marketingsolutions_2024-10/src/test/java/com/criteo/api/marketingsolutions/v2024_10/ExampleApplication.java index 512a7b29..c80bc6e9 100644 --- a/sdks/marketingsolutions_2023-07/src/test/java/com/criteo/api/marketingsolutions/v2023_07/ExampleApplication.java +++ b/sdks/marketingsolutions_2024-10/src/test/java/com/criteo/api/marketingsolutions/v2024_10/ExampleApplication.java @@ -1,12 +1,12 @@ -package com.criteo.api.marketingsolutions.v2023_07; - -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.ApiResponse; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.api.GatewayApi; -import com.criteo.api.marketingsolutions.v2023_07.model.*; +package com.criteo.api.marketingsolutions.v2024_10; + +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.ApiResponse; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.api.GatewayApi; +import com.criteo.api.marketingsolutions.v2024_10.model.*; public class ExampleApplication { diff --git a/sdks/marketingsolutions_2023-07/src/test/java/com/criteo/api/marketingsolutions/v2023_07/GatewayApiTest.java b/sdks/marketingsolutions_2024-10/src/test/java/com/criteo/api/marketingsolutions/v2024_10/GatewayApiTest.java similarity index 81% rename from sdks/marketingsolutions_2023-07/src/test/java/com/criteo/api/marketingsolutions/v2023_07/GatewayApiTest.java rename to sdks/marketingsolutions_2024-10/src/test/java/com/criteo/api/marketingsolutions/v2024_10/GatewayApiTest.java index 5abcf09e..648aaec2 100644 --- a/sdks/marketingsolutions_2023-07/src/test/java/com/criteo/api/marketingsolutions/v2023_07/GatewayApiTest.java +++ b/sdks/marketingsolutions_2024-10/src/test/java/com/criteo/api/marketingsolutions/v2024_10/GatewayApiTest.java @@ -1,4 +1,4 @@ -package com.criteo.api.marketingsolutions.v2023_07; +package com.criteo.api.marketingsolutions.v2024_10; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -7,14 +7,14 @@ import java.lang.*; -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.ApiResponse; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.ExampleApplication; -import com.criteo.api.marketingsolutions.v2023_07.api.GatewayApi; -import com.criteo.api.marketingsolutions.v2023_07.model.ApplicationSummaryModelResponse; +import com.criteo.api.marketingsolutions.v2024_10.ApiClient; +import com.criteo.api.marketingsolutions.v2024_10.ApiClientBuilder; +import com.criteo.api.marketingsolutions.v2024_10.ApiException; +import com.criteo.api.marketingsolutions.v2024_10.ApiResponse; +import com.criteo.api.marketingsolutions.v2024_10.Configuration; +import com.criteo.api.marketingsolutions.v2024_10.ExampleApplication; +import com.criteo.api.marketingsolutions.v2024_10.api.GatewayApi; +import com.criteo.api.marketingsolutions.v2024_10.model.ApplicationSummaryModelResponse; public class GatewayApiTest { private ApiClient client; diff --git a/sdks/marketingsolutions_preview/.openapi-generator/FILES b/sdks/marketingsolutions_preview/.openapi-generator/FILES index 02dce349..39797929 100644 --- a/sdks/marketingsolutions_preview/.openapi-generator/FILES +++ b/sdks/marketingsolutions_preview/.openapi-generator/FILES @@ -17,14 +17,14 @@ docs/AdSetAudienceLinkInputEntityV1.md docs/AdSetCategoryBid.md docs/AdSetCategoryBidListResponse.md docs/AdSetCategoryBidResource.md -docs/AdSetDeliveryLimitationsV24Q1.md +docs/AdSetDeliveryLimitationsV24Q3.md docs/AdSetDisplayMultiplier.md docs/AdSetDisplayMultiplierListResponse.md docs/AdSetDisplayMultiplierResource.md -docs/AdSetFrequencyCappingV24Q1.md -docs/AdSetGeoLocationV24Q1.md -docs/AdSetSearchFilterV24Q1.md -docs/AdSetSearchRequestV24Q1.md +docs/AdSetFrequencyCappingV24Q3.md +docs/AdSetGeoLocationV24Q3.md +docs/AdSetSearchFilterV24Q3.md +docs/AdSetSearchRequestV24Q3.md docs/AdSetTargetingDealIds.md docs/AdSetTargetingDealIdsDisableResultResource.md docs/AdSetTargetingDealIdsDisableResultResponse.md @@ -32,8 +32,8 @@ docs/AdSetTargetingDealIdsResource.md docs/AdSetTargetingDealIdsResponse.md docs/AdSetTargetingDealIdsSetResultResource.md docs/AdSetTargetingDealIdsSetResultResponse.md -docs/AdSetTargetingRuleV24Q1.md -docs/AdSetTargetingV24Q1.md +docs/AdSetTargetingRuleV24Q3.md +docs/AdSetTargetingV24Q3.md docs/AdSetTargetingVideoPositioning.md docs/AdSetTargetingVideoPositioningDisableResultResource.md docs/AdSetTargetingVideoPositioningDisableResultResponse.md @@ -155,14 +155,14 @@ docs/CouponResponse.md docs/CouponSupportedSizes.md docs/CouponSupportedSizesResource.md docs/CouponSupportedSizesResponse.md -docs/CreateAdSetBiddingV24Q1.md -docs/CreateAdSetBudgetV24Q1.md -docs/CreateAdSetGeoLocationV24Q1.md -docs/CreateAdSetScheduleV24Q1.md -docs/CreateAdSetTargetingV24Q1.md -docs/CreateAdSetV24Q1.md -docs/CreateAdSetV24Q1Request.md -docs/CreateAdSetV24Q1Resource.md +docs/CreateAdSetBiddingV24Q3.md +docs/CreateAdSetBudgetV24Q3.md +docs/CreateAdSetGeoLocationV24Q3.md +docs/CreateAdSetScheduleV24Q3.md +docs/CreateAdSetTargetingV24Q3.md +docs/CreateAdSetV24Q3.md +docs/CreateAdSetV24Q3Request.md +docs/CreateAdSetV24Q3Resource.md docs/CreateCampaign.md docs/CreateCampaignRequest.md docs/CreateCampaignResource.md @@ -188,9 +188,6 @@ docs/CustomAttribute.md docs/Dataset.md docs/DealId.md docs/DeleteAudienceContactListResponse.md -docs/DeleteUserProfileModel.md -docs/DeleteUserProfileModelListRequest.md -docs/DeleteUserProfileModelResource.md docs/DynamicAttributes.md docs/DynamicWriteAttributes.md docs/EntityFilter.md @@ -257,8 +254,8 @@ docs/MarketingSolutionsReportStatus.md docs/MarketingSolutionsReportStatusResource.md docs/MarketingSolutionsReportStatusResponse.md docs/ModifyAudienceResponse.md -docs/NillableAdSetTargetingRuleV24Q1.md -docs/NillableAdSetTargetingRuleV24Q1Value.md +docs/NillableAdSetTargetingRuleV24Q3.md +docs/NillableAdSetTargetingRuleV24Q3Value.md docs/NillableDateTime.md docs/NillableDecimal.md docs/NillableGenderV1.md @@ -276,8 +273,8 @@ docs/OnSiteRecoRequest.md docs/OnSiteRecoResponse.md docs/OnSiteRecommendationApi.md docs/Outcome.md -docs/PatchAdSetBiddingV24Q1.md -docs/PatchAdSetBudgetV24Q1.md +docs/PatchAdSetBiddingV24Q3.md +docs/PatchAdSetBudgetV24Q3.md docs/PatchAdSetCategoryBid.md docs/PatchAdSetCategoryBidListRequest.md docs/PatchAdSetCategoryBidResource.md @@ -288,8 +285,8 @@ docs/PatchAdSetDisplayMultiplierListRequest.md docs/PatchAdSetDisplayMultiplierResource.md docs/PatchAdSetDisplayMultiplierResultListResponse.md docs/PatchAdSetDisplayMultiplierResultResource.md -docs/PatchAdSetSchedulingV24Q1.md -docs/PatchAdSetV24Q1.md +docs/PatchAdSetSchedulingV24Q3.md +docs/PatchAdSetV24Q3.md docs/PatchCampaign.md docs/PatchCampaignListRequest.md docs/PatchCampaignSpendLimit.md @@ -319,27 +316,29 @@ docs/ProductsCustomBatchRequestEntry.md docs/ProspectingCreateV1.md docs/ProspectingUpdateV1.md docs/ProspectingV1.md -docs/ReadAdSetBiddingV24Q1.md -docs/ReadAdSetBudgetV24Q1.md -docs/ReadAdSetScheduleV24Q1.md -docs/ReadAdSetV24Q1.md +docs/ReadAdSetBiddingV24Q3.md +docs/ReadAdSetBudgetV24Q3.md +docs/ReadAdSetScheduleV24Q3.md +docs/ReadAdSetV24Q3.md docs/ReadModelAdSetId.md -docs/ReadModelAdSetIdV24Q1.md -docs/ReadModelReadAdSetV24Q1.md +docs/ReadModelAdSetIdV24Q3.md +docs/ReadModelReadAdSetV24Q3.md docs/RecoApi.md docs/RecommendedProduct.md docs/ReportDetailError.md docs/ReportDetailErrors.md +docs/ReportDetailWarning.md +docs/ReportDetailWarnings.md docs/ReportOkResponse.md docs/RequestsAdSetId.md -docs/RequestsPatchAdSetV24Q1.md +docs/RequestsPatchAdSetV24Q3.md docs/ResourceCollectionOutcomeOfProductSet.md docs/ResourceOfProductSet.md docs/ResourceOutcomeOfProductSet.md -docs/ResponseReadAdSetV24Q1.md +docs/ResponseReadAdSetV24Q3.md docs/ResponsesAdSetId.md -docs/ResponsesAdSetIdV24Q1.md -docs/ResponsesReadAdSetV24Q1.md +docs/ResponsesAdSetIdV24Q3.md +docs/ResponsesReadAdSetV24Q3.md docs/RetargetingCreateV1.md docs/RetargetingUpdateV1.md docs/RetargetingV1.md @@ -349,9 +348,6 @@ docs/SetAdSetTargetingDealIdsResource.md docs/SetAdSetTargetingVideoPositioning.md docs/SetAdSetTargetingVideoPositioningRequest.md docs/SetAdSetTargetingVideoPositioningResource.md -docs/SetUserProfileModel.md -docs/SetUserProfileModelListRequest.md -docs/SetUserProfileModelResource.md docs/Size.md docs/StatisticsOkResponse.md docs/StatisticsRecord.md @@ -379,8 +375,6 @@ docs/UpdateCoupon.md docs/UpdateCouponRequest.md docs/UpdateCouponResource.md docs/UserDef.md -docs/UserProfileAttributeModel.md -docs/UserProfileIdentifierModel.md docs/ValueResourceCollectionOutcomeOfProductFilterConfig.md docs/ValueResourceInputOfCreateProductFilterRequest.md docs/ValueResourceInputOfCreateProductSetRequest.md @@ -391,7 +385,7 @@ docs/ValueResourceOfProductFilterConfig.md docs/ValueResourceOutcomeOfProductFilterConfig.md docs/VideoDetail.md docs/WriteModelAdSetId.md -docs/WriteModelPatchAdSetV24Q1.md +docs/WriteModelPatchAdSetV24Q3.md git_push.sh gradle.properties gradle/wrapper/gradle-wrapper.jar @@ -444,14 +438,14 @@ src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkI src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBid.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBidListResponse.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBidResource.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV24Q3.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplier.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplierListResponse.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplierResource.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV24Q3.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIds.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsDisableResultResource.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsDisableResultResponse.java @@ -459,8 +453,8 @@ src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDeal src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsResponse.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsSetResultResource.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsSetResultResponse.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV24Q3.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioning.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningDisableResultResource.java src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningDisableResultResponse.java @@ -577,14 +571,14 @@ src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponResponse.jav src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizes.java src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizesResource.java src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizesResponse.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBiddingV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudgetV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocationV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetScheduleV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargetingV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1Request.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q1Resource.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBiddingV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudgetV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocationV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetScheduleV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargetingV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3Request.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3Resource.java src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaign.java src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignRequest.java src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignResource.java @@ -609,9 +603,6 @@ src/main/java/com/criteo/api/marketingsolutions/preview/model/CustomAttribute.ja src/main/java/com/criteo/api/marketingsolutions/preview/model/Dataset.java src/main/java/com/criteo/api/marketingsolutions/preview/model/DealId.java src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteAudienceContactListResponse.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModel.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelListRequest.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelResource.java src/main/java/com/criteo/api/marketingsolutions/preview/model/DynamicAttributes.java src/main/java/com/criteo/api/marketingsolutions/preview/model/DynamicWriteAttributes.java src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityFilter.java @@ -677,8 +668,8 @@ src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutions src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatusResource.java src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatusResponse.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ModifyAudienceResponse.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q1Value.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q3Value.java src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableDateTime.java src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableDecimal.java src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableGenderV1.java @@ -695,8 +686,8 @@ src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingRule.j src/main/java/com/criteo/api/marketingsolutions/preview/model/OnSiteRecoRequest.java src/main/java/com/criteo/api/marketingsolutions/preview/model/OnSiteRecoResponse.java src/main/java/com/criteo/api/marketingsolutions/preview/model/Outcome.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBiddingV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudgetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBiddingV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudgetV24Q3.java src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBid.java src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidListRequest.java src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResource.java @@ -707,8 +698,8 @@ src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayM src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResource.java src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResultListResponse.java src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResultResource.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetSchedulingV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetSchedulingV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetV24Q3.java src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaign.java src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignListRequest.java src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignSpendLimit.java @@ -738,26 +729,28 @@ src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductsCustomBatc src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingCreateV1.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingUpdateV1.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingV1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV24Q3.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetId.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetIdV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetIdV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV24Q3.java src/main/java/com/criteo/api/marketingsolutions/preview/model/RecommendedProduct.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailError.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailErrors.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailWarning.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailWarnings.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportOkResponse.java src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsAdSetId.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSetV24Q3.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceCollectionOutcomeOfProductSet.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceOfProductSet.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceOutcomeOfProductSet.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV24Q3.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetId.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetIdV24Q1.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetIdV24Q3.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV24Q3.java src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingCreateV1.java src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingUpdateV1.java src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingV1.java @@ -767,9 +760,6 @@ src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingD src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioning.java src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioningRequest.java src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioningResource.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModel.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelListRequest.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelResource.java src/main/java/com/criteo/api/marketingsolutions/preview/model/Size.java src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsOkResponse.java src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsRecord.java @@ -797,8 +787,6 @@ src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCoupon.java src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCouponRequest.java src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCouponResource.java src/main/java/com/criteo/api/marketingsolutions/preview/model/UserDef.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileAttributeModel.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileIdentifierModel.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceCollectionOutcomeOfProductFilterConfig.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceInputOfCreateProductFilterRequest.java src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceInputOfCreateProductSetRequest.java @@ -809,6 +797,6 @@ src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceOfPro src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceOutcomeOfProductFilterConfig.java src/main/java/com/criteo/api/marketingsolutions/preview/model/VideoDetail.java src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelAdSetId.java -src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSetV24Q1.java +src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSetV24Q3.java src/test/java/com/criteo/api/marketingsolutions/preview/ExampleApplication.java src/test/java/com/criteo/api/marketingsolutions/preview/GatewayApiTest.java diff --git a/sdks/marketingsolutions_preview/README.md b/sdks/marketingsolutions_preview/README.md index 1d2b0b3c..3056decf 100644 --- a/sdks/marketingsolutions_preview/README.md +++ b/sdks/marketingsolutions_preview/README.md @@ -4,11 +4,11 @@ API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. -More information: [https://developers.criteo.com/](https://developers.criteo.com/) +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). Criteo API -- Package version: 0.0.240826 +- Package version: 0.0.241029 *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.criteo criteo-api-marketingsolutions-sdk - 0.0.240826 + 0.0.241029 compile ``` @@ -48,7 +48,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.criteo:criteo-api-marketingsolutions-sdk:0.0.240826" +compile "com.criteo:criteo-api-marketingsolutions-sdk:0.0.241029" ``` ### Others @@ -61,7 +61,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* `build/libs/criteo-api-marketingsolutions-sdk-0.0.240826.jar` +* `build/libs/criteo-api-marketingsolutions-sdk-0.0.241029.jar` ## Example @@ -96,19 +96,17 @@ Class | Method | HTTP request | Description *AudienceApi* | [**bulkUpdateAudiences**](docs/AudienceApi.md#bulkUpdateAudiences) | **PATCH** /preview/marketing-solutions/audiences | *AudienceApi* | [**computeAudienceSegmentsSizes**](docs/AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /preview/marketing-solutions/audience-segments/compute-sizes | *AudienceApi* | [**computeAudiencesSizes**](docs/AudienceApi.md#computeAudiencesSizes) | **POST** /preview/marketing-solutions/audiences/compute-sizes | -*AudienceApi* | [**deleteContactListIdentifiers**](docs/AudienceApi.md#deleteContactListIdentifiers) | **DELETE** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | -*AudienceApi* | [**deleteUserProfiles**](docs/AudienceApi.md#deleteUserProfiles) | **POST** /preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/delete | *AudienceApi* | [**estimateAudienceSegmentSize**](docs/AudienceApi.md#estimateAudienceSegmentSize) | **POST** /preview/marketing-solutions/audience-segments/estimate-size | *AudienceApi* | [**estimateAudienceSize**](docs/AudienceApi.md#estimateAudienceSize) | **POST** /preview/marketing-solutions/audiences/estimate-size | *AudienceApi* | [**getAudienceSegmentContactListStatistics**](docs/AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *AudienceApi* | [**getAudienceSegmentsInMarketBrands**](docs/AudienceApi.md#getAudienceSegmentsInMarketBrands) | **GET** /preview/marketing-solutions/audience-segments/in-market-brands | *AudienceApi* | [**getAudienceSegmentsInMarketInterests**](docs/AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /preview/marketing-solutions/audience-segments/in-market-interests | *AudienceApi* | [**modifyAudienceUsersWithAttributes**](docs/AudienceApi.md#modifyAudienceUsersWithAttributes) | **PATCH** /preview/audiences/{audience-id}/contactlist-attributes | +*AudienceApi* | [**previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](docs/AudienceApi.md#previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | +*AudienceApi* | [**previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](docs/AudienceApi.md#previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | *AudienceApi* | [**searchAudienceSegments**](docs/AudienceApi.md#searchAudienceSegments) | **POST** /preview/marketing-solutions/audience-segments/search | *AudienceApi* | [**searchAudiences**](docs/AudienceApi.md#searchAudiences) | **POST** /preview/marketing-solutions/audiences/search | -*AudienceApi* | [**setUserProfiles**](docs/AudienceApi.md#setUserProfiles) | **POST** /preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/set | -*AudienceApi* | [**updateContactListIdentifiers**](docs/AudienceApi.md#updateContactListIdentifiers) | **PATCH** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | -*CampaignApi* | [**createAdSetV24Q1**](docs/CampaignApi.md#createAdSetV24Q1) | **POST** /preview/marketing-solutions/ad-sets | +*CampaignApi* | [**createAdSetV24Q3**](docs/CampaignApi.md#createAdSetV24Q3) | **POST** /preview/marketing-solutions/ad-sets | *CampaignApi* | [**createCampaign**](docs/CampaignApi.md#createCampaign) | **POST** /preview/marketing-solutions/campaigns | *CampaignApi* | [**deleteAdvertiserBundleRules**](docs/CampaignApi.md#deleteAdvertiserBundleRules) | **DELETE** /preview/advertisers/{advertiserId}/targeting/bundle-rules | *CampaignApi* | [**deleteAdvertiserDomainRules**](docs/CampaignApi.md#deleteAdvertiserDomainRules) | **DELETE** /preview/advertisers/{advertiserId}/targeting/domain-rules | @@ -120,7 +118,7 @@ Class | Method | HTTP request | Description *CampaignApi* | [**disableAdSetTargetingVideoPositioning**](docs/CampaignApi.md#disableAdSetTargetingVideoPositioning) | **POST** /preview/marketing-solutions/ad-sets/{ad-set-id}/targeting/video-positionings/disable | *CampaignApi* | [**getAdSetTargetingDealIds**](docs/CampaignApi.md#getAdSetTargetingDealIds) | **GET** /preview/marketing-solutions/ad-sets/{ad-set-id}/targeting/deal-ids | *CampaignApi* | [**getAdSetTargetingVideoPositioning**](docs/CampaignApi.md#getAdSetTargetingVideoPositioning) | **GET** /preview/marketing-solutions/ad-sets/{ad-set-id}/targeting/video-positioning | -*CampaignApi* | [**getAdSetV24Q1**](docs/CampaignApi.md#getAdSetV24Q1) | **GET** /preview/marketing-solutions/ad-sets/{ad-set-id} | +*CampaignApi* | [**getAdSetV24Q3**](docs/CampaignApi.md#getAdSetV24Q3) | **GET** /preview/marketing-solutions/ad-sets/{ad-set-id} | *CampaignApi* | [**getAdvertiserBundleRules**](docs/CampaignApi.md#getAdvertiserBundleRules) | **GET** /preview/advertisers/{advertiserId}/targeting/bundle-rules | *CampaignApi* | [**getAdvertiserDomainRules**](docs/CampaignApi.md#getAdvertiserDomainRules) | **GET** /preview/advertisers/{advertiserId}/targeting/domain-rules | *CampaignApi* | [**getCampaignBundleRules**](docs/CampaignApi.md#getCampaignBundleRules) | **GET** /preview/campaigns/{campaignId}/targeting/bundle-rules | @@ -131,7 +129,7 @@ Class | Method | HTTP request | Description *CampaignApi* | [**getOCIbrandSafetyRule**](docs/CampaignApi.md#getOCIbrandSafetyRule) | **GET** /preview/brand-safety/oci | *CampaignApi* | [**getOCItargetingRule**](docs/CampaignApi.md#getOCItargetingRule) | **GET** /preview/targeting/oci | *CampaignApi* | [**getSupplyVendorList**](docs/CampaignApi.md#getSupplyVendorList) | **GET** /preview/marketing-solutions/ad-sets/targeting/supply-vendors | -*CampaignApi* | [**patchAdSetsV24Q1**](docs/CampaignApi.md#patchAdSetsV24Q1) | **PATCH** /preview/marketing-solutions/ad-sets | +*CampaignApi* | [**patchAdSetsV24Q3**](docs/CampaignApi.md#patchAdSetsV24Q3) | **PATCH** /preview/marketing-solutions/ad-sets | *CampaignApi* | [**patchCampaigns**](docs/CampaignApi.md#patchCampaigns) | **PATCH** /preview/marketing-solutions/campaigns | *CampaignApi* | [**patchCategoryBidList**](docs/CampaignApi.md#patchCategoryBidList) | **PATCH** /preview/marketing-solutions/ad-sets/{ad-set-id}/category-bids | *CampaignApi* | [**patchDisplayMultipliers**](docs/CampaignApi.md#patchDisplayMultipliers) | **PATCH** /preview/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | @@ -143,7 +141,7 @@ Class | Method | HTTP request | Description *CampaignApi* | [**putAdvertiserDomainRules**](docs/CampaignApi.md#putAdvertiserDomainRules) | **PUT** /preview/advertisers/{advertiserId}/targeting/domain-rules | *CampaignApi* | [**putCampaignBundleRules**](docs/CampaignApi.md#putCampaignBundleRules) | **PUT** /preview/campaigns/{campaignId}/targeting/bundle-rules | *CampaignApi* | [**putCampaignDomainRules**](docs/CampaignApi.md#putCampaignDomainRules) | **PUT** /preview/campaigns/{campaignId}/targeting/domain-rules | -*CampaignApi* | [**searchAdSetsV24Q1**](docs/CampaignApi.md#searchAdSetsV24Q1) | **POST** /preview/marketing-solutions/ad-sets/search | +*CampaignApi* | [**searchAdSetsV24Q3**](docs/CampaignApi.md#searchAdSetsV24Q3) | **POST** /preview/marketing-solutions/ad-sets/search | *CampaignApi* | [**searchCampaignsV23Q1**](docs/CampaignApi.md#searchCampaignsV23Q1) | **POST** /preview/marketing-solutions/campaigns/search | *CampaignApi* | [**setAdSetTargetingDealIds**](docs/CampaignApi.md#setAdSetTargetingDealIds) | **PUT** /preview/marketing-solutions/ad-sets/{ad-set-id}/targeting/deal-ids | *CampaignApi* | [**setAdSetTargetingVideoPositioning**](docs/CampaignApi.md#setAdSetTargetingVideoPositioning) | **PUT** /preview/marketing-solutions/ad-sets/{ad-set-id}/targeting/video-positioning | @@ -197,14 +195,14 @@ Class | Method | HTTP request | Description - [AdSetCategoryBid](docs/AdSetCategoryBid.md) - [AdSetCategoryBidListResponse](docs/AdSetCategoryBidListResponse.md) - [AdSetCategoryBidResource](docs/AdSetCategoryBidResource.md) - - [AdSetDeliveryLimitationsV24Q1](docs/AdSetDeliveryLimitationsV24Q1.md) + - [AdSetDeliveryLimitationsV24Q3](docs/AdSetDeliveryLimitationsV24Q3.md) - [AdSetDisplayMultiplier](docs/AdSetDisplayMultiplier.md) - [AdSetDisplayMultiplierListResponse](docs/AdSetDisplayMultiplierListResponse.md) - [AdSetDisplayMultiplierResource](docs/AdSetDisplayMultiplierResource.md) - - [AdSetFrequencyCappingV24Q1](docs/AdSetFrequencyCappingV24Q1.md) - - [AdSetGeoLocationV24Q1](docs/AdSetGeoLocationV24Q1.md) - - [AdSetSearchFilterV24Q1](docs/AdSetSearchFilterV24Q1.md) - - [AdSetSearchRequestV24Q1](docs/AdSetSearchRequestV24Q1.md) + - [AdSetFrequencyCappingV24Q3](docs/AdSetFrequencyCappingV24Q3.md) + - [AdSetGeoLocationV24Q3](docs/AdSetGeoLocationV24Q3.md) + - [AdSetSearchFilterV24Q3](docs/AdSetSearchFilterV24Q3.md) + - [AdSetSearchRequestV24Q3](docs/AdSetSearchRequestV24Q3.md) - [AdSetTargetingDealIds](docs/AdSetTargetingDealIds.md) - [AdSetTargetingDealIdsDisableResultResource](docs/AdSetTargetingDealIdsDisableResultResource.md) - [AdSetTargetingDealIdsDisableResultResponse](docs/AdSetTargetingDealIdsDisableResultResponse.md) @@ -212,8 +210,8 @@ Class | Method | HTTP request | Description - [AdSetTargetingDealIdsResponse](docs/AdSetTargetingDealIdsResponse.md) - [AdSetTargetingDealIdsSetResultResource](docs/AdSetTargetingDealIdsSetResultResource.md) - [AdSetTargetingDealIdsSetResultResponse](docs/AdSetTargetingDealIdsSetResultResponse.md) - - [AdSetTargetingRuleV24Q1](docs/AdSetTargetingRuleV24Q1.md) - - [AdSetTargetingV24Q1](docs/AdSetTargetingV24Q1.md) + - [AdSetTargetingRuleV24Q3](docs/AdSetTargetingRuleV24Q3.md) + - [AdSetTargetingV24Q3](docs/AdSetTargetingV24Q3.md) - [AdSetTargetingVideoPositioning](docs/AdSetTargetingVideoPositioning.md) - [AdSetTargetingVideoPositioningDisableResultResource](docs/AdSetTargetingVideoPositioningDisableResultResource.md) - [AdSetTargetingVideoPositioningDisableResultResponse](docs/AdSetTargetingVideoPositioningDisableResultResponse.md) @@ -330,14 +328,14 @@ Class | Method | HTTP request | Description - [CouponSupportedSizes](docs/CouponSupportedSizes.md) - [CouponSupportedSizesResource](docs/CouponSupportedSizesResource.md) - [CouponSupportedSizesResponse](docs/CouponSupportedSizesResponse.md) - - [CreateAdSetBiddingV24Q1](docs/CreateAdSetBiddingV24Q1.md) - - [CreateAdSetBudgetV24Q1](docs/CreateAdSetBudgetV24Q1.md) - - [CreateAdSetGeoLocationV24Q1](docs/CreateAdSetGeoLocationV24Q1.md) - - [CreateAdSetScheduleV24Q1](docs/CreateAdSetScheduleV24Q1.md) - - [CreateAdSetTargetingV24Q1](docs/CreateAdSetTargetingV24Q1.md) - - [CreateAdSetV24Q1](docs/CreateAdSetV24Q1.md) - - [CreateAdSetV24Q1Request](docs/CreateAdSetV24Q1Request.md) - - [CreateAdSetV24Q1Resource](docs/CreateAdSetV24Q1Resource.md) + - [CreateAdSetBiddingV24Q3](docs/CreateAdSetBiddingV24Q3.md) + - [CreateAdSetBudgetV24Q3](docs/CreateAdSetBudgetV24Q3.md) + - [CreateAdSetGeoLocationV24Q3](docs/CreateAdSetGeoLocationV24Q3.md) + - [CreateAdSetScheduleV24Q3](docs/CreateAdSetScheduleV24Q3.md) + - [CreateAdSetTargetingV24Q3](docs/CreateAdSetTargetingV24Q3.md) + - [CreateAdSetV24Q3](docs/CreateAdSetV24Q3.md) + - [CreateAdSetV24Q3Request](docs/CreateAdSetV24Q3Request.md) + - [CreateAdSetV24Q3Resource](docs/CreateAdSetV24Q3Resource.md) - [CreateCampaign](docs/CreateCampaign.md) - [CreateCampaignRequest](docs/CreateCampaignRequest.md) - [CreateCampaignResource](docs/CreateCampaignResource.md) @@ -362,9 +360,6 @@ Class | Method | HTTP request | Description - [Dataset](docs/Dataset.md) - [DealId](docs/DealId.md) - [DeleteAudienceContactListResponse](docs/DeleteAudienceContactListResponse.md) - - [DeleteUserProfileModel](docs/DeleteUserProfileModel.md) - - [DeleteUserProfileModelListRequest](docs/DeleteUserProfileModelListRequest.md) - - [DeleteUserProfileModelResource](docs/DeleteUserProfileModelResource.md) - [DynamicAttributes](docs/DynamicAttributes.md) - [DynamicWriteAttributes](docs/DynamicWriteAttributes.md) - [EntityFilter](docs/EntityFilter.md) @@ -430,8 +425,8 @@ Class | Method | HTTP request | Description - [MarketingSolutionsReportStatusResource](docs/MarketingSolutionsReportStatusResource.md) - [MarketingSolutionsReportStatusResponse](docs/MarketingSolutionsReportStatusResponse.md) - [ModifyAudienceResponse](docs/ModifyAudienceResponse.md) - - [NillableAdSetTargetingRuleV24Q1](docs/NillableAdSetTargetingRuleV24Q1.md) - - [NillableAdSetTargetingRuleV24Q1Value](docs/NillableAdSetTargetingRuleV24Q1Value.md) + - [NillableAdSetTargetingRuleV24Q3](docs/NillableAdSetTargetingRuleV24Q3.md) + - [NillableAdSetTargetingRuleV24Q3Value](docs/NillableAdSetTargetingRuleV24Q3Value.md) - [NillableDateTime](docs/NillableDateTime.md) - [NillableDecimal](docs/NillableDecimal.md) - [NillableGenderV1](docs/NillableGenderV1.md) @@ -448,8 +443,8 @@ Class | Method | HTTP request | Description - [OnSiteRecoRequest](docs/OnSiteRecoRequest.md) - [OnSiteRecoResponse](docs/OnSiteRecoResponse.md) - [Outcome](docs/Outcome.md) - - [PatchAdSetBiddingV24Q1](docs/PatchAdSetBiddingV24Q1.md) - - [PatchAdSetBudgetV24Q1](docs/PatchAdSetBudgetV24Q1.md) + - [PatchAdSetBiddingV24Q3](docs/PatchAdSetBiddingV24Q3.md) + - [PatchAdSetBudgetV24Q3](docs/PatchAdSetBudgetV24Q3.md) - [PatchAdSetCategoryBid](docs/PatchAdSetCategoryBid.md) - [PatchAdSetCategoryBidListRequest](docs/PatchAdSetCategoryBidListRequest.md) - [PatchAdSetCategoryBidResource](docs/PatchAdSetCategoryBidResource.md) @@ -460,8 +455,8 @@ Class | Method | HTTP request | Description - [PatchAdSetDisplayMultiplierResource](docs/PatchAdSetDisplayMultiplierResource.md) - [PatchAdSetDisplayMultiplierResultListResponse](docs/PatchAdSetDisplayMultiplierResultListResponse.md) - [PatchAdSetDisplayMultiplierResultResource](docs/PatchAdSetDisplayMultiplierResultResource.md) - - [PatchAdSetSchedulingV24Q1](docs/PatchAdSetSchedulingV24Q1.md) - - [PatchAdSetV24Q1](docs/PatchAdSetV24Q1.md) + - [PatchAdSetSchedulingV24Q3](docs/PatchAdSetSchedulingV24Q3.md) + - [PatchAdSetV24Q3](docs/PatchAdSetV24Q3.md) - [PatchCampaign](docs/PatchCampaign.md) - [PatchCampaignListRequest](docs/PatchCampaignListRequest.md) - [PatchCampaignSpendLimit](docs/PatchCampaignSpendLimit.md) @@ -491,26 +486,28 @@ Class | Method | HTTP request | Description - [ProspectingCreateV1](docs/ProspectingCreateV1.md) - [ProspectingUpdateV1](docs/ProspectingUpdateV1.md) - [ProspectingV1](docs/ProspectingV1.md) - - [ReadAdSetBiddingV24Q1](docs/ReadAdSetBiddingV24Q1.md) - - [ReadAdSetBudgetV24Q1](docs/ReadAdSetBudgetV24Q1.md) - - [ReadAdSetScheduleV24Q1](docs/ReadAdSetScheduleV24Q1.md) - - [ReadAdSetV24Q1](docs/ReadAdSetV24Q1.md) + - [ReadAdSetBiddingV24Q3](docs/ReadAdSetBiddingV24Q3.md) + - [ReadAdSetBudgetV24Q3](docs/ReadAdSetBudgetV24Q3.md) + - [ReadAdSetScheduleV24Q3](docs/ReadAdSetScheduleV24Q3.md) + - [ReadAdSetV24Q3](docs/ReadAdSetV24Q3.md) - [ReadModelAdSetId](docs/ReadModelAdSetId.md) - - [ReadModelAdSetIdV24Q1](docs/ReadModelAdSetIdV24Q1.md) - - [ReadModelReadAdSetV24Q1](docs/ReadModelReadAdSetV24Q1.md) + - [ReadModelAdSetIdV24Q3](docs/ReadModelAdSetIdV24Q3.md) + - [ReadModelReadAdSetV24Q3](docs/ReadModelReadAdSetV24Q3.md) - [RecommendedProduct](docs/RecommendedProduct.md) - [ReportDetailError](docs/ReportDetailError.md) - [ReportDetailErrors](docs/ReportDetailErrors.md) + - [ReportDetailWarning](docs/ReportDetailWarning.md) + - [ReportDetailWarnings](docs/ReportDetailWarnings.md) - [ReportOkResponse](docs/ReportOkResponse.md) - [RequestsAdSetId](docs/RequestsAdSetId.md) - - [RequestsPatchAdSetV24Q1](docs/RequestsPatchAdSetV24Q1.md) + - [RequestsPatchAdSetV24Q3](docs/RequestsPatchAdSetV24Q3.md) - [ResourceCollectionOutcomeOfProductSet](docs/ResourceCollectionOutcomeOfProductSet.md) - [ResourceOfProductSet](docs/ResourceOfProductSet.md) - [ResourceOutcomeOfProductSet](docs/ResourceOutcomeOfProductSet.md) - - [ResponseReadAdSetV24Q1](docs/ResponseReadAdSetV24Q1.md) + - [ResponseReadAdSetV24Q3](docs/ResponseReadAdSetV24Q3.md) - [ResponsesAdSetId](docs/ResponsesAdSetId.md) - - [ResponsesAdSetIdV24Q1](docs/ResponsesAdSetIdV24Q1.md) - - [ResponsesReadAdSetV24Q1](docs/ResponsesReadAdSetV24Q1.md) + - [ResponsesAdSetIdV24Q3](docs/ResponsesAdSetIdV24Q3.md) + - [ResponsesReadAdSetV24Q3](docs/ResponsesReadAdSetV24Q3.md) - [RetargetingCreateV1](docs/RetargetingCreateV1.md) - [RetargetingUpdateV1](docs/RetargetingUpdateV1.md) - [RetargetingV1](docs/RetargetingV1.md) @@ -520,9 +517,6 @@ Class | Method | HTTP request | Description - [SetAdSetTargetingVideoPositioning](docs/SetAdSetTargetingVideoPositioning.md) - [SetAdSetTargetingVideoPositioningRequest](docs/SetAdSetTargetingVideoPositioningRequest.md) - [SetAdSetTargetingVideoPositioningResource](docs/SetAdSetTargetingVideoPositioningResource.md) - - [SetUserProfileModel](docs/SetUserProfileModel.md) - - [SetUserProfileModelListRequest](docs/SetUserProfileModelListRequest.md) - - [SetUserProfileModelResource](docs/SetUserProfileModelResource.md) - [Size](docs/Size.md) - [StatisticsOkResponse](docs/StatisticsOkResponse.md) - [StatisticsRecord](docs/StatisticsRecord.md) @@ -550,8 +544,6 @@ Class | Method | HTTP request | Description - [UpdateCouponRequest](docs/UpdateCouponRequest.md) - [UpdateCouponResource](docs/UpdateCouponResource.md) - [UserDef](docs/UserDef.md) - - [UserProfileAttributeModel](docs/UserProfileAttributeModel.md) - - [UserProfileIdentifierModel](docs/UserProfileIdentifierModel.md) - [ValueResourceCollectionOutcomeOfProductFilterConfig](docs/ValueResourceCollectionOutcomeOfProductFilterConfig.md) - [ValueResourceInputOfCreateProductFilterRequest](docs/ValueResourceInputOfCreateProductFilterRequest.md) - [ValueResourceInputOfCreateProductSetRequest](docs/ValueResourceInputOfCreateProductSetRequest.md) @@ -562,7 +554,7 @@ Class | Method | HTTP request | Description - [ValueResourceOutcomeOfProductFilterConfig](docs/ValueResourceOutcomeOfProductFilterConfig.md) - [VideoDetail](docs/VideoDetail.md) - [WriteModelAdSetId](docs/WriteModelAdSetId.md) - - [WriteModelPatchAdSetV24Q1](docs/WriteModelPatchAdSetV24Q1.md) + - [WriteModelPatchAdSetV24Q3](docs/WriteModelPatchAdSetV24Q3.md) ## Recommendation diff --git a/sdks/marketingsolutions_preview/api/openapi.yaml b/sdks/marketingsolutions_preview/api/openapi.yaml index ba7f7296..e2dd8d19 100644 --- a/sdks/marketingsolutions_preview/api/openapi.yaml +++ b/sdks/marketingsolutions_preview/api/openapi.yaml @@ -59,7 +59,6 @@ paths: /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list: delete: description: Delete all identifiers from a contact list audience-segment. - operationId: deleteContactListIdentifiers parameters: - description: The id of the contact list audience-segment to amend explode: false @@ -156,7 +155,6 @@ paths: x-accepts: application/json patch: description: Add/remove identifiers to or from a contact list audience-segment. - operationId: updateContactListIdentifiers parameters: - description: The id of the contact list audience-segment to amend explode: false @@ -1173,21 +1171,21 @@ paths: /preview/marketing-solutions/ad-sets: patch: description: Patch a list of AdSets. - operationId: PatchAdSetsV24Q1 + operationId: PatchAdSetsV24Q3 requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/RequestsPatchAdSetV24Q1' + $ref: '#/components/schemas/RequestsPatchAdSetV24Q3' application/json: schema: - $ref: '#/components/schemas/RequestsPatchAdSetV24Q1' + $ref: '#/components/schemas/RequestsPatchAdSetV24Q3' text/json: schema: - $ref: '#/components/schemas/RequestsPatchAdSetV24Q1' + $ref: '#/components/schemas/RequestsPatchAdSetV24Q3' application/*+json: schema: - $ref: '#/components/schemas/RequestsPatchAdSetV24Q1' + $ref: '#/components/schemas/RequestsPatchAdSetV24Q3' description: List of adsets to patch. x-bodyName: adSets responses: @@ -1195,13 +1193,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ResponsesAdSetIdV24Q1' + $ref: '#/components/schemas/ResponsesAdSetIdV24Q3' application/json: schema: - $ref: '#/components/schemas/ResponsesAdSetIdV24Q1' + $ref: '#/components/schemas/ResponsesAdSetIdV24Q3' text/json: schema: - $ref: '#/components/schemas/ResponsesAdSetIdV24Q1' + $ref: '#/components/schemas/ResponsesAdSetIdV24Q3' description: List of patched adSets. "401": content: @@ -1222,21 +1220,21 @@ paths: x-accepts: application/json post: description: Create the specified ad set - operationId: CreateAdSetV24Q1 + operationId: CreateAdSetV24Q3 requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/CreateAdSetV24Q1Request' + $ref: '#/components/schemas/CreateAdSetV24Q3Request' application/json: schema: - $ref: '#/components/schemas/CreateAdSetV24Q1Request' + $ref: '#/components/schemas/CreateAdSetV24Q3Request' text/json: schema: - $ref: '#/components/schemas/CreateAdSetV24Q1Request' + $ref: '#/components/schemas/CreateAdSetV24Q3Request' application/*+json: schema: - $ref: '#/components/schemas/CreateAdSetV24Q1Request' + $ref: '#/components/schemas/CreateAdSetV24Q3Request' description: the ad sets to create required: true x-bodyName: adSet @@ -1245,13 +1243,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ResponseReadAdSetV24Q1' + $ref: '#/components/schemas/ResponseReadAdSetV24Q3' application/json: schema: - $ref: '#/components/schemas/ResponseReadAdSetV24Q1' + $ref: '#/components/schemas/ResponseReadAdSetV24Q3' text/json: schema: - $ref: '#/components/schemas/ResponseReadAdSetV24Q1' + $ref: '#/components/schemas/ResponseReadAdSetV24Q3' description: The ad set that has been created and errors / warnings "400": content: @@ -1272,34 +1270,34 @@ paths: /preview/marketing-solutions/ad-sets/search: post: description: Search for ad sets - operationId: SearchAdSetsV24Q1 + operationId: SearchAdSetsV24Q3 requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AdSetSearchRequestV24Q1' + $ref: '#/components/schemas/AdSetSearchRequestV24Q3' application/json: schema: - $ref: '#/components/schemas/AdSetSearchRequestV24Q1' + $ref: '#/components/schemas/AdSetSearchRequestV24Q3' text/json: schema: - $ref: '#/components/schemas/AdSetSearchRequestV24Q1' + $ref: '#/components/schemas/AdSetSearchRequestV24Q3' application/*+json: schema: - $ref: '#/components/schemas/AdSetSearchRequestV24Q1' + $ref: '#/components/schemas/AdSetSearchRequestV24Q3' x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/ResponsesReadAdSetV24Q1' + $ref: '#/components/schemas/ResponsesReadAdSetV24Q3' application/json: schema: - $ref: '#/components/schemas/ResponsesReadAdSetV24Q1' + $ref: '#/components/schemas/ResponsesReadAdSetV24Q3' text/json: schema: - $ref: '#/components/schemas/ResponsesReadAdSetV24Q1' + $ref: '#/components/schemas/ResponsesReadAdSetV24Q3' description: data for the ad sets "400": content: @@ -1427,7 +1425,7 @@ paths: /preview/marketing-solutions/ad-sets/{ad-set-id}: get: description: Get the data for the specified ad set - operationId: GetAdSetV24Q1 + operationId: GetAdSetV24Q3 parameters: - description: Id of the ad set explode: false @@ -1442,13 +1440,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ResponseReadAdSetV24Q1' + $ref: '#/components/schemas/ResponseReadAdSetV24Q3' application/json: schema: - $ref: '#/components/schemas/ResponseReadAdSetV24Q1' + $ref: '#/components/schemas/ResponseReadAdSetV24Q3' text/json: schema: - $ref: '#/components/schemas/ResponseReadAdSetV24Q1' + $ref: '#/components/schemas/ResponseReadAdSetV24Q3' description: data for the ad set "401": content: @@ -2821,23 +2819,23 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string application/xml: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string description: Success "400": @@ -3118,23 +3116,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary + type: string + text/csv: + schema: + format: binary type: string application/xml: schema: - format: byte + format: binary type: string - text/xml: + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3698,27 +3700,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -3862,27 +3864,27 @@ paths: content: text/plain: schema: - format: byte + format: binary type: string application/json: schema: - format: byte + format: binary type: string text/json: schema: - format: byte + format: binary type: string text/csv: schema: - format: byte + format: binary type: string text/xml: schema: - format: byte + format: binary type: string application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: schema: - format: byte + format: binary type: string description: Success "400": @@ -7693,92 +7695,6 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/delete: - post: - description: This endpoint will Delete User Profiles for a given Advertiser. - operationId: DeleteUserProfiles - parameters: - - description: Criteo Advertiser ID of user profiles' owner - explode: false - in: path - name: advertiserId - required: true - schema: - format: int32 - type: integer - style: simple - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/DeleteUserProfileModelListRequest' - application/json: - schema: - $ref: '#/components/schemas/DeleteUserProfileModelListRequest' - text/json: - schema: - $ref: '#/components/schemas/DeleteUserProfileModelListRequest' - application/*+json: - schema: - $ref: '#/components/schemas/DeleteUserProfileModelListRequest' - x-bodyName: deleteUserProfileModels - responses: - "200": - content: - application/json: {} - description: Success - "403": - content: - application/json: {} - description: Forbidden - tags: - - Audience - x-content-type: application/json-patch+json - x-accepts: application/json - /preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/set: - post: - description: "This endpoint will Set User Profiles for a given Advertiser. If\ - \ a User Profile does not exist, a new one will be created. If a User Profile\ - \ exists, it will be replaced." - operationId: SetUserProfiles - parameters: - - description: Criteo Advertiser ID of user profiles' owner - explode: false - in: path - name: advertiserId - required: true - schema: - format: int32 - type: integer - style: simple - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/SetUserProfileModelListRequest' - application/json: - schema: - $ref: '#/components/schemas/SetUserProfileModelListRequest' - text/json: - schema: - $ref: '#/components/schemas/SetUserProfileModelListRequest' - application/*+json: - schema: - $ref: '#/components/schemas/SetUserProfileModelListRequest' - x-bodyName: setUserProfileModels - responses: - "200": - content: - application/json: {} - description: Success - "403": - content: - application/json: {} - description: Forbidden - tags: - - Audience - x-content-type: application/json-patch+json - x-accepts: application/json components: schemas: ModifyAudienceResponse: @@ -12224,16 +12140,16 @@ components: nullable: true type: integer type: object - ResponsesAdSetIdV24Q1: + ResponsesAdSetIdV24Q3: description: List of output resources example: data: - attributes: "{}" id: id - type: AdSetIdV24Q1 + type: AdSetIdV24Q3 - attributes: "{}" id: id - type: AdSetIdV24Q1 + type: AdSetIdV24Q3 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -12279,7 +12195,7 @@ components: properties: data: items: - $ref: '#/components/schemas/ReadModelAdSetIdV24Q1' + $ref: '#/components/schemas/ReadModelAdSetIdV24Q3' nullable: true readOnly: true type: array @@ -12299,7 +12215,7 @@ components: type: array x-nullable: true type: object - ResponseReadAdSetV24Q1: + ResponseReadAdSetV24Q3: description: output resource example: data: @@ -12350,7 +12266,7 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: ReadAdSetV24Q1 + type: ReadAdSetV24Q3 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -12395,7 +12311,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ReadModelReadAdSetV24Q1' + $ref: '#/components/schemas/ReadModelReadAdSetV24Q3' warnings: items: $ref: '#/components/schemas/CommonProblem' @@ -12411,7 +12327,7 @@ components: type: array x-nullable: true type: object - ResponsesReadAdSetV24Q1: + ResponsesReadAdSetV24Q3: description: List of output resources example: data: @@ -12462,7 +12378,7 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: ReadAdSetV24Q1 + type: ReadAdSetV24Q3 - attributes: schedule: endDate: @@ -12510,7 +12426,7 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: ReadAdSetV24Q1 + type: ReadAdSetV24Q3 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -12556,7 +12472,7 @@ components: properties: data: items: - $ref: '#/components/schemas/ReadModelReadAdSetV24Q1' + $ref: '#/components/schemas/ReadModelReadAdSetV24Q3' nullable: true readOnly: true type: array @@ -13187,7 +13103,7 @@ components: type: array x-nullable: true type: object - RequestsPatchAdSetV24Q1: + RequestsPatchAdSetV24Q3: description: List of input resources example: data: @@ -13230,7 +13146,7 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: PatchAdSetV24Q1 + type: PatchAdSetV24Q3 - attributes: targeting: geoLocation: @@ -13270,16 +13186,16 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: PatchAdSetV24Q1 + type: PatchAdSetV24Q3 properties: data: items: - $ref: '#/components/schemas/WriteModelPatchAdSetV24Q1' + $ref: '#/components/schemas/WriteModelPatchAdSetV24Q3' nullable: true type: array x-nullable: true type: object - CreateAdSetV24Q1Request: + CreateAdSetV24Q3Request: description: Data model for an input resources example: data: @@ -13335,9 +13251,9 @@ components: type: AdSet properties: data: - $ref: '#/components/schemas/CreateAdSetV24Q1Resource' + $ref: '#/components/schemas/CreateAdSetV24Q3Resource' type: object - AdSetSearchRequestV24Q1: + AdSetSearchRequestV24Q3: description: request payload of the search endpoint example: filters: @@ -13352,7 +13268,7 @@ components: - campaignIds properties: filters: - $ref: '#/components/schemas/AdSetSearchFilterV24Q1' + $ref: '#/components/schemas/AdSetSearchFilterV24Q3' type: object RequestsAdSetId: description: List of input resources @@ -13469,12 +13385,12 @@ components: filters: $ref: '#/components/schemas/CampaignSearchFiltersV23Q1' type: object - ReadModelAdSetIdV24Q1: + ReadModelAdSetIdV24Q3: description: read model data for resources example: attributes: "{}" id: id - type: AdSetIdV24Q1 + type: AdSetIdV24Q3 properties: id: description: Id of the entity @@ -13483,7 +13399,7 @@ components: type: string x-nullable: true type: - example: AdSetIdV24Q1 + example: AdSetIdV24Q3 nullable: true readOnly: true type: string @@ -13492,7 +13408,7 @@ components: description: ad set id model type: object type: object - ReadModelReadAdSetV24Q1: + ReadModelReadAdSetV24Q3: description: read model data for resources example: attributes: @@ -13542,7 +13458,7 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: ReadAdSetV24Q1 + type: ReadAdSetV24Q3 properties: id: description: Id of the entity @@ -13551,13 +13467,13 @@ components: type: string x-nullable: true type: - example: ReadAdSetV24Q1 + example: ReadAdSetV24Q3 nullable: true readOnly: true type: string x-nullable: true attributes: - $ref: '#/components/schemas/ReadAdSetV24Q1' + $ref: '#/components/schemas/ReadAdSetV24Q3' type: object ReadModelAdSetId: description: read model data for resources @@ -13698,7 +13614,7 @@ components: nullable: true type: string type: object - WriteModelPatchAdSetV24Q1: + WriteModelPatchAdSetV24Q3: description: write model data for resources example: attributes: @@ -13740,7 +13656,7 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: PatchAdSetV24Q1 + type: PatchAdSetV24Q3 properties: id: description: Id of the entity @@ -13749,14 +13665,14 @@ components: x-nullable: true type: description: Canonical type name of the entity - example: PatchAdSetV24Q1 + example: PatchAdSetV24Q3 nullable: true type: string x-nullable: true attributes: - $ref: '#/components/schemas/PatchAdSetV24Q1' + $ref: '#/components/schemas/PatchAdSetV24Q3' type: object - CreateAdSetV24Q1Resource: + CreateAdSetV24Q3Resource: description: Data model for a Resource example: attributes: @@ -13811,14 +13727,14 @@ components: type: AdSet properties: attributes: - $ref: '#/components/schemas/CreateAdSetV24Q1' + $ref: '#/components/schemas/CreateAdSetV24Q3' type: description: Canonical type name of the entity example: AdSet nullable: true type: string type: object - AdSetSearchFilterV24Q1: + AdSetSearchFilterV24Q3: description: filter on ad set ids example: adSetIds: @@ -13978,10 +13894,10 @@ components: type: array x-nullable: true type: object - AdSetIdV24Q1: + AdSetIdV24Q3: description: ad set id model type: object - ReadAdSetV24Q1: + ReadAdSetV24Q3: description: ad set read model example: schedule: @@ -14069,13 +13985,13 @@ components: nullable: true type: string schedule: - $ref: '#/components/schemas/ReadAdSetScheduleV24Q1' + $ref: '#/components/schemas/ReadAdSetScheduleV24Q3' bidding: - $ref: '#/components/schemas/ReadAdSetBiddingV24Q1' + $ref: '#/components/schemas/ReadAdSetBiddingV24Q3' targeting: - $ref: '#/components/schemas/AdSetTargetingV24Q1' + $ref: '#/components/schemas/AdSetTargetingV24Q3' budget: - $ref: '#/components/schemas/ReadAdSetBudgetV24Q1' + $ref: '#/components/schemas/ReadAdSetBudgetV24Q3' mediaType: enum: - display @@ -14160,7 +14076,7 @@ components: nullable: true type: string type: object - PatchAdSetV24Q1: + PatchAdSetV24Q3: description: ad set patch model example: targeting: @@ -14206,15 +14122,15 @@ components: type: string x-nullable: true scheduling: - $ref: '#/components/schemas/PatchAdSetSchedulingV24Q1' + $ref: '#/components/schemas/PatchAdSetSchedulingV24Q3' bidding: - $ref: '#/components/schemas/PatchAdSetBiddingV24Q1' + $ref: '#/components/schemas/PatchAdSetBiddingV24Q3' targeting: - $ref: '#/components/schemas/AdSetTargetingV24Q1' + $ref: '#/components/schemas/AdSetTargetingV24Q3' budget: - $ref: '#/components/schemas/PatchAdSetBudgetV24Q1' + $ref: '#/components/schemas/PatchAdSetBudgetV24Q3' type: object - CreateAdSetV24Q1: + CreateAdSetV24Q3: description: ad set create model example: schedule: @@ -14297,13 +14213,13 @@ components: - videoViews type: string schedule: - $ref: '#/components/schemas/CreateAdSetScheduleV24Q1' + $ref: '#/components/schemas/CreateAdSetScheduleV24Q3' bidding: - $ref: '#/components/schemas/CreateAdSetBiddingV24Q1' + $ref: '#/components/schemas/CreateAdSetBiddingV24Q3' targeting: - $ref: '#/components/schemas/CreateAdSetTargetingV24Q1' + $ref: '#/components/schemas/CreateAdSetTargetingV24Q3' budget: - $ref: '#/components/schemas/CreateAdSetBudgetV24Q1' + $ref: '#/components/schemas/CreateAdSetBudgetV24Q3' trackingCode: description: The click tracking code associated to this Ad Set. nullable: true @@ -14401,7 +14317,7 @@ components: - name - spendLimit type: object - ReadAdSetScheduleV24Q1: + ReadAdSetScheduleV24Q3: description: ad set schedule read model example: endDate: @@ -14436,7 +14352,7 @@ components: nullable: true type: string type: object - ReadAdSetBiddingV24Q1: + ReadAdSetBiddingV24Q3: description: ad set bidding read model example: bidAmount: 0.8008281904610115 @@ -14454,7 +14370,7 @@ components: description: How spend is controlled enum: - COS - - CPC + - maxCPC - CPI - CPM - CPO @@ -14465,7 +14381,7 @@ components: nullable: true type: string type: object - AdSetTargetingV24Q1: + AdSetTargetingV24Q3: description: ad set targeting model example: geoLocation: @@ -14490,13 +14406,13 @@ components: - other properties: deliveryLimitations: - $ref: '#/components/schemas/AdSetDeliveryLimitationsV24Q1' + $ref: '#/components/schemas/AdSetDeliveryLimitationsV24Q3' geoLocation: - $ref: '#/components/schemas/AdSetGeoLocationV24Q1' + $ref: '#/components/schemas/AdSetGeoLocationV24Q3' frequencyCapping: - $ref: '#/components/schemas/AdSetFrequencyCappingV24Q1' + $ref: '#/components/schemas/AdSetFrequencyCappingV24Q3' type: object - ReadAdSetBudgetV24Q1: + ReadAdSetBudgetV24Q3: description: ad set budget read model example: budgetDeliverySmoothing: accelerated @@ -14570,7 +14486,7 @@ components: spendLimitAmount: $ref: '#/components/schemas/NillableDecimal' type: object - PatchAdSetSchedulingV24Q1: + PatchAdSetSchedulingV24Q3: description: ad set schedule patch model example: endDate: @@ -14583,7 +14499,7 @@ components: endDate: $ref: '#/components/schemas/NillableDateTime' type: object - PatchAdSetBiddingV24Q1: + PatchAdSetBiddingV24Q3: description: ad set bidding patch model example: bidAmount: @@ -14592,7 +14508,7 @@ components: bidAmount: $ref: '#/components/schemas/NillableDecimal' type: object - PatchAdSetBudgetV24Q1: + PatchAdSetBudgetV24Q3: description: ad set budget patch model example: budgetDeliverySmoothing: accelerated @@ -14642,7 +14558,7 @@ components: budgetAmount: $ref: '#/components/schemas/NillableDecimal' type: object - CreateAdSetScheduleV24Q1: + CreateAdSetScheduleV24Q3: description: ad set schedule create model example: endDate: 2000-01-23T04:56:07.000+00:00 @@ -14659,7 +14575,7 @@ components: required: - startDate type: object - CreateAdSetBiddingV24Q1: + CreateAdSetBiddingV24Q3: description: ad set bidding create model example: bidAmount: 0.8008281904610115 @@ -14677,7 +14593,7 @@ components: description: How spend is controlled enum: - COS - - CPC + - maxCPC - CPI - CPM - CPO @@ -14689,7 +14605,7 @@ components: required: - costController type: object - CreateAdSetTargetingV24Q1: + CreateAdSetTargetingV24Q3: description: Targeting configuration of the ad set example: geoLocation: @@ -14723,15 +14639,15 @@ components: - other properties: deliveryLimitations: - $ref: '#/components/schemas/AdSetDeliveryLimitationsV24Q1' + $ref: '#/components/schemas/AdSetDeliveryLimitationsV24Q3' geoLocation: - $ref: '#/components/schemas/CreateAdSetGeoLocationV24Q1' + $ref: '#/components/schemas/CreateAdSetGeoLocationV24Q3' frequencyCapping: - $ref: '#/components/schemas/AdSetFrequencyCappingV24Q1' + $ref: '#/components/schemas/AdSetFrequencyCappingV24Q3' required: - frequencyCapping type: object - CreateAdSetBudgetV24Q1: + CreateAdSetBudgetV24Q3: description: ad set budget create model example: budgetDeliverySmoothing: accelerated @@ -14851,7 +14767,7 @@ components: type: string x-nullable: true type: object - AdSetDeliveryLimitationsV24Q1: + AdSetDeliveryLimitationsV24Q3: description: ad set delivery limitations model example: operatingSystems: @@ -14895,7 +14811,7 @@ components: type: array x-nullable: true type: object - AdSetGeoLocationV24Q1: + AdSetGeoLocationV24Q3: description: ad set geolocation model example: zipCodes: @@ -14906,13 +14822,13 @@ components: value: null properties: countries: - $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q1' + $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q3' subdivisions: - $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q1' + $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q3' zipCodes: - $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q1' + $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q3' type: object - AdSetFrequencyCappingV24Q1: + AdSetFrequencyCappingV24Q3: description: ad set frequency capping model example: maximumImpressions: 6 @@ -14946,7 +14862,7 @@ components: x-nullable: true type: object x-nullable: true - CreateAdSetGeoLocationV24Q1: + CreateAdSetGeoLocationV24Q3: description: Geolocation configuration of the ad set example: zipCodes: @@ -14966,13 +14882,13 @@ components: operand: undefined properties: countries: - $ref: '#/components/schemas/AdSetTargetingRuleV24Q1' + $ref: '#/components/schemas/AdSetTargetingRuleV24Q3' subdivisions: - $ref: '#/components/schemas/AdSetTargetingRuleV24Q1' + $ref: '#/components/schemas/AdSetTargetingRuleV24Q3' zipCodes: - $ref: '#/components/schemas/AdSetTargetingRuleV24Q1' + $ref: '#/components/schemas/AdSetTargetingRuleV24Q3' type: object - NillableAdSetTargetingRuleV24Q1: + NillableAdSetTargetingRuleV24Q3: description: "structure that encapsulates an object that have valid business\ \ null values. If the structure is provided (i.e. not null), then the value\ \ in it, even null, is provided." @@ -14980,9 +14896,9 @@ components: value: null properties: value: - $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q1_value' + $ref: '#/components/schemas/NillableAdSetTargetingRuleV24Q3_value' type: object - AdSetTargetingRuleV24Q1: + AdSetTargetingRuleV24Q3: description: ad set targeting rule model example: values: @@ -20158,6 +20074,9 @@ components: videoPlacement: - InBanner - InBanner + videoPlcmt: + - InStream + - InStream skippable: Required videoPlayerSize: - Small @@ -20395,6 +20314,9 @@ components: videoPlacement: - InBanner - InBanner + videoPlcmt: + - InStream + - InStream skippable: Required videoPlayerSize: - Small @@ -20484,6 +20406,9 @@ components: videoPlacement: - InBanner - InBanner + videoPlcmt: + - InStream + - InStream skippable: Required videoPlayerSize: - Small @@ -20559,6 +20484,9 @@ components: videoPlacement: - InBanner - InBanner + videoPlcmt: + - InStream + - InStream skippable: Required videoPlayerSize: - Small @@ -20625,6 +20553,9 @@ components: videoPlacement: - InBanner - InBanner + videoPlcmt: + - InStream + - InStream skippable: Required videoPlayerSize: - Small @@ -20645,6 +20576,17 @@ components: nullable: true type: array uniqueItems: false + videoPlcmt: + items: + enum: + - InStream + - AccompanyingContent + - Interstitial + - NoContentStandalone + type: string + nullable: true + type: array + uniqueItems: false playbackMethod: items: enum: @@ -20738,6 +20680,9 @@ components: videoPlacement: - InBanner - InBanner + videoPlcmt: + - InStream + - InStream skippable: Required videoPlayerSize: - Small @@ -20758,6 +20703,17 @@ components: nullable: true type: array uniqueItems: false + videoPlcmt: + items: + enum: + - InStream + - AccompanyingContent + - Interstitial + - NoContentStandalone + type: string + nullable: true + type: array + uniqueItems: false playbackMethod: items: enum: @@ -21867,6 +21823,24 @@ components: numberOfProductsWithErrors: 5 importRequestTimestamp: 0 numberOfProductsInTheBatch: 6 + numberOfProductsWithWarnings: 2 + warningDetails: + - productId: productId + warnings: + - type: OverlargeBadgeUrl + message: message + isServerRelated: true + - type: OverlargeBadgeUrl + message: message + isServerRelated: true + - productId: productId + warnings: + - type: OverlargeBadgeUrl + message: message + isServerRelated: true + - type: OverlargeBadgeUrl + message: message + isServerRelated: true numberOfProductsDeleted: 5 numberOfProductsUpserted: 1 status: ACCEPTED @@ -21924,6 +21898,15 @@ components: items: $ref: '#/components/schemas/ReportDetailErrors' type: array + numberOfProductsWithWarnings: + description: The number of products with Warnings. + format: int32 + type: integer + warningDetails: + description: The list of Warnings with details. + items: + $ref: '#/components/schemas/ReportDetailWarnings' + type: array required: - errorDetails - importRequestTimestamp @@ -21931,7 +21914,9 @@ components: - numberOfProductsInTheBatch - numberOfProductsUpserted - numberOfProductsWithErrors + - numberOfProductsWithWarnings - status + - warningDetails type: object ProductsCustomBatchRequest: description: Defines a batch of operations. @@ -22026,6 +22011,7 @@ components: mobileLink: mobileLink targetCountry: targetCountry taxCategory: taxCategory + badge: badge condition: condition externalSellerName: externalSellerName minEnergyEfficiencyClass: minEnergyEfficiencyClass @@ -22191,6 +22177,7 @@ components: mobileLink: mobileLink targetCountry: targetCountry taxCategory: taxCategory + badge: badge condition: condition externalSellerName: externalSellerName minEnergyEfficiencyClass: minEnergyEfficiencyClass @@ -22299,6 +22286,28 @@ components: - errors - productId type: object + ReportDetailWarnings: + description: A list of warnings on a batch operation. + example: + productId: productId + warnings: + - type: OverlargeBadgeUrl + message: message + isServerRelated: true + - type: OverlargeBadgeUrl + message: message + isServerRelated: true + properties: + productId: + type: string + warnings: + items: + $ref: '#/components/schemas/ReportDetailWarning' + type: array + required: + - productId + - warnings + type: object ProductsCustomBatchRequestEntry: description: A product event for a batch request. example: @@ -22391,6 +22400,7 @@ components: mobileLink: mobileLink targetCountry: targetCountry taxCategory: taxCategory + badge: badge condition: condition externalSellerName: externalSellerName minEnergyEfficiencyClass: minEnergyEfficiencyClass @@ -22539,6 +22549,27 @@ components: - message - type type: object + ReportDetailWarning: + description: A warning on a batch operation. + example: + type: OverlargeBadgeUrl + message: message + isServerRelated: true + properties: + type: + enum: + - OverlargeBadgeUrl + - InvalidBadgeUrl + type: string + message: + type: string + isServerRelated: + type: boolean + required: + - isServerRelated + - message + - type + type: object Product: description: Defines a product to be inserted or updated. example: @@ -22630,6 +22661,7 @@ components: mobileLink: mobileLink targetCountry: targetCountry taxCategory: taxCategory + badge: badge condition: condition externalSellerName: externalSellerName minEnergyEfficiencyClass: minEnergyEfficiencyClass @@ -23064,6 +23096,10 @@ components: description: The product rating for the product nullable: true type: string + badge: + description: URL of a badge image to display on the product. + nullable: true + type: string required: - channel - id @@ -24479,188 +24515,6 @@ components: nullable: true type: boolean type: object - DeleteUserProfileModelListRequest: - description: A top-level object that encapsulates a Criteo API request for several - values - example: - data: - - attributes: - userProfileId: userProfileId - userProfileListId: userProfileListId - type: type - - attributes: - userProfileId: userProfileId - userProfileListId: userProfileListId - type: type - properties: - data: - items: - $ref: '#/components/schemas/DeleteUserProfileModelResource' - nullable: true - type: array - uniqueItems: false - type: object - SetUserProfileModelListRequest: - description: A top-level object that encapsulates a Criteo API request for several - values - example: - data: - - attributes: - userProfileIdentifiers: - - type: type - value: value - - type: type - value: value - userProfileId: userProfileId - userProfileAttributes: - - value: value - key: key - - value: value - key: key - userProfileListId: userProfileListId - type: type - - attributes: - userProfileIdentifiers: - - type: type - value: value - - type: type - value: value - userProfileId: userProfileId - userProfileAttributes: - - value: value - key: key - - value: value - key: key - userProfileListId: userProfileListId - type: type - properties: - data: - items: - $ref: '#/components/schemas/SetUserProfileModelResource' - nullable: true - type: array - uniqueItems: false - type: object - DeleteUserProfileModelResource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - userProfileId: userProfileId - userProfileListId: userProfileListId - type: type - properties: - type: - nullable: true - type: string - attributes: - $ref: '#/components/schemas/DeleteUserProfileModel' - type: object - SetUserProfileModelResource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - userProfileIdentifiers: - - type: type - value: value - - type: type - value: value - userProfileId: userProfileId - userProfileAttributes: - - value: value - key: key - - value: value - key: key - userProfileListId: userProfileListId - type: type - properties: - type: - nullable: true - type: string - attributes: - $ref: '#/components/schemas/SetUserProfileModel' - type: object - DeleteUserProfileModel: - description: Used for the /user-profiles/delete endpoint. Contains information - about the user profile that we delete - example: - userProfileId: userProfileId - userProfileListId: userProfileListId - properties: - userProfileId: - type: string - userProfileListId: - nullable: true - type: string - required: - - userProfileId - type: object - SetUserProfileModel: - description: Used for the /user-profiles/set endpoint. Contains information - about the user profile that we add or update - example: - userProfileIdentifiers: - - type: type - value: value - - type: type - value: value - userProfileId: userProfileId - userProfileAttributes: - - value: value - key: key - - value: value - key: key - userProfileListId: userProfileListId - properties: - userProfileId: - type: string - userProfileListId: - nullable: true - type: string - userProfileIdentifiers: - items: - $ref: '#/components/schemas/UserProfileIdentifierModel' - nullable: true - type: array - uniqueItems: false - userProfileAttributes: - items: - $ref: '#/components/schemas/UserProfileAttributeModel' - nullable: true - type: array - uniqueItems: false - required: - - userProfileId - type: object - UserProfileIdentifierModel: - description: Identifier of a user profile - example: - type: type - value: value - properties: - type: - type: string - value: - type: string - required: - - type - - value - type: object - UserProfileAttributeModel: - description: Attributes of a user profile - example: - value: value - key: key - properties: - key: - type: string - value: - type: string - required: - - key - - value - type: object ContactlistOperation_attributes: description: the contactlist operation attributes example: @@ -24723,7 +24577,6 @@ components: - madid - identityLink - gum - - customerid - phoneNumber example: email type: string @@ -24767,12 +24620,11 @@ components: - madid - identityLink - gum - - customerid - phoneNumber nullable: true type: string identifiers: - description: "The users tos add or remove, each in the schema specified" + description: "The users to add or remove, each in the schema specified" items: type: string type: array @@ -24785,9 +24637,9 @@ components: - identifiers - operation type: object - NillableAdSetTargetingRuleV24Q1_value: + NillableAdSetTargetingRuleV24Q3_value: allOf: - - $ref: '#/components/schemas/AdSetTargetingRuleV24Q1' + - $ref: '#/components/schemas/AdSetTargetingRuleV24Q3' nullable: true type: object x-nullable: true diff --git a/sdks/marketingsolutions_preview/build.gradle b/sdks/marketingsolutions_preview/build.gradle index ed44d883..36499180 100644 --- a/sdks/marketingsolutions_preview/build.gradle +++ b/sdks/marketingsolutions_preview/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '0.0.240826' +version = '0.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-marketingsolutions-sdk' - version '0.0.240826' + version '0.0.241029' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetDeliveryLimitations.md b/sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitationsV24Q3.md similarity index 96% rename from sdks/marketingsolutions_2023-07/docs/AdSetDeliveryLimitations.md rename to sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitationsV24Q3.md index 242e52c2..5ca8cc78 100644 --- a/sdks/marketingsolutions_2023-07/docs/AdSetDeliveryLimitations.md +++ b/sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitationsV24Q3.md @@ -1,6 +1,6 @@ -# AdSetDeliveryLimitations +# AdSetDeliveryLimitationsV24Q3 ad set delivery limitations model diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetFrequencyCapping.md b/sdks/marketingsolutions_preview/docs/AdSetFrequencyCappingV24Q3.md similarity index 94% rename from sdks/marketingsolutions_2023-07/docs/AdSetFrequencyCapping.md rename to sdks/marketingsolutions_preview/docs/AdSetFrequencyCappingV24Q3.md index 5b786433..d0b8695e 100644 --- a/sdks/marketingsolutions_2023-07/docs/AdSetFrequencyCapping.md +++ b/sdks/marketingsolutions_preview/docs/AdSetFrequencyCappingV24Q3.md @@ -1,6 +1,6 @@ -# AdSetFrequencyCapping +# AdSetFrequencyCappingV24Q3 ad set frequency capping model diff --git a/sdks/marketingsolutions_preview/docs/AdSetGeoLocationV24Q3.md b/sdks/marketingsolutions_preview/docs/AdSetGeoLocationV24Q3.md new file mode 100644 index 00000000..8580204a --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/AdSetGeoLocationV24Q3.md @@ -0,0 +1,16 @@ + + +# AdSetGeoLocationV24Q3 + +ad set geolocation model + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**countries** | [**NillableAdSetTargetingRuleV24Q3**](NillableAdSetTargetingRuleV24Q3.md) | | [optional] | +|**subdivisions** | [**NillableAdSetTargetingRuleV24Q3**](NillableAdSetTargetingRuleV24Q3.md) | | [optional] | +|**zipCodes** | [**NillableAdSetTargetingRuleV24Q3**](NillableAdSetTargetingRuleV24Q3.md) | | [optional] | + + + diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetSearchFilter.md b/sdks/marketingsolutions_preview/docs/AdSetSearchFilterV24Q3.md similarity index 92% rename from sdks/marketingsolutions_2023-07/docs/AdSetSearchFilter.md rename to sdks/marketingsolutions_preview/docs/AdSetSearchFilterV24Q3.md index 4e8600b7..76e1467c 100644 --- a/sdks/marketingsolutions_2023-07/docs/AdSetSearchFilter.md +++ b/sdks/marketingsolutions_preview/docs/AdSetSearchFilterV24Q3.md @@ -1,6 +1,6 @@ -# AdSetSearchFilter +# AdSetSearchFilterV24Q3 filter on ad set ids diff --git a/sdks/marketingsolutions_2023-07/docs/RequestAdSetSearch.md b/sdks/marketingsolutions_preview/docs/AdSetSearchRequestV24Q3.md similarity index 58% rename from sdks/marketingsolutions_2023-07/docs/RequestAdSetSearch.md rename to sdks/marketingsolutions_preview/docs/AdSetSearchRequestV24Q3.md index e3b620cf..d4b4f6a7 100644 --- a/sdks/marketingsolutions_2023-07/docs/RequestAdSetSearch.md +++ b/sdks/marketingsolutions_preview/docs/AdSetSearchRequestV24Q3.md @@ -1,6 +1,6 @@ -# RequestAdSetSearch +# AdSetSearchRequestV24Q3 request payload of the search endpoint @@ -8,7 +8,7 @@ request payload of the search endpoint | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**filters** | [**AdSetSearchFilter**](AdSetSearchFilter.md) | | [optional] | +|**filters** | [**AdSetSearchFilterV24Q3**](AdSetSearchFilterV24Q3.md) | | [optional] | diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetTargetingRule.md b/sdks/marketingsolutions_preview/docs/AdSetTargetingRuleV24Q3.md similarity index 94% rename from sdks/marketingsolutions_2023-07/docs/AdSetTargetingRule.md rename to sdks/marketingsolutions_preview/docs/AdSetTargetingRuleV24Q3.md index d6d45bcd..6167f777 100644 --- a/sdks/marketingsolutions_2023-07/docs/AdSetTargetingRule.md +++ b/sdks/marketingsolutions_preview/docs/AdSetTargetingRuleV24Q3.md @@ -1,6 +1,6 @@ -# AdSetTargetingRule +# AdSetTargetingRuleV24Q3 ad set targeting rule model diff --git a/sdks/marketingsolutions_preview/docs/AdSetTargetingV24Q3.md b/sdks/marketingsolutions_preview/docs/AdSetTargetingV24Q3.md new file mode 100644 index 00000000..c520573b --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/AdSetTargetingV24Q3.md @@ -0,0 +1,16 @@ + + +# AdSetTargetingV24Q3 + +ad set targeting model + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**deliveryLimitations** | [**AdSetDeliveryLimitationsV24Q3**](AdSetDeliveryLimitationsV24Q3.md) | | [optional] | +|**geoLocation** | [**AdSetGeoLocationV24Q3**](AdSetGeoLocationV24Q3.md) | | [optional] | +|**frequencyCapping** | [**AdSetFrequencyCappingV24Q3**](AdSetFrequencyCappingV24Q3.md) | | [optional] | + + + diff --git a/sdks/marketingsolutions_preview/docs/AdSetTargetingVideoPositioning.md b/sdks/marketingsolutions_preview/docs/AdSetTargetingVideoPositioning.md index bb544676..0478232e 100644 --- a/sdks/marketingsolutions_preview/docs/AdSetTargetingVideoPositioning.md +++ b/sdks/marketingsolutions_preview/docs/AdSetTargetingVideoPositioning.md @@ -9,6 +9,7 @@ Video positioning targeting model | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**videoPlacement** | [**List<VideoPlacementEnum>**](#List<VideoPlacementEnum>) | | [optional] | +|**videoPlcmt** | [**List<VideoPlcmtEnum>**](#List<VideoPlcmtEnum>) | | [optional] | |**playbackMethod** | [**List<PlaybackMethodEnum>**](#List<PlaybackMethodEnum>) | | [optional] | |**skippable** | [**SkippableEnum**](#SkippableEnum) | | [optional] | |**videoInStreamPosition** | [**List<VideoInStreamPositionEnum>**](#List<VideoInStreamPositionEnum>) | | [optional] | @@ -29,6 +30,17 @@ Video positioning targeting model +## Enum: List<VideoPlcmtEnum> + +| Name | Value | +|---- | -----| +| INSTREAM | "InStream" | +| ACCOMPANYINGCONTENT | "AccompanyingContent" | +| INTERSTITIAL | "Interstitial" | +| NOCONTENTSTANDALONE | "NoContentStandalone" | + + + ## Enum: List<PlaybackMethodEnum> | Name | Value | diff --git a/sdks/marketingsolutions_preview/docs/AdvertiserApi.md b/sdks/marketingsolutions_preview/docs/AdvertiserApi.md index 14c9b3df..d7284fb2 100644 --- a/sdks/marketingsolutions_preview/docs/AdvertiserApi.md +++ b/sdks/marketingsolutions_preview/docs/AdvertiserApi.md @@ -1,6 +1,6 @@ # AdvertiserApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_preview/docs/AnalyticsApi.md b/sdks/marketingsolutions_preview/docs/AnalyticsApi.md index a3092131..8e4cd7fe 100644 --- a/sdks/marketingsolutions_preview/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_preview/docs/AnalyticsApi.md @@ -1,6 +1,6 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -20,7 +20,7 @@ All URIs are relative to *https://api.criteo.com* ## getAdsetReport -> byte[] getAdsetReport(statisticsReportQueryMessage) +> File getAdsetReport(statisticsReportQueryMessage) @@ -67,7 +67,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); StatisticsReportQueryMessage statisticsReportQueryMessage = new StatisticsReportQueryMessage(); // StatisticsReportQueryMessage | try { - byte[] result = apiInstance.getAdsetReport(statisticsReportQueryMessage); + File result = apiInstance.getAdsetReport(statisticsReportQueryMessage); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getAdsetReport"); @@ -89,7 +89,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -473,7 +473,7 @@ public class Example { ## getCategoriesReport -> byte[] getCategoriesReport(generateCategoriesReportRequestAttributesRequest) +> File getCategoriesReport(generateCategoriesReportRequestAttributesRequest) @@ -520,7 +520,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); GenerateCategoriesReportRequestAttributesRequest generateCategoriesReportRequestAttributesRequest = new GenerateCategoriesReportRequestAttributesRequest(); // GenerateCategoriesReportRequestAttributesRequest | try { - byte[] result = apiInstance.getCategoriesReport(generateCategoriesReportRequestAttributesRequest); + File result = apiInstance.getCategoriesReport(generateCategoriesReportRequestAttributesRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getCategoriesReport"); @@ -542,7 +542,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -655,7 +655,7 @@ public class Example { ## getPlacementsReport -> byte[] getPlacementsReport(placementsReportQueryMessageListRequest) +> File getPlacementsReport(placementsReportQueryMessageListRequest) @@ -702,7 +702,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest = new PlacementsReportQueryMessageListRequest(); // PlacementsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); + File result = apiInstance.getPlacementsReport(placementsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getPlacementsReport"); @@ -724,7 +724,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization @@ -733,7 +733,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json, application/xml, text/xml +- **Accept**: text/plain, application/json, text/json, text/csv, application/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/xml ### HTTP response details @@ -837,7 +837,7 @@ public class Example { ## getTransactionsReport -> byte[] getTransactionsReport(transactionsReportQueryMessageListRequest) +> File getTransactionsReport(transactionsReportQueryMessageListRequest) @@ -884,7 +884,7 @@ public class Example { AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest = new TransactionsReportQueryMessageListRequest(); // TransactionsReportQueryMessageListRequest | try { - byte[] result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); + File result = apiInstance.getTransactionsReport(transactionsReportQueryMessageListRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalyticsApi#getTransactionsReport"); @@ -906,7 +906,7 @@ public class Example { ### Return type -**byte[]** +[**File**](File.md) ### Authorization diff --git a/sdks/marketingsolutions_preview/docs/AudienceApi.md b/sdks/marketingsolutions_preview/docs/AudienceApi.md index dab5c4ab..61d7b87e 100644 --- a/sdks/marketingsolutions_preview/docs/AudienceApi.md +++ b/sdks/marketingsolutions_preview/docs/AudienceApi.md @@ -1,6 +1,6 @@ # AudienceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -12,18 +12,16 @@ All URIs are relative to *https://api.criteo.com* | [**bulkUpdateAudiences**](AudienceApi.md#bulkUpdateAudiences) | **PATCH** /preview/marketing-solutions/audiences | | | [**computeAudienceSegmentsSizes**](AudienceApi.md#computeAudienceSegmentsSizes) | **POST** /preview/marketing-solutions/audience-segments/compute-sizes | | | [**computeAudiencesSizes**](AudienceApi.md#computeAudiencesSizes) | **POST** /preview/marketing-solutions/audiences/compute-sizes | | -| [**deleteContactListIdentifiers**](AudienceApi.md#deleteContactListIdentifiers) | **DELETE** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | -| [**deleteUserProfiles**](AudienceApi.md#deleteUserProfiles) | **POST** /preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/delete | | | [**estimateAudienceSegmentSize**](AudienceApi.md#estimateAudienceSegmentSize) | **POST** /preview/marketing-solutions/audience-segments/estimate-size | | | [**estimateAudienceSize**](AudienceApi.md#estimateAudienceSize) | **POST** /preview/marketing-solutions/audiences/estimate-size | | | [**getAudienceSegmentContactListStatistics**](AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | | [**getAudienceSegmentsInMarketBrands**](AudienceApi.md#getAudienceSegmentsInMarketBrands) | **GET** /preview/marketing-solutions/audience-segments/in-market-brands | | | [**getAudienceSegmentsInMarketInterests**](AudienceApi.md#getAudienceSegmentsInMarketInterests) | **GET** /preview/marketing-solutions/audience-segments/in-market-interests | | | [**modifyAudienceUsersWithAttributes**](AudienceApi.md#modifyAudienceUsersWithAttributes) | **PATCH** /preview/audiences/{audience-id}/contactlist-attributes | | +| [**previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete**](AudienceApi.md#previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete) | **DELETE** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | +| [**previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch**](AudienceApi.md#previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch) | **PATCH** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | | [**searchAudienceSegments**](AudienceApi.md#searchAudienceSegments) | **POST** /preview/marketing-solutions/audience-segments/search | | | [**searchAudiences**](AudienceApi.md#searchAudiences) | **POST** /preview/marketing-solutions/audiences/search | | -| [**setUserProfiles**](AudienceApi.md#setUserProfiles) | **POST** /preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/set | | -| [**updateContactListIdentifiers**](AudienceApi.md#updateContactListIdentifiers) | **PATCH** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | | @@ -764,187 +762,6 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## deleteContactListIdentifiers - -> DeleteAudienceContactListResponse deleteContactListIdentifiers(audienceSegmentId) - - - -Delete all identifiers from a contact list audience-segment. - -### Example - -```java -package com.criteo.api.marketingsolutions.preview; - -import com.criteo.api.marketingsolutions.preview.ApiClient; -import com.criteo.api.marketingsolutions.preview.ApiClientBuilder; -import com.criteo.api.marketingsolutions.preview.ApiException; -import com.criteo.api.marketingsolutions.preview.Configuration; -import com.criteo.api.marketingsolutions.preview.auth.*; -import com.criteo.api.marketingsolutions.preview.model.*; -import com.criteo.api.marketingsolutions.preview.api.AudienceApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - AudienceApi apiInstance = new AudienceApi(defaultClient); - String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend - try { - DeleteAudienceContactListResponse result = apiInstance.deleteContactListIdentifiers(audienceSegmentId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#deleteContactListIdentifiers"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | - -### Return type - -[**DeleteAudienceContactListResponse**](DeleteAudienceContactListResponse.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | The Contact List was emptied | - | -| **403** | Forbidden | - | - - -## deleteUserProfiles - -> deleteUserProfiles(advertiserId, deleteUserProfileModelListRequest) - - - -This endpoint will Delete User Profiles for a given Advertiser. - -### Example - -```java -package com.criteo.api.marketingsolutions.preview; - -import com.criteo.api.marketingsolutions.preview.ApiClient; -import com.criteo.api.marketingsolutions.preview.ApiClientBuilder; -import com.criteo.api.marketingsolutions.preview.ApiException; -import com.criteo.api.marketingsolutions.preview.Configuration; -import com.criteo.api.marketingsolutions.preview.auth.*; -import com.criteo.api.marketingsolutions.preview.model.*; -import com.criteo.api.marketingsolutions.preview.api.AudienceApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - AudienceApi apiInstance = new AudienceApi(defaultClient); - Integer advertiserId = 56; // Integer | Criteo Advertiser ID of user profiles' owner - DeleteUserProfileModelListRequest deleteUserProfileModelListRequest = new DeleteUserProfileModelListRequest(); // DeleteUserProfileModelListRequest | - try { - apiInstance.deleteUserProfiles(advertiserId, deleteUserProfileModelListRequest); - } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#deleteUserProfiles"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **advertiserId** | **Integer**| Criteo Advertiser ID of user profiles' owner | | -| **deleteUserProfileModelListRequest** | [**DeleteUserProfileModelListRequest**](DeleteUserProfileModelListRequest.md)| | [optional] | - -### Return type - -null (empty response body) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | -| **403** | Forbidden | - | - - ## estimateAudienceSegmentSize > AudienceSegmentSizeEstimationV1Response estimateAudienceSegmentSize(audienceSegmentEstimateSizeInputV1) @@ -1498,13 +1315,13 @@ public class Example { | **401** | Not authorized | - | -## searchAudienceSegments +## previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete -> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset) +> DeleteAudienceContactListResponse previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId) -Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. +Delete all identifiers from a contact list audience-segment. ### Example @@ -1545,14 +1362,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1 = new AudienceSegmentSearchInputV1(); // AudienceSegmentSearchInputV1 | Segment search filters. - Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. - Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend try { - AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset); + DeleteAudienceContactListResponse result = apiInstance.previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); + System.err.println("Exception when calling AudienceApi#previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1567,13 +1382,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentSearchInputV1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | | -| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | -| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | ### Return type -[**AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse**](AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) +[**DeleteAudienceContactListResponse**](DeleteAudienceContactListResponse.md) ### Authorization @@ -1581,26 +1394,24 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: Not defined +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | The Contact List was emptied | - | +| **403** | Forbidden | - | -## searchAudiences +## previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch -> AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(audienceSearchInputV1, limit, offset) +> ModifyAudienceResponse previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest) -Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. +Add/remove identifiers to or from a contact list audience-segment. ### Example @@ -1641,14 +1452,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - AudienceSearchInputV1 audienceSearchInputV1 = new AudienceSearchInputV1(); // AudienceSearchInputV1 | Audience search filters. - Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. - Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. + String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend + ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | try { - AudienceEntityV1AudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(audienceSearchInputV1, limit, offset); + ModifyAudienceResponse result = apiInstance.previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(audienceSegmentId, contactlistAmendmentRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#searchAudiences"); + System.err.println("Exception when calling AudienceApi#previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1663,13 +1473,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSearchInputV1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | | -| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | -| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | +| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | +| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | ### Return type -[**AudienceEntityV1AudienceSearchMetadataV1ListResponse**](AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) ### Authorization @@ -1677,26 +1486,25 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: application/json +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | +| **200** | Summary of created request | - | +| **403** | Forbidden | - | +| **404** | Audience 123 not found | - | -## setUserProfiles +## searchAudienceSegments -> setUserProfiles(advertiserId, setUserProfileModelListRequest) +> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset) -This endpoint will Set User Profiles for a given Advertiser. If a User Profile does not exist, a new one will be created. If a User Profile exists, it will be replaced. +Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -1737,12 +1545,14 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - Integer advertiserId = 56; // Integer | Criteo Advertiser ID of user profiles' owner - SetUserProfileModelListRequest setUserProfileModelListRequest = new SetUserProfileModelListRequest(); // SetUserProfileModelListRequest | + AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1 = new AudienceSegmentSearchInputV1(); // AudienceSegmentSearchInputV1 | Segment search filters. + Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. + Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - apiInstance.setUserProfiles(advertiserId, setUserProfileModelListRequest); + AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(audienceSegmentSearchInputV1, limit, offset); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#setUserProfiles"); + System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1757,12 +1567,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **advertiserId** | **Integer**| Criteo Advertiser ID of user profiles' owner | | -| **setUserProfileModelListRequest** | [**SetUserProfileModelListRequest**](SetUserProfileModelListRequest.md)| | [optional] | +| **audienceSegmentSearchInputV1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | | +| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | +| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -null (empty response body) +[**AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse**](AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) ### Authorization @@ -1771,23 +1582,25 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: application/json +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | -| **403** | Forbidden | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | -## updateContactListIdentifiers +## searchAudiences -> ModifyAudienceResponse updateContactListIdentifiers(audienceSegmentId, contactlistAmendmentRequest) +> AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(audienceSearchInputV1, limit, offset) -Add/remove identifiers to or from a contact list audience-segment. +Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -1828,13 +1641,14 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - String audienceSegmentId = "audienceSegmentId_example"; // String | The id of the contact list audience-segment to amend - ContactlistAmendmentRequest contactlistAmendmentRequest = new ContactlistAmendmentRequest(); // ContactlistAmendmentRequest | + AudienceSearchInputV1 audienceSearchInputV1 = new AudienceSearchInputV1(); // AudienceSearchInputV1 | Audience search filters. + Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. + Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - ModifyAudienceResponse result = apiInstance.updateContactListIdentifiers(audienceSegmentId, contactlistAmendmentRequest); + AudienceEntityV1AudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(audienceSearchInputV1, limit, offset); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#updateContactListIdentifiers"); + System.err.println("Exception when calling AudienceApi#searchAudiences"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1849,12 +1663,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **audienceSegmentId** | **String**| The id of the contact list audience-segment to amend | | -| **contactlistAmendmentRequest** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | | +| **audienceSearchInputV1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | | +| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | +| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -[**ModifyAudienceResponse**](ModifyAudienceResponse.md) +[**AudienceEntityV1AudienceSearchMetadataV1ListResponse**](AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) ### Authorization @@ -1862,14 +1677,15 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json -- **Accept**: application/json +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Summary of created request | - | -| **403** | Forbidden | - | -| **404** | Audience 123 not found | - | +| **200** | Success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | diff --git a/sdks/marketingsolutions_preview/docs/CampaignApi.md b/sdks/marketingsolutions_preview/docs/CampaignApi.md index 8e10f8f3..cd509889 100644 --- a/sdks/marketingsolutions_preview/docs/CampaignApi.md +++ b/sdks/marketingsolutions_preview/docs/CampaignApi.md @@ -1,10 +1,10 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createAdSetV24Q1**](CampaignApi.md#createAdSetV24Q1) | **POST** /preview/marketing-solutions/ad-sets | | +| [**createAdSetV24Q3**](CampaignApi.md#createAdSetV24Q3) | **POST** /preview/marketing-solutions/ad-sets | | | [**createCampaign**](CampaignApi.md#createCampaign) | **POST** /preview/marketing-solutions/campaigns | | | [**deleteAdvertiserBundleRules**](CampaignApi.md#deleteAdvertiserBundleRules) | **DELETE** /preview/advertisers/{advertiserId}/targeting/bundle-rules | | | [**deleteAdvertiserDomainRules**](CampaignApi.md#deleteAdvertiserDomainRules) | **DELETE** /preview/advertisers/{advertiserId}/targeting/domain-rules | | @@ -16,7 +16,7 @@ All URIs are relative to *https://api.criteo.com* | [**disableAdSetTargetingVideoPositioning**](CampaignApi.md#disableAdSetTargetingVideoPositioning) | **POST** /preview/marketing-solutions/ad-sets/{ad-set-id}/targeting/video-positionings/disable | | | [**getAdSetTargetingDealIds**](CampaignApi.md#getAdSetTargetingDealIds) | **GET** /preview/marketing-solutions/ad-sets/{ad-set-id}/targeting/deal-ids | | | [**getAdSetTargetingVideoPositioning**](CampaignApi.md#getAdSetTargetingVideoPositioning) | **GET** /preview/marketing-solutions/ad-sets/{ad-set-id}/targeting/video-positioning | | -| [**getAdSetV24Q1**](CampaignApi.md#getAdSetV24Q1) | **GET** /preview/marketing-solutions/ad-sets/{ad-set-id} | | +| [**getAdSetV24Q3**](CampaignApi.md#getAdSetV24Q3) | **GET** /preview/marketing-solutions/ad-sets/{ad-set-id} | | | [**getAdvertiserBundleRules**](CampaignApi.md#getAdvertiserBundleRules) | **GET** /preview/advertisers/{advertiserId}/targeting/bundle-rules | | | [**getAdvertiserDomainRules**](CampaignApi.md#getAdvertiserDomainRules) | **GET** /preview/advertisers/{advertiserId}/targeting/domain-rules | | | [**getCampaignBundleRules**](CampaignApi.md#getCampaignBundleRules) | **GET** /preview/campaigns/{campaignId}/targeting/bundle-rules | | @@ -27,7 +27,7 @@ All URIs are relative to *https://api.criteo.com* | [**getOCIbrandSafetyRule**](CampaignApi.md#getOCIbrandSafetyRule) | **GET** /preview/brand-safety/oci | | | [**getOCItargetingRule**](CampaignApi.md#getOCItargetingRule) | **GET** /preview/targeting/oci | | | [**getSupplyVendorList**](CampaignApi.md#getSupplyVendorList) | **GET** /preview/marketing-solutions/ad-sets/targeting/supply-vendors | | -| [**patchAdSetsV24Q1**](CampaignApi.md#patchAdSetsV24Q1) | **PATCH** /preview/marketing-solutions/ad-sets | | +| [**patchAdSetsV24Q3**](CampaignApi.md#patchAdSetsV24Q3) | **PATCH** /preview/marketing-solutions/ad-sets | | | [**patchCampaigns**](CampaignApi.md#patchCampaigns) | **PATCH** /preview/marketing-solutions/campaigns | | | [**patchCategoryBidList**](CampaignApi.md#patchCategoryBidList) | **PATCH** /preview/marketing-solutions/ad-sets/{ad-set-id}/category-bids | | | [**patchDisplayMultipliers**](CampaignApi.md#patchDisplayMultipliers) | **PATCH** /preview/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | | @@ -39,7 +39,7 @@ All URIs are relative to *https://api.criteo.com* | [**putAdvertiserDomainRules**](CampaignApi.md#putAdvertiserDomainRules) | **PUT** /preview/advertisers/{advertiserId}/targeting/domain-rules | | | [**putCampaignBundleRules**](CampaignApi.md#putCampaignBundleRules) | **PUT** /preview/campaigns/{campaignId}/targeting/bundle-rules | | | [**putCampaignDomainRules**](CampaignApi.md#putCampaignDomainRules) | **PUT** /preview/campaigns/{campaignId}/targeting/domain-rules | | -| [**searchAdSetsV24Q1**](CampaignApi.md#searchAdSetsV24Q1) | **POST** /preview/marketing-solutions/ad-sets/search | | +| [**searchAdSetsV24Q3**](CampaignApi.md#searchAdSetsV24Q3) | **POST** /preview/marketing-solutions/ad-sets/search | | | [**searchCampaignsV23Q1**](CampaignApi.md#searchCampaignsV23Q1) | **POST** /preview/marketing-solutions/campaigns/search | | | [**setAdSetTargetingDealIds**](CampaignApi.md#setAdSetTargetingDealIds) | **PUT** /preview/marketing-solutions/ad-sets/{ad-set-id}/targeting/deal-ids | | | [**setAdSetTargetingVideoPositioning**](CampaignApi.md#setAdSetTargetingVideoPositioning) | **PUT** /preview/marketing-solutions/ad-sets/{ad-set-id}/targeting/video-positioning | | @@ -51,9 +51,9 @@ All URIs are relative to *https://api.criteo.com* -## createAdSetV24Q1 +## createAdSetV24Q3 -> ResponseReadAdSetV24Q1 createAdSetV24Q1(createAdSetV24Q1Request) +> ResponseReadAdSetV24Q3 createAdSetV24Q3(createAdSetV24Q3Request) @@ -98,12 +98,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - CreateAdSetV24Q1Request createAdSetV24Q1Request = new CreateAdSetV24Q1Request(); // CreateAdSetV24Q1Request | the ad sets to create + CreateAdSetV24Q3Request createAdSetV24Q3Request = new CreateAdSetV24Q3Request(); // CreateAdSetV24Q3Request | the ad sets to create try { - ResponseReadAdSetV24Q1 result = apiInstance.createAdSetV24Q1(createAdSetV24Q1Request); + ResponseReadAdSetV24Q3 result = apiInstance.createAdSetV24Q3(createAdSetV24Q3Request); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#createAdSetV24Q1"); + System.err.println("Exception when calling CampaignApi#createAdSetV24Q3"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -118,11 +118,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **createAdSetV24Q1Request** | [**CreateAdSetV24Q1Request**](CreateAdSetV24Q1Request.md)| the ad sets to create | | +| **createAdSetV24Q3Request** | [**CreateAdSetV24Q3Request**](CreateAdSetV24Q3Request.md)| the ad sets to create | | ### Return type -[**ResponseReadAdSetV24Q1**](ResponseReadAdSetV24Q1.md) +[**ResponseReadAdSetV24Q3**](ResponseReadAdSetV24Q3.md) ### Authorization @@ -1163,9 +1163,9 @@ public class Example { | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | -## getAdSetV24Q1 +## getAdSetV24Q3 -> ResponseReadAdSetV24Q1 getAdSetV24Q1(adSetId) +> ResponseReadAdSetV24Q3 getAdSetV24Q3(adSetId) @@ -1212,10 +1212,10 @@ public class Example { CampaignApi apiInstance = new CampaignApi(defaultClient); String adSetId = "adSetId_example"; // String | Id of the ad set try { - ResponseReadAdSetV24Q1 result = apiInstance.getAdSetV24Q1(adSetId); + ResponseReadAdSetV24Q3 result = apiInstance.getAdSetV24Q3(adSetId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getAdSetV24Q1"); + System.err.println("Exception when calling CampaignApi#getAdSetV24Q3"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1234,7 +1234,7 @@ public class Example { ### Return type -[**ResponseReadAdSetV24Q1**](ResponseReadAdSetV24Q1.md) +[**ResponseReadAdSetV24Q3**](ResponseReadAdSetV24Q3.md) ### Authorization @@ -2174,9 +2174,9 @@ This endpoint does not need any parameter. | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | -## patchAdSetsV24Q1 +## patchAdSetsV24Q3 -> ResponsesAdSetIdV24Q1 patchAdSetsV24Q1(requestsPatchAdSetV24Q1) +> ResponsesAdSetIdV24Q3 patchAdSetsV24Q3(requestsPatchAdSetV24Q3) @@ -2221,12 +2221,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1 = new RequestsPatchAdSetV24Q1(); // RequestsPatchAdSetV24Q1 | List of adsets to patch. + RequestsPatchAdSetV24Q3 requestsPatchAdSetV24Q3 = new RequestsPatchAdSetV24Q3(); // RequestsPatchAdSetV24Q3 | List of adsets to patch. try { - ResponsesAdSetIdV24Q1 result = apiInstance.patchAdSetsV24Q1(requestsPatchAdSetV24Q1); + ResponsesAdSetIdV24Q3 result = apiInstance.patchAdSetsV24Q3(requestsPatchAdSetV24Q3); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#patchAdSetsV24Q1"); + System.err.println("Exception when calling CampaignApi#patchAdSetsV24Q3"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2241,11 +2241,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **requestsPatchAdSetV24Q1** | [**RequestsPatchAdSetV24Q1**](RequestsPatchAdSetV24Q1.md)| List of adsets to patch. | [optional] | +| **requestsPatchAdSetV24Q3** | [**RequestsPatchAdSetV24Q3**](RequestsPatchAdSetV24Q3.md)| List of adsets to patch. | [optional] | ### Return type -[**ResponsesAdSetIdV24Q1**](ResponsesAdSetIdV24Q1.md) +[**ResponsesAdSetIdV24Q3**](ResponsesAdSetIdV24Q3.md) ### Authorization @@ -3293,9 +3293,9 @@ public class Example { | **403** | Forbidden | - | -## searchAdSetsV24Q1 +## searchAdSetsV24Q3 -> ResponsesReadAdSetV24Q1 searchAdSetsV24Q1(adSetSearchRequestV24Q1) +> ResponsesReadAdSetV24Q3 searchAdSetsV24Q3(adSetSearchRequestV24Q3) @@ -3340,12 +3340,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1 = new AdSetSearchRequestV24Q1(); // AdSetSearchRequestV24Q1 | + AdSetSearchRequestV24Q3 adSetSearchRequestV24Q3 = new AdSetSearchRequestV24Q3(); // AdSetSearchRequestV24Q3 | try { - ResponsesReadAdSetV24Q1 result = apiInstance.searchAdSetsV24Q1(adSetSearchRequestV24Q1); + ResponsesReadAdSetV24Q3 result = apiInstance.searchAdSetsV24Q3(adSetSearchRequestV24Q3); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#searchAdSetsV24Q1"); + System.err.println("Exception when calling CampaignApi#searchAdSetsV24Q3"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3360,11 +3360,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **adSetSearchRequestV24Q1** | [**AdSetSearchRequestV24Q1**](AdSetSearchRequestV24Q1.md)| | [optional] | +| **adSetSearchRequestV24Q3** | [**AdSetSearchRequestV24Q3**](AdSetSearchRequestV24Q3.md)| | [optional] | ### Return type -[**ResponsesReadAdSetV24Q1**](ResponsesReadAdSetV24Q1.md) +[**ResponsesReadAdSetV24Q3**](ResponsesReadAdSetV24Q3.md) ### Authorization diff --git a/sdks/marketingsolutions_preview/docs/CatalogApi.md b/sdks/marketingsolutions_preview/docs/CatalogApi.md index c7e78048..c8fe2c8a 100644 --- a/sdks/marketingsolutions_preview/docs/CatalogApi.md +++ b/sdks/marketingsolutions_preview/docs/CatalogApi.md @@ -1,6 +1,6 @@ # CatalogApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_preview/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_preview/docs/ContactlistAmendmentAttributes.md index f0a2c263..cd54aaf1 100644 --- a/sdks/marketingsolutions_preview/docs/ContactlistAmendmentAttributes.md +++ b/sdks/marketingsolutions_preview/docs/ContactlistAmendmentAttributes.md @@ -10,7 +10,7 @@ the name of the entity type |------------ | ------------- | ------------- | -------------| |**operation** | [**OperationEnum**](#OperationEnum) | Operation to add or remove users | | |**identifierType** | [**IdentifierTypeEnum**](#IdentifierTypeEnum) | What type of identifiers are used | [optional] | -|**identifiers** | **List<String>** | The users tos add or remove, each in the schema specified | | +|**identifiers** | **List<String>** | The users to add or remove, each in the schema specified | | |**gumCallerId** | **Integer** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] | @@ -32,7 +32,6 @@ the name of the entity type | MADID | "madid" | | IDENTITYLINK | "identityLink" | | GUM | "gum" | -| CUSTOMERID | "customerid" | | PHONENUMBER | "phoneNumber" | diff --git a/sdks/marketingsolutions_preview/docs/ContactlistWithAttributesAmendmentAttributes.md b/sdks/marketingsolutions_preview/docs/ContactlistWithAttributesAmendmentAttributes.md index e756efb2..aab6afbb 100644 --- a/sdks/marketingsolutions_preview/docs/ContactlistWithAttributesAmendmentAttributes.md +++ b/sdks/marketingsolutions_preview/docs/ContactlistWithAttributesAmendmentAttributes.md @@ -32,7 +32,6 @@ the name of the entity type | MADID | "madid" | | IDENTITYLINK | "identityLink" | | GUM | "gum" | -| CUSTOMERID | "customerid" | | PHONENUMBER | "phoneNumber" | diff --git a/sdks/marketingsolutions_2023-07/docs/CreateAdSetBidding.md b/sdks/marketingsolutions_preview/docs/CreateAdSetBiddingV24Q3.md similarity index 88% rename from sdks/marketingsolutions_2023-07/docs/CreateAdSetBidding.md rename to sdks/marketingsolutions_preview/docs/CreateAdSetBiddingV24Q3.md index cb4f07aa..bde40de8 100644 --- a/sdks/marketingsolutions_2023-07/docs/CreateAdSetBidding.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetBiddingV24Q3.md @@ -1,6 +1,6 @@ -# CreateAdSetBidding +# CreateAdSetBiddingV24Q3 ad set bidding create model @@ -18,13 +18,14 @@ ad set bidding create model | Name | Value | |---- | -----| | COS | "COS" | -| CPC | "CPC" | +| MAXCPC | "maxCPC" | | CPI | "CPI" | | CPM | "CPM" | | CPO | "CPO" | | CPSV | "CPSV" | | CPV | "CPV" | | DAILYBUDGET | "dailyBudget" | +| TARGETCPM | "targetCPM" | diff --git a/sdks/marketingsolutions_2023-07/docs/CreateAdSetBudget.md b/sdks/marketingsolutions_preview/docs/CreateAdSetBudgetV24Q3.md similarity index 96% rename from sdks/marketingsolutions_2023-07/docs/CreateAdSetBudget.md rename to sdks/marketingsolutions_preview/docs/CreateAdSetBudgetV24Q3.md index 3a6f65fa..1c43220f 100644 --- a/sdks/marketingsolutions_2023-07/docs/CreateAdSetBudget.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetBudgetV24Q3.md @@ -1,6 +1,6 @@ -# CreateAdSetBudget +# CreateAdSetBudgetV24Q3 ad set budget create model @@ -33,6 +33,7 @@ ad set budget create model | DAILY | "daily" | | MONTHLY | "monthly" | | LIFETIME | "lifetime" | +| WEEKLY | "weekly" | diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetGeoLocationV24Q3.md b/sdks/marketingsolutions_preview/docs/CreateAdSetGeoLocationV24Q3.md new file mode 100644 index 00000000..a2b032bf --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetGeoLocationV24Q3.md @@ -0,0 +1,16 @@ + + +# CreateAdSetGeoLocationV24Q3 + +Geolocation configuration of the ad set + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**countries** | [**AdSetTargetingRuleV24Q3**](AdSetTargetingRuleV24Q3.md) | | [optional] | +|**subdivisions** | [**AdSetTargetingRuleV24Q3**](AdSetTargetingRuleV24Q3.md) | | [optional] | +|**zipCodes** | [**AdSetTargetingRuleV24Q3**](AdSetTargetingRuleV24Q3.md) | | [optional] | + + + diff --git a/sdks/marketingsolutions_2023-07/docs/CreateAdSetSchedule.md b/sdks/marketingsolutions_preview/docs/CreateAdSetScheduleV24Q3.md similarity index 90% rename from sdks/marketingsolutions_2023-07/docs/CreateAdSetSchedule.md rename to sdks/marketingsolutions_preview/docs/CreateAdSetScheduleV24Q3.md index 55b1108e..c002af3a 100644 --- a/sdks/marketingsolutions_2023-07/docs/CreateAdSetSchedule.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetScheduleV24Q3.md @@ -1,6 +1,6 @@ -# CreateAdSetSchedule +# CreateAdSetScheduleV24Q3 ad set schedule create model diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetTargetingV24Q3.md b/sdks/marketingsolutions_preview/docs/CreateAdSetTargetingV24Q3.md new file mode 100644 index 00000000..b5ca85c2 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetTargetingV24Q3.md @@ -0,0 +1,16 @@ + + +# CreateAdSetTargetingV24Q3 + +Targeting configuration of the ad set + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**deliveryLimitations** | [**AdSetDeliveryLimitationsV24Q3**](AdSetDeliveryLimitationsV24Q3.md) | | [optional] | +|**geoLocation** | [**CreateAdSetGeoLocationV24Q3**](CreateAdSetGeoLocationV24Q3.md) | | [optional] | +|**frequencyCapping** | [**AdSetFrequencyCappingV24Q3**](AdSetFrequencyCappingV24Q3.md) | | | + + + diff --git a/sdks/marketingsolutions_2023-07/docs/CreateAdSet.md b/sdks/marketingsolutions_preview/docs/CreateAdSetV24Q3.md similarity index 77% rename from sdks/marketingsolutions_2023-07/docs/CreateAdSet.md rename to sdks/marketingsolutions_preview/docs/CreateAdSetV24Q3.md index 6272c9d0..fd2cb403 100644 --- a/sdks/marketingsolutions_2023-07/docs/CreateAdSet.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetV24Q3.md @@ -1,6 +1,6 @@ -# CreateAdSet +# CreateAdSetV24Q3 ad set create model @@ -12,10 +12,10 @@ ad set create model |**datasetId** | **String** | Dataset id of this ad set | | |**campaignId** | **String** | Campaign id this ad set belongs to | | |**objective** | [**ObjectiveEnum**](#ObjectiveEnum) | Objective of the ad set | | -|**schedule** | [**CreateAdSetSchedule**](CreateAdSetSchedule.md) | | | -|**bidding** | [**CreateAdSetBidding**](CreateAdSetBidding.md) | | | -|**targeting** | [**CreateAdSetTargeting**](CreateAdSetTargeting.md) | | | -|**budget** | [**CreateAdSetBudget**](CreateAdSetBudget.md) | | | +|**schedule** | [**CreateAdSetScheduleV24Q3**](CreateAdSetScheduleV24Q3.md) | | | +|**bidding** | [**CreateAdSetBiddingV24Q3**](CreateAdSetBiddingV24Q3.md) | | | +|**targeting** | [**CreateAdSetTargetingV24Q3**](CreateAdSetTargetingV24Q3.md) | | | +|**budget** | [**CreateAdSetBudgetV24Q3**](CreateAdSetBudgetV24Q3.md) | | | |**trackingCode** | **String** | The click tracking code associated to this Ad Set. | | |**mediaType** | [**MediaTypeEnum**](#MediaTypeEnum) | Media type for the ad set | | diff --git a/sdks/marketingsolutions_2023-07/docs/CreateAdSetRequest.md b/sdks/marketingsolutions_preview/docs/CreateAdSetV24Q3Request.md similarity index 57% rename from sdks/marketingsolutions_2023-07/docs/CreateAdSetRequest.md rename to sdks/marketingsolutions_preview/docs/CreateAdSetV24Q3Request.md index c09a72d1..1d36c0bf 100644 --- a/sdks/marketingsolutions_2023-07/docs/CreateAdSetRequest.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetV24Q3Request.md @@ -1,6 +1,6 @@ -# CreateAdSetRequest +# CreateAdSetV24Q3Request Data model for an input resources @@ -8,7 +8,7 @@ Data model for an input resources | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**CreateAdSetResource**](CreateAdSetResource.md) | | [optional] | +|**data** | [**CreateAdSetV24Q3Resource**](CreateAdSetV24Q3Resource.md) | | [optional] | diff --git a/sdks/marketingsolutions_2023-07/docs/CreateAdSetResource.md b/sdks/marketingsolutions_preview/docs/CreateAdSetV24Q3Resource.md similarity index 67% rename from sdks/marketingsolutions_2023-07/docs/CreateAdSetResource.md rename to sdks/marketingsolutions_preview/docs/CreateAdSetV24Q3Resource.md index 4be4b296..46c68e46 100644 --- a/sdks/marketingsolutions_2023-07/docs/CreateAdSetResource.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetV24Q3Resource.md @@ -1,6 +1,6 @@ -# CreateAdSetResource +# CreateAdSetV24Q3Resource Data model for a Resource @@ -8,7 +8,7 @@ Data model for a Resource | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**attributes** | [**CreateAdSet**](CreateAdSet.md) | | [optional] | +|**attributes** | [**CreateAdSetV24Q3**](CreateAdSetV24Q3.md) | | [optional] | |**type** | **String** | Canonical type name of the entity | [optional] | diff --git a/sdks/marketingsolutions_preview/docs/CreativeApi.md b/sdks/marketingsolutions_preview/docs/CreativeApi.md index 0046f09c..3d90d1d4 100644 --- a/sdks/marketingsolutions_preview/docs/CreativeApi.md +++ b/sdks/marketingsolutions_preview/docs/CreativeApi.md @@ -1,6 +1,6 @@ # CreativeApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_preview/docs/DeleteUserProfileModel.md b/sdks/marketingsolutions_preview/docs/DeleteUserProfileModel.md deleted file mode 100644 index 34329cbb..00000000 --- a/sdks/marketingsolutions_preview/docs/DeleteUserProfileModel.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# DeleteUserProfileModel - -Used for the /user-profiles/delete endpoint. Contains information about the user profile that we delete - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**userProfileId** | **String** | | | -|**userProfileListId** | **String** | | [optional] | - - - diff --git a/sdks/marketingsolutions_preview/docs/GatewayApi.md b/sdks/marketingsolutions_preview/docs/GatewayApi.md index bd1037c8..0110dfd9 100644 --- a/sdks/marketingsolutions_preview/docs/GatewayApi.md +++ b/sdks/marketingsolutions_preview/docs/GatewayApi.md @@ -1,6 +1,6 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV24Q3.md similarity index 65% rename from sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRule.md rename to sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV24Q3.md index ffd88392..d2539b81 100644 --- a/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRule.md +++ b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV24Q3.md @@ -1,6 +1,6 @@ -# NillableAdSetTargetingRule +# NillableAdSetTargetingRuleV24Q3 structure that encapsulates an object that have valid business null values. If the structure is provided (i.e. not null), then the value in it, even null, is provided. @@ -8,7 +8,7 @@ structure that encapsulates an object that have valid business null values. If t | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | [optional] | +|**value** | [**NillableAdSetTargetingRuleV24Q3Value**](NillableAdSetTargetingRuleV24Q3Value.md) | | [optional] | diff --git a/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRuleValue.md b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV24Q3Value.md similarity index 90% rename from sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRuleValue.md rename to sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV24Q3Value.md index b414b0f4..83c22c58 100644 --- a/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRuleValue.md +++ b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV24Q3Value.md @@ -1,6 +1,6 @@ -# NillableAdSetTargetingRuleValue +# NillableAdSetTargetingRuleV24Q3Value ## Properties diff --git a/sdks/marketingsolutions_preview/docs/OnSiteRecommendationApi.md b/sdks/marketingsolutions_preview/docs/OnSiteRecommendationApi.md index b4831065..55429b16 100644 --- a/sdks/marketingsolutions_preview/docs/OnSiteRecommendationApi.md +++ b/sdks/marketingsolutions_preview/docs/OnSiteRecommendationApi.md @@ -1,6 +1,6 @@ # OnSiteRecommendationApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetBidding.md b/sdks/marketingsolutions_preview/docs/PatchAdSetBiddingV24Q3.md similarity index 90% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetBidding.md rename to sdks/marketingsolutions_preview/docs/PatchAdSetBiddingV24Q3.md index 5f5b02e3..bfcc1d9f 100644 --- a/sdks/marketingsolutions_2023-07/docs/PatchAdSetBidding.md +++ b/sdks/marketingsolutions_preview/docs/PatchAdSetBiddingV24Q3.md @@ -1,6 +1,6 @@ -# PatchAdSetBidding +# PatchAdSetBiddingV24Q3 ad set bidding patch model diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetBudget.md b/sdks/marketingsolutions_preview/docs/PatchAdSetBudgetV24Q3.md similarity index 96% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetBudget.md rename to sdks/marketingsolutions_preview/docs/PatchAdSetBudgetV24Q3.md index 6eb62b30..231ecd30 100644 --- a/sdks/marketingsolutions_2023-07/docs/PatchAdSetBudget.md +++ b/sdks/marketingsolutions_preview/docs/PatchAdSetBudgetV24Q3.md @@ -1,6 +1,6 @@ -# PatchAdSetBudget +# PatchAdSetBudgetV24Q3 ad set budget patch model @@ -33,6 +33,7 @@ ad set budget patch model | DAILY | "daily" | | MONTHLY | "monthly" | | LIFETIME | "lifetime" | +| WEEKLY | "weekly" | diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetScheduling.md b/sdks/marketingsolutions_preview/docs/PatchAdSetSchedulingV24Q3.md similarity index 91% rename from sdks/marketingsolutions_2023-07/docs/PatchAdSetScheduling.md rename to sdks/marketingsolutions_preview/docs/PatchAdSetSchedulingV24Q3.md index 78a422e6..ca551b03 100644 --- a/sdks/marketingsolutions_2023-07/docs/PatchAdSetScheduling.md +++ b/sdks/marketingsolutions_preview/docs/PatchAdSetSchedulingV24Q3.md @@ -1,6 +1,6 @@ -# PatchAdSetScheduling +# PatchAdSetSchedulingV24Q3 ad set schedule patch model diff --git a/sdks/marketingsolutions_preview/docs/PatchAdSetV24Q3.md b/sdks/marketingsolutions_preview/docs/PatchAdSetV24Q3.md new file mode 100644 index 00000000..4e9ba279 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/PatchAdSetV24Q3.md @@ -0,0 +1,18 @@ + + +# PatchAdSetV24Q3 + +ad set patch model + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | [optional] | +|**scheduling** | [**PatchAdSetSchedulingV24Q3**](PatchAdSetSchedulingV24Q3.md) | | [optional] | +|**bidding** | [**PatchAdSetBiddingV24Q3**](PatchAdSetBiddingV24Q3.md) | | [optional] | +|**targeting** | [**AdSetTargetingV24Q3**](AdSetTargetingV24Q3.md) | | [optional] | +|**budget** | [**PatchAdSetBudgetV24Q3**](PatchAdSetBudgetV24Q3.md) | | [optional] | + + + diff --git a/sdks/marketingsolutions_preview/docs/Product.md b/sdks/marketingsolutions_preview/docs/Product.md index cb2ce7b9..8d98d29f 100644 --- a/sdks/marketingsolutions_preview/docs/Product.md +++ b/sdks/marketingsolutions_preview/docs/Product.md @@ -89,6 +89,7 @@ Defines a product to be inserted or updated. |**externalSellerName** | **String** | The external name of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads. | [optional] | |**numberOfReviews** | **Integer** | The number of customer reviews for the product | [optional] | |**productRating** | **String** | The product rating for the product | [optional] | +|**badge** | **String** | URL of a badge image to display on the product. | [optional] | diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSetBiddingV24Q3.md b/sdks/marketingsolutions_preview/docs/ReadAdSetBiddingV24Q3.md new file mode 100644 index 00000000..5073b923 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/ReadAdSetBiddingV24Q3.md @@ -0,0 +1,31 @@ + + +# ReadAdSetBiddingV24Q3 + +ad set bidding read model + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bidAmount** | **Double** | Decimal value target relating to the `adSetObjective` specified. May be `null` for objectives that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded. | [optional] | +|**costController** | [**CostControllerEnum**](#CostControllerEnum) | How spend is controlled | [optional] | + + + +## Enum: CostControllerEnum + +| Name | Value | +|---- | -----| +| COS | "COS" | +| MAXCPC | "maxCPC" | +| CPI | "CPI" | +| CPM | "CPM" | +| CPO | "CPO" | +| CPSV | "CPSV" | +| CPV | "CPV" | +| DAILYBUDGET | "dailyBudget" | +| TARGETCPM | "targetCPM" | + + + diff --git a/sdks/marketingsolutions_2023-07/docs/ReadAdSetBudget.md b/sdks/marketingsolutions_preview/docs/ReadAdSetBudgetV24Q3.md similarity index 93% rename from sdks/marketingsolutions_2023-07/docs/ReadAdSetBudget.md rename to sdks/marketingsolutions_preview/docs/ReadAdSetBudgetV24Q3.md index 2847e887..32bafd99 100644 --- a/sdks/marketingsolutions_2023-07/docs/ReadAdSetBudget.md +++ b/sdks/marketingsolutions_preview/docs/ReadAdSetBudgetV24Q3.md @@ -1,6 +1,6 @@ -# ReadAdSetBudget +# ReadAdSetBudgetV24Q3 ad set budget read model @@ -12,7 +12,7 @@ ad set budget read model |**budgetRenewal** | [**BudgetRenewalEnum**](#BudgetRenewalEnum) | | [optional] | |**budgetDeliverySmoothing** | [**BudgetDeliverySmoothingEnum**](#BudgetDeliverySmoothingEnum) | | [optional] | |**budgetDeliveryWeek** | [**BudgetDeliveryWeekEnum**](#BudgetDeliveryWeekEnum) | | [optional] | -|**budgetAmount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] | +|**budgetAmount** | **Double** | | [optional] | @@ -33,6 +33,7 @@ ad set budget read model | DAILY | "daily" | | MONTHLY | "monthly" | | LIFETIME | "lifetime" | +| WEEKLY | "weekly" | diff --git a/sdks/marketingsolutions_2023-07/docs/ReadAdSetSchedule.md b/sdks/marketingsolutions_preview/docs/ReadAdSetScheduleV24Q3.md similarity index 97% rename from sdks/marketingsolutions_2023-07/docs/ReadAdSetSchedule.md rename to sdks/marketingsolutions_preview/docs/ReadAdSetScheduleV24Q3.md index 9a07ad92..bae630da 100644 --- a/sdks/marketingsolutions_2023-07/docs/ReadAdSetSchedule.md +++ b/sdks/marketingsolutions_preview/docs/ReadAdSetScheduleV24Q3.md @@ -1,6 +1,6 @@ -# ReadAdSetSchedule +# ReadAdSetScheduleV24Q3 ad set schedule read model diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSetV24Q3.md b/sdks/marketingsolutions_preview/docs/ReadAdSetV24Q3.md new file mode 100644 index 00000000..af1ed23a --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/ReadAdSetV24Q3.md @@ -0,0 +1,71 @@ + + +# ReadAdSetV24Q3 + +ad set read model + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | [optional] | +|**advertiserId** | **String** | | [optional] | +|**datasetId** | **String** | | [optional] | +|**campaignId** | **String** | | [optional] | +|**destinationEnvironment** | [**DestinationEnvironmentEnum**](#DestinationEnvironmentEnum) | | [optional] | +|**objective** | [**ObjectiveEnum**](#ObjectiveEnum) | | [optional] | +|**schedule** | [**ReadAdSetScheduleV24Q3**](ReadAdSetScheduleV24Q3.md) | | [optional] | +|**bidding** | [**ReadAdSetBiddingV24Q3**](ReadAdSetBiddingV24Q3.md) | | [optional] | +|**targeting** | [**AdSetTargetingV24Q3**](AdSetTargetingV24Q3.md) | | [optional] | +|**budget** | [**ReadAdSetBudgetV24Q3**](ReadAdSetBudgetV24Q3.md) | | [optional] | +|**mediaType** | [**MediaTypeEnum**](#MediaTypeEnum) | | [optional] | +|**videoChannel** | [**VideoChannelEnum**](#VideoChannelEnum) | | [optional] | + + + +## Enum: DestinationEnvironmentEnum + +| Name | Value | +|---- | -----| +| UNDEFINED | "undefined" | +| WEB | "web" | +| APP | "app" | + + + +## Enum: ObjectiveEnum + +| Name | Value | +|---- | -----| +| CUSTOMACTION | "customAction" | +| CLICKS | "clicks" | +| CONVERSIONS | "conversions" | +| DISPLAYS | "displays" | +| APPPROMOTION | "appPromotion" | +| REVENUE | "revenue" | +| STORECONVERSIONS | "storeConversions" | +| VALUE | "value" | +| REACH | "reach" | +| VISITS | "visits" | +| VIDEOVIEWS | "videoViews" | + + + +## Enum: MediaTypeEnum + +| Name | Value | +|---- | -----| +| DISPLAY | "display" | +| VIDEO | "video" | + + + +## Enum: VideoChannelEnum + +| Name | Value | +|---- | -----| +| OLV | "olv" | +| CTV | "ctv" | + + + diff --git a/sdks/marketingsolutions_2023-07/docs/ReadModelReadAdSet.md b/sdks/marketingsolutions_preview/docs/ReadModelAdSetIdV24Q3.md similarity index 75% rename from sdks/marketingsolutions_2023-07/docs/ReadModelReadAdSet.md rename to sdks/marketingsolutions_preview/docs/ReadModelAdSetIdV24Q3.md index 6ca34392..e99ac099 100644 --- a/sdks/marketingsolutions_2023-07/docs/ReadModelReadAdSet.md +++ b/sdks/marketingsolutions_preview/docs/ReadModelAdSetIdV24Q3.md @@ -1,6 +1,6 @@ -# ReadModelReadAdSet +# ReadModelAdSetIdV24Q3 read model data for resources @@ -10,7 +10,7 @@ read model data for resources |------------ | ------------- | ------------- | -------------| |**id** | **String** | Id of the entity | [optional] [readonly] | |**type** | **String** | | [optional] [readonly] | -|**attributes** | [**ReadAdSet**](ReadAdSet.md) | | [optional] | +|**attributes** | **Object** | ad set id model | [optional] | diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignReadResource.md b/sdks/marketingsolutions_preview/docs/ReadModelReadAdSetV24Q3.md similarity index 72% rename from sdks/marketingsolutions_2023-07/docs/CampaignReadResource.md rename to sdks/marketingsolutions_preview/docs/ReadModelReadAdSetV24Q3.md index 49770952..4aab8c16 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignReadResource.md +++ b/sdks/marketingsolutions_preview/docs/ReadModelReadAdSetV24Q3.md @@ -1,6 +1,6 @@ -# CampaignReadResource +# ReadModelReadAdSetV24Q3 read model data for resources @@ -10,7 +10,7 @@ read model data for resources |------------ | ------------- | ------------- | -------------| |**id** | **String** | Id of the entity | [optional] [readonly] | |**type** | **String** | | [optional] [readonly] | -|**attributes** | [**Campaign**](Campaign.md) | | [optional] | +|**attributes** | [**ReadAdSetV24Q3**](ReadAdSetV24Q3.md) | | [optional] | diff --git a/sdks/marketingsolutions_preview/docs/RecoApi.md b/sdks/marketingsolutions_preview/docs/RecoApi.md index 7166e265..2ba41519 100644 --- a/sdks/marketingsolutions_preview/docs/RecoApi.md +++ b/sdks/marketingsolutions_preview/docs/RecoApi.md @@ -1,6 +1,6 @@ # RecoApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/marketingsolutions_preview/docs/ReportDetailWarning.md b/sdks/marketingsolutions_preview/docs/ReportDetailWarning.md new file mode 100644 index 00000000..68d993ee --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/ReportDetailWarning.md @@ -0,0 +1,25 @@ + + +# ReportDetailWarning + +A warning on a batch operation. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**TypeEnum**](#TypeEnum) | | | +|**message** | **String** | | | +|**isServerRelated** | **Boolean** | | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| OVERLARGEBADGEURL | "OverlargeBadgeUrl" | +| INVALIDBADGEURL | "InvalidBadgeUrl" | + + + diff --git a/sdks/marketingsolutions_preview/docs/ReportDetailWarnings.md b/sdks/marketingsolutions_preview/docs/ReportDetailWarnings.md new file mode 100644 index 00000000..a06d7549 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/ReportDetailWarnings.md @@ -0,0 +1,15 @@ + + +# ReportDetailWarnings + +A list of warnings on a batch operation. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**productId** | **String** | | | +|**warnings** | [**List<ReportDetailWarning>**](ReportDetailWarning.md) | | | + + + diff --git a/sdks/marketingsolutions_preview/docs/ReportOkResponse.md b/sdks/marketingsolutions_preview/docs/ReportOkResponse.md index 1095f90a..1bebac3b 100644 --- a/sdks/marketingsolutions_preview/docs/ReportOkResponse.md +++ b/sdks/marketingsolutions_preview/docs/ReportOkResponse.md @@ -15,6 +15,8 @@ The report on a given operationToken is ready. The report is available for 4 day |**numberOfProductsDeleted** | **Integer** | The number of products deleted. | | |**numberOfProductsWithErrors** | **Integer** | The number of products with errors. | | |**errorDetails** | [**List<ReportDetailErrors>**](ReportDetailErrors.md) | The list of errors with details. | | +|**numberOfProductsWithWarnings** | **Integer** | The number of products with Warnings. | | +|**warningDetails** | [**List<ReportDetailWarnings>**](ReportDetailWarnings.md) | The list of Warnings with details. | | diff --git a/sdks/marketingsolutions_2023-07/docs/RequestsPatchAdSet.md b/sdks/marketingsolutions_preview/docs/RequestsPatchAdSetV24Q3.md similarity index 52% rename from sdks/marketingsolutions_2023-07/docs/RequestsPatchAdSet.md rename to sdks/marketingsolutions_preview/docs/RequestsPatchAdSetV24Q3.md index 3329da3e..728110d6 100644 --- a/sdks/marketingsolutions_2023-07/docs/RequestsPatchAdSet.md +++ b/sdks/marketingsolutions_preview/docs/RequestsPatchAdSetV24Q3.md @@ -1,6 +1,6 @@ -# RequestsPatchAdSet +# RequestsPatchAdSetV24Q3 List of input resources @@ -8,7 +8,7 @@ List of input resources | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**List<WriteModelPatchAdSet>**](WriteModelPatchAdSet.md) | | [optional] | +|**data** | [**List<WriteModelPatchAdSetV24Q3>**](WriteModelPatchAdSetV24Q3.md) | | [optional] | diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignResponse.md b/sdks/marketingsolutions_preview/docs/ResponseReadAdSetV24Q3.md similarity index 74% rename from sdks/marketingsolutions_2023-07/docs/CampaignResponse.md rename to sdks/marketingsolutions_preview/docs/ResponseReadAdSetV24Q3.md index 07d3fa7b..dd216b8c 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignResponse.md +++ b/sdks/marketingsolutions_preview/docs/ResponseReadAdSetV24Q3.md @@ -1,6 +1,6 @@ -# CampaignResponse +# ResponseReadAdSetV24Q3 output resource @@ -8,7 +8,7 @@ output resource | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**CampaignReadResource**](CampaignReadResource.md) | | [optional] | +|**data** | [**ReadModelReadAdSetV24Q3**](ReadModelReadAdSetV24Q3.md) | | [optional] | |**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | |**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignListResponse.md b/sdks/marketingsolutions_preview/docs/ResponsesAdSetIdV24Q3.md similarity index 71% rename from sdks/marketingsolutions_2023-07/docs/CampaignListResponse.md rename to sdks/marketingsolutions_preview/docs/ResponsesAdSetIdV24Q3.md index e6f20c64..806bb29c 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignListResponse.md +++ b/sdks/marketingsolutions_preview/docs/ResponsesAdSetIdV24Q3.md @@ -1,6 +1,6 @@ -# CampaignListResponse +# ResponsesAdSetIdV24Q3 List of output resources @@ -8,7 +8,7 @@ List of output resources | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**List<CampaignReadResource>**](CampaignReadResource.md) | | [optional] [readonly] | +|**data** | [**List<ReadModelAdSetIdV24Q3>**](ReadModelAdSetIdV24Q3.md) | | [optional] [readonly] | |**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | |**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | diff --git a/sdks/marketingsolutions_2023-07/docs/ResponsesReadAdSet.md b/sdks/marketingsolutions_preview/docs/ResponsesReadAdSetV24Q3.md similarity index 71% rename from sdks/marketingsolutions_2023-07/docs/ResponsesReadAdSet.md rename to sdks/marketingsolutions_preview/docs/ResponsesReadAdSetV24Q3.md index a332ae76..fb3d7ec4 100644 --- a/sdks/marketingsolutions_2023-07/docs/ResponsesReadAdSet.md +++ b/sdks/marketingsolutions_preview/docs/ResponsesReadAdSetV24Q3.md @@ -1,6 +1,6 @@ -# ResponsesReadAdSet +# ResponsesReadAdSetV24Q3 List of output resources @@ -8,7 +8,7 @@ List of output resources | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**List<ReadModelReadAdSet>**](ReadModelReadAdSet.md) | | [optional] [readonly] | +|**data** | [**List<ReadModelReadAdSetV24Q3>**](ReadModelReadAdSetV24Q3.md) | | [optional] [readonly] | |**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | |**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | diff --git a/sdks/marketingsolutions_preview/docs/SetAdSetTargetingVideoPositioning.md b/sdks/marketingsolutions_preview/docs/SetAdSetTargetingVideoPositioning.md index d7513221..91627aef 100644 --- a/sdks/marketingsolutions_preview/docs/SetAdSetTargetingVideoPositioning.md +++ b/sdks/marketingsolutions_preview/docs/SetAdSetTargetingVideoPositioning.md @@ -9,6 +9,7 @@ Video positioning targeting writing model | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**videoPlacement** | [**List<VideoPlacementEnum>**](#List<VideoPlacementEnum>) | | [optional] | +|**videoPlcmt** | [**List<VideoPlcmtEnum>**](#List<VideoPlcmtEnum>) | | [optional] | |**playbackMethod** | [**List<PlaybackMethodEnum>**](#List<PlaybackMethodEnum>) | | [optional] | |**skippable** | [**SkippableEnum**](#SkippableEnum) | | [optional] | |**videoInStreamPosition** | [**List<VideoInStreamPositionEnum>**](#List<VideoInStreamPositionEnum>) | | [optional] | @@ -29,6 +30,17 @@ Video positioning targeting writing model +## Enum: List<VideoPlcmtEnum> + +| Name | Value | +|---- | -----| +| INSTREAM | "InStream" | +| ACCOMPANYINGCONTENT | "AccompanyingContent" | +| INTERSTITIAL | "Interstitial" | +| NOCONTENTSTANDALONE | "NoContentStandalone" | + + + ## Enum: List<PlaybackMethodEnum> | Name | Value | diff --git a/sdks/marketingsolutions_preview/docs/SetUserProfileModel.md b/sdks/marketingsolutions_preview/docs/SetUserProfileModel.md deleted file mode 100644 index afbfa075..00000000 --- a/sdks/marketingsolutions_preview/docs/SetUserProfileModel.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# SetUserProfileModel - -Used for the /user-profiles/set endpoint. Contains information about the user profile that we add or update - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**userProfileId** | **String** | | | -|**userProfileListId** | **String** | | [optional] | -|**userProfileIdentifiers** | [**List<UserProfileIdentifierModel>**](UserProfileIdentifierModel.md) | | [optional] | -|**userProfileAttributes** | [**List<UserProfileAttributeModel>**](UserProfileAttributeModel.md) | | [optional] | - - - diff --git a/sdks/marketingsolutions_preview/docs/UserProfileAttributeModel.md b/sdks/marketingsolutions_preview/docs/UserProfileAttributeModel.md deleted file mode 100644 index 5a84dc78..00000000 --- a/sdks/marketingsolutions_preview/docs/UserProfileAttributeModel.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# UserProfileAttributeModel - -Attributes of a user profile - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**key** | **String** | | | -|**value** | **String** | | | - - - diff --git a/sdks/marketingsolutions_2023-07/docs/WriteModelPatchAdSet.md b/sdks/marketingsolutions_preview/docs/WriteModelPatchAdSetV24Q3.md similarity index 72% rename from sdks/marketingsolutions_2023-07/docs/WriteModelPatchAdSet.md rename to sdks/marketingsolutions_preview/docs/WriteModelPatchAdSetV24Q3.md index aa10f6ea..4de803da 100644 --- a/sdks/marketingsolutions_2023-07/docs/WriteModelPatchAdSet.md +++ b/sdks/marketingsolutions_preview/docs/WriteModelPatchAdSetV24Q3.md @@ -1,6 +1,6 @@ -# WriteModelPatchAdSet +# WriteModelPatchAdSetV24Q3 write model data for resources @@ -10,7 +10,7 @@ write model data for resources |------------ | ------------- | ------------- | -------------| |**id** | **String** | Id of the entity | [optional] | |**type** | **String** | Canonical type name of the entity | [optional] | -|**attributes** | [**PatchAdSet**](PatchAdSet.md) | | [optional] | +|**attributes** | [**PatchAdSetV24Q3**](PatchAdSetV24Q3.md) | | [optional] | diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiClient.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiClient.java index 2e0dd903..b0ad1d28 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiClient.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/0.0.240826/java"); + setUserAgent("OpenAPI-Generator/0.0.241029/java"); authentications = new HashMap(); } diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/JSON.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/JSON.java index 785564b0..efbadd5f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/JSON.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/JSON.java @@ -104,14 +104,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetCategoryBid.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetCategoryBidListResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetCategoryBidResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetDeliveryLimitationsV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetDeliveryLimitationsV24Q3.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetDisplayMultiplier.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetDisplayMultiplierListResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetDisplayMultiplierResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetFrequencyCappingV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetGeoLocationV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetSearchFilterV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetSearchRequestV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetFrequencyCappingV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetGeoLocationV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetSearchFilterV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetSearchRequestV24Q3.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingDealIds.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingDealIdsDisableResultResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingDealIdsDisableResultResponse.CustomTypeAdapterFactory()); @@ -119,8 +119,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingDealIdsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingDealIdsSetResultResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingDealIdsSetResultResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingRuleV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingRuleV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingV24Q3.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingVideoPositioning.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingVideoPositioningDisableResultResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.AdSetTargetingVideoPositioningDisableResultResponse.CustomTypeAdapterFactory()); @@ -237,14 +237,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CouponSupportedSizes.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CouponSupportedSizesResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CouponSupportedSizesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetBiddingV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetBudgetV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetGeoLocationV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetScheduleV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetTargetingV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q1Request.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetBiddingV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetBudgetV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetGeoLocationV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetScheduleV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetTargetingV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q3Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q3Resource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateCampaign.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateCampaignRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.CreateCampaignResource.CustomTypeAdapterFactory()); @@ -269,9 +269,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.Dataset.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.DealId.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.DeleteAudienceContactListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.DeleteUserProfileModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.DeleteUserProfileModelListRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.DeleteUserProfileModelResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.DynamicAttributes.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.DynamicWriteAttributes.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.EntityFilter.CustomTypeAdapterFactory()); @@ -337,8 +334,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.MarketingSolutionsReportStatusResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.MarketingSolutionsReportStatusResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ModifyAudienceResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.NillableAdSetTargetingRuleV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.NillableAdSetTargetingRuleV24Q1Value.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.NillableAdSetTargetingRuleV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.NillableAdSetTargetingRuleV24Q3Value.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.NillableDateTime.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.NillableDecimal.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.NillableGenderV1.CustomTypeAdapterFactory()); @@ -354,8 +351,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.OnSiteRecoRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.OnSiteRecoResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.Outcome.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetBiddingV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetBudgetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetBiddingV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetBudgetV24Q3.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetCategoryBid.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetCategoryBidListRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetCategoryBidResource.CustomTypeAdapterFactory()); @@ -366,8 +363,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetDisplayMultiplierResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetDisplayMultiplierResultListResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetDisplayMultiplierResultResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetSchedulingV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetSchedulingV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchAdSetV24Q3.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchCampaign.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchCampaignListRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.PatchCampaignSpendLimit.CustomTypeAdapterFactory()); @@ -397,26 +394,28 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ProspectingCreateV1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ProspectingUpdateV1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ProspectingV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadAdSetBiddingV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadAdSetBudgetV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadAdSetScheduleV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadAdSetBiddingV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadAdSetBudgetV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadAdSetScheduleV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadAdSetV24Q3.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadModelAdSetId.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadModelAdSetIdV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadModelReadAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadModelAdSetIdV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReadModelReadAdSetV24Q3.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.RecommendedProduct.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReportDetailError.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReportDetailErrors.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReportDetailWarning.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReportDetailWarnings.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ReportOkResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.RequestsAdSetId.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.RequestsPatchAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.RequestsPatchAdSetV24Q3.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ResourceCollectionOutcomeOfProductSet.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ResourceOfProductSet.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ResourceOutcomeOfProductSet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ResponseReadAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ResponseReadAdSetV24Q3.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ResponsesAdSetId.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ResponsesAdSetIdV24Q1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ResponsesReadAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ResponsesAdSetIdV24Q3.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ResponsesReadAdSetV24Q3.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.RetargetingCreateV1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.RetargetingUpdateV1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.RetargetingV1.CustomTypeAdapterFactory()); @@ -426,9 +425,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.SetAdSetTargetingVideoPositioning.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.SetAdSetTargetingVideoPositioningRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.SetAdSetTargetingVideoPositioningResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.SetUserProfileModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.SetUserProfileModelListRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.SetUserProfileModelResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.Size.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.StatisticsOkResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.StatisticsRecord.CustomTypeAdapterFactory()); @@ -454,8 +450,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.UpdateCouponRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.UpdateCouponResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.UserDef.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.UserProfileAttributeModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.UserProfileIdentifierModel.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ValueResourceCollectionOutcomeOfProductFilterConfig.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ValueResourceInputOfCreateProductFilterRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ValueResourceInputOfCreateProductSetRequest.CustomTypeAdapterFactory()); @@ -466,7 +460,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.ValueResourceOutcomeOfProductFilterConfig.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.VideoDetail.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.WriteModelAdSetId.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.WriteModelPatchAdSetV24Q1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.marketingsolutions.preview.model.WriteModelPatchAdSetV24Q3.CustomTypeAdapterFactory()); gson = gsonBuilder.create(); } diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AnalyticsApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AnalyticsApi.java index 05cbcb51..7b59d89c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AnalyticsApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AnalyticsApi.java @@ -28,6 +28,7 @@ import com.criteo.api.marketingsolutions.preview.model.ExportResult; +import java.io.File; import com.criteo.api.marketingsolutions.preview.model.GenerateAudiencePerformanceReportRequest; import com.criteo.api.marketingsolutions.preview.model.GenerateCategoriesReportRequestAttributesRequest; import com.criteo.api.marketingsolutions.preview.model.GenerateCreativesReportRequestAttributesRequest; @@ -163,7 +164,7 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -173,8 +174,8 @@ private okhttp3.Call getAdsetReportValidateBeforeCall(StatisticsReportQueryMessa
403 Forbidden -
*/ - public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { - ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); + public File getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + ApiResponse localVarResp = getAdsetReportWithHttpInfo(statisticsReportQueryMessage); return localVarResp.getData(); } @@ -182,7 +183,7 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM * * This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. * @param statisticsReportQueryMessage (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -192,9 +193,9 @@ public byte[] getAdsetReport(StatisticsReportQueryMessage statisticsReportQueryM
403 Forbidden -
*/ - public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { + public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessage statisticsReportQueryMessage) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -213,10 +214,10 @@ public ApiResponse getAdsetReportWithHttpInfo(StatisticsReportQueryMessa 403 Forbidden - */ - public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdsetReportAsync(StatisticsReportQueryMessage statisticsReportQueryMessage, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdsetReportValidateBeforeCall(statisticsReportQueryMessage, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -831,7 +832,7 @@ private okhttp3.Call getCategoriesReportValidateBeforeCall(GenerateCategoriesRep * * With this endpoint you can analyse what are the categories of the placements' domains your ads are placed in. * @param generateCategoriesReportRequestAttributesRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -841,8 +842,8 @@ private okhttp3.Call getCategoriesReportValidateBeforeCall(GenerateCategoriesRep
403 Forbidden -
*/ - public byte[] getCategoriesReport(GenerateCategoriesReportRequestAttributesRequest generateCategoriesReportRequestAttributesRequest) throws ApiException { - ApiResponse localVarResp = getCategoriesReportWithHttpInfo(generateCategoriesReportRequestAttributesRequest); + public File getCategoriesReport(GenerateCategoriesReportRequestAttributesRequest generateCategoriesReportRequestAttributesRequest) throws ApiException { + ApiResponse localVarResp = getCategoriesReportWithHttpInfo(generateCategoriesReportRequestAttributesRequest); return localVarResp.getData(); } @@ -850,7 +851,7 @@ public byte[] getCategoriesReport(GenerateCategoriesReportRequestAttributesReque * * With this endpoint you can analyse what are the categories of the placements' domains your ads are placed in. * @param generateCategoriesReportRequestAttributesRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -860,9 +861,9 @@ public byte[] getCategoriesReport(GenerateCategoriesReportRequestAttributesReque
403 Forbidden -
*/ - public ApiResponse getCategoriesReportWithHttpInfo(GenerateCategoriesReportRequestAttributesRequest generateCategoriesReportRequestAttributesRequest) throws ApiException { + public ApiResponse getCategoriesReportWithHttpInfo(GenerateCategoriesReportRequestAttributesRequest generateCategoriesReportRequestAttributesRequest) throws ApiException { okhttp3.Call localVarCall = getCategoriesReportValidateBeforeCall(generateCategoriesReportRequestAttributesRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -881,10 +882,10 @@ public ApiResponse getCategoriesReportWithHttpInfo(GenerateCategoriesRep 403 Forbidden - */ - public okhttp3.Call getCategoriesReportAsync(GenerateCategoriesReportRequestAttributesRequest generateCategoriesReportRequestAttributesRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCategoriesReportAsync(GenerateCategoriesReportRequestAttributesRequest generateCategoriesReportRequestAttributesRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCategoriesReportValidateBeforeCall(generateCategoriesReportRequestAttributesRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1067,7 +1068,9 @@ public okhttp3.Call getPlacementsReportCall(PlacementsReportQueryMessageListRequ "text/plain", "application/json", "text/json", + "text/csv", "application/xml", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/xml" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); @@ -1100,7 +1103,7 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1110,8 +1113,8 @@ private okhttp3.Call getPlacementsReportValidateBeforeCall(PlacementsReportQuery
403 Forbidden -
*/ - public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); + public File getPlacementsReport(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getPlacementsReportWithHttpInfo(placementsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -1119,7 +1122,7 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem * * Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. * @param placementsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1129,9 +1132,9 @@ public byte[] getPlacementsReport(PlacementsReportQueryMessageListRequest placem
403 Forbidden -
*/ - public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1150,10 +1153,10 @@ public ApiResponse getPlacementsReportWithHttpInfo(PlacementsReportQuery 403 Forbidden - */ - public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPlacementsReportAsync(PlacementsReportQueryMessageListRequest placementsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPlacementsReportValidateBeforeCall(placementsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1370,7 +1373,7 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return byte[] + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1380,8 +1383,8 @@ private okhttp3.Call getTransactionsReportValidateBeforeCall(TransactionsReportQ
403 Forbidden -
*/ - public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { - ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); + public File getTransactionsReport(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + ApiResponse localVarResp = getTransactionsReportWithHttpInfo(transactionsReportQueryMessageListRequest); return localVarResp.getData(); } @@ -1389,7 +1392,7 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr * * This Transactions endpoint provides transactions id related data. * @param transactionsReportQueryMessageListRequest (optional) - * @return ApiResponse<byte[]> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1399,9 +1402,9 @@ public byte[] getTransactionsReport(TransactionsReportQueryMessageListRequest tr
403 Forbidden -
*/ - public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { + public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1420,10 +1423,10 @@ public ApiResponse getTransactionsReportWithHttpInfo(TransactionsReportQ 403 Forbidden - */ - public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTransactionsReportAsync(TransactionsReportQueryMessageListRequest transactionsReportQueryMessageListRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTransactionsReportValidateBeforeCall(transactionsReportQueryMessageListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AudienceApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AudienceApi.java index eb27e4aa..64eb8666 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AudienceApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AudienceApi.java @@ -53,12 +53,10 @@ import com.criteo.api.marketingsolutions.preview.model.ContactlistAmendmentRequest; import com.criteo.api.marketingsolutions.preview.model.ContactlistWithAttributesAmendmentRequest; import com.criteo.api.marketingsolutions.preview.model.DeleteAudienceContactListResponse; -import com.criteo.api.marketingsolutions.preview.model.DeleteUserProfileModelListRequest; import com.criteo.api.marketingsolutions.preview.model.ErrorCodeResponse; import com.criteo.api.marketingsolutions.preview.model.InMarketAudienceSegmentBrandEntityV1ListResponse; import com.criteo.api.marketingsolutions.preview.model.InMarketAudienceSegmentInterestEntityV1ListResponse; import com.criteo.api.marketingsolutions.preview.model.ModifyAudienceResponse; -import com.criteo.api.marketingsolutions.preview.model.SetUserProfileModelListRequest; import java.lang.reflect.Type; import java.util.ArrayList; @@ -1228,264 +1226,6 @@ public okhttp3.Call computeAudiencesSizesAsync(AudienceComputeSizesInputV1 audie localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for deleteContactListIdentifiers - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public okhttp3.Call deleteContactListIdentifiersCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" - .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteContactListIdentifiersValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentId' is set - if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling deleteContactListIdentifiers(Async)"); - } - - return deleteContactListIdentifiersCall(audienceSegmentId, _callback); - - } - - /** - * - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @return DeleteAudienceContactListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public DeleteAudienceContactListResponse deleteContactListIdentifiers(String audienceSegmentId) throws ApiException { - ApiResponse localVarResp = deleteContactListIdentifiersWithHttpInfo(audienceSegmentId); - return localVarResp.getData(); - } - - /** - * - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @return ApiResponse<DeleteAudienceContactListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public ApiResponse deleteContactListIdentifiersWithHttpInfo(String audienceSegmentId) throws ApiException { - okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Delete all identifiers from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 The Contact List was emptied -
403 Forbidden -
- */ - public okhttp3.Call deleteContactListIdentifiersAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteUserProfiles - * @param advertiserId Criteo Advertiser ID of user profiles' owner (required) - * @param deleteUserProfileModelListRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 Success -
403 Forbidden -
- */ - public okhttp3.Call deleteUserProfilesCall(Integer advertiserId, DeleteUserProfileModelListRequest deleteUserProfileModelListRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = deleteUserProfileModelListRequest; - - // create path and map variables - String localVarPath = "/preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/delete" - .replace("{" + "advertiserId" + "}", localVarApiClient.escapeString(advertiserId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserProfilesValidateBeforeCall(Integer advertiserId, DeleteUserProfileModelListRequest deleteUserProfileModelListRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'advertiserId' is set - if (advertiserId == null) { - throw new ApiException("Missing the required parameter 'advertiserId' when calling deleteUserProfiles(Async)"); - } - - return deleteUserProfilesCall(advertiserId, deleteUserProfileModelListRequest, _callback); - - } - - /** - * - * This endpoint will Delete User Profiles for a given Advertiser. - * @param advertiserId Criteo Advertiser ID of user profiles' owner (required) - * @param deleteUserProfileModelListRequest (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 Success -
403 Forbidden -
- */ - public void deleteUserProfiles(Integer advertiserId, DeleteUserProfileModelListRequest deleteUserProfileModelListRequest) throws ApiException { - deleteUserProfilesWithHttpInfo(advertiserId, deleteUserProfileModelListRequest); - } - - /** - * - * This endpoint will Delete User Profiles for a given Advertiser. - * @param advertiserId Criteo Advertiser ID of user profiles' owner (required) - * @param deleteUserProfileModelListRequest (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 Success -
403 Forbidden -
- */ - public ApiResponse deleteUserProfilesWithHttpInfo(Integer advertiserId, DeleteUserProfileModelListRequest deleteUserProfileModelListRequest) throws ApiException { - okhttp3.Call localVarCall = deleteUserProfilesValidateBeforeCall(advertiserId, deleteUserProfileModelListRequest, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * This endpoint will Delete User Profiles for a given Advertiser. - * @param advertiserId Criteo Advertiser ID of user profiles' owner (required) - * @param deleteUserProfileModelListRequest (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 Success -
403 Forbidden -
- */ - public okhttp3.Call deleteUserProfilesAsync(Integer advertiserId, DeleteUserProfileModelListRequest deleteUserProfileModelListRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteUserProfilesValidateBeforeCall(advertiserId, deleteUserProfileModelListRequest, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } /** * Build call for estimateAudienceSegmentSize * @param audienceSegmentEstimateSizeInputV1 (required) @@ -2335,23 +2075,19 @@ public okhttp3.Call modifyAudienceUsersWithAttributesAsync(String audienceId, Co return localVarCall; } /** - * Build call for searchAudienceSegments - * @param audienceSegmentSearchInputV1 Segment search filters. (required) - * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) - * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * Build call for previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - + +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 The Contact List was emptied -
403 Forbidden -
*/ - public okhttp3.Call searchAudienceSegmentsCall(AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + public okhttp3.Call previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2365,10 +2101,11 @@ public okhttp3.Call searchAudienceSegmentsCall(AudienceSegmentSearchInputV1 audi basePath = null; } - Object localVarPostBody = audienceSegmentSearchInputV1; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/preview/marketing-solutions/audience-segments/search"; + String localVarPath = "/preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2376,18 +2113,8 @@ public okhttp3.Call searchAudienceSegmentsCall(AudienceSegmentSearchInputV1 audi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (offset != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); - } - final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2395,10 +2122,6 @@ public okhttp3.Call searchAudienceSegmentsCall(AudienceSegmentSearchInputV1 audi } final String[] localVarContentTypes = { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2406,108 +2129,94 @@ public okhttp3.Call searchAudienceSegmentsCall(AudienceSegmentSearchInputV1 audi } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call searchAudienceSegmentsValidateBeforeCall(AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentSearchInputV1' is set - if (audienceSegmentSearchInputV1 == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentSearchInputV1' when calling searchAudienceSegments(Async)"); + private okhttp3.Call previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(Async)"); } - return searchAudienceSegmentsCall(audienceSegmentSearchInputV1, limit, offset, _callback); + return previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteCall(audienceSegmentId, _callback); } /** * - * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. - * @param audienceSegmentSearchInputV1 Segment search filters. (required) - * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) - * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) - * @return AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return DeleteAudienceContactListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - - + +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 The Contact List was emptied -
403 Forbidden -
*/ - public AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1, Integer limit, Integer offset) throws ApiException { - ApiResponse localVarResp = searchAudienceSegmentsWithHttpInfo(audienceSegmentSearchInputV1, limit, offset); + public DeleteAudienceContactListResponse previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDelete(String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(audienceSegmentId); return localVarResp.getData(); } /** * - * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. - * @param audienceSegmentSearchInputV1 Segment search filters. (required) - * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) - * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) - * @return ApiResponse<AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse> + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @return ApiResponse<DeleteAudienceContactListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - - + +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 The Contact List was emptied -
403 Forbidden -
*/ - public ApiResponse searchAudienceSegmentsWithHttpInfo(AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1, Integer limit, Integer offset) throws ApiException { - okhttp3.Call localVarCall = searchAudienceSegmentsValidateBeforeCall(audienceSegmentSearchInputV1, limit, offset, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteWithHttpInfo(String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. - * @param audienceSegmentSearchInputV1 Segment search filters. (required) - * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) - * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * Delete all identifiers from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - - - + +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 The Contact List was emptied -
403 Forbidden -
*/ - public okhttp3.Call searchAudienceSegmentsAsync(AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + public okhttp3.Call previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteAsync(String audienceSegmentId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = searchAudienceSegmentsValidateBeforeCall(audienceSegmentSearchInputV1, limit, offset, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListDeleteValidateBeforeCall(audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for searchAudiences - * @param audienceSearchInputV1 Audience search filters. (required) - * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) - * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * Build call for previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - + + +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public okhttp3.Call searchAudiencesCall(AudienceSearchInputV1 audienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + public okhttp3.Call previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2521,10 +2230,11 @@ public okhttp3.Call searchAudiencesCall(AudienceSearchInputV1 audienceSearchInpu basePath = null; } - Object localVarPostBody = audienceSearchInputV1; + Object localVarPostBody = contactlistAmendmentRequest; // create path and map variables - String localVarPath = "/preview/marketing-solutions/audiences/search"; + String localVarPath = "/preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2532,18 +2242,8 @@ public okhttp3.Call searchAudiencesCall(AudienceSearchInputV1 audienceSearchInpu Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (offset != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); - } - final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2551,10 +2251,7 @@ public okhttp3.Call searchAudiencesCall(AudienceSearchInputV1 audienceSearchInpu } final String[] localVarContentTypes = { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2562,94 +2259,94 @@ public okhttp3.Call searchAudiencesCall(AudienceSearchInputV1 audienceSearchInpu } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call searchAudiencesValidateBeforeCall(AudienceSearchInputV1 audienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSearchInputV1' is set - if (audienceSearchInputV1 == null) { - throw new ApiException("Missing the required parameter 'audienceSearchInputV1' when calling searchAudiences(Async)"); + private okhttp3.Call previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); } - return searchAudiencesCall(audienceSearchInputV1, limit, offset, _callback); + // verify the required parameter 'contactlistAmendmentRequest' is set + if (contactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(Async)"); + } + + return previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchCall(audienceSegmentId, contactlistAmendmentRequest, _callback); } /** * - * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. - * @param audienceSearchInputV1 Audience search filters. (required) - * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) - * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) - * @return AudienceEntityV1AudienceSearchMetadataV1ListResponse + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ModifyAudienceResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - - + + +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(AudienceSearchInputV1 audienceSearchInputV1, Integer limit, Integer offset) throws ApiException { - ApiResponse localVarResp = searchAudiencesWithHttpInfo(audienceSearchInputV1, limit, offset); + public ModifyAudienceResponse previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatch(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); return localVarResp.getData(); } /** * - * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. - * @param audienceSearchInputV1 Audience search filters. (required) - * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) - * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) - * @return ApiResponse<AudienceEntityV1AudienceSearchMetadataV1ListResponse> + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) + * @return ApiResponse<ModifyAudienceResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - - + + +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public ApiResponse searchAudiencesWithHttpInfo(AudienceSearchInputV1 audienceSearchInputV1, Integer limit, Integer offset) throws ApiException { - okhttp3.Call localVarCall = searchAudiencesValidateBeforeCall(audienceSearchInputV1, limit, offset, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. - * @param audienceSearchInputV1 Audience search filters. (required) - * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) - * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * Add/remove identifiers to or from a contact list audience-segment. + * @param audienceSegmentId The id of the contact list audience-segment to amend (required) + * @param contactlistAmendmentRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - - - + + +
Status Code Description Response Headers
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
*/ - public okhttp3.Call searchAudiencesAsync(AudienceSearchInputV1 audienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + public okhttp3.Call previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = searchAudiencesValidateBeforeCall(audienceSearchInputV1, limit, offset, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = previewMarketingSolutionsAudienceSegmentsAudienceSegmentIdContactListPatchValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for setUserProfiles - * @param advertiserId Criteo Advertiser ID of user profiles' owner (required) - * @param setUserProfileModelListRequest (optional) + * Build call for searchAudienceSegments + * @param audienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2657,10 +2354,12 @@ public okhttp3.Call searchAudiencesAsync(AudienceSearchInputV1 audienceSearchInp - + + +
Status Code Description Response Headers
200 Success -
403 Forbidden -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call setUserProfilesCall(Integer advertiserId, SetUserProfileModelListRequest setUserProfileModelListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAudienceSegmentsCall(AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2674,11 +2373,10 @@ public okhttp3.Call setUserProfilesCall(Integer advertiserId, SetUserProfileMode basePath = null; } - Object localVarPostBody = setUserProfileModelListRequest; + Object localVarPostBody = audienceSegmentSearchInputV1; // create path and map variables - String localVarPath = "/preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/set" - .replace("{" + "advertiserId" + "}", localVarApiClient.escapeString(advertiserId.toString())); + String localVarPath = "/preview/marketing-solutions/audience-segments/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2686,8 +2384,18 @@ public okhttp3.Call setUserProfilesCall(Integer advertiserId, SetUserProfileMode Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + final String[] localVarAccepts = { - "application/json" + "text/plain", + "application/json", + "text/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2710,57 +2418,67 @@ public okhttp3.Call setUserProfilesCall(Integer advertiserId, SetUserProfileMode } @SuppressWarnings("rawtypes") - private okhttp3.Call setUserProfilesValidateBeforeCall(Integer advertiserId, SetUserProfileModelListRequest setUserProfileModelListRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'advertiserId' is set - if (advertiserId == null) { - throw new ApiException("Missing the required parameter 'advertiserId' when calling setUserProfiles(Async)"); + private okhttp3.Call searchAudienceSegmentsValidateBeforeCall(AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentSearchInputV1' is set + if (audienceSegmentSearchInputV1 == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentSearchInputV1' when calling searchAudienceSegments(Async)"); } - return setUserProfilesCall(advertiserId, setUserProfileModelListRequest, _callback); + return searchAudienceSegmentsCall(audienceSegmentSearchInputV1, limit, offset, _callback); } /** * - * This endpoint will Set User Profiles for a given Advertiser. If a User Profile does not exist, a new one will be created. If a User Profile exists, it will be replaced. - * @param advertiserId Criteo Advertiser ID of user profiles' owner (required) - * @param setUserProfileModelListRequest (optional) + * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * @param audienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @return AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + + +
Status Code Description Response Headers
200 Success -
403 Forbidden -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public void setUserProfiles(Integer advertiserId, SetUserProfileModelListRequest setUserProfileModelListRequest) throws ApiException { - setUserProfilesWithHttpInfo(advertiserId, setUserProfileModelListRequest); + public AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1, Integer limit, Integer offset) throws ApiException { + ApiResponse localVarResp = searchAudienceSegmentsWithHttpInfo(audienceSegmentSearchInputV1, limit, offset); + return localVarResp.getData(); } /** * - * This endpoint will Set User Profiles for a given Advertiser. If a User Profile does not exist, a new one will be created. If a User Profile exists, it will be replaced. - * @param advertiserId Criteo Advertiser ID of user profiles' owner (required) - * @param setUserProfileModelListRequest (optional) - * @return ApiResponse<Void> + * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * @param audienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @return ApiResponse<AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + + +
Status Code Description Response Headers
200 Success -
403 Forbidden -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public ApiResponse setUserProfilesWithHttpInfo(Integer advertiserId, SetUserProfileModelListRequest setUserProfileModelListRequest) throws ApiException { - okhttp3.Call localVarCall = setUserProfilesValidateBeforeCall(advertiserId, setUserProfileModelListRequest, null); - return localVarApiClient.execute(localVarCall); + public ApiResponse searchAudienceSegmentsWithHttpInfo(AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1, Integer limit, Integer offset) throws ApiException { + okhttp3.Call localVarCall = searchAudienceSegmentsValidateBeforeCall(audienceSegmentSearchInputV1, limit, offset, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * This endpoint will Set User Profiles for a given Advertiser. If a User Profile does not exist, a new one will be created. If a User Profile exists, it will be replaced. - * @param advertiserId Criteo Advertiser ID of user profiles' owner (required) - * @param setUserProfileModelListRequest (optional) + * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * @param audienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2768,31 +2486,36 @@ public ApiResponse setUserProfilesWithHttpInfo(Integer advertiserId, SetUs - + + +
Status Code Description Response Headers
200 Success -
403 Forbidden -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call setUserProfilesAsync(Integer advertiserId, SetUserProfileModelListRequest setUserProfileModelListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAudienceSegmentsAsync(AudienceSegmentSearchInputV1 audienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = setUserProfilesValidateBeforeCall(advertiserId, setUserProfileModelListRequest, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); + okhttp3.Call localVarCall = searchAudienceSegmentsValidateBeforeCall(audienceSegmentSearchInputV1, limit, offset, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for updateContactListIdentifiers - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) + * Build call for searchAudiences + * @param audienceSearchInputV1 Audience search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call updateContactListIdentifiersCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAudiencesCall(AudienceSearchInputV1 audienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2806,11 +2529,10 @@ public okhttp3.Call updateContactListIdentifiersCall(String audienceSegmentId, C basePath = null; } - Object localVarPostBody = contactlistAmendmentRequest; + Object localVarPostBody = audienceSearchInputV1; // create path and map variables - String localVarPath = "/preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list" - .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + String localVarPath = "/preview/marketing-solutions/audiences/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2818,8 +2540,18 @@ public okhttp3.Call updateContactListIdentifiersCall(String audienceSegmentId, C Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + final String[] localVarAccepts = { - "application/json" + "text/plain", + "application/json", + "text/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2827,7 +2559,10 @@ public okhttp3.Call updateContactListIdentifiersCall(String audienceSegmentId, C } final String[] localVarContentTypes = { - "application/json" + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2835,86 +2570,87 @@ public okhttp3.Call updateContactListIdentifiersCall(String audienceSegmentId, C } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateContactListIdentifiersValidateBeforeCall(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'audienceSegmentId' is set - if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling updateContactListIdentifiers(Async)"); - } - - // verify the required parameter 'contactlistAmendmentRequest' is set - if (contactlistAmendmentRequest == null) { - throw new ApiException("Missing the required parameter 'contactlistAmendmentRequest' when calling updateContactListIdentifiers(Async)"); + private okhttp3.Call searchAudiencesValidateBeforeCall(AudienceSearchInputV1 audienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSearchInputV1' is set + if (audienceSearchInputV1 == null) { + throw new ApiException("Missing the required parameter 'audienceSearchInputV1' when calling searchAudiences(Async)"); } - return updateContactListIdentifiersCall(audienceSegmentId, contactlistAmendmentRequest, _callback); + return searchAudiencesCall(audienceSearchInputV1, limit, offset, _callback); } /** * - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ModifyAudienceResponse + * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. + * @param audienceSearchInputV1 Audience search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @return AudienceEntityV1AudienceSearchMetadataV1ListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public ModifyAudienceResponse updateContactListIdentifiers(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - ApiResponse localVarResp = updateContactListIdentifiersWithHttpInfo(audienceSegmentId, contactlistAmendmentRequest); + public AudienceEntityV1AudienceSearchMetadataV1ListResponse searchAudiences(AudienceSearchInputV1 audienceSearchInputV1, Integer limit, Integer offset) throws ApiException { + ApiResponse localVarResp = searchAudiencesWithHttpInfo(audienceSearchInputV1, limit, offset); return localVarResp.getData(); } /** * - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) - * @return ApiResponse<ModifyAudienceResponse> + * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. + * @param audienceSearchInputV1 Audience search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @return ApiResponse<AudienceEntityV1AudienceSearchMetadataV1ListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public ApiResponse updateContactListIdentifiersWithHttpInfo(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest) throws ApiException { - okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse searchAudiencesWithHttpInfo(AudienceSearchInputV1 audienceSearchInputV1, Integer limit, Integer offset) throws ApiException { + okhttp3.Call localVarCall = searchAudiencesValidateBeforeCall(audienceSearchInputV1, limit, offset, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Add/remove identifiers to or from a contact list audience-segment. - * @param audienceSegmentId The id of the contact list audience-segment to amend (required) - * @param contactlistAmendmentRequest (required) + * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. + * @param audienceSearchInputV1 Audience search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - - + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
404 Audience 123 not found -
200 Success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call updateContactListIdentifiersAsync(String audienceSegmentId, ContactlistAmendmentRequest contactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAudiencesAsync(AudienceSearchInputV1 audienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, contactlistAmendmentRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = searchAudiencesValidateBeforeCall(audienceSearchInputV1, limit, offset, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CampaignApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CampaignApi.java index 47a4bfd5..bf22556a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CampaignApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CampaignApi.java @@ -31,7 +31,7 @@ import com.criteo.api.marketingsolutions.preview.model.AdSetAudienceLinkInputEntityV1; import com.criteo.api.marketingsolutions.preview.model.AdSetCategoryBidListResponse; import com.criteo.api.marketingsolutions.preview.model.AdSetDisplayMultiplierListResponse; -import com.criteo.api.marketingsolutions.preview.model.AdSetSearchRequestV24Q1; +import com.criteo.api.marketingsolutions.preview.model.AdSetSearchRequestV24Q3; import com.criteo.api.marketingsolutions.preview.model.AdSetTargetingDealIdsDisableResultResponse; import com.criteo.api.marketingsolutions.preview.model.AdSetTargetingDealIdsResponse; import com.criteo.api.marketingsolutions.preview.model.AdSetTargetingDealIdsSetResultResponse; @@ -44,7 +44,7 @@ import com.criteo.api.marketingsolutions.preview.model.CampaignSearchRequestV23Q1; import com.criteo.api.marketingsolutions.preview.model.CampaignV23Q1ListResponse; import com.criteo.api.marketingsolutions.preview.model.CampaignV23Q1Response; -import com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q1Request; +import com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q3Request; import com.criteo.api.marketingsolutions.preview.model.CreateCampaignRequest; import com.criteo.api.marketingsolutions.preview.model.OciBrandSafetyResponse; import com.criteo.api.marketingsolutions.preview.model.OciBrandSafetyRule; @@ -57,11 +57,11 @@ import com.criteo.api.marketingsolutions.preview.model.PatchCampaignListRequest; import com.criteo.api.marketingsolutions.preview.model.PatchResultCampaignListResponse; import com.criteo.api.marketingsolutions.preview.model.RequestsAdSetId; -import com.criteo.api.marketingsolutions.preview.model.RequestsPatchAdSetV24Q1; -import com.criteo.api.marketingsolutions.preview.model.ResponseReadAdSetV24Q1; +import com.criteo.api.marketingsolutions.preview.model.RequestsPatchAdSetV24Q3; +import com.criteo.api.marketingsolutions.preview.model.ResponseReadAdSetV24Q3; import com.criteo.api.marketingsolutions.preview.model.ResponsesAdSetId; -import com.criteo.api.marketingsolutions.preview.model.ResponsesAdSetIdV24Q1; -import com.criteo.api.marketingsolutions.preview.model.ResponsesReadAdSetV24Q1; +import com.criteo.api.marketingsolutions.preview.model.ResponsesAdSetIdV24Q3; +import com.criteo.api.marketingsolutions.preview.model.ResponsesReadAdSetV24Q3; import com.criteo.api.marketingsolutions.preview.model.SetAdSetTargetingDealIdsRequest; import com.criteo.api.marketingsolutions.preview.model.SetAdSetTargetingVideoPositioningRequest; import com.criteo.api.marketingsolutions.preview.model.SupplyVendorListResponse; @@ -112,8 +112,8 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for createAdSetV24Q1 - * @param createAdSetV24Q1Request the ad sets to create (required) + * Build call for createAdSetV24Q3 + * @param createAdSetV24Q3Request the ad sets to create (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -125,7 +125,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 401 The API client is not properly authenticated. - */ - public okhttp3.Call createAdSetV24Q1Call(CreateAdSetV24Q1Request createAdSetV24Q1Request, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAdSetV24Q3Call(CreateAdSetV24Q3Request createAdSetV24Q3Request, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -139,7 +139,7 @@ public okhttp3.Call createAdSetV24Q1Call(CreateAdSetV24Q1Request createAdSetV24Q basePath = null; } - Object localVarPostBody = createAdSetV24Q1Request; + Object localVarPostBody = createAdSetV24Q3Request; // create path and map variables String localVarPath = "/preview/marketing-solutions/ad-sets"; @@ -176,21 +176,21 @@ public okhttp3.Call createAdSetV24Q1Call(CreateAdSetV24Q1Request createAdSetV24Q } @SuppressWarnings("rawtypes") - private okhttp3.Call createAdSetV24Q1ValidateBeforeCall(CreateAdSetV24Q1Request createAdSetV24Q1Request, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'createAdSetV24Q1Request' is set - if (createAdSetV24Q1Request == null) { - throw new ApiException("Missing the required parameter 'createAdSetV24Q1Request' when calling createAdSetV24Q1(Async)"); + private okhttp3.Call createAdSetV24Q3ValidateBeforeCall(CreateAdSetV24Q3Request createAdSetV24Q3Request, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'createAdSetV24Q3Request' is set + if (createAdSetV24Q3Request == null) { + throw new ApiException("Missing the required parameter 'createAdSetV24Q3Request' when calling createAdSetV24Q3(Async)"); } - return createAdSetV24Q1Call(createAdSetV24Q1Request, _callback); + return createAdSetV24Q3Call(createAdSetV24Q3Request, _callback); } /** * * Create the specified ad set - * @param createAdSetV24Q1Request the ad sets to create (required) - * @return ResponseReadAdSetV24Q1 + * @param createAdSetV24Q3Request the ad sets to create (required) + * @return ResponseReadAdSetV24Q3 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -200,16 +200,16 @@ private okhttp3.Call createAdSetV24Q1ValidateBeforeCall(CreateAdSetV24Q1Request
401 The API client is not properly authenticated. -
*/ - public ResponseReadAdSetV24Q1 createAdSetV24Q1(CreateAdSetV24Q1Request createAdSetV24Q1Request) throws ApiException { - ApiResponse localVarResp = createAdSetV24Q1WithHttpInfo(createAdSetV24Q1Request); + public ResponseReadAdSetV24Q3 createAdSetV24Q3(CreateAdSetV24Q3Request createAdSetV24Q3Request) throws ApiException { + ApiResponse localVarResp = createAdSetV24Q3WithHttpInfo(createAdSetV24Q3Request); return localVarResp.getData(); } /** * * Create the specified ad set - * @param createAdSetV24Q1Request the ad sets to create (required) - * @return ApiResponse<ResponseReadAdSetV24Q1> + * @param createAdSetV24Q3Request the ad sets to create (required) + * @return ApiResponse<ResponseReadAdSetV24Q3> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -219,16 +219,16 @@ public ResponseReadAdSetV24Q1 createAdSetV24Q1(CreateAdSetV24Q1Request createAdS
401 The API client is not properly authenticated. -
*/ - public ApiResponse createAdSetV24Q1WithHttpInfo(CreateAdSetV24Q1Request createAdSetV24Q1Request) throws ApiException { - okhttp3.Call localVarCall = createAdSetV24Q1ValidateBeforeCall(createAdSetV24Q1Request, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createAdSetV24Q3WithHttpInfo(CreateAdSetV24Q3Request createAdSetV24Q3Request) throws ApiException { + okhttp3.Call localVarCall = createAdSetV24Q3ValidateBeforeCall(createAdSetV24Q3Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Create the specified ad set - * @param createAdSetV24Q1Request the ad sets to create (required) + * @param createAdSetV24Q3Request the ad sets to create (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -240,10 +240,10 @@ public ApiResponse createAdSetV24Q1WithHttpInfo(CreateAd 401 The API client is not properly authenticated. - */ - public okhttp3.Call createAdSetV24Q1Async(CreateAdSetV24Q1Request createAdSetV24Q1Request, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAdSetV24Q3Async(CreateAdSetV24Q3Request createAdSetV24Q3Request, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createAdSetV24Q1ValidateBeforeCall(createAdSetV24Q1Request, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createAdSetV24Q3ValidateBeforeCall(createAdSetV24Q3Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1806,7 +1806,7 @@ public okhttp3.Call getAdSetTargetingVideoPositioningAsync(String adSetId, final return localVarCall; } /** - * Build call for getAdSetV24Q1 + * Build call for getAdSetV24Q3 * @param adSetId Id of the ad set (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1819,7 +1819,7 @@ public okhttp3.Call getAdSetTargetingVideoPositioningAsync(String adSetId, final 403 The API client is not authorized to access this resource or the resource does not exist. - */ - public okhttp3.Call getAdSetV24Q1Call(String adSetId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdSetV24Q3Call(String adSetId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1867,13 +1867,13 @@ public okhttp3.Call getAdSetV24Q1Call(String adSetId, final ApiCallback _callbac } @SuppressWarnings("rawtypes") - private okhttp3.Call getAdSetV24Q1ValidateBeforeCall(String adSetId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAdSetV24Q3ValidateBeforeCall(String adSetId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'adSetId' is set if (adSetId == null) { - throw new ApiException("Missing the required parameter 'adSetId' when calling getAdSetV24Q1(Async)"); + throw new ApiException("Missing the required parameter 'adSetId' when calling getAdSetV24Q3(Async)"); } - return getAdSetV24Q1Call(adSetId, _callback); + return getAdSetV24Q3Call(adSetId, _callback); } @@ -1881,7 +1881,7 @@ private okhttp3.Call getAdSetV24Q1ValidateBeforeCall(String adSetId, final ApiCa * * Get the data for the specified ad set * @param adSetId Id of the ad set (required) - * @return ResponseReadAdSetV24Q1 + * @return ResponseReadAdSetV24Q3 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1891,8 +1891,8 @@ private okhttp3.Call getAdSetV24Q1ValidateBeforeCall(String adSetId, final ApiCa
403 The API client is not authorized to access this resource or the resource does not exist. -
*/ - public ResponseReadAdSetV24Q1 getAdSetV24Q1(String adSetId) throws ApiException { - ApiResponse localVarResp = getAdSetV24Q1WithHttpInfo(adSetId); + public ResponseReadAdSetV24Q3 getAdSetV24Q3(String adSetId) throws ApiException { + ApiResponse localVarResp = getAdSetV24Q3WithHttpInfo(adSetId); return localVarResp.getData(); } @@ -1900,7 +1900,7 @@ public ResponseReadAdSetV24Q1 getAdSetV24Q1(String adSetId) throws ApiException * * Get the data for the specified ad set * @param adSetId Id of the ad set (required) - * @return ApiResponse<ResponseReadAdSetV24Q1> + * @return ApiResponse<ResponseReadAdSetV24Q3> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1910,9 +1910,9 @@ public ResponseReadAdSetV24Q1 getAdSetV24Q1(String adSetId) throws ApiException
403 The API client is not authorized to access this resource or the resource does not exist. -
*/ - public ApiResponse getAdSetV24Q1WithHttpInfo(String adSetId) throws ApiException { - okhttp3.Call localVarCall = getAdSetV24Q1ValidateBeforeCall(adSetId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getAdSetV24Q3WithHttpInfo(String adSetId) throws ApiException { + okhttp3.Call localVarCall = getAdSetV24Q3ValidateBeforeCall(adSetId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1931,10 +1931,10 @@ public ApiResponse getAdSetV24Q1WithHttpInfo(String adSe 403 The API client is not authorized to access this resource or the resource does not exist. - */ - public okhttp3.Call getAdSetV24Q1Async(String adSetId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdSetV24Q3Async(String adSetId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAdSetV24Q1ValidateBeforeCall(adSetId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getAdSetV24Q3ValidateBeforeCall(adSetId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3327,8 +3327,8 @@ public okhttp3.Call getSupplyVendorListAsync(final ApiCallback 403 The API client is not authorized to access this resource or the resource does not exist. - */ - public okhttp3.Call patchAdSetsV24Q1Call(RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchAdSetsV24Q3Call(RequestsPatchAdSetV24Q3 requestsPatchAdSetV24Q3, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3354,7 +3354,7 @@ public okhttp3.Call patchAdSetsV24Q1Call(RequestsPatchAdSetV24Q1 requestsPatchAd basePath = null; } - Object localVarPostBody = requestsPatchAdSetV24Q1; + Object localVarPostBody = requestsPatchAdSetV24Q3; // create path and map variables String localVarPath = "/preview/marketing-solutions/ad-sets"; @@ -3391,16 +3391,16 @@ public okhttp3.Call patchAdSetsV24Q1Call(RequestsPatchAdSetV24Q1 requestsPatchAd } @SuppressWarnings("rawtypes") - private okhttp3.Call patchAdSetsV24Q1ValidateBeforeCall(RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1, final ApiCallback _callback) throws ApiException { - return patchAdSetsV24Q1Call(requestsPatchAdSetV24Q1, _callback); + private okhttp3.Call patchAdSetsV24Q3ValidateBeforeCall(RequestsPatchAdSetV24Q3 requestsPatchAdSetV24Q3, final ApiCallback _callback) throws ApiException { + return patchAdSetsV24Q3Call(requestsPatchAdSetV24Q3, _callback); } /** * * Patch a list of AdSets. - * @param requestsPatchAdSetV24Q1 List of adsets to patch. (optional) - * @return ResponsesAdSetIdV24Q1 + * @param requestsPatchAdSetV24Q3 List of adsets to patch. (optional) + * @return ResponsesAdSetIdV24Q3 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3410,16 +3410,16 @@ private okhttp3.Call patchAdSetsV24Q1ValidateBeforeCall(RequestsPatchAdSetV24Q1
403 The API client is not authorized to access this resource or the resource does not exist. -
*/ - public ResponsesAdSetIdV24Q1 patchAdSetsV24Q1(RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1) throws ApiException { - ApiResponse localVarResp = patchAdSetsV24Q1WithHttpInfo(requestsPatchAdSetV24Q1); + public ResponsesAdSetIdV24Q3 patchAdSetsV24Q3(RequestsPatchAdSetV24Q3 requestsPatchAdSetV24Q3) throws ApiException { + ApiResponse localVarResp = patchAdSetsV24Q3WithHttpInfo(requestsPatchAdSetV24Q3); return localVarResp.getData(); } /** * * Patch a list of AdSets. - * @param requestsPatchAdSetV24Q1 List of adsets to patch. (optional) - * @return ApiResponse<ResponsesAdSetIdV24Q1> + * @param requestsPatchAdSetV24Q3 List of adsets to patch. (optional) + * @return ApiResponse<ResponsesAdSetIdV24Q3> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3429,16 +3429,16 @@ public ResponsesAdSetIdV24Q1 patchAdSetsV24Q1(RequestsPatchAdSetV24Q1 requestsPa
403 The API client is not authorized to access this resource or the resource does not exist. -
*/ - public ApiResponse patchAdSetsV24Q1WithHttpInfo(RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1) throws ApiException { - okhttp3.Call localVarCall = patchAdSetsV24Q1ValidateBeforeCall(requestsPatchAdSetV24Q1, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse patchAdSetsV24Q3WithHttpInfo(RequestsPatchAdSetV24Q3 requestsPatchAdSetV24Q3) throws ApiException { + okhttp3.Call localVarCall = patchAdSetsV24Q3ValidateBeforeCall(requestsPatchAdSetV24Q3, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Patch a list of AdSets. - * @param requestsPatchAdSetV24Q1 List of adsets to patch. (optional) + * @param requestsPatchAdSetV24Q3 List of adsets to patch. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3450,10 +3450,10 @@ public ApiResponse patchAdSetsV24Q1WithHttpInfo(RequestsP 403 The API client is not authorized to access this resource or the resource does not exist. - */ - public okhttp3.Call patchAdSetsV24Q1Async(RequestsPatchAdSetV24Q1 requestsPatchAdSetV24Q1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchAdSetsV24Q3Async(RequestsPatchAdSetV24Q3 requestsPatchAdSetV24Q3, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchAdSetsV24Q1ValidateBeforeCall(requestsPatchAdSetV24Q1, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchAdSetsV24Q3ValidateBeforeCall(requestsPatchAdSetV24Q3, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5027,8 +5027,8 @@ public okhttp3.Call putCampaignDomainRulesAsync(Integer campaignId, ApiRequestOf return localVarCall; } /** - * Build call for searchAdSetsV24Q1 - * @param adSetSearchRequestV24Q1 (optional) + * Build call for searchAdSetsV24Q3 + * @param adSetSearchRequestV24Q3 (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5041,7 +5041,7 @@ public okhttp3.Call putCampaignDomainRulesAsync(Integer campaignId, ApiRequestOf 401 The API client is not properly authenticated. - */ - public okhttp3.Call searchAdSetsV24Q1Call(AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAdSetsV24Q3Call(AdSetSearchRequestV24Q3 adSetSearchRequestV24Q3, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5055,7 +5055,7 @@ public okhttp3.Call searchAdSetsV24Q1Call(AdSetSearchRequestV24Q1 adSetSearchReq basePath = null; } - Object localVarPostBody = adSetSearchRequestV24Q1; + Object localVarPostBody = adSetSearchRequestV24Q3; // create path and map variables String localVarPath = "/preview/marketing-solutions/ad-sets/search"; @@ -5092,16 +5092,16 @@ public okhttp3.Call searchAdSetsV24Q1Call(AdSetSearchRequestV24Q1 adSetSearchReq } @SuppressWarnings("rawtypes") - private okhttp3.Call searchAdSetsV24Q1ValidateBeforeCall(AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1, final ApiCallback _callback) throws ApiException { - return searchAdSetsV24Q1Call(adSetSearchRequestV24Q1, _callback); + private okhttp3.Call searchAdSetsV24Q3ValidateBeforeCall(AdSetSearchRequestV24Q3 adSetSearchRequestV24Q3, final ApiCallback _callback) throws ApiException { + return searchAdSetsV24Q3Call(adSetSearchRequestV24Q3, _callback); } /** * * Search for ad sets - * @param adSetSearchRequestV24Q1 (optional) - * @return ResponsesReadAdSetV24Q1 + * @param adSetSearchRequestV24Q3 (optional) + * @return ResponsesReadAdSetV24Q3 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5112,16 +5112,16 @@ private okhttp3.Call searchAdSetsV24Q1ValidateBeforeCall(AdSetSearchRequestV24Q1
401 The API client is not properly authenticated. -
*/ - public ResponsesReadAdSetV24Q1 searchAdSetsV24Q1(AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1) throws ApiException { - ApiResponse localVarResp = searchAdSetsV24Q1WithHttpInfo(adSetSearchRequestV24Q1); + public ResponsesReadAdSetV24Q3 searchAdSetsV24Q3(AdSetSearchRequestV24Q3 adSetSearchRequestV24Q3) throws ApiException { + ApiResponse localVarResp = searchAdSetsV24Q3WithHttpInfo(adSetSearchRequestV24Q3); return localVarResp.getData(); } /** * * Search for ad sets - * @param adSetSearchRequestV24Q1 (optional) - * @return ApiResponse<ResponsesReadAdSetV24Q1> + * @param adSetSearchRequestV24Q3 (optional) + * @return ApiResponse<ResponsesReadAdSetV24Q3> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5132,16 +5132,16 @@ public ResponsesReadAdSetV24Q1 searchAdSetsV24Q1(AdSetSearchRequestV24Q1 adSetSe
401 The API client is not properly authenticated. -
*/ - public ApiResponse searchAdSetsV24Q1WithHttpInfo(AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1) throws ApiException { - okhttp3.Call localVarCall = searchAdSetsV24Q1ValidateBeforeCall(adSetSearchRequestV24Q1, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse searchAdSetsV24Q3WithHttpInfo(AdSetSearchRequestV24Q3 adSetSearchRequestV24Q3) throws ApiException { + okhttp3.Call localVarCall = searchAdSetsV24Q3ValidateBeforeCall(adSetSearchRequestV24Q3, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Search for ad sets - * @param adSetSearchRequestV24Q1 (optional) + * @param adSetSearchRequestV24Q3 (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5154,10 +5154,10 @@ public ApiResponse searchAdSetsV24Q1WithHttpInfo(AdSetS 401 The API client is not properly authenticated. - */ - public okhttp3.Call searchAdSetsV24Q1Async(AdSetSearchRequestV24Q1 adSetSearchRequestV24Q1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAdSetsV24Q3Async(AdSetSearchRequestV24Q3 adSetSearchRequestV24Q3, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = searchAdSetsV24Q1ValidateBeforeCall(adSetSearchRequestV24Q1, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = searchAdSetsV24Q3ValidateBeforeCall(adSetSearchRequestV24Q3, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDeliveryLimitations.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV24Q3.java similarity index 86% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDeliveryLimitations.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV24Q3.java index 85306d2a..c52fbd24 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDeliveryLimitations.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; @@ -44,13 +44,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set delivery limitations model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AdSetDeliveryLimitations { +public class AdSetDeliveryLimitationsV24Q3 { /** * Gets or Sets environments */ @@ -210,16 +210,16 @@ public OperatingSystemsEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_OPERATING_SYSTEMS) private List operatingSystems = null; - public AdSetDeliveryLimitations() { + public AdSetDeliveryLimitationsV24Q3() { } - public AdSetDeliveryLimitations environments(List environments) { + public AdSetDeliveryLimitationsV24Q3 environments(List environments) { this.environments = environments; return this; } - public AdSetDeliveryLimitations addEnvironmentsItem(EnvironmentsEnum environmentsItem) { + public AdSetDeliveryLimitationsV24Q3 addEnvironmentsItem(EnvironmentsEnum environmentsItem) { if (this.environments == null) { this.environments = null; } @@ -243,13 +243,13 @@ public void setEnvironments(List environments) { } - public AdSetDeliveryLimitations devices(List devices) { + public AdSetDeliveryLimitationsV24Q3 devices(List devices) { this.devices = devices; return this; } - public AdSetDeliveryLimitations addDevicesItem(DevicesEnum devicesItem) { + public AdSetDeliveryLimitationsV24Q3 addDevicesItem(DevicesEnum devicesItem) { if (this.devices == null) { this.devices = null; } @@ -273,13 +273,13 @@ public void setDevices(List devices) { } - public AdSetDeliveryLimitations operatingSystems(List operatingSystems) { + public AdSetDeliveryLimitationsV24Q3 operatingSystems(List operatingSystems) { this.operatingSystems = operatingSystems; return this; } - public AdSetDeliveryLimitations addOperatingSystemsItem(OperatingSystemsEnum operatingSystemsItem) { + public AdSetDeliveryLimitationsV24Q3 addOperatingSystemsItem(OperatingSystemsEnum operatingSystemsItem) { if (this.operatingSystems == null) { this.operatingSystems = null; } @@ -315,9 +315,9 @@ public void setOperatingSystems(List operatingSystems) { * * @param key name of the property * @param value value of the property - * @return the AdSetDeliveryLimitations instance itself + * @return the AdSetDeliveryLimitationsV24Q3 instance itself */ - public AdSetDeliveryLimitations putAdditionalProperty(String key, Object value) { + public AdSetDeliveryLimitationsV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -356,11 +356,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdSetDeliveryLimitations adSetDeliveryLimitations = (AdSetDeliveryLimitations) o; - return Objects.equals(this.environments, adSetDeliveryLimitations.environments) && - Objects.equals(this.devices, adSetDeliveryLimitations.devices) && - Objects.equals(this.operatingSystems, adSetDeliveryLimitations.operatingSystems)&& - Objects.equals(this.additionalProperties, adSetDeliveryLimitations.additionalProperties); + AdSetDeliveryLimitationsV24Q3 adSetDeliveryLimitationsV24Q3 = (AdSetDeliveryLimitationsV24Q3) o; + return Objects.equals(this.environments, adSetDeliveryLimitationsV24Q3.environments) && + Objects.equals(this.devices, adSetDeliveryLimitationsV24Q3.devices) && + Objects.equals(this.operatingSystems, adSetDeliveryLimitationsV24Q3.operatingSystems)&& + Objects.equals(this.additionalProperties, adSetDeliveryLimitationsV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -382,7 +382,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AdSetDeliveryLimitations {\n"); + sb.append("class AdSetDeliveryLimitationsV24Q3 {\n"); sb.append(" environments: ").append(toIndentedString(environments)).append("\n"); sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); sb.append(" operatingSystems: ").append(toIndentedString(operatingSystems)).append("\n"); @@ -421,12 +421,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AdSetDeliveryLimitations + * @throws IOException if the JSON Object is invalid with respect to AdSetDeliveryLimitationsV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!AdSetDeliveryLimitations.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetDeliveryLimitations is not found in the empty JSON string", AdSetDeliveryLimitations.openapiRequiredFields.toString())); + if (!AdSetDeliveryLimitationsV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetDeliveryLimitationsV24Q3 is not found in the empty JSON string", AdSetDeliveryLimitationsV24Q3.openapiRequiredFields.toString())); } } // ensure the optional json data is an array if present @@ -447,16 +447,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AdSetDeliveryLimitations.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AdSetDeliveryLimitations' and its subtypes + if (!AdSetDeliveryLimitationsV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AdSetDeliveryLimitationsV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AdSetDeliveryLimitations.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AdSetDeliveryLimitationsV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, AdSetDeliveryLimitations value) throws IOException { + public void write(JsonWriter out, AdSetDeliveryLimitationsV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -479,11 +479,11 @@ else if (entry.getValue() instanceof Character) } @Override - public AdSetDeliveryLimitations read(JsonReader in) throws IOException { + public AdSetDeliveryLimitationsV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - AdSetDeliveryLimitations instance = thisAdapter.fromJsonTree(jsonObj); + AdSetDeliveryLimitationsV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -510,18 +510,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of AdSetDeliveryLimitations given an JSON string + * Create an instance of AdSetDeliveryLimitationsV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of AdSetDeliveryLimitations - * @throws IOException if the JSON string is invalid with respect to AdSetDeliveryLimitations + * @return An instance of AdSetDeliveryLimitationsV24Q3 + * @throws IOException if the JSON string is invalid with respect to AdSetDeliveryLimitationsV24Q3 */ - public static AdSetDeliveryLimitations fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AdSetDeliveryLimitations.class); + public static AdSetDeliveryLimitationsV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AdSetDeliveryLimitationsV24Q3.class); } /** - * Convert an instance of AdSetDeliveryLimitations to an JSON string + * Convert an instance of AdSetDeliveryLimitationsV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetFrequencyCapping.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV24Q3.java similarity index 84% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetFrequencyCapping.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV24Q3.java index b1e604a5..59612b9c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetFrequencyCapping.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; @@ -42,13 +42,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set frequency capping model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AdSetFrequencyCapping { +public class AdSetFrequencyCappingV24Q3 { /** * Gets or Sets frequency */ @@ -108,10 +108,10 @@ public FrequencyEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_MAXIMUM_IMPRESSIONS) private Integer maximumImpressions; - public AdSetFrequencyCapping() { + public AdSetFrequencyCappingV24Q3() { } - public AdSetFrequencyCapping frequency(FrequencyEnum frequency) { + public AdSetFrequencyCappingV24Q3 frequency(FrequencyEnum frequency) { this.frequency = frequency; return this; @@ -133,7 +133,7 @@ public void setFrequency(FrequencyEnum frequency) { } - public AdSetFrequencyCapping maximumImpressions(Integer maximumImpressions) { + public AdSetFrequencyCappingV24Q3 maximumImpressions(Integer maximumImpressions) { this.maximumImpressions = maximumImpressions; return this; @@ -167,9 +167,9 @@ public void setMaximumImpressions(Integer maximumImpressions) { * * @param key name of the property * @param value value of the property - * @return the AdSetFrequencyCapping instance itself + * @return the AdSetFrequencyCappingV24Q3 instance itself */ - public AdSetFrequencyCapping putAdditionalProperty(String key, Object value) { + public AdSetFrequencyCappingV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -208,10 +208,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdSetFrequencyCapping adSetFrequencyCapping = (AdSetFrequencyCapping) o; - return Objects.equals(this.frequency, adSetFrequencyCapping.frequency) && - Objects.equals(this.maximumImpressions, adSetFrequencyCapping.maximumImpressions)&& - Objects.equals(this.additionalProperties, adSetFrequencyCapping.additionalProperties); + AdSetFrequencyCappingV24Q3 adSetFrequencyCappingV24Q3 = (AdSetFrequencyCappingV24Q3) o; + return Objects.equals(this.frequency, adSetFrequencyCappingV24Q3.frequency) && + Objects.equals(this.maximumImpressions, adSetFrequencyCappingV24Q3.maximumImpressions)&& + Objects.equals(this.additionalProperties, adSetFrequencyCappingV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -233,7 +233,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AdSetFrequencyCapping {\n"); + sb.append("class AdSetFrequencyCappingV24Q3 {\n"); sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n"); sb.append(" maximumImpressions: ").append(toIndentedString(maximumImpressions)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -270,12 +270,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AdSetFrequencyCapping + * @throws IOException if the JSON Object is invalid with respect to AdSetFrequencyCappingV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!AdSetFrequencyCapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetFrequencyCapping is not found in the empty JSON string", AdSetFrequencyCapping.openapiRequiredFields.toString())); + if (!AdSetFrequencyCappingV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetFrequencyCappingV24Q3 is not found in the empty JSON string", AdSetFrequencyCappingV24Q3.openapiRequiredFields.toString())); } } if ((jsonObj.get("frequency") != null && !jsonObj.get("frequency").isJsonNull()) && !jsonObj.get("frequency").isJsonPrimitive()) { @@ -287,16 +287,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AdSetFrequencyCapping.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AdSetFrequencyCapping' and its subtypes + if (!AdSetFrequencyCappingV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AdSetFrequencyCappingV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AdSetFrequencyCapping.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AdSetFrequencyCappingV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, AdSetFrequencyCapping value) throws IOException { + public void write(JsonWriter out, AdSetFrequencyCappingV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -319,11 +319,11 @@ else if (entry.getValue() instanceof Character) } @Override - public AdSetFrequencyCapping read(JsonReader in) throws IOException { + public AdSetFrequencyCappingV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - AdSetFrequencyCapping instance = thisAdapter.fromJsonTree(jsonObj); + AdSetFrequencyCappingV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -350,18 +350,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of AdSetFrequencyCapping given an JSON string + * Create an instance of AdSetFrequencyCappingV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of AdSetFrequencyCapping - * @throws IOException if the JSON string is invalid with respect to AdSetFrequencyCapping + * @return An instance of AdSetFrequencyCappingV24Q3 + * @throws IOException if the JSON string is invalid with respect to AdSetFrequencyCappingV24Q3 */ - public static AdSetFrequencyCapping fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AdSetFrequencyCapping.class); + public static AdSetFrequencyCappingV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AdSetFrequencyCappingV24Q3.class); } /** - * Convert an instance of AdSetFrequencyCapping to an JSON string + * Convert an instance of AdSetFrequencyCappingV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetGeoLocation.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV24Q3.java similarity index 74% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetGeoLocation.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV24Q3.java index c40405b3..1c304e4b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetGeoLocation.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableAdSetTargetingRule; +import com.criteo.api.marketingsolutions.preview.model.NillableAdSetTargetingRuleV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,29 +42,29 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set geolocation model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AdSetGeoLocation { +public class AdSetGeoLocationV24Q3 { public static final String SERIALIZED_NAME_COUNTRIES = "countries"; @SerializedName(SERIALIZED_NAME_COUNTRIES) - private NillableAdSetTargetingRule countries; + private NillableAdSetTargetingRuleV24Q3 countries; public static final String SERIALIZED_NAME_SUBDIVISIONS = "subdivisions"; @SerializedName(SERIALIZED_NAME_SUBDIVISIONS) - private NillableAdSetTargetingRule subdivisions; + private NillableAdSetTargetingRuleV24Q3 subdivisions; public static final String SERIALIZED_NAME_ZIP_CODES = "zipCodes"; @SerializedName(SERIALIZED_NAME_ZIP_CODES) - private NillableAdSetTargetingRule zipCodes; + private NillableAdSetTargetingRuleV24Q3 zipCodes; - public AdSetGeoLocation() { + public AdSetGeoLocationV24Q3() { } - public AdSetGeoLocation countries(NillableAdSetTargetingRule countries) { + public AdSetGeoLocationV24Q3 countries(NillableAdSetTargetingRuleV24Q3 countries) { this.countries = countries; return this; @@ -76,17 +76,17 @@ public AdSetGeoLocation countries(NillableAdSetTargetingRule countries) { **/ @javax.annotation.Nullable - public NillableAdSetTargetingRule getCountries() { + public NillableAdSetTargetingRuleV24Q3 getCountries() { return countries; } - public void setCountries(NillableAdSetTargetingRule countries) { + public void setCountries(NillableAdSetTargetingRuleV24Q3 countries) { this.countries = countries; } - public AdSetGeoLocation subdivisions(NillableAdSetTargetingRule subdivisions) { + public AdSetGeoLocationV24Q3 subdivisions(NillableAdSetTargetingRuleV24Q3 subdivisions) { this.subdivisions = subdivisions; return this; @@ -98,17 +98,17 @@ public AdSetGeoLocation subdivisions(NillableAdSetTargetingRule subdivisions) { **/ @javax.annotation.Nullable - public NillableAdSetTargetingRule getSubdivisions() { + public NillableAdSetTargetingRuleV24Q3 getSubdivisions() { return subdivisions; } - public void setSubdivisions(NillableAdSetTargetingRule subdivisions) { + public void setSubdivisions(NillableAdSetTargetingRuleV24Q3 subdivisions) { this.subdivisions = subdivisions; } - public AdSetGeoLocation zipCodes(NillableAdSetTargetingRule zipCodes) { + public AdSetGeoLocationV24Q3 zipCodes(NillableAdSetTargetingRuleV24Q3 zipCodes) { this.zipCodes = zipCodes; return this; @@ -120,12 +120,12 @@ public AdSetGeoLocation zipCodes(NillableAdSetTargetingRule zipCodes) { **/ @javax.annotation.Nullable - public NillableAdSetTargetingRule getZipCodes() { + public NillableAdSetTargetingRuleV24Q3 getZipCodes() { return zipCodes; } - public void setZipCodes(NillableAdSetTargetingRule zipCodes) { + public void setZipCodes(NillableAdSetTargetingRuleV24Q3 zipCodes) { this.zipCodes = zipCodes; } @@ -142,9 +142,9 @@ public void setZipCodes(NillableAdSetTargetingRule zipCodes) { * * @param key name of the property * @param value value of the property - * @return the AdSetGeoLocation instance itself + * @return the AdSetGeoLocationV24Q3 instance itself */ - public AdSetGeoLocation putAdditionalProperty(String key, Object value) { + public AdSetGeoLocationV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -183,11 +183,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdSetGeoLocation adSetGeoLocation = (AdSetGeoLocation) o; - return Objects.equals(this.countries, adSetGeoLocation.countries) && - Objects.equals(this.subdivisions, adSetGeoLocation.subdivisions) && - Objects.equals(this.zipCodes, adSetGeoLocation.zipCodes)&& - Objects.equals(this.additionalProperties, adSetGeoLocation.additionalProperties); + AdSetGeoLocationV24Q3 adSetGeoLocationV24Q3 = (AdSetGeoLocationV24Q3) o; + return Objects.equals(this.countries, adSetGeoLocationV24Q3.countries) && + Objects.equals(this.subdivisions, adSetGeoLocationV24Q3.subdivisions) && + Objects.equals(this.zipCodes, adSetGeoLocationV24Q3.zipCodes)&& + Objects.equals(this.additionalProperties, adSetGeoLocationV24Q3.additionalProperties); } @Override @@ -198,7 +198,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AdSetGeoLocation {\n"); + sb.append("class AdSetGeoLocationV24Q3 {\n"); sb.append(" countries: ").append(toIndentedString(countries)).append("\n"); sb.append(" subdivisions: ").append(toIndentedString(subdivisions)).append("\n"); sb.append(" zipCodes: ").append(toIndentedString(zipCodes)).append("\n"); @@ -237,25 +237,25 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AdSetGeoLocation + * @throws IOException if the JSON Object is invalid with respect to AdSetGeoLocationV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!AdSetGeoLocation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetGeoLocation is not found in the empty JSON string", AdSetGeoLocation.openapiRequiredFields.toString())); + if (!AdSetGeoLocationV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetGeoLocationV24Q3 is not found in the empty JSON string", AdSetGeoLocationV24Q3.openapiRequiredFields.toString())); } } // validate the optional field `countries` if (jsonObj.get("countries") != null && !jsonObj.get("countries").isJsonNull()) { - NillableAdSetTargetingRule.validateJsonObject(jsonObj.getAsJsonObject("countries")); + NillableAdSetTargetingRuleV24Q3.validateJsonObject(jsonObj.getAsJsonObject("countries")); } // validate the optional field `subdivisions` if (jsonObj.get("subdivisions") != null && !jsonObj.get("subdivisions").isJsonNull()) { - NillableAdSetTargetingRule.validateJsonObject(jsonObj.getAsJsonObject("subdivisions")); + NillableAdSetTargetingRuleV24Q3.validateJsonObject(jsonObj.getAsJsonObject("subdivisions")); } // validate the optional field `zipCodes` if (jsonObj.get("zipCodes") != null && !jsonObj.get("zipCodes").isJsonNull()) { - NillableAdSetTargetingRule.validateJsonObject(jsonObj.getAsJsonObject("zipCodes")); + NillableAdSetTargetingRuleV24Q3.validateJsonObject(jsonObj.getAsJsonObject("zipCodes")); } } @@ -263,16 +263,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AdSetGeoLocation.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AdSetGeoLocation' and its subtypes + if (!AdSetGeoLocationV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AdSetGeoLocationV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AdSetGeoLocation.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AdSetGeoLocationV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, AdSetGeoLocation value) throws IOException { + public void write(JsonWriter out, AdSetGeoLocationV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -295,11 +295,11 @@ else if (entry.getValue() instanceof Character) } @Override - public AdSetGeoLocation read(JsonReader in) throws IOException { + public AdSetGeoLocationV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - AdSetGeoLocation instance = thisAdapter.fromJsonTree(jsonObj); + AdSetGeoLocationV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -326,18 +326,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of AdSetGeoLocation given an JSON string + * Create an instance of AdSetGeoLocationV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of AdSetGeoLocation - * @throws IOException if the JSON string is invalid with respect to AdSetGeoLocation + * @return An instance of AdSetGeoLocationV24Q3 + * @throws IOException if the JSON string is invalid with respect to AdSetGeoLocationV24Q3 */ - public static AdSetGeoLocation fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AdSetGeoLocation.class); + public static AdSetGeoLocationV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AdSetGeoLocationV24Q3.class); } /** - * Convert an instance of AdSetGeoLocation to an JSON string + * Convert an instance of AdSetGeoLocationV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetSearchFilter.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV24Q3.java similarity index 83% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetSearchFilter.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV24Q3.java index 8aa12943..65af2818 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetSearchFilter.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; @@ -44,13 +44,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * filter on ad set ids */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AdSetSearchFilter { +public class AdSetSearchFilterV24Q3 { public static final String SERIALIZED_NAME_AD_SET_IDS = "adSetIds"; @SerializedName(SERIALIZED_NAME_AD_SET_IDS) private List adSetIds = null; @@ -63,16 +63,16 @@ public class AdSetSearchFilter { @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) private List campaignIds = null; - public AdSetSearchFilter() { + public AdSetSearchFilterV24Q3() { } - public AdSetSearchFilter adSetIds(List adSetIds) { + public AdSetSearchFilterV24Q3 adSetIds(List adSetIds) { this.adSetIds = adSetIds; return this; } - public AdSetSearchFilter addAdSetIdsItem(String adSetIdsItem) { + public AdSetSearchFilterV24Q3 addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { this.adSetIds = null; } @@ -96,13 +96,13 @@ public void setAdSetIds(List adSetIds) { } - public AdSetSearchFilter advertiserIds(List advertiserIds) { + public AdSetSearchFilterV24Q3 advertiserIds(List advertiserIds) { this.advertiserIds = advertiserIds; return this; } - public AdSetSearchFilter addAdvertiserIdsItem(String advertiserIdsItem) { + public AdSetSearchFilterV24Q3 addAdvertiserIdsItem(String advertiserIdsItem) { if (this.advertiserIds == null) { this.advertiserIds = null; } @@ -126,13 +126,13 @@ public void setAdvertiserIds(List advertiserIds) { } - public AdSetSearchFilter campaignIds(List campaignIds) { + public AdSetSearchFilterV24Q3 campaignIds(List campaignIds) { this.campaignIds = campaignIds; return this; } - public AdSetSearchFilter addCampaignIdsItem(String campaignIdsItem) { + public AdSetSearchFilterV24Q3 addCampaignIdsItem(String campaignIdsItem) { if (this.campaignIds == null) { this.campaignIds = null; } @@ -168,9 +168,9 @@ public void setCampaignIds(List campaignIds) { * * @param key name of the property * @param value value of the property - * @return the AdSetSearchFilter instance itself + * @return the AdSetSearchFilterV24Q3 instance itself */ - public AdSetSearchFilter putAdditionalProperty(String key, Object value) { + public AdSetSearchFilterV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -209,11 +209,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdSetSearchFilter adSetSearchFilter = (AdSetSearchFilter) o; - return Objects.equals(this.adSetIds, adSetSearchFilter.adSetIds) && - Objects.equals(this.advertiserIds, adSetSearchFilter.advertiserIds) && - Objects.equals(this.campaignIds, adSetSearchFilter.campaignIds)&& - Objects.equals(this.additionalProperties, adSetSearchFilter.additionalProperties); + AdSetSearchFilterV24Q3 adSetSearchFilterV24Q3 = (AdSetSearchFilterV24Q3) o; + return Objects.equals(this.adSetIds, adSetSearchFilterV24Q3.adSetIds) && + Objects.equals(this.advertiserIds, adSetSearchFilterV24Q3.advertiserIds) && + Objects.equals(this.campaignIds, adSetSearchFilterV24Q3.campaignIds)&& + Objects.equals(this.additionalProperties, adSetSearchFilterV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -235,7 +235,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AdSetSearchFilter {\n"); + sb.append("class AdSetSearchFilterV24Q3 {\n"); sb.append(" adSetIds: ").append(toIndentedString(adSetIds)).append("\n"); sb.append(" advertiserIds: ").append(toIndentedString(advertiserIds)).append("\n"); sb.append(" campaignIds: ").append(toIndentedString(campaignIds)).append("\n"); @@ -274,12 +274,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AdSetSearchFilter + * @throws IOException if the JSON Object is invalid with respect to AdSetSearchFilterV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!AdSetSearchFilter.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetSearchFilter is not found in the empty JSON string", AdSetSearchFilter.openapiRequiredFields.toString())); + if (!AdSetSearchFilterV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetSearchFilterV24Q3 is not found in the empty JSON string", AdSetSearchFilterV24Q3.openapiRequiredFields.toString())); } } // ensure the optional json data is an array if present @@ -300,16 +300,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AdSetSearchFilter.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AdSetSearchFilter' and its subtypes + if (!AdSetSearchFilterV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AdSetSearchFilterV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AdSetSearchFilter.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AdSetSearchFilterV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, AdSetSearchFilter value) throws IOException { + public void write(JsonWriter out, AdSetSearchFilterV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -332,11 +332,11 @@ else if (entry.getValue() instanceof Character) } @Override - public AdSetSearchFilter read(JsonReader in) throws IOException { + public AdSetSearchFilterV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - AdSetSearchFilter instance = thisAdapter.fromJsonTree(jsonObj); + AdSetSearchFilterV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -363,18 +363,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of AdSetSearchFilter given an JSON string + * Create an instance of AdSetSearchFilterV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of AdSetSearchFilter - * @throws IOException if the JSON string is invalid with respect to AdSetSearchFilter + * @return An instance of AdSetSearchFilterV24Q3 + * @throws IOException if the JSON string is invalid with respect to AdSetSearchFilterV24Q3 */ - public static AdSetSearchFilter fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AdSetSearchFilter.class); + public static AdSetSearchFilterV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AdSetSearchFilterV24Q3.class); } /** - * Convert an instance of AdSetSearchFilter to an JSON string + * Convert an instance of AdSetSearchFilterV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestAdSetSearch.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV24Q3.java similarity index 76% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestAdSetSearch.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV24Q3.java index 2ac88a65..4cf7c185 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestAdSetSearch.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetSearchFilter; +import com.criteo.api.marketingsolutions.preview.model.AdSetSearchFilterV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,21 +42,21 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * request payload of the search endpoint */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RequestAdSetSearch { +public class AdSetSearchRequestV24Q3 { public static final String SERIALIZED_NAME_FILTERS = "filters"; @SerializedName(SERIALIZED_NAME_FILTERS) - private AdSetSearchFilter filters; + private AdSetSearchFilterV24Q3 filters; - public RequestAdSetSearch() { + public AdSetSearchRequestV24Q3() { } - public RequestAdSetSearch filters(AdSetSearchFilter filters) { + public AdSetSearchRequestV24Q3 filters(AdSetSearchFilterV24Q3 filters) { this.filters = filters; return this; @@ -68,12 +68,12 @@ public RequestAdSetSearch filters(AdSetSearchFilter filters) { **/ @javax.annotation.Nullable - public AdSetSearchFilter getFilters() { + public AdSetSearchFilterV24Q3 getFilters() { return filters; } - public void setFilters(AdSetSearchFilter filters) { + public void setFilters(AdSetSearchFilterV24Q3 filters) { this.filters = filters; } @@ -90,9 +90,9 @@ public void setFilters(AdSetSearchFilter filters) { * * @param key name of the property * @param value value of the property - * @return the RequestAdSetSearch instance itself + * @return the AdSetSearchRequestV24Q3 instance itself */ - public RequestAdSetSearch putAdditionalProperty(String key, Object value) { + public AdSetSearchRequestV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RequestAdSetSearch requestAdSetSearch = (RequestAdSetSearch) o; - return Objects.equals(this.filters, requestAdSetSearch.filters)&& - Objects.equals(this.additionalProperties, requestAdSetSearch.additionalProperties); + AdSetSearchRequestV24Q3 adSetSearchRequestV24Q3 = (AdSetSearchRequestV24Q3) o; + return Objects.equals(this.filters, adSetSearchRequestV24Q3.filters)&& + Objects.equals(this.additionalProperties, adSetSearchRequestV24Q3.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RequestAdSetSearch {\n"); + sb.append("class AdSetSearchRequestV24Q3 {\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -179,17 +179,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RequestAdSetSearch + * @throws IOException if the JSON Object is invalid with respect to AdSetSearchRequestV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RequestAdSetSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RequestAdSetSearch is not found in the empty JSON string", RequestAdSetSearch.openapiRequiredFields.toString())); + if (!AdSetSearchRequestV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetSearchRequestV24Q3 is not found in the empty JSON string", AdSetSearchRequestV24Q3.openapiRequiredFields.toString())); } } // validate the optional field `filters` if (jsonObj.get("filters") != null && !jsonObj.get("filters").isJsonNull()) { - AdSetSearchFilter.validateJsonObject(jsonObj.getAsJsonObject("filters")); + AdSetSearchFilterV24Q3.validateJsonObject(jsonObj.getAsJsonObject("filters")); } } @@ -197,16 +197,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RequestAdSetSearch.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RequestAdSetSearch' and its subtypes + if (!AdSetSearchRequestV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AdSetSearchRequestV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RequestAdSetSearch.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AdSetSearchRequestV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RequestAdSetSearch value) throws IOException { + public void write(JsonWriter out, AdSetSearchRequestV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -229,11 +229,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RequestAdSetSearch read(JsonReader in) throws IOException { + public AdSetSearchRequestV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RequestAdSetSearch instance = thisAdapter.fromJsonTree(jsonObj); + AdSetSearchRequestV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -260,18 +260,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RequestAdSetSearch given an JSON string + * Create an instance of AdSetSearchRequestV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of RequestAdSetSearch - * @throws IOException if the JSON string is invalid with respect to RequestAdSetSearch + * @return An instance of AdSetSearchRequestV24Q3 + * @throws IOException if the JSON string is invalid with respect to AdSetSearchRequestV24Q3 */ - public static RequestAdSetSearch fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RequestAdSetSearch.class); + public static AdSetSearchRequestV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AdSetSearchRequestV24Q3.class); } /** - * Convert an instance of RequestAdSetSearch to an JSON string + * Convert an instance of AdSetSearchRequestV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetTargetingRule.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV24Q3.java similarity index 84% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetTargetingRule.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV24Q3.java index 6bca5fd9..25ea5bc0 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetTargetingRule.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; @@ -44,13 +44,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set targeting rule model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AdSetTargetingRule { +public class AdSetTargetingRuleV24Q3 { /** * Gets or Sets operand */ @@ -108,10 +108,10 @@ public OperandEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_VALUES) private List values = null; - public AdSetTargetingRule() { + public AdSetTargetingRuleV24Q3() { } - public AdSetTargetingRule operand(OperandEnum operand) { + public AdSetTargetingRuleV24Q3 operand(OperandEnum operand) { this.operand = operand; return this; @@ -133,13 +133,13 @@ public void setOperand(OperandEnum operand) { } - public AdSetTargetingRule values(List values) { + public AdSetTargetingRuleV24Q3 values(List values) { this.values = values; return this; } - public AdSetTargetingRule addValuesItem(String valuesItem) { + public AdSetTargetingRuleV24Q3 addValuesItem(String valuesItem) { if (this.values == null) { this.values = null; } @@ -175,9 +175,9 @@ public void setValues(List values) { * * @param key name of the property * @param value value of the property - * @return the AdSetTargetingRule instance itself + * @return the AdSetTargetingRuleV24Q3 instance itself */ - public AdSetTargetingRule putAdditionalProperty(String key, Object value) { + public AdSetTargetingRuleV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -216,10 +216,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdSetTargetingRule adSetTargetingRule = (AdSetTargetingRule) o; - return Objects.equals(this.operand, adSetTargetingRule.operand) && - Objects.equals(this.values, adSetTargetingRule.values)&& - Objects.equals(this.additionalProperties, adSetTargetingRule.additionalProperties); + AdSetTargetingRuleV24Q3 adSetTargetingRuleV24Q3 = (AdSetTargetingRuleV24Q3) o; + return Objects.equals(this.operand, adSetTargetingRuleV24Q3.operand) && + Objects.equals(this.values, adSetTargetingRuleV24Q3.values)&& + Objects.equals(this.additionalProperties, adSetTargetingRuleV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -241,7 +241,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AdSetTargetingRule {\n"); + sb.append("class AdSetTargetingRuleV24Q3 {\n"); sb.append(" operand: ").append(toIndentedString(operand)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -278,12 +278,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AdSetTargetingRule + * @throws IOException if the JSON Object is invalid with respect to AdSetTargetingRuleV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!AdSetTargetingRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetTargetingRule is not found in the empty JSON string", AdSetTargetingRule.openapiRequiredFields.toString())); + if (!AdSetTargetingRuleV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetTargetingRuleV24Q3 is not found in the empty JSON string", AdSetTargetingRuleV24Q3.openapiRequiredFields.toString())); } } if ((jsonObj.get("operand") != null && !jsonObj.get("operand").isJsonNull()) && !jsonObj.get("operand").isJsonPrimitive()) { @@ -299,16 +299,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AdSetTargetingRule.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AdSetTargetingRule' and its subtypes + if (!AdSetTargetingRuleV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AdSetTargetingRuleV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AdSetTargetingRule.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AdSetTargetingRuleV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, AdSetTargetingRule value) throws IOException { + public void write(JsonWriter out, AdSetTargetingRuleV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -331,11 +331,11 @@ else if (entry.getValue() instanceof Character) } @Override - public AdSetTargetingRule read(JsonReader in) throws IOException { + public AdSetTargetingRuleV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - AdSetTargetingRule instance = thisAdapter.fromJsonTree(jsonObj); + AdSetTargetingRuleV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -362,18 +362,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of AdSetTargetingRule given an JSON string + * Create an instance of AdSetTargetingRuleV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of AdSetTargetingRule - * @throws IOException if the JSON string is invalid with respect to AdSetTargetingRule + * @return An instance of AdSetTargetingRuleV24Q3 + * @throws IOException if the JSON string is invalid with respect to AdSetTargetingRuleV24Q3 */ - public static AdSetTargetingRule fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AdSetTargetingRule.class); + public static AdSetTargetingRuleV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AdSetTargetingRuleV24Q3.class); } /** - * Convert an instance of AdSetTargetingRule to an JSON string + * Convert an instance of AdSetTargetingRuleV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetTargeting.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV24Q3.java similarity index 74% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetTargeting.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV24Q3.java index 3a25fb8f..bc838bc5 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetTargeting.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetDeliveryLimitations; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetFrequencyCapping; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetGeoLocation; +import com.criteo.api.marketingsolutions.preview.model.AdSetDeliveryLimitationsV24Q3; +import com.criteo.api.marketingsolutions.preview.model.AdSetFrequencyCappingV24Q3; +import com.criteo.api.marketingsolutions.preview.model.AdSetGeoLocationV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,29 +44,29 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set targeting model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AdSetTargeting { +public class AdSetTargetingV24Q3 { public static final String SERIALIZED_NAME_DELIVERY_LIMITATIONS = "deliveryLimitations"; @SerializedName(SERIALIZED_NAME_DELIVERY_LIMITATIONS) - private AdSetDeliveryLimitations deliveryLimitations; + private AdSetDeliveryLimitationsV24Q3 deliveryLimitations; public static final String SERIALIZED_NAME_GEO_LOCATION = "geoLocation"; @SerializedName(SERIALIZED_NAME_GEO_LOCATION) - private AdSetGeoLocation geoLocation; + private AdSetGeoLocationV24Q3 geoLocation; public static final String SERIALIZED_NAME_FREQUENCY_CAPPING = "frequencyCapping"; @SerializedName(SERIALIZED_NAME_FREQUENCY_CAPPING) - private AdSetFrequencyCapping frequencyCapping; + private AdSetFrequencyCappingV24Q3 frequencyCapping; - public AdSetTargeting() { + public AdSetTargetingV24Q3() { } - public AdSetTargeting deliveryLimitations(AdSetDeliveryLimitations deliveryLimitations) { + public AdSetTargetingV24Q3 deliveryLimitations(AdSetDeliveryLimitationsV24Q3 deliveryLimitations) { this.deliveryLimitations = deliveryLimitations; return this; @@ -78,17 +78,17 @@ public AdSetTargeting deliveryLimitations(AdSetDeliveryLimitations deliveryLimit **/ @javax.annotation.Nullable - public AdSetDeliveryLimitations getDeliveryLimitations() { + public AdSetDeliveryLimitationsV24Q3 getDeliveryLimitations() { return deliveryLimitations; } - public void setDeliveryLimitations(AdSetDeliveryLimitations deliveryLimitations) { + public void setDeliveryLimitations(AdSetDeliveryLimitationsV24Q3 deliveryLimitations) { this.deliveryLimitations = deliveryLimitations; } - public AdSetTargeting geoLocation(AdSetGeoLocation geoLocation) { + public AdSetTargetingV24Q3 geoLocation(AdSetGeoLocationV24Q3 geoLocation) { this.geoLocation = geoLocation; return this; @@ -100,17 +100,17 @@ public AdSetTargeting geoLocation(AdSetGeoLocation geoLocation) { **/ @javax.annotation.Nullable - public AdSetGeoLocation getGeoLocation() { + public AdSetGeoLocationV24Q3 getGeoLocation() { return geoLocation; } - public void setGeoLocation(AdSetGeoLocation geoLocation) { + public void setGeoLocation(AdSetGeoLocationV24Q3 geoLocation) { this.geoLocation = geoLocation; } - public AdSetTargeting frequencyCapping(AdSetFrequencyCapping frequencyCapping) { + public AdSetTargetingV24Q3 frequencyCapping(AdSetFrequencyCappingV24Q3 frequencyCapping) { this.frequencyCapping = frequencyCapping; return this; @@ -122,12 +122,12 @@ public AdSetTargeting frequencyCapping(AdSetFrequencyCapping frequencyCapping) { **/ @javax.annotation.Nullable - public AdSetFrequencyCapping getFrequencyCapping() { + public AdSetFrequencyCappingV24Q3 getFrequencyCapping() { return frequencyCapping; } - public void setFrequencyCapping(AdSetFrequencyCapping frequencyCapping) { + public void setFrequencyCapping(AdSetFrequencyCappingV24Q3 frequencyCapping) { this.frequencyCapping = frequencyCapping; } @@ -144,9 +144,9 @@ public void setFrequencyCapping(AdSetFrequencyCapping frequencyCapping) { * * @param key name of the property * @param value value of the property - * @return the AdSetTargeting instance itself + * @return the AdSetTargetingV24Q3 instance itself */ - public AdSetTargeting putAdditionalProperty(String key, Object value) { + public AdSetTargetingV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -185,11 +185,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdSetTargeting adSetTargeting = (AdSetTargeting) o; - return Objects.equals(this.deliveryLimitations, adSetTargeting.deliveryLimitations) && - Objects.equals(this.geoLocation, adSetTargeting.geoLocation) && - Objects.equals(this.frequencyCapping, adSetTargeting.frequencyCapping)&& - Objects.equals(this.additionalProperties, adSetTargeting.additionalProperties); + AdSetTargetingV24Q3 adSetTargetingV24Q3 = (AdSetTargetingV24Q3) o; + return Objects.equals(this.deliveryLimitations, adSetTargetingV24Q3.deliveryLimitations) && + Objects.equals(this.geoLocation, adSetTargetingV24Q3.geoLocation) && + Objects.equals(this.frequencyCapping, adSetTargetingV24Q3.frequencyCapping)&& + Objects.equals(this.additionalProperties, adSetTargetingV24Q3.additionalProperties); } @Override @@ -200,7 +200,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AdSetTargeting {\n"); + sb.append("class AdSetTargetingV24Q3 {\n"); sb.append(" deliveryLimitations: ").append(toIndentedString(deliveryLimitations)).append("\n"); sb.append(" geoLocation: ").append(toIndentedString(geoLocation)).append("\n"); sb.append(" frequencyCapping: ").append(toIndentedString(frequencyCapping)).append("\n"); @@ -239,25 +239,25 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AdSetTargeting + * @throws IOException if the JSON Object is invalid with respect to AdSetTargetingV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!AdSetTargeting.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetTargeting is not found in the empty JSON string", AdSetTargeting.openapiRequiredFields.toString())); + if (!AdSetTargetingV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AdSetTargetingV24Q3 is not found in the empty JSON string", AdSetTargetingV24Q3.openapiRequiredFields.toString())); } } // validate the optional field `deliveryLimitations` if (jsonObj.get("deliveryLimitations") != null && !jsonObj.get("deliveryLimitations").isJsonNull()) { - AdSetDeliveryLimitations.validateJsonObject(jsonObj.getAsJsonObject("deliveryLimitations")); + AdSetDeliveryLimitationsV24Q3.validateJsonObject(jsonObj.getAsJsonObject("deliveryLimitations")); } // validate the optional field `geoLocation` if (jsonObj.get("geoLocation") != null && !jsonObj.get("geoLocation").isJsonNull()) { - AdSetGeoLocation.validateJsonObject(jsonObj.getAsJsonObject("geoLocation")); + AdSetGeoLocationV24Q3.validateJsonObject(jsonObj.getAsJsonObject("geoLocation")); } // validate the optional field `frequencyCapping` if (jsonObj.get("frequencyCapping") != null && !jsonObj.get("frequencyCapping").isJsonNull()) { - AdSetFrequencyCapping.validateJsonObject(jsonObj.getAsJsonObject("frequencyCapping")); + AdSetFrequencyCappingV24Q3.validateJsonObject(jsonObj.getAsJsonObject("frequencyCapping")); } } @@ -265,16 +265,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AdSetTargeting.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AdSetTargeting' and its subtypes + if (!AdSetTargetingV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AdSetTargetingV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AdSetTargeting.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AdSetTargetingV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, AdSetTargeting value) throws IOException { + public void write(JsonWriter out, AdSetTargetingV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -297,11 +297,11 @@ else if (entry.getValue() instanceof Character) } @Override - public AdSetTargeting read(JsonReader in) throws IOException { + public AdSetTargetingV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - AdSetTargeting instance = thisAdapter.fromJsonTree(jsonObj); + AdSetTargetingV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -328,18 +328,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of AdSetTargeting given an JSON string + * Create an instance of AdSetTargetingV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of AdSetTargeting - * @throws IOException if the JSON string is invalid with respect to AdSetTargeting + * @return An instance of AdSetTargetingV24Q3 + * @throws IOException if the JSON string is invalid with respect to AdSetTargetingV24Q3 */ - public static AdSetTargeting fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AdSetTargeting.class); + public static AdSetTargetingV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AdSetTargetingV24Q3.class); } /** - * Convert an instance of AdSetTargeting to an JSON string + * Convert an instance of AdSetTargetingV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioning.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioning.java index 44d7d43d..704368c3 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioning.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioning.java @@ -108,6 +108,61 @@ public VideoPlacementEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_VIDEO_PLACEMENT) private List videoPlacement = null; + /** + * Gets or Sets videoPlcmt + */ + @JsonAdapter(VideoPlcmtEnum.Adapter.class) + public enum VideoPlcmtEnum { + INSTREAM("InStream"), + + ACCOMPANYINGCONTENT("AccompanyingContent"), + + INTERSTITIAL("Interstitial"), + + NOCONTENTSTANDALONE("NoContentStandalone"); + + private String value; + + VideoPlcmtEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static VideoPlcmtEnum fromValue(String value) { + for (VideoPlcmtEnum b : VideoPlcmtEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final VideoPlcmtEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public VideoPlcmtEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return VideoPlcmtEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_VIDEO_PLCMT = "videoPlcmt"; + @SerializedName(SERIALIZED_NAME_VIDEO_PLCMT) + private List videoPlcmt = null; + /** * Gets or Sets playbackMethod */ @@ -412,6 +467,36 @@ public void setVideoPlacement(List videoPlacement) { } + public AdSetTargetingVideoPositioning videoPlcmt(List videoPlcmt) { + + this.videoPlcmt = videoPlcmt; + return this; + } + + public AdSetTargetingVideoPositioning addVideoPlcmtItem(VideoPlcmtEnum videoPlcmtItem) { + if (this.videoPlcmt == null) { + this.videoPlcmt = null; + } + this.videoPlcmt.add(videoPlcmtItem); + return this; + } + + /** + * Get videoPlcmt + * @return videoPlcmt + **/ + @javax.annotation.Nullable + + public List getVideoPlcmt() { + return videoPlcmt; + } + + + public void setVideoPlcmt(List videoPlcmt) { + this.videoPlcmt = videoPlcmt; + } + + public AdSetTargetingVideoPositioning playbackMethod(List playbackMethod) { this.playbackMethod = playbackMethod; @@ -609,6 +694,7 @@ public boolean equals(Object o) { } AdSetTargetingVideoPositioning adSetTargetingVideoPositioning = (AdSetTargetingVideoPositioning) o; return Objects.equals(this.videoPlacement, adSetTargetingVideoPositioning.videoPlacement) && + Objects.equals(this.videoPlcmt, adSetTargetingVideoPositioning.videoPlcmt) && Objects.equals(this.playbackMethod, adSetTargetingVideoPositioning.playbackMethod) && Objects.equals(this.skippable, adSetTargetingVideoPositioning.skippable) && Objects.equals(this.videoInStreamPosition, adSetTargetingVideoPositioning.videoInStreamPosition) && @@ -623,7 +709,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(videoPlacement, playbackMethod, skippable, videoInStreamPosition, videoPlayerSize, videoAspectRatio, additionalProperties); + return Objects.hash(videoPlacement, videoPlcmt, playbackMethod, skippable, videoInStreamPosition, videoPlayerSize, videoAspectRatio, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -638,6 +724,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdSetTargetingVideoPositioning {\n"); sb.append(" videoPlacement: ").append(toIndentedString(videoPlacement)).append("\n"); + sb.append(" videoPlcmt: ").append(toIndentedString(videoPlcmt)).append("\n"); sb.append(" playbackMethod: ").append(toIndentedString(playbackMethod)).append("\n"); sb.append(" skippable: ").append(toIndentedString(skippable)).append("\n"); sb.append(" videoInStreamPosition: ").append(toIndentedString(videoInStreamPosition)).append("\n"); @@ -667,6 +754,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("videoPlacement"); + openapiFields.add("videoPlcmt"); openapiFields.add("playbackMethod"); openapiFields.add("skippable"); openapiFields.add("videoInStreamPosition"); @@ -694,6 +782,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("Expected the field `videoPlacement` to be an array in the JSON string but got `%s`", jsonObj.get("videoPlacement").toString())); } // ensure the optional json data is an array if present + if (jsonObj.get("videoPlcmt") != null && !jsonObj.get("videoPlcmt").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `videoPlcmt` to be an array in the JSON string but got `%s`", jsonObj.get("videoPlcmt").toString())); + } + // ensure the optional json data is an array if present if (jsonObj.get("playbackMethod") != null && !jsonObj.get("playbackMethod").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `playbackMethod` to be an array in the JSON string but got `%s`", jsonObj.get("playbackMethod").toString())); } diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentAttributes.java index cbfc8009..3f33c46c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentAttributes.java @@ -115,8 +115,6 @@ public enum IdentifierTypeEnum { GUM("gum"), - CUSTOMERID("customerid"), - PHONENUMBER("phoneNumber"); private String value; @@ -228,7 +226,7 @@ public ContactlistAmendmentAttributes addIdentifiersItem(String identifiersItem) } /** - * The users tos add or remove, each in the schema specified + * The users to add or remove, each in the schema specified * @return identifiers **/ @javax.annotation.Nonnull diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentAttributes.java index 84298987..e21fe6c5 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentAttributes.java @@ -116,8 +116,6 @@ public enum IdentifierTypeEnum { GUM("gum"), - CUSTOMERID("customerid"), - PHONENUMBER("phoneNumber"); private String value; diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBidding.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBiddingV24Q3.java similarity index 84% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBidding.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBiddingV24Q3.java index 4047acc5..968cc61a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBidding.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBiddingV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; @@ -42,13 +42,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set bidding create model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CreateAdSetBidding { +public class CreateAdSetBiddingV24Q3 { public static final String SERIALIZED_NAME_BID_AMOUNT = "bidAmount"; @SerializedName(SERIALIZED_NAME_BID_AMOUNT) private Double bidAmount; @@ -60,7 +60,7 @@ public class CreateAdSetBidding { public enum CostControllerEnum { COS("COS"), - CPC("CPC"), + MAXCPC("maxCPC"), CPI("CPI"), @@ -72,7 +72,9 @@ public enum CostControllerEnum { CPV("CPV"), - DAILYBUDGET("dailyBudget"); + DAILYBUDGET("dailyBudget"), + + TARGETCPM("targetCPM"); private String value; @@ -116,10 +118,10 @@ public CostControllerEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_COST_CONTROLLER) private CostControllerEnum costController; - public CreateAdSetBidding() { + public CreateAdSetBiddingV24Q3() { } - public CreateAdSetBidding bidAmount(Double bidAmount) { + public CreateAdSetBiddingV24Q3 bidAmount(Double bidAmount) { this.bidAmount = bidAmount; return this; @@ -141,7 +143,7 @@ public void setBidAmount(Double bidAmount) { } - public CreateAdSetBidding costController(CostControllerEnum costController) { + public CreateAdSetBiddingV24Q3 costController(CostControllerEnum costController) { this.costController = costController; return this; @@ -175,9 +177,9 @@ public void setCostController(CostControllerEnum costController) { * * @param key name of the property * @param value value of the property - * @return the CreateAdSetBidding instance itself + * @return the CreateAdSetBiddingV24Q3 instance itself */ - public CreateAdSetBidding putAdditionalProperty(String key, Object value) { + public CreateAdSetBiddingV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -216,10 +218,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateAdSetBidding createAdSetBidding = (CreateAdSetBidding) o; - return Objects.equals(this.bidAmount, createAdSetBidding.bidAmount) && - Objects.equals(this.costController, createAdSetBidding.costController)&& - Objects.equals(this.additionalProperties, createAdSetBidding.additionalProperties); + CreateAdSetBiddingV24Q3 createAdSetBiddingV24Q3 = (CreateAdSetBiddingV24Q3) o; + return Objects.equals(this.bidAmount, createAdSetBiddingV24Q3.bidAmount) && + Objects.equals(this.costController, createAdSetBiddingV24Q3.costController)&& + Objects.equals(this.additionalProperties, createAdSetBiddingV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -241,7 +243,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateAdSetBidding {\n"); + sb.append("class CreateAdSetBiddingV24Q3 {\n"); sb.append(" bidAmount: ").append(toIndentedString(bidAmount)).append("\n"); sb.append(" costController: ").append(toIndentedString(costController)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -279,17 +281,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CreateAdSetBidding + * @throws IOException if the JSON Object is invalid with respect to CreateAdSetBiddingV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CreateAdSetBidding.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetBidding is not found in the empty JSON string", CreateAdSetBidding.openapiRequiredFields.toString())); + if (!CreateAdSetBiddingV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetBiddingV24Q3 is not found in the empty JSON string", CreateAdSetBiddingV24Q3.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : CreateAdSetBidding.openapiRequiredFields) { + for (String requiredField : CreateAdSetBiddingV24Q3.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -303,16 +305,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateAdSetBidding.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateAdSetBidding' and its subtypes + if (!CreateAdSetBiddingV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateAdSetBiddingV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetBidding.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetBiddingV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CreateAdSetBidding value) throws IOException { + public void write(JsonWriter out, CreateAdSetBiddingV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -335,11 +337,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CreateAdSetBidding read(JsonReader in) throws IOException { + public CreateAdSetBiddingV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CreateAdSetBidding instance = thisAdapter.fromJsonTree(jsonObj); + CreateAdSetBiddingV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -366,18 +368,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CreateAdSetBidding given an JSON string + * Create an instance of CreateAdSetBiddingV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of CreateAdSetBidding - * @throws IOException if the JSON string is invalid with respect to CreateAdSetBidding + * @return An instance of CreateAdSetBiddingV24Q3 + * @throws IOException if the JSON string is invalid with respect to CreateAdSetBiddingV24Q3 */ - public static CreateAdSetBidding fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateAdSetBidding.class); + public static CreateAdSetBiddingV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateAdSetBiddingV24Q3.class); } /** - * Convert an instance of CreateAdSetBidding to an JSON string + * Convert an instance of CreateAdSetBiddingV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBudget.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudgetV24Q3.java similarity index 88% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBudget.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudgetV24Q3.java index 8f6fd550..d26b3cdc 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBudget.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudgetV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; @@ -42,13 +42,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set budget create model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CreateAdSetBudget { +public class CreateAdSetBudgetV24Q3 { /** * Gets or Sets budgetStrategy */ @@ -111,7 +111,9 @@ public enum BudgetRenewalEnum { MONTHLY("monthly"), - LIFETIME("lifetime"); + LIFETIME("lifetime"), + + WEEKLY("weekly"); private String value; @@ -273,10 +275,10 @@ public BudgetDeliveryWeekEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName(SERIALIZED_NAME_BUDGET_AMOUNT) private Double budgetAmount; - public CreateAdSetBudget() { + public CreateAdSetBudgetV24Q3() { } - public CreateAdSetBudget budgetStrategy(BudgetStrategyEnum budgetStrategy) { + public CreateAdSetBudgetV24Q3 budgetStrategy(BudgetStrategyEnum budgetStrategy) { this.budgetStrategy = budgetStrategy; return this; @@ -298,7 +300,7 @@ public void setBudgetStrategy(BudgetStrategyEnum budgetStrategy) { } - public CreateAdSetBudget budgetRenewal(BudgetRenewalEnum budgetRenewal) { + public CreateAdSetBudgetV24Q3 budgetRenewal(BudgetRenewalEnum budgetRenewal) { this.budgetRenewal = budgetRenewal; return this; @@ -320,7 +322,7 @@ public void setBudgetRenewal(BudgetRenewalEnum budgetRenewal) { } - public CreateAdSetBudget budgetDeliverySmoothing(BudgetDeliverySmoothingEnum budgetDeliverySmoothing) { + public CreateAdSetBudgetV24Q3 budgetDeliverySmoothing(BudgetDeliverySmoothingEnum budgetDeliverySmoothing) { this.budgetDeliverySmoothing = budgetDeliverySmoothing; return this; @@ -342,7 +344,7 @@ public void setBudgetDeliverySmoothing(BudgetDeliverySmoothingEnum budgetDeliver } - public CreateAdSetBudget budgetDeliveryWeek(BudgetDeliveryWeekEnum budgetDeliveryWeek) { + public CreateAdSetBudgetV24Q3 budgetDeliveryWeek(BudgetDeliveryWeekEnum budgetDeliveryWeek) { this.budgetDeliveryWeek = budgetDeliveryWeek; return this; @@ -364,7 +366,7 @@ public void setBudgetDeliveryWeek(BudgetDeliveryWeekEnum budgetDeliveryWeek) { } - public CreateAdSetBudget budgetAmount(Double budgetAmount) { + public CreateAdSetBudgetV24Q3 budgetAmount(Double budgetAmount) { this.budgetAmount = budgetAmount; return this; @@ -398,9 +400,9 @@ public void setBudgetAmount(Double budgetAmount) { * * @param key name of the property * @param value value of the property - * @return the CreateAdSetBudget instance itself + * @return the CreateAdSetBudgetV24Q3 instance itself */ - public CreateAdSetBudget putAdditionalProperty(String key, Object value) { + public CreateAdSetBudgetV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -439,13 +441,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateAdSetBudget createAdSetBudget = (CreateAdSetBudget) o; - return Objects.equals(this.budgetStrategy, createAdSetBudget.budgetStrategy) && - Objects.equals(this.budgetRenewal, createAdSetBudget.budgetRenewal) && - Objects.equals(this.budgetDeliverySmoothing, createAdSetBudget.budgetDeliverySmoothing) && - Objects.equals(this.budgetDeliveryWeek, createAdSetBudget.budgetDeliveryWeek) && - Objects.equals(this.budgetAmount, createAdSetBudget.budgetAmount)&& - Objects.equals(this.additionalProperties, createAdSetBudget.additionalProperties); + CreateAdSetBudgetV24Q3 createAdSetBudgetV24Q3 = (CreateAdSetBudgetV24Q3) o; + return Objects.equals(this.budgetStrategy, createAdSetBudgetV24Q3.budgetStrategy) && + Objects.equals(this.budgetRenewal, createAdSetBudgetV24Q3.budgetRenewal) && + Objects.equals(this.budgetDeliverySmoothing, createAdSetBudgetV24Q3.budgetDeliverySmoothing) && + Objects.equals(this.budgetDeliveryWeek, createAdSetBudgetV24Q3.budgetDeliveryWeek) && + Objects.equals(this.budgetAmount, createAdSetBudgetV24Q3.budgetAmount)&& + Objects.equals(this.additionalProperties, createAdSetBudgetV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -467,7 +469,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateAdSetBudget {\n"); + sb.append("class CreateAdSetBudgetV24Q3 {\n"); sb.append(" budgetStrategy: ").append(toIndentedString(budgetStrategy)).append("\n"); sb.append(" budgetRenewal: ").append(toIndentedString(budgetRenewal)).append("\n"); sb.append(" budgetDeliverySmoothing: ").append(toIndentedString(budgetDeliverySmoothing)).append("\n"); @@ -511,17 +513,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CreateAdSetBudget + * @throws IOException if the JSON Object is invalid with respect to CreateAdSetBudgetV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CreateAdSetBudget.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetBudget is not found in the empty JSON string", CreateAdSetBudget.openapiRequiredFields.toString())); + if (!CreateAdSetBudgetV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetBudgetV24Q3 is not found in the empty JSON string", CreateAdSetBudgetV24Q3.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : CreateAdSetBudget.openapiRequiredFields) { + for (String requiredField : CreateAdSetBudgetV24Q3.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -544,16 +546,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateAdSetBudget.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateAdSetBudget' and its subtypes + if (!CreateAdSetBudgetV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateAdSetBudgetV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetBudget.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetBudgetV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CreateAdSetBudget value) throws IOException { + public void write(JsonWriter out, CreateAdSetBudgetV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -576,11 +578,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CreateAdSetBudget read(JsonReader in) throws IOException { + public CreateAdSetBudgetV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CreateAdSetBudget instance = thisAdapter.fromJsonTree(jsonObj); + CreateAdSetBudgetV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -607,18 +609,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CreateAdSetBudget given an JSON string + * Create an instance of CreateAdSetBudgetV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of CreateAdSetBudget - * @throws IOException if the JSON string is invalid with respect to CreateAdSetBudget + * @return An instance of CreateAdSetBudgetV24Q3 + * @throws IOException if the JSON string is invalid with respect to CreateAdSetBudgetV24Q3 */ - public static CreateAdSetBudget fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateAdSetBudget.class); + public static CreateAdSetBudgetV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateAdSetBudgetV24Q3.class); } /** - * Convert an instance of CreateAdSetBudget to an JSON string + * Convert an instance of CreateAdSetBudgetV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetGeoLocation.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocationV24Q3.java similarity index 76% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetGeoLocation.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocationV24Q3.java index 2e9b8385..c945ba7e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetGeoLocation.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocationV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetTargetingRule; +import com.criteo.api.marketingsolutions.preview.model.AdSetTargetingRuleV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,29 +42,29 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * Geolocation configuration of the ad set */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CreateAdSetGeoLocation { +public class CreateAdSetGeoLocationV24Q3 { public static final String SERIALIZED_NAME_COUNTRIES = "countries"; @SerializedName(SERIALIZED_NAME_COUNTRIES) - private AdSetTargetingRule countries; + private AdSetTargetingRuleV24Q3 countries; public static final String SERIALIZED_NAME_SUBDIVISIONS = "subdivisions"; @SerializedName(SERIALIZED_NAME_SUBDIVISIONS) - private AdSetTargetingRule subdivisions; + private AdSetTargetingRuleV24Q3 subdivisions; public static final String SERIALIZED_NAME_ZIP_CODES = "zipCodes"; @SerializedName(SERIALIZED_NAME_ZIP_CODES) - private AdSetTargetingRule zipCodes; + private AdSetTargetingRuleV24Q3 zipCodes; - public CreateAdSetGeoLocation() { + public CreateAdSetGeoLocationV24Q3() { } - public CreateAdSetGeoLocation countries(AdSetTargetingRule countries) { + public CreateAdSetGeoLocationV24Q3 countries(AdSetTargetingRuleV24Q3 countries) { this.countries = countries; return this; @@ -76,17 +76,17 @@ public CreateAdSetGeoLocation countries(AdSetTargetingRule countries) { **/ @javax.annotation.Nullable - public AdSetTargetingRule getCountries() { + public AdSetTargetingRuleV24Q3 getCountries() { return countries; } - public void setCountries(AdSetTargetingRule countries) { + public void setCountries(AdSetTargetingRuleV24Q3 countries) { this.countries = countries; } - public CreateAdSetGeoLocation subdivisions(AdSetTargetingRule subdivisions) { + public CreateAdSetGeoLocationV24Q3 subdivisions(AdSetTargetingRuleV24Q3 subdivisions) { this.subdivisions = subdivisions; return this; @@ -98,17 +98,17 @@ public CreateAdSetGeoLocation subdivisions(AdSetTargetingRule subdivisions) { **/ @javax.annotation.Nullable - public AdSetTargetingRule getSubdivisions() { + public AdSetTargetingRuleV24Q3 getSubdivisions() { return subdivisions; } - public void setSubdivisions(AdSetTargetingRule subdivisions) { + public void setSubdivisions(AdSetTargetingRuleV24Q3 subdivisions) { this.subdivisions = subdivisions; } - public CreateAdSetGeoLocation zipCodes(AdSetTargetingRule zipCodes) { + public CreateAdSetGeoLocationV24Q3 zipCodes(AdSetTargetingRuleV24Q3 zipCodes) { this.zipCodes = zipCodes; return this; @@ -120,12 +120,12 @@ public CreateAdSetGeoLocation zipCodes(AdSetTargetingRule zipCodes) { **/ @javax.annotation.Nullable - public AdSetTargetingRule getZipCodes() { + public AdSetTargetingRuleV24Q3 getZipCodes() { return zipCodes; } - public void setZipCodes(AdSetTargetingRule zipCodes) { + public void setZipCodes(AdSetTargetingRuleV24Q3 zipCodes) { this.zipCodes = zipCodes; } @@ -142,9 +142,9 @@ public void setZipCodes(AdSetTargetingRule zipCodes) { * * @param key name of the property * @param value value of the property - * @return the CreateAdSetGeoLocation instance itself + * @return the CreateAdSetGeoLocationV24Q3 instance itself */ - public CreateAdSetGeoLocation putAdditionalProperty(String key, Object value) { + public CreateAdSetGeoLocationV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -183,11 +183,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateAdSetGeoLocation createAdSetGeoLocation = (CreateAdSetGeoLocation) o; - return Objects.equals(this.countries, createAdSetGeoLocation.countries) && - Objects.equals(this.subdivisions, createAdSetGeoLocation.subdivisions) && - Objects.equals(this.zipCodes, createAdSetGeoLocation.zipCodes)&& - Objects.equals(this.additionalProperties, createAdSetGeoLocation.additionalProperties); + CreateAdSetGeoLocationV24Q3 createAdSetGeoLocationV24Q3 = (CreateAdSetGeoLocationV24Q3) o; + return Objects.equals(this.countries, createAdSetGeoLocationV24Q3.countries) && + Objects.equals(this.subdivisions, createAdSetGeoLocationV24Q3.subdivisions) && + Objects.equals(this.zipCodes, createAdSetGeoLocationV24Q3.zipCodes)&& + Objects.equals(this.additionalProperties, createAdSetGeoLocationV24Q3.additionalProperties); } @Override @@ -198,7 +198,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateAdSetGeoLocation {\n"); + sb.append("class CreateAdSetGeoLocationV24Q3 {\n"); sb.append(" countries: ").append(toIndentedString(countries)).append("\n"); sb.append(" subdivisions: ").append(toIndentedString(subdivisions)).append("\n"); sb.append(" zipCodes: ").append(toIndentedString(zipCodes)).append("\n"); @@ -237,25 +237,25 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CreateAdSetGeoLocation + * @throws IOException if the JSON Object is invalid with respect to CreateAdSetGeoLocationV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CreateAdSetGeoLocation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetGeoLocation is not found in the empty JSON string", CreateAdSetGeoLocation.openapiRequiredFields.toString())); + if (!CreateAdSetGeoLocationV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetGeoLocationV24Q3 is not found in the empty JSON string", CreateAdSetGeoLocationV24Q3.openapiRequiredFields.toString())); } } // validate the optional field `countries` if (jsonObj.get("countries") != null && !jsonObj.get("countries").isJsonNull()) { - AdSetTargetingRule.validateJsonObject(jsonObj.getAsJsonObject("countries")); + AdSetTargetingRuleV24Q3.validateJsonObject(jsonObj.getAsJsonObject("countries")); } // validate the optional field `subdivisions` if (jsonObj.get("subdivisions") != null && !jsonObj.get("subdivisions").isJsonNull()) { - AdSetTargetingRule.validateJsonObject(jsonObj.getAsJsonObject("subdivisions")); + AdSetTargetingRuleV24Q3.validateJsonObject(jsonObj.getAsJsonObject("subdivisions")); } // validate the optional field `zipCodes` if (jsonObj.get("zipCodes") != null && !jsonObj.get("zipCodes").isJsonNull()) { - AdSetTargetingRule.validateJsonObject(jsonObj.getAsJsonObject("zipCodes")); + AdSetTargetingRuleV24Q3.validateJsonObject(jsonObj.getAsJsonObject("zipCodes")); } } @@ -263,16 +263,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateAdSetGeoLocation.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateAdSetGeoLocation' and its subtypes + if (!CreateAdSetGeoLocationV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateAdSetGeoLocationV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetGeoLocation.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetGeoLocationV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CreateAdSetGeoLocation value) throws IOException { + public void write(JsonWriter out, CreateAdSetGeoLocationV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -295,11 +295,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CreateAdSetGeoLocation read(JsonReader in) throws IOException { + public CreateAdSetGeoLocationV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CreateAdSetGeoLocation instance = thisAdapter.fromJsonTree(jsonObj); + CreateAdSetGeoLocationV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -326,18 +326,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CreateAdSetGeoLocation given an JSON string + * Create an instance of CreateAdSetGeoLocationV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of CreateAdSetGeoLocation - * @throws IOException if the JSON string is invalid with respect to CreateAdSetGeoLocation + * @return An instance of CreateAdSetGeoLocationV24Q3 + * @throws IOException if the JSON string is invalid with respect to CreateAdSetGeoLocationV24Q3 */ - public static CreateAdSetGeoLocation fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateAdSetGeoLocation.class); + public static CreateAdSetGeoLocationV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateAdSetGeoLocationV24Q3.class); } /** - * Convert an instance of CreateAdSetGeoLocation to an JSON string + * Convert an instance of CreateAdSetGeoLocationV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetSchedule.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetScheduleV24Q3.java similarity index 82% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetSchedule.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetScheduleV24Q3.java index 08af53ea..b986fcb9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetSchedule.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetScheduleV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; @@ -43,13 +43,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set schedule create model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CreateAdSetSchedule { +public class CreateAdSetScheduleV24Q3 { public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) private OffsetDateTime startDate; @@ -58,10 +58,10 @@ public class CreateAdSetSchedule { @SerializedName(SERIALIZED_NAME_END_DATE) private OffsetDateTime endDate; - public CreateAdSetSchedule() { + public CreateAdSetScheduleV24Q3() { } - public CreateAdSetSchedule startDate(OffsetDateTime startDate) { + public CreateAdSetScheduleV24Q3 startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; @@ -83,7 +83,7 @@ public void setStartDate(OffsetDateTime startDate) { } - public CreateAdSetSchedule endDate(OffsetDateTime endDate) { + public CreateAdSetScheduleV24Q3 endDate(OffsetDateTime endDate) { this.endDate = endDate; return this; @@ -117,9 +117,9 @@ public void setEndDate(OffsetDateTime endDate) { * * @param key name of the property * @param value value of the property - * @return the CreateAdSetSchedule instance itself + * @return the CreateAdSetScheduleV24Q3 instance itself */ - public CreateAdSetSchedule putAdditionalProperty(String key, Object value) { + public CreateAdSetScheduleV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -158,10 +158,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateAdSetSchedule createAdSetSchedule = (CreateAdSetSchedule) o; - return Objects.equals(this.startDate, createAdSetSchedule.startDate) && - Objects.equals(this.endDate, createAdSetSchedule.endDate)&& - Objects.equals(this.additionalProperties, createAdSetSchedule.additionalProperties); + CreateAdSetScheduleV24Q3 createAdSetScheduleV24Q3 = (CreateAdSetScheduleV24Q3) o; + return Objects.equals(this.startDate, createAdSetScheduleV24Q3.startDate) && + Objects.equals(this.endDate, createAdSetScheduleV24Q3.endDate)&& + Objects.equals(this.additionalProperties, createAdSetScheduleV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -183,7 +183,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateAdSetSchedule {\n"); + sb.append("class CreateAdSetScheduleV24Q3 {\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -221,17 +221,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CreateAdSetSchedule + * @throws IOException if the JSON Object is invalid with respect to CreateAdSetScheduleV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CreateAdSetSchedule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetSchedule is not found in the empty JSON string", CreateAdSetSchedule.openapiRequiredFields.toString())); + if (!CreateAdSetScheduleV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetScheduleV24Q3 is not found in the empty JSON string", CreateAdSetScheduleV24Q3.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : CreateAdSetSchedule.openapiRequiredFields) { + for (String requiredField : CreateAdSetScheduleV24Q3.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -242,16 +242,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateAdSetSchedule.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateAdSetSchedule' and its subtypes + if (!CreateAdSetScheduleV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateAdSetScheduleV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetSchedule.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetScheduleV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CreateAdSetSchedule value) throws IOException { + public void write(JsonWriter out, CreateAdSetScheduleV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -274,11 +274,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CreateAdSetSchedule read(JsonReader in) throws IOException { + public CreateAdSetScheduleV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CreateAdSetSchedule instance = thisAdapter.fromJsonTree(jsonObj); + CreateAdSetScheduleV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -305,18 +305,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CreateAdSetSchedule given an JSON string + * Create an instance of CreateAdSetScheduleV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of CreateAdSetSchedule - * @throws IOException if the JSON string is invalid with respect to CreateAdSetSchedule + * @return An instance of CreateAdSetScheduleV24Q3 + * @throws IOException if the JSON string is invalid with respect to CreateAdSetScheduleV24Q3 */ - public static CreateAdSetSchedule fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateAdSetSchedule.class); + public static CreateAdSetScheduleV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateAdSetScheduleV24Q3.class); } /** - * Convert an instance of CreateAdSetSchedule to an JSON string + * Convert an instance of CreateAdSetScheduleV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetTargeting.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargetingV24Q3.java similarity index 75% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetTargeting.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargetingV24Q3.java index 408ea5e1..be130e90 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetTargeting.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargetingV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetDeliveryLimitations; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetFrequencyCapping; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetGeoLocation; +import com.criteo.api.marketingsolutions.preview.model.AdSetDeliveryLimitationsV24Q3; +import com.criteo.api.marketingsolutions.preview.model.AdSetFrequencyCappingV24Q3; +import com.criteo.api.marketingsolutions.preview.model.CreateAdSetGeoLocationV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,29 +44,29 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * Targeting configuration of the ad set */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CreateAdSetTargeting { +public class CreateAdSetTargetingV24Q3 { public static final String SERIALIZED_NAME_DELIVERY_LIMITATIONS = "deliveryLimitations"; @SerializedName(SERIALIZED_NAME_DELIVERY_LIMITATIONS) - private AdSetDeliveryLimitations deliveryLimitations; + private AdSetDeliveryLimitationsV24Q3 deliveryLimitations; public static final String SERIALIZED_NAME_GEO_LOCATION = "geoLocation"; @SerializedName(SERIALIZED_NAME_GEO_LOCATION) - private CreateAdSetGeoLocation geoLocation; + private CreateAdSetGeoLocationV24Q3 geoLocation; public static final String SERIALIZED_NAME_FREQUENCY_CAPPING = "frequencyCapping"; @SerializedName(SERIALIZED_NAME_FREQUENCY_CAPPING) - private AdSetFrequencyCapping frequencyCapping; + private AdSetFrequencyCappingV24Q3 frequencyCapping; - public CreateAdSetTargeting() { + public CreateAdSetTargetingV24Q3() { } - public CreateAdSetTargeting deliveryLimitations(AdSetDeliveryLimitations deliveryLimitations) { + public CreateAdSetTargetingV24Q3 deliveryLimitations(AdSetDeliveryLimitationsV24Q3 deliveryLimitations) { this.deliveryLimitations = deliveryLimitations; return this; @@ -78,17 +78,17 @@ public CreateAdSetTargeting deliveryLimitations(AdSetDeliveryLimitations deliver **/ @javax.annotation.Nullable - public AdSetDeliveryLimitations getDeliveryLimitations() { + public AdSetDeliveryLimitationsV24Q3 getDeliveryLimitations() { return deliveryLimitations; } - public void setDeliveryLimitations(AdSetDeliveryLimitations deliveryLimitations) { + public void setDeliveryLimitations(AdSetDeliveryLimitationsV24Q3 deliveryLimitations) { this.deliveryLimitations = deliveryLimitations; } - public CreateAdSetTargeting geoLocation(CreateAdSetGeoLocation geoLocation) { + public CreateAdSetTargetingV24Q3 geoLocation(CreateAdSetGeoLocationV24Q3 geoLocation) { this.geoLocation = geoLocation; return this; @@ -100,17 +100,17 @@ public CreateAdSetTargeting geoLocation(CreateAdSetGeoLocation geoLocation) { **/ @javax.annotation.Nullable - public CreateAdSetGeoLocation getGeoLocation() { + public CreateAdSetGeoLocationV24Q3 getGeoLocation() { return geoLocation; } - public void setGeoLocation(CreateAdSetGeoLocation geoLocation) { + public void setGeoLocation(CreateAdSetGeoLocationV24Q3 geoLocation) { this.geoLocation = geoLocation; } - public CreateAdSetTargeting frequencyCapping(AdSetFrequencyCapping frequencyCapping) { + public CreateAdSetTargetingV24Q3 frequencyCapping(AdSetFrequencyCappingV24Q3 frequencyCapping) { this.frequencyCapping = frequencyCapping; return this; @@ -122,12 +122,12 @@ public CreateAdSetTargeting frequencyCapping(AdSetFrequencyCapping frequencyCapp **/ @javax.annotation.Nonnull - public AdSetFrequencyCapping getFrequencyCapping() { + public AdSetFrequencyCappingV24Q3 getFrequencyCapping() { return frequencyCapping; } - public void setFrequencyCapping(AdSetFrequencyCapping frequencyCapping) { + public void setFrequencyCapping(AdSetFrequencyCappingV24Q3 frequencyCapping) { this.frequencyCapping = frequencyCapping; } @@ -144,9 +144,9 @@ public void setFrequencyCapping(AdSetFrequencyCapping frequencyCapping) { * * @param key name of the property * @param value value of the property - * @return the CreateAdSetTargeting instance itself + * @return the CreateAdSetTargetingV24Q3 instance itself */ - public CreateAdSetTargeting putAdditionalProperty(String key, Object value) { + public CreateAdSetTargetingV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -185,11 +185,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateAdSetTargeting createAdSetTargeting = (CreateAdSetTargeting) o; - return Objects.equals(this.deliveryLimitations, createAdSetTargeting.deliveryLimitations) && - Objects.equals(this.geoLocation, createAdSetTargeting.geoLocation) && - Objects.equals(this.frequencyCapping, createAdSetTargeting.frequencyCapping)&& - Objects.equals(this.additionalProperties, createAdSetTargeting.additionalProperties); + CreateAdSetTargetingV24Q3 createAdSetTargetingV24Q3 = (CreateAdSetTargetingV24Q3) o; + return Objects.equals(this.deliveryLimitations, createAdSetTargetingV24Q3.deliveryLimitations) && + Objects.equals(this.geoLocation, createAdSetTargetingV24Q3.geoLocation) && + Objects.equals(this.frequencyCapping, createAdSetTargetingV24Q3.frequencyCapping)&& + Objects.equals(this.additionalProperties, createAdSetTargetingV24Q3.additionalProperties); } @Override @@ -200,7 +200,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateAdSetTargeting {\n"); + sb.append("class CreateAdSetTargetingV24Q3 {\n"); sb.append(" deliveryLimitations: ").append(toIndentedString(deliveryLimitations)).append("\n"); sb.append(" geoLocation: ").append(toIndentedString(geoLocation)).append("\n"); sb.append(" frequencyCapping: ").append(toIndentedString(frequencyCapping)).append("\n"); @@ -240,47 +240,47 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CreateAdSetTargeting + * @throws IOException if the JSON Object is invalid with respect to CreateAdSetTargetingV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CreateAdSetTargeting.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetTargeting is not found in the empty JSON string", CreateAdSetTargeting.openapiRequiredFields.toString())); + if (!CreateAdSetTargetingV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetTargetingV24Q3 is not found in the empty JSON string", CreateAdSetTargetingV24Q3.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : CreateAdSetTargeting.openapiRequiredFields) { + for (String requiredField : CreateAdSetTargetingV24Q3.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } // validate the optional field `deliveryLimitations` if (jsonObj.get("deliveryLimitations") != null && !jsonObj.get("deliveryLimitations").isJsonNull()) { - AdSetDeliveryLimitations.validateJsonObject(jsonObj.getAsJsonObject("deliveryLimitations")); + AdSetDeliveryLimitationsV24Q3.validateJsonObject(jsonObj.getAsJsonObject("deliveryLimitations")); } // validate the optional field `geoLocation` if (jsonObj.get("geoLocation") != null && !jsonObj.get("geoLocation").isJsonNull()) { - CreateAdSetGeoLocation.validateJsonObject(jsonObj.getAsJsonObject("geoLocation")); + CreateAdSetGeoLocationV24Q3.validateJsonObject(jsonObj.getAsJsonObject("geoLocation")); } // validate the required field `frequencyCapping` - AdSetFrequencyCapping.validateJsonObject(jsonObj.getAsJsonObject("frequencyCapping")); + AdSetFrequencyCappingV24Q3.validateJsonObject(jsonObj.getAsJsonObject("frequencyCapping")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateAdSetTargeting.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateAdSetTargeting' and its subtypes + if (!CreateAdSetTargetingV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateAdSetTargetingV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetTargeting.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetTargetingV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CreateAdSetTargeting value) throws IOException { + public void write(JsonWriter out, CreateAdSetTargetingV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -303,11 +303,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CreateAdSetTargeting read(JsonReader in) throws IOException { + public CreateAdSetTargetingV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CreateAdSetTargeting instance = thisAdapter.fromJsonTree(jsonObj); + CreateAdSetTargetingV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -334,18 +334,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CreateAdSetTargeting given an JSON string + * Create an instance of CreateAdSetTargetingV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of CreateAdSetTargeting - * @throws IOException if the JSON string is invalid with respect to CreateAdSetTargeting + * @return An instance of CreateAdSetTargetingV24Q3 + * @throws IOException if the JSON string is invalid with respect to CreateAdSetTargetingV24Q3 */ - public static CreateAdSetTargeting fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateAdSetTargeting.class); + public static CreateAdSetTargetingV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateAdSetTargetingV24Q3.class); } /** - * Convert an instance of CreateAdSetTargeting to an JSON string + * Convert an instance of CreateAdSetTargetingV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3.java similarity index 80% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSet.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3.java index 150caa06..4b774fb6 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetBidding; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetBudget; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetSchedule; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetTargeting; +import com.criteo.api.marketingsolutions.preview.model.CreateAdSetBiddingV24Q3; +import com.criteo.api.marketingsolutions.preview.model.CreateAdSetBudgetV24Q3; +import com.criteo.api.marketingsolutions.preview.model.CreateAdSetScheduleV24Q3; +import com.criteo.api.marketingsolutions.preview.model.CreateAdSetTargetingV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,13 +45,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set create model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CreateAdSet { +public class CreateAdSetV24Q3 { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; @@ -135,19 +135,19 @@ public ObjectiveEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_SCHEDULE = "schedule"; @SerializedName(SERIALIZED_NAME_SCHEDULE) - private CreateAdSetSchedule schedule; + private CreateAdSetScheduleV24Q3 schedule; public static final String SERIALIZED_NAME_BIDDING = "bidding"; @SerializedName(SERIALIZED_NAME_BIDDING) - private CreateAdSetBidding bidding; + private CreateAdSetBiddingV24Q3 bidding; public static final String SERIALIZED_NAME_TARGETING = "targeting"; @SerializedName(SERIALIZED_NAME_TARGETING) - private CreateAdSetTargeting targeting; + private CreateAdSetTargetingV24Q3 targeting; public static final String SERIALIZED_NAME_BUDGET = "budget"; @SerializedName(SERIALIZED_NAME_BUDGET) - private CreateAdSetBudget budget; + private CreateAdSetBudgetV24Q3 budget; public static final String SERIALIZED_NAME_TRACKING_CODE = "trackingCode"; @SerializedName(SERIALIZED_NAME_TRACKING_CODE) @@ -204,10 +204,10 @@ public MediaTypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_MEDIA_TYPE) private MediaTypeEnum mediaType; - public CreateAdSet() { + public CreateAdSetV24Q3() { } - public CreateAdSet name(String name) { + public CreateAdSetV24Q3 name(String name) { this.name = name; return this; @@ -229,7 +229,7 @@ public void setName(String name) { } - public CreateAdSet datasetId(String datasetId) { + public CreateAdSetV24Q3 datasetId(String datasetId) { this.datasetId = datasetId; return this; @@ -251,7 +251,7 @@ public void setDatasetId(String datasetId) { } - public CreateAdSet campaignId(String campaignId) { + public CreateAdSetV24Q3 campaignId(String campaignId) { this.campaignId = campaignId; return this; @@ -273,7 +273,7 @@ public void setCampaignId(String campaignId) { } - public CreateAdSet objective(ObjectiveEnum objective) { + public CreateAdSetV24Q3 objective(ObjectiveEnum objective) { this.objective = objective; return this; @@ -295,7 +295,7 @@ public void setObjective(ObjectiveEnum objective) { } - public CreateAdSet schedule(CreateAdSetSchedule schedule) { + public CreateAdSetV24Q3 schedule(CreateAdSetScheduleV24Q3 schedule) { this.schedule = schedule; return this; @@ -307,17 +307,17 @@ public CreateAdSet schedule(CreateAdSetSchedule schedule) { **/ @javax.annotation.Nonnull - public CreateAdSetSchedule getSchedule() { + public CreateAdSetScheduleV24Q3 getSchedule() { return schedule; } - public void setSchedule(CreateAdSetSchedule schedule) { + public void setSchedule(CreateAdSetScheduleV24Q3 schedule) { this.schedule = schedule; } - public CreateAdSet bidding(CreateAdSetBidding bidding) { + public CreateAdSetV24Q3 bidding(CreateAdSetBiddingV24Q3 bidding) { this.bidding = bidding; return this; @@ -329,17 +329,17 @@ public CreateAdSet bidding(CreateAdSetBidding bidding) { **/ @javax.annotation.Nonnull - public CreateAdSetBidding getBidding() { + public CreateAdSetBiddingV24Q3 getBidding() { return bidding; } - public void setBidding(CreateAdSetBidding bidding) { + public void setBidding(CreateAdSetBiddingV24Q3 bidding) { this.bidding = bidding; } - public CreateAdSet targeting(CreateAdSetTargeting targeting) { + public CreateAdSetV24Q3 targeting(CreateAdSetTargetingV24Q3 targeting) { this.targeting = targeting; return this; @@ -351,17 +351,17 @@ public CreateAdSet targeting(CreateAdSetTargeting targeting) { **/ @javax.annotation.Nonnull - public CreateAdSetTargeting getTargeting() { + public CreateAdSetTargetingV24Q3 getTargeting() { return targeting; } - public void setTargeting(CreateAdSetTargeting targeting) { + public void setTargeting(CreateAdSetTargetingV24Q3 targeting) { this.targeting = targeting; } - public CreateAdSet budget(CreateAdSetBudget budget) { + public CreateAdSetV24Q3 budget(CreateAdSetBudgetV24Q3 budget) { this.budget = budget; return this; @@ -373,17 +373,17 @@ public CreateAdSet budget(CreateAdSetBudget budget) { **/ @javax.annotation.Nonnull - public CreateAdSetBudget getBudget() { + public CreateAdSetBudgetV24Q3 getBudget() { return budget; } - public void setBudget(CreateAdSetBudget budget) { + public void setBudget(CreateAdSetBudgetV24Q3 budget) { this.budget = budget; } - public CreateAdSet trackingCode(String trackingCode) { + public CreateAdSetV24Q3 trackingCode(String trackingCode) { this.trackingCode = trackingCode; return this; @@ -405,7 +405,7 @@ public void setTrackingCode(String trackingCode) { } - public CreateAdSet mediaType(MediaTypeEnum mediaType) { + public CreateAdSetV24Q3 mediaType(MediaTypeEnum mediaType) { this.mediaType = mediaType; return this; @@ -439,9 +439,9 @@ public void setMediaType(MediaTypeEnum mediaType) { * * @param key name of the property * @param value value of the property - * @return the CreateAdSet instance itself + * @return the CreateAdSetV24Q3 instance itself */ - public CreateAdSet putAdditionalProperty(String key, Object value) { + public CreateAdSetV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -480,18 +480,18 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateAdSet createAdSet = (CreateAdSet) o; - return Objects.equals(this.name, createAdSet.name) && - Objects.equals(this.datasetId, createAdSet.datasetId) && - Objects.equals(this.campaignId, createAdSet.campaignId) && - Objects.equals(this.objective, createAdSet.objective) && - Objects.equals(this.schedule, createAdSet.schedule) && - Objects.equals(this.bidding, createAdSet.bidding) && - Objects.equals(this.targeting, createAdSet.targeting) && - Objects.equals(this.budget, createAdSet.budget) && - Objects.equals(this.trackingCode, createAdSet.trackingCode) && - Objects.equals(this.mediaType, createAdSet.mediaType)&& - Objects.equals(this.additionalProperties, createAdSet.additionalProperties); + CreateAdSetV24Q3 createAdSetV24Q3 = (CreateAdSetV24Q3) o; + return Objects.equals(this.name, createAdSetV24Q3.name) && + Objects.equals(this.datasetId, createAdSetV24Q3.datasetId) && + Objects.equals(this.campaignId, createAdSetV24Q3.campaignId) && + Objects.equals(this.objective, createAdSetV24Q3.objective) && + Objects.equals(this.schedule, createAdSetV24Q3.schedule) && + Objects.equals(this.bidding, createAdSetV24Q3.bidding) && + Objects.equals(this.targeting, createAdSetV24Q3.targeting) && + Objects.equals(this.budget, createAdSetV24Q3.budget) && + Objects.equals(this.trackingCode, createAdSetV24Q3.trackingCode) && + Objects.equals(this.mediaType, createAdSetV24Q3.mediaType)&& + Objects.equals(this.additionalProperties, createAdSetV24Q3.additionalProperties); } @Override @@ -502,7 +502,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateAdSet {\n"); + sb.append("class CreateAdSetV24Q3 {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" datasetId: ").append(toIndentedString(datasetId)).append("\n"); sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); @@ -565,17 +565,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CreateAdSet + * @throws IOException if the JSON Object is invalid with respect to CreateAdSetV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CreateAdSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSet is not found in the empty JSON string", CreateAdSet.openapiRequiredFields.toString())); + if (!CreateAdSetV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetV24Q3 is not found in the empty JSON string", CreateAdSetV24Q3.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : CreateAdSet.openapiRequiredFields) { + for (String requiredField : CreateAdSetV24Q3.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -593,13 +593,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("Expected the field `objective` to be a primitive type in the JSON string but got `%s`", jsonObj.get("objective").toString())); } // validate the required field `schedule` - CreateAdSetSchedule.validateJsonObject(jsonObj.getAsJsonObject("schedule")); + CreateAdSetScheduleV24Q3.validateJsonObject(jsonObj.getAsJsonObject("schedule")); // validate the required field `bidding` - CreateAdSetBidding.validateJsonObject(jsonObj.getAsJsonObject("bidding")); + CreateAdSetBiddingV24Q3.validateJsonObject(jsonObj.getAsJsonObject("bidding")); // validate the required field `targeting` - CreateAdSetTargeting.validateJsonObject(jsonObj.getAsJsonObject("targeting")); + CreateAdSetTargetingV24Q3.validateJsonObject(jsonObj.getAsJsonObject("targeting")); // validate the required field `budget` - CreateAdSetBudget.validateJsonObject(jsonObj.getAsJsonObject("budget")); + CreateAdSetBudgetV24Q3.validateJsonObject(jsonObj.getAsJsonObject("budget")); if (!jsonObj.get("trackingCode").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `trackingCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("trackingCode").toString())); } @@ -612,16 +612,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateAdSet.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateAdSet' and its subtypes + if (!CreateAdSetV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateAdSetV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSet.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CreateAdSet value) throws IOException { + public void write(JsonWriter out, CreateAdSetV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -644,11 +644,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CreateAdSet read(JsonReader in) throws IOException { + public CreateAdSetV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CreateAdSet instance = thisAdapter.fromJsonTree(jsonObj); + CreateAdSetV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -675,18 +675,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CreateAdSet given an JSON string + * Create an instance of CreateAdSetV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of CreateAdSet - * @throws IOException if the JSON string is invalid with respect to CreateAdSet + * @return An instance of CreateAdSetV24Q3 + * @throws IOException if the JSON string is invalid with respect to CreateAdSetV24Q3 */ - public static CreateAdSet fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateAdSet.class); + public static CreateAdSetV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateAdSetV24Q3.class); } /** - * Convert an instance of CreateAdSet to an JSON string + * Convert an instance of CreateAdSetV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3Request.java similarity index 77% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetRequest.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3Request.java index 0ce27dc1..bf5603d6 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSetResource; +import com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q3Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,21 +42,21 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * Data model for an input resources */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CreateAdSetRequest { +public class CreateAdSetV24Q3Request { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private CreateAdSetResource data; + private CreateAdSetV24Q3Resource data; - public CreateAdSetRequest() { + public CreateAdSetV24Q3Request() { } - public CreateAdSetRequest data(CreateAdSetResource data) { + public CreateAdSetV24Q3Request data(CreateAdSetV24Q3Resource data) { this.data = data; return this; @@ -68,12 +68,12 @@ public CreateAdSetRequest data(CreateAdSetResource data) { **/ @javax.annotation.Nullable - public CreateAdSetResource getData() { + public CreateAdSetV24Q3Resource getData() { return data; } - public void setData(CreateAdSetResource data) { + public void setData(CreateAdSetV24Q3Resource data) { this.data = data; } @@ -90,9 +90,9 @@ public void setData(CreateAdSetResource data) { * * @param key name of the property * @param value value of the property - * @return the CreateAdSetRequest instance itself + * @return the CreateAdSetV24Q3Request instance itself */ - public CreateAdSetRequest putAdditionalProperty(String key, Object value) { + public CreateAdSetV24Q3Request putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateAdSetRequest createAdSetRequest = (CreateAdSetRequest) o; - return Objects.equals(this.data, createAdSetRequest.data)&& - Objects.equals(this.additionalProperties, createAdSetRequest.additionalProperties); + CreateAdSetV24Q3Request createAdSetV24Q3Request = (CreateAdSetV24Q3Request) o; + return Objects.equals(this.data, createAdSetV24Q3Request.data)&& + Objects.equals(this.additionalProperties, createAdSetV24Q3Request.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateAdSetRequest {\n"); + sb.append("class CreateAdSetV24Q3Request {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -179,17 +179,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CreateAdSetRequest + * @throws IOException if the JSON Object is invalid with respect to CreateAdSetV24Q3Request */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CreateAdSetRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetRequest is not found in the empty JSON string", CreateAdSetRequest.openapiRequiredFields.toString())); + if (!CreateAdSetV24Q3Request.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetV24Q3Request is not found in the empty JSON string", CreateAdSetV24Q3Request.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - CreateAdSetResource.validateJsonObject(jsonObj.getAsJsonObject("data")); + CreateAdSetV24Q3Resource.validateJsonObject(jsonObj.getAsJsonObject("data")); } } @@ -197,16 +197,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateAdSetRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateAdSetRequest' and its subtypes + if (!CreateAdSetV24Q3Request.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateAdSetV24Q3Request' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetV24Q3Request.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CreateAdSetRequest value) throws IOException { + public void write(JsonWriter out, CreateAdSetV24Q3Request value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -229,11 +229,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CreateAdSetRequest read(JsonReader in) throws IOException { + public CreateAdSetV24Q3Request read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CreateAdSetRequest instance = thisAdapter.fromJsonTree(jsonObj); + CreateAdSetV24Q3Request instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -260,18 +260,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CreateAdSetRequest given an JSON string + * Create an instance of CreateAdSetV24Q3Request given an JSON string * * @param jsonString JSON string - * @return An instance of CreateAdSetRequest - * @throws IOException if the JSON string is invalid with respect to CreateAdSetRequest + * @return An instance of CreateAdSetV24Q3Request + * @throws IOException if the JSON string is invalid with respect to CreateAdSetV24Q3Request */ - public static CreateAdSetRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateAdSetRequest.class); + public static CreateAdSetV24Q3Request fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateAdSetV24Q3Request.class); } /** - * Convert an instance of CreateAdSetRequest to an JSON string + * Convert an instance of CreateAdSetV24Q3Request to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3Resource.java similarity index 79% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetResource.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3Resource.java index 25637dbf..06f485b4 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetV24Q3Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CreateAdSet; +import com.criteo.api.marketingsolutions.preview.model.CreateAdSetV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,25 +43,25 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * Data model for a Resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CreateAdSetResource { +public class CreateAdSetV24Q3Resource { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private CreateAdSet attributes; + private CreateAdSetV24Q3 attributes; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public CreateAdSetResource() { + public CreateAdSetV24Q3Resource() { } - public CreateAdSetResource attributes(CreateAdSet attributes) { + public CreateAdSetV24Q3Resource attributes(CreateAdSetV24Q3 attributes) { this.attributes = attributes; return this; @@ -73,17 +73,17 @@ public CreateAdSetResource attributes(CreateAdSet attributes) { **/ @javax.annotation.Nullable - public CreateAdSet getAttributes() { + public CreateAdSetV24Q3 getAttributes() { return attributes; } - public void setAttributes(CreateAdSet attributes) { + public void setAttributes(CreateAdSetV24Q3 attributes) { this.attributes = attributes; } - public CreateAdSetResource type(String type) { + public CreateAdSetV24Q3Resource type(String type) { this.type = type; return this; @@ -117,9 +117,9 @@ public void setType(String type) { * * @param key name of the property * @param value value of the property - * @return the CreateAdSetResource instance itself + * @return the CreateAdSetV24Q3Resource instance itself */ - public CreateAdSetResource putAdditionalProperty(String key, Object value) { + public CreateAdSetV24Q3Resource putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -158,10 +158,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateAdSetResource createAdSetResource = (CreateAdSetResource) o; - return Objects.equals(this.attributes, createAdSetResource.attributes) && - Objects.equals(this.type, createAdSetResource.type)&& - Objects.equals(this.additionalProperties, createAdSetResource.additionalProperties); + CreateAdSetV24Q3Resource createAdSetV24Q3Resource = (CreateAdSetV24Q3Resource) o; + return Objects.equals(this.attributes, createAdSetV24Q3Resource.attributes) && + Objects.equals(this.type, createAdSetV24Q3Resource.type)&& + Objects.equals(this.additionalProperties, createAdSetV24Q3Resource.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -183,7 +183,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateAdSetResource {\n"); + sb.append("class CreateAdSetV24Q3Resource {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -220,17 +220,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CreateAdSetResource + * @throws IOException if the JSON Object is invalid with respect to CreateAdSetV24Q3Resource */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CreateAdSetResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetResource is not found in the empty JSON string", CreateAdSetResource.openapiRequiredFields.toString())); + if (!CreateAdSetV24Q3Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateAdSetV24Q3Resource is not found in the empty JSON string", CreateAdSetV24Q3Resource.openapiRequiredFields.toString())); } } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - CreateAdSet.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + CreateAdSetV24Q3.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); @@ -241,16 +241,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateAdSetResource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateAdSetResource' and its subtypes + if (!CreateAdSetV24Q3Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateAdSetV24Q3Resource' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetResource.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateAdSetV24Q3Resource.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CreateAdSetResource value) throws IOException { + public void write(JsonWriter out, CreateAdSetV24Q3Resource value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -273,11 +273,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CreateAdSetResource read(JsonReader in) throws IOException { + public CreateAdSetV24Q3Resource read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CreateAdSetResource instance = thisAdapter.fromJsonTree(jsonObj); + CreateAdSetV24Q3Resource instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -304,18 +304,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CreateAdSetResource given an JSON string + * Create an instance of CreateAdSetV24Q3Resource given an JSON string * * @param jsonString JSON string - * @return An instance of CreateAdSetResource - * @throws IOException if the JSON string is invalid with respect to CreateAdSetResource + * @return An instance of CreateAdSetV24Q3Resource + * @throws IOException if the JSON string is invalid with respect to CreateAdSetV24Q3Resource */ - public static CreateAdSetResource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateAdSetResource.class); + public static CreateAdSetV24Q3Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateAdSetV24Q3Resource.class); } /** - * Convert an instance of CreateAdSetResource to an JSON string + * Convert an instance of CreateAdSetV24Q3Resource to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableAdSetTargetingRule.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q3.java similarity index 79% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableAdSetTargetingRule.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q3.java index f626b33d..95bf0376 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableAdSetTargetingRule.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableAdSetTargetingRuleValue; +import com.criteo.api.marketingsolutions.preview.model.NillableAdSetTargetingRuleV24Q3Value; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,21 +43,21 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * structure that encapsulates an object that have valid business null values. If the structure is provided (i.e. not null), then the value in it, even null, is provided. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class NillableAdSetTargetingRule { +public class NillableAdSetTargetingRuleV24Q3 { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) - private NillableAdSetTargetingRuleValue value; + private NillableAdSetTargetingRuleV24Q3Value value; - public NillableAdSetTargetingRule() { + public NillableAdSetTargetingRuleV24Q3() { } - public NillableAdSetTargetingRule value(NillableAdSetTargetingRuleValue value) { + public NillableAdSetTargetingRuleV24Q3 value(NillableAdSetTargetingRuleV24Q3Value value) { this.value = value; return this; @@ -69,12 +69,12 @@ public NillableAdSetTargetingRule value(NillableAdSetTargetingRuleValue value) { **/ @javax.annotation.Nullable - public NillableAdSetTargetingRuleValue getValue() { + public NillableAdSetTargetingRuleV24Q3Value getValue() { return value; } - public void setValue(NillableAdSetTargetingRuleValue value) { + public void setValue(NillableAdSetTargetingRuleV24Q3Value value) { this.value = value; } @@ -91,9 +91,9 @@ public void setValue(NillableAdSetTargetingRuleValue value) { * * @param key name of the property * @param value value of the property - * @return the NillableAdSetTargetingRule instance itself + * @return the NillableAdSetTargetingRuleV24Q3 instance itself */ - public NillableAdSetTargetingRule putAdditionalProperty(String key, Object value) { + public NillableAdSetTargetingRuleV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -132,9 +132,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NillableAdSetTargetingRule nillableAdSetTargetingRule = (NillableAdSetTargetingRule) o; - return Objects.equals(this.value, nillableAdSetTargetingRule.value)&& - Objects.equals(this.additionalProperties, nillableAdSetTargetingRule.additionalProperties); + NillableAdSetTargetingRuleV24Q3 nillableAdSetTargetingRuleV24Q3 = (NillableAdSetTargetingRuleV24Q3) o; + return Objects.equals(this.value, nillableAdSetTargetingRuleV24Q3.value)&& + Objects.equals(this.additionalProperties, nillableAdSetTargetingRuleV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -156,7 +156,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class NillableAdSetTargetingRule {\n"); + sb.append("class NillableAdSetTargetingRuleV24Q3 {\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -191,17 +191,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to NillableAdSetTargetingRule + * @throws IOException if the JSON Object is invalid with respect to NillableAdSetTargetingRuleV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!NillableAdSetTargetingRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NillableAdSetTargetingRule is not found in the empty JSON string", NillableAdSetTargetingRule.openapiRequiredFields.toString())); + if (!NillableAdSetTargetingRuleV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in NillableAdSetTargetingRuleV24Q3 is not found in the empty JSON string", NillableAdSetTargetingRuleV24Q3.openapiRequiredFields.toString())); } } // validate the optional field `value` if (jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) { - NillableAdSetTargetingRuleValue.validateJsonObject(jsonObj.getAsJsonObject("value")); + NillableAdSetTargetingRuleV24Q3Value.validateJsonObject(jsonObj.getAsJsonObject("value")); } } @@ -209,16 +209,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!NillableAdSetTargetingRule.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NillableAdSetTargetingRule' and its subtypes + if (!NillableAdSetTargetingRuleV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NillableAdSetTargetingRuleV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NillableAdSetTargetingRule.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NillableAdSetTargetingRuleV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, NillableAdSetTargetingRule value) throws IOException { + public void write(JsonWriter out, NillableAdSetTargetingRuleV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -241,11 +241,11 @@ else if (entry.getValue() instanceof Character) } @Override - public NillableAdSetTargetingRule read(JsonReader in) throws IOException { + public NillableAdSetTargetingRuleV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - NillableAdSetTargetingRule instance = thisAdapter.fromJsonTree(jsonObj); + NillableAdSetTargetingRuleV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -272,18 +272,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of NillableAdSetTargetingRule given an JSON string + * Create an instance of NillableAdSetTargetingRuleV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of NillableAdSetTargetingRule - * @throws IOException if the JSON string is invalid with respect to NillableAdSetTargetingRule + * @return An instance of NillableAdSetTargetingRuleV24Q3 + * @throws IOException if the JSON string is invalid with respect to NillableAdSetTargetingRuleV24Q3 */ - public static NillableAdSetTargetingRule fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NillableAdSetTargetingRule.class); + public static NillableAdSetTargetingRuleV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NillableAdSetTargetingRuleV24Q3.class); } /** - * Convert an instance of NillableAdSetTargetingRule to an JSON string + * Convert an instance of NillableAdSetTargetingRuleV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableAdSetTargetingRuleValue.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q3Value.java similarity index 82% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableAdSetTargetingRuleValue.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q3Value.java index 53158f1b..7bb2a9d2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableAdSetTargetingRuleValue.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV24Q3Value.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; @@ -44,13 +44,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** - * NillableAdSetTargetingRuleValue + * NillableAdSetTargetingRuleV24Q3Value */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class NillableAdSetTargetingRuleValue { +public class NillableAdSetTargetingRuleV24Q3Value { /** * Gets or Sets operand */ @@ -108,10 +108,10 @@ public OperandEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_VALUES) private List values = null; - public NillableAdSetTargetingRuleValue() { + public NillableAdSetTargetingRuleV24Q3Value() { } - public NillableAdSetTargetingRuleValue operand(OperandEnum operand) { + public NillableAdSetTargetingRuleV24Q3Value operand(OperandEnum operand) { this.operand = operand; return this; @@ -133,13 +133,13 @@ public void setOperand(OperandEnum operand) { } - public NillableAdSetTargetingRuleValue values(List values) { + public NillableAdSetTargetingRuleV24Q3Value values(List values) { this.values = values; return this; } - public NillableAdSetTargetingRuleValue addValuesItem(String valuesItem) { + public NillableAdSetTargetingRuleV24Q3Value addValuesItem(String valuesItem) { if (this.values == null) { this.values = null; } @@ -175,9 +175,9 @@ public void setValues(List values) { * * @param key name of the property * @param value value of the property - * @return the NillableAdSetTargetingRuleValue instance itself + * @return the NillableAdSetTargetingRuleV24Q3Value instance itself */ - public NillableAdSetTargetingRuleValue putAdditionalProperty(String key, Object value) { + public NillableAdSetTargetingRuleV24Q3Value putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -216,10 +216,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NillableAdSetTargetingRuleValue nillableAdSetTargetingRuleValue = (NillableAdSetTargetingRuleValue) o; - return Objects.equals(this.operand, nillableAdSetTargetingRuleValue.operand) && - Objects.equals(this.values, nillableAdSetTargetingRuleValue.values)&& - Objects.equals(this.additionalProperties, nillableAdSetTargetingRuleValue.additionalProperties); + NillableAdSetTargetingRuleV24Q3Value nillableAdSetTargetingRuleV24Q3Value = (NillableAdSetTargetingRuleV24Q3Value) o; + return Objects.equals(this.operand, nillableAdSetTargetingRuleV24Q3Value.operand) && + Objects.equals(this.values, nillableAdSetTargetingRuleV24Q3Value.values)&& + Objects.equals(this.additionalProperties, nillableAdSetTargetingRuleV24Q3Value.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -241,7 +241,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class NillableAdSetTargetingRuleValue {\n"); + sb.append("class NillableAdSetTargetingRuleV24Q3Value {\n"); sb.append(" operand: ").append(toIndentedString(operand)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -278,12 +278,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to NillableAdSetTargetingRuleValue + * @throws IOException if the JSON Object is invalid with respect to NillableAdSetTargetingRuleV24Q3Value */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!NillableAdSetTargetingRuleValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NillableAdSetTargetingRuleValue is not found in the empty JSON string", NillableAdSetTargetingRuleValue.openapiRequiredFields.toString())); + if (!NillableAdSetTargetingRuleV24Q3Value.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in NillableAdSetTargetingRuleV24Q3Value is not found in the empty JSON string", NillableAdSetTargetingRuleV24Q3Value.openapiRequiredFields.toString())); } } if ((jsonObj.get("operand") != null && !jsonObj.get("operand").isJsonNull()) && !jsonObj.get("operand").isJsonPrimitive()) { @@ -299,16 +299,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!NillableAdSetTargetingRuleValue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NillableAdSetTargetingRuleValue' and its subtypes + if (!NillableAdSetTargetingRuleV24Q3Value.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NillableAdSetTargetingRuleV24Q3Value' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NillableAdSetTargetingRuleValue.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NillableAdSetTargetingRuleV24Q3Value.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, NillableAdSetTargetingRuleValue value) throws IOException { + public void write(JsonWriter out, NillableAdSetTargetingRuleV24Q3Value value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -331,11 +331,11 @@ else if (entry.getValue() instanceof Character) } @Override - public NillableAdSetTargetingRuleValue read(JsonReader in) throws IOException { + public NillableAdSetTargetingRuleV24Q3Value read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - NillableAdSetTargetingRuleValue instance = thisAdapter.fromJsonTree(jsonObj); + NillableAdSetTargetingRuleV24Q3Value instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -362,18 +362,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of NillableAdSetTargetingRuleValue given an JSON string + * Create an instance of NillableAdSetTargetingRuleV24Q3Value given an JSON string * * @param jsonString JSON string - * @return An instance of NillableAdSetTargetingRuleValue - * @throws IOException if the JSON string is invalid with respect to NillableAdSetTargetingRuleValue + * @return An instance of NillableAdSetTargetingRuleV24Q3Value + * @throws IOException if the JSON string is invalid with respect to NillableAdSetTargetingRuleV24Q3Value */ - public static NillableAdSetTargetingRuleValue fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NillableAdSetTargetingRuleValue.class); + public static NillableAdSetTargetingRuleV24Q3Value fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NillableAdSetTargetingRuleV24Q3Value.class); } /** - * Convert an instance of NillableAdSetTargetingRuleValue to an JSON string + * Convert an instance of NillableAdSetTargetingRuleV24Q3Value to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetBidding.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBiddingV24Q3.java similarity index 82% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetBidding.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBiddingV24Q3.java index 56a93df1..c7af70f7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetBidding.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBiddingV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableDecimal; +import com.criteo.api.marketingsolutions.preview.model.NillableDecimal; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,21 +43,21 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set bidding patch model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PatchAdSetBidding { +public class PatchAdSetBiddingV24Q3 { public static final String SERIALIZED_NAME_BID_AMOUNT = "bidAmount"; @SerializedName(SERIALIZED_NAME_BID_AMOUNT) private NillableDecimal bidAmount; - public PatchAdSetBidding() { + public PatchAdSetBiddingV24Q3() { } - public PatchAdSetBidding bidAmount(NillableDecimal bidAmount) { + public PatchAdSetBiddingV24Q3 bidAmount(NillableDecimal bidAmount) { this.bidAmount = bidAmount; return this; @@ -91,9 +91,9 @@ public void setBidAmount(NillableDecimal bidAmount) { * * @param key name of the property * @param value value of the property - * @return the PatchAdSetBidding instance itself + * @return the PatchAdSetBiddingV24Q3 instance itself */ - public PatchAdSetBidding putAdditionalProperty(String key, Object value) { + public PatchAdSetBiddingV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -132,9 +132,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PatchAdSetBidding patchAdSetBidding = (PatchAdSetBidding) o; - return Objects.equals(this.bidAmount, patchAdSetBidding.bidAmount)&& - Objects.equals(this.additionalProperties, patchAdSetBidding.additionalProperties); + PatchAdSetBiddingV24Q3 patchAdSetBiddingV24Q3 = (PatchAdSetBiddingV24Q3) o; + return Objects.equals(this.bidAmount, patchAdSetBiddingV24Q3.bidAmount)&& + Objects.equals(this.additionalProperties, patchAdSetBiddingV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -156,7 +156,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PatchAdSetBidding {\n"); + sb.append("class PatchAdSetBiddingV24Q3 {\n"); sb.append(" bidAmount: ").append(toIndentedString(bidAmount)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -191,12 +191,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PatchAdSetBidding + * @throws IOException if the JSON Object is invalid with respect to PatchAdSetBiddingV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!PatchAdSetBidding.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PatchAdSetBidding is not found in the empty JSON string", PatchAdSetBidding.openapiRequiredFields.toString())); + if (!PatchAdSetBiddingV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PatchAdSetBiddingV24Q3 is not found in the empty JSON string", PatchAdSetBiddingV24Q3.openapiRequiredFields.toString())); } } // validate the optional field `bidAmount` @@ -209,16 +209,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PatchAdSetBidding.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PatchAdSetBidding' and its subtypes + if (!PatchAdSetBiddingV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PatchAdSetBiddingV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PatchAdSetBidding.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PatchAdSetBiddingV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, PatchAdSetBidding value) throws IOException { + public void write(JsonWriter out, PatchAdSetBiddingV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -241,11 +241,11 @@ else if (entry.getValue() instanceof Character) } @Override - public PatchAdSetBidding read(JsonReader in) throws IOException { + public PatchAdSetBiddingV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - PatchAdSetBidding instance = thisAdapter.fromJsonTree(jsonObj); + PatchAdSetBiddingV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -272,18 +272,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of PatchAdSetBidding given an JSON string + * Create an instance of PatchAdSetBiddingV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of PatchAdSetBidding - * @throws IOException if the JSON string is invalid with respect to PatchAdSetBidding + * @return An instance of PatchAdSetBiddingV24Q3 + * @throws IOException if the JSON string is invalid with respect to PatchAdSetBiddingV24Q3 */ - public static PatchAdSetBidding fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PatchAdSetBidding.class); + public static PatchAdSetBiddingV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PatchAdSetBiddingV24Q3.class); } /** - * Convert an instance of PatchAdSetBidding to an JSON string + * Convert an instance of PatchAdSetBiddingV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetBudget.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudgetV24Q3.java similarity index 87% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetBudget.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudgetV24Q3.java index 03de9de8..931bb157 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetBudget.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudgetV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableDecimal; +import com.criteo.api.marketingsolutions.preview.model.NillableDecimal; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,13 +43,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set budget patch model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PatchAdSetBudget { +public class PatchAdSetBudgetV24Q3 { /** * Gets or Sets budgetStrategy */ @@ -112,7 +112,9 @@ public enum BudgetRenewalEnum { MONTHLY("monthly"), - LIFETIME("lifetime"); + LIFETIME("lifetime"), + + WEEKLY("weekly"); private String value; @@ -274,10 +276,10 @@ public BudgetDeliveryWeekEnum read(final JsonReader jsonReader) throws IOExcepti @SerializedName(SERIALIZED_NAME_BUDGET_AMOUNT) private NillableDecimal budgetAmount; - public PatchAdSetBudget() { + public PatchAdSetBudgetV24Q3() { } - public PatchAdSetBudget budgetStrategy(BudgetStrategyEnum budgetStrategy) { + public PatchAdSetBudgetV24Q3 budgetStrategy(BudgetStrategyEnum budgetStrategy) { this.budgetStrategy = budgetStrategy; return this; @@ -299,7 +301,7 @@ public void setBudgetStrategy(BudgetStrategyEnum budgetStrategy) { } - public PatchAdSetBudget budgetRenewal(BudgetRenewalEnum budgetRenewal) { + public PatchAdSetBudgetV24Q3 budgetRenewal(BudgetRenewalEnum budgetRenewal) { this.budgetRenewal = budgetRenewal; return this; @@ -321,7 +323,7 @@ public void setBudgetRenewal(BudgetRenewalEnum budgetRenewal) { } - public PatchAdSetBudget budgetDeliverySmoothing(BudgetDeliverySmoothingEnum budgetDeliverySmoothing) { + public PatchAdSetBudgetV24Q3 budgetDeliverySmoothing(BudgetDeliverySmoothingEnum budgetDeliverySmoothing) { this.budgetDeliverySmoothing = budgetDeliverySmoothing; return this; @@ -343,7 +345,7 @@ public void setBudgetDeliverySmoothing(BudgetDeliverySmoothingEnum budgetDeliver } - public PatchAdSetBudget budgetDeliveryWeek(BudgetDeliveryWeekEnum budgetDeliveryWeek) { + public PatchAdSetBudgetV24Q3 budgetDeliveryWeek(BudgetDeliveryWeekEnum budgetDeliveryWeek) { this.budgetDeliveryWeek = budgetDeliveryWeek; return this; @@ -365,7 +367,7 @@ public void setBudgetDeliveryWeek(BudgetDeliveryWeekEnum budgetDeliveryWeek) { } - public PatchAdSetBudget budgetAmount(NillableDecimal budgetAmount) { + public PatchAdSetBudgetV24Q3 budgetAmount(NillableDecimal budgetAmount) { this.budgetAmount = budgetAmount; return this; @@ -399,9 +401,9 @@ public void setBudgetAmount(NillableDecimal budgetAmount) { * * @param key name of the property * @param value value of the property - * @return the PatchAdSetBudget instance itself + * @return the PatchAdSetBudgetV24Q3 instance itself */ - public PatchAdSetBudget putAdditionalProperty(String key, Object value) { + public PatchAdSetBudgetV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -440,13 +442,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PatchAdSetBudget patchAdSetBudget = (PatchAdSetBudget) o; - return Objects.equals(this.budgetStrategy, patchAdSetBudget.budgetStrategy) && - Objects.equals(this.budgetRenewal, patchAdSetBudget.budgetRenewal) && - Objects.equals(this.budgetDeliverySmoothing, patchAdSetBudget.budgetDeliverySmoothing) && - Objects.equals(this.budgetDeliveryWeek, patchAdSetBudget.budgetDeliveryWeek) && - Objects.equals(this.budgetAmount, patchAdSetBudget.budgetAmount)&& - Objects.equals(this.additionalProperties, patchAdSetBudget.additionalProperties); + PatchAdSetBudgetV24Q3 patchAdSetBudgetV24Q3 = (PatchAdSetBudgetV24Q3) o; + return Objects.equals(this.budgetStrategy, patchAdSetBudgetV24Q3.budgetStrategy) && + Objects.equals(this.budgetRenewal, patchAdSetBudgetV24Q3.budgetRenewal) && + Objects.equals(this.budgetDeliverySmoothing, patchAdSetBudgetV24Q3.budgetDeliverySmoothing) && + Objects.equals(this.budgetDeliveryWeek, patchAdSetBudgetV24Q3.budgetDeliveryWeek) && + Objects.equals(this.budgetAmount, patchAdSetBudgetV24Q3.budgetAmount)&& + Objects.equals(this.additionalProperties, patchAdSetBudgetV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -468,7 +470,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PatchAdSetBudget {\n"); + sb.append("class PatchAdSetBudgetV24Q3 {\n"); sb.append(" budgetStrategy: ").append(toIndentedString(budgetStrategy)).append("\n"); sb.append(" budgetRenewal: ").append(toIndentedString(budgetRenewal)).append("\n"); sb.append(" budgetDeliverySmoothing: ").append(toIndentedString(budgetDeliverySmoothing)).append("\n"); @@ -511,12 +513,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PatchAdSetBudget + * @throws IOException if the JSON Object is invalid with respect to PatchAdSetBudgetV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!PatchAdSetBudget.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PatchAdSetBudget is not found in the empty JSON string", PatchAdSetBudget.openapiRequiredFields.toString())); + if (!PatchAdSetBudgetV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PatchAdSetBudgetV24Q3 is not found in the empty JSON string", PatchAdSetBudgetV24Q3.openapiRequiredFields.toString())); } } if ((jsonObj.get("budgetStrategy") != null && !jsonObj.get("budgetStrategy").isJsonNull()) && !jsonObj.get("budgetStrategy").isJsonPrimitive()) { @@ -541,16 +543,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PatchAdSetBudget.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PatchAdSetBudget' and its subtypes + if (!PatchAdSetBudgetV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PatchAdSetBudgetV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PatchAdSetBudget.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PatchAdSetBudgetV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, PatchAdSetBudget value) throws IOException { + public void write(JsonWriter out, PatchAdSetBudgetV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -573,11 +575,11 @@ else if (entry.getValue() instanceof Character) } @Override - public PatchAdSetBudget read(JsonReader in) throws IOException { + public PatchAdSetBudgetV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - PatchAdSetBudget instance = thisAdapter.fromJsonTree(jsonObj); + PatchAdSetBudgetV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -604,18 +606,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of PatchAdSetBudget given an JSON string + * Create an instance of PatchAdSetBudgetV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of PatchAdSetBudget - * @throws IOException if the JSON string is invalid with respect to PatchAdSetBudget + * @return An instance of PatchAdSetBudgetV24Q3 + * @throws IOException if the JSON string is invalid with respect to PatchAdSetBudgetV24Q3 */ - public static PatchAdSetBudget fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PatchAdSetBudget.class); + public static PatchAdSetBudgetV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PatchAdSetBudgetV24Q3.class); } /** - * Convert an instance of PatchAdSetBudget to an JSON string + * Convert an instance of PatchAdSetBudgetV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetScheduling.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetSchedulingV24Q3.java similarity index 82% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetScheduling.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetSchedulingV24Q3.java index 9bf3e79b..faab416b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetScheduling.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetSchedulingV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableDateTime; +import com.criteo.api.marketingsolutions.preview.model.NillableDateTime; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +42,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set schedule patch model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PatchAdSetScheduling { +public class PatchAdSetSchedulingV24Q3 { public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) private NillableDateTime startDate; @@ -57,10 +57,10 @@ public class PatchAdSetScheduling { @SerializedName(SERIALIZED_NAME_END_DATE) private NillableDateTime endDate; - public PatchAdSetScheduling() { + public PatchAdSetSchedulingV24Q3() { } - public PatchAdSetScheduling startDate(NillableDateTime startDate) { + public PatchAdSetSchedulingV24Q3 startDate(NillableDateTime startDate) { this.startDate = startDate; return this; @@ -82,7 +82,7 @@ public void setStartDate(NillableDateTime startDate) { } - public PatchAdSetScheduling endDate(NillableDateTime endDate) { + public PatchAdSetSchedulingV24Q3 endDate(NillableDateTime endDate) { this.endDate = endDate; return this; @@ -116,9 +116,9 @@ public void setEndDate(NillableDateTime endDate) { * * @param key name of the property * @param value value of the property - * @return the PatchAdSetScheduling instance itself + * @return the PatchAdSetSchedulingV24Q3 instance itself */ - public PatchAdSetScheduling putAdditionalProperty(String key, Object value) { + public PatchAdSetSchedulingV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -157,10 +157,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PatchAdSetScheduling patchAdSetScheduling = (PatchAdSetScheduling) o; - return Objects.equals(this.startDate, patchAdSetScheduling.startDate) && - Objects.equals(this.endDate, patchAdSetScheduling.endDate)&& - Objects.equals(this.additionalProperties, patchAdSetScheduling.additionalProperties); + PatchAdSetSchedulingV24Q3 patchAdSetSchedulingV24Q3 = (PatchAdSetSchedulingV24Q3) o; + return Objects.equals(this.startDate, patchAdSetSchedulingV24Q3.startDate) && + Objects.equals(this.endDate, patchAdSetSchedulingV24Q3.endDate)&& + Objects.equals(this.additionalProperties, patchAdSetSchedulingV24Q3.additionalProperties); } @Override @@ -171,7 +171,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PatchAdSetScheduling {\n"); + sb.append("class PatchAdSetSchedulingV24Q3 {\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -208,12 +208,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PatchAdSetScheduling + * @throws IOException if the JSON Object is invalid with respect to PatchAdSetSchedulingV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!PatchAdSetScheduling.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PatchAdSetScheduling is not found in the empty JSON string", PatchAdSetScheduling.openapiRequiredFields.toString())); + if (!PatchAdSetSchedulingV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PatchAdSetSchedulingV24Q3 is not found in the empty JSON string", PatchAdSetSchedulingV24Q3.openapiRequiredFields.toString())); } } // validate the optional field `startDate` @@ -230,16 +230,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PatchAdSetScheduling.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PatchAdSetScheduling' and its subtypes + if (!PatchAdSetSchedulingV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PatchAdSetSchedulingV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PatchAdSetScheduling.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PatchAdSetSchedulingV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, PatchAdSetScheduling value) throws IOException { + public void write(JsonWriter out, PatchAdSetSchedulingV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -262,11 +262,11 @@ else if (entry.getValue() instanceof Character) } @Override - public PatchAdSetScheduling read(JsonReader in) throws IOException { + public PatchAdSetSchedulingV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - PatchAdSetScheduling instance = thisAdapter.fromJsonTree(jsonObj); + PatchAdSetSchedulingV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -293,18 +293,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of PatchAdSetScheduling given an JSON string + * Create an instance of PatchAdSetSchedulingV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of PatchAdSetScheduling - * @throws IOException if the JSON string is invalid with respect to PatchAdSetScheduling + * @return An instance of PatchAdSetSchedulingV24Q3 + * @throws IOException if the JSON string is invalid with respect to PatchAdSetSchedulingV24Q3 */ - public static PatchAdSetScheduling fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PatchAdSetScheduling.class); + public static PatchAdSetSchedulingV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PatchAdSetSchedulingV24Q3.class); } /** - * Convert an instance of PatchAdSetScheduling to an JSON string + * Convert an instance of PatchAdSetSchedulingV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetV24Q3.java similarity index 75% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSet.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetV24Q3.java index 7ef74887..700da95a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetTargeting; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetBidding; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetBudget; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSetScheduling; +import com.criteo.api.marketingsolutions.preview.model.AdSetTargetingV24Q3; +import com.criteo.api.marketingsolutions.preview.model.PatchAdSetBiddingV24Q3; +import com.criteo.api.marketingsolutions.preview.model.PatchAdSetBudgetV24Q3; +import com.criteo.api.marketingsolutions.preview.model.PatchAdSetSchedulingV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,37 +46,37 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set patch model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PatchAdSet { +public class PatchAdSetV24Q3 { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; public static final String SERIALIZED_NAME_SCHEDULING = "scheduling"; @SerializedName(SERIALIZED_NAME_SCHEDULING) - private PatchAdSetScheduling scheduling; + private PatchAdSetSchedulingV24Q3 scheduling; public static final String SERIALIZED_NAME_BIDDING = "bidding"; @SerializedName(SERIALIZED_NAME_BIDDING) - private PatchAdSetBidding bidding; + private PatchAdSetBiddingV24Q3 bidding; public static final String SERIALIZED_NAME_TARGETING = "targeting"; @SerializedName(SERIALIZED_NAME_TARGETING) - private AdSetTargeting targeting; + private AdSetTargetingV24Q3 targeting; public static final String SERIALIZED_NAME_BUDGET = "budget"; @SerializedName(SERIALIZED_NAME_BUDGET) - private PatchAdSetBudget budget; + private PatchAdSetBudgetV24Q3 budget; - public PatchAdSet() { + public PatchAdSetV24Q3() { } - public PatchAdSet name(String name) { + public PatchAdSetV24Q3 name(String name) { this.name = name; return this; @@ -98,7 +98,7 @@ public void setName(String name) { } - public PatchAdSet scheduling(PatchAdSetScheduling scheduling) { + public PatchAdSetV24Q3 scheduling(PatchAdSetSchedulingV24Q3 scheduling) { this.scheduling = scheduling; return this; @@ -110,17 +110,17 @@ public PatchAdSet scheduling(PatchAdSetScheduling scheduling) { **/ @javax.annotation.Nullable - public PatchAdSetScheduling getScheduling() { + public PatchAdSetSchedulingV24Q3 getScheduling() { return scheduling; } - public void setScheduling(PatchAdSetScheduling scheduling) { + public void setScheduling(PatchAdSetSchedulingV24Q3 scheduling) { this.scheduling = scheduling; } - public PatchAdSet bidding(PatchAdSetBidding bidding) { + public PatchAdSetV24Q3 bidding(PatchAdSetBiddingV24Q3 bidding) { this.bidding = bidding; return this; @@ -132,17 +132,17 @@ public PatchAdSet bidding(PatchAdSetBidding bidding) { **/ @javax.annotation.Nullable - public PatchAdSetBidding getBidding() { + public PatchAdSetBiddingV24Q3 getBidding() { return bidding; } - public void setBidding(PatchAdSetBidding bidding) { + public void setBidding(PatchAdSetBiddingV24Q3 bidding) { this.bidding = bidding; } - public PatchAdSet targeting(AdSetTargeting targeting) { + public PatchAdSetV24Q3 targeting(AdSetTargetingV24Q3 targeting) { this.targeting = targeting; return this; @@ -154,17 +154,17 @@ public PatchAdSet targeting(AdSetTargeting targeting) { **/ @javax.annotation.Nullable - public AdSetTargeting getTargeting() { + public AdSetTargetingV24Q3 getTargeting() { return targeting; } - public void setTargeting(AdSetTargeting targeting) { + public void setTargeting(AdSetTargetingV24Q3 targeting) { this.targeting = targeting; } - public PatchAdSet budget(PatchAdSetBudget budget) { + public PatchAdSetV24Q3 budget(PatchAdSetBudgetV24Q3 budget) { this.budget = budget; return this; @@ -176,12 +176,12 @@ public PatchAdSet budget(PatchAdSetBudget budget) { **/ @javax.annotation.Nullable - public PatchAdSetBudget getBudget() { + public PatchAdSetBudgetV24Q3 getBudget() { return budget; } - public void setBudget(PatchAdSetBudget budget) { + public void setBudget(PatchAdSetBudgetV24Q3 budget) { this.budget = budget; } @@ -198,9 +198,9 @@ public void setBudget(PatchAdSetBudget budget) { * * @param key name of the property * @param value value of the property - * @return the PatchAdSet instance itself + * @return the PatchAdSetV24Q3 instance itself */ - public PatchAdSet putAdditionalProperty(String key, Object value) { + public PatchAdSetV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -239,13 +239,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PatchAdSet patchAdSet = (PatchAdSet) o; - return Objects.equals(this.name, patchAdSet.name) && - Objects.equals(this.scheduling, patchAdSet.scheduling) && - Objects.equals(this.bidding, patchAdSet.bidding) && - Objects.equals(this.targeting, patchAdSet.targeting) && - Objects.equals(this.budget, patchAdSet.budget)&& - Objects.equals(this.additionalProperties, patchAdSet.additionalProperties); + PatchAdSetV24Q3 patchAdSetV24Q3 = (PatchAdSetV24Q3) o; + return Objects.equals(this.name, patchAdSetV24Q3.name) && + Objects.equals(this.scheduling, patchAdSetV24Q3.scheduling) && + Objects.equals(this.bidding, patchAdSetV24Q3.bidding) && + Objects.equals(this.targeting, patchAdSetV24Q3.targeting) && + Objects.equals(this.budget, patchAdSetV24Q3.budget)&& + Objects.equals(this.additionalProperties, patchAdSetV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -267,7 +267,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PatchAdSet {\n"); + sb.append("class PatchAdSetV24Q3 {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" scheduling: ").append(toIndentedString(scheduling)).append("\n"); sb.append(" bidding: ").append(toIndentedString(bidding)).append("\n"); @@ -310,12 +310,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PatchAdSet + * @throws IOException if the JSON Object is invalid with respect to PatchAdSetV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!PatchAdSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PatchAdSet is not found in the empty JSON string", PatchAdSet.openapiRequiredFields.toString())); + if (!PatchAdSetV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PatchAdSetV24Q3 is not found in the empty JSON string", PatchAdSetV24Q3.openapiRequiredFields.toString())); } } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { @@ -323,19 +323,19 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `scheduling` if (jsonObj.get("scheduling") != null && !jsonObj.get("scheduling").isJsonNull()) { - PatchAdSetScheduling.validateJsonObject(jsonObj.getAsJsonObject("scheduling")); + PatchAdSetSchedulingV24Q3.validateJsonObject(jsonObj.getAsJsonObject("scheduling")); } // validate the optional field `bidding` if (jsonObj.get("bidding") != null && !jsonObj.get("bidding").isJsonNull()) { - PatchAdSetBidding.validateJsonObject(jsonObj.getAsJsonObject("bidding")); + PatchAdSetBiddingV24Q3.validateJsonObject(jsonObj.getAsJsonObject("bidding")); } // validate the optional field `targeting` if (jsonObj.get("targeting") != null && !jsonObj.get("targeting").isJsonNull()) { - AdSetTargeting.validateJsonObject(jsonObj.getAsJsonObject("targeting")); + AdSetTargetingV24Q3.validateJsonObject(jsonObj.getAsJsonObject("targeting")); } // validate the optional field `budget` if (jsonObj.get("budget") != null && !jsonObj.get("budget").isJsonNull()) { - PatchAdSetBudget.validateJsonObject(jsonObj.getAsJsonObject("budget")); + PatchAdSetBudgetV24Q3.validateJsonObject(jsonObj.getAsJsonObject("budget")); } } @@ -343,16 +343,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PatchAdSet.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PatchAdSet' and its subtypes + if (!PatchAdSetV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PatchAdSetV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PatchAdSet.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PatchAdSetV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, PatchAdSet value) throws IOException { + public void write(JsonWriter out, PatchAdSetV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -375,11 +375,11 @@ else if (entry.getValue() instanceof Character) } @Override - public PatchAdSet read(JsonReader in) throws IOException { + public PatchAdSetV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - PatchAdSet instance = thisAdapter.fromJsonTree(jsonObj); + PatchAdSetV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -406,18 +406,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of PatchAdSet given an JSON string + * Create an instance of PatchAdSetV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of PatchAdSet - * @throws IOException if the JSON string is invalid with respect to PatchAdSet + * @return An instance of PatchAdSetV24Q3 + * @throws IOException if the JSON string is invalid with respect to PatchAdSetV24Q3 */ - public static PatchAdSet fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PatchAdSet.class); + public static PatchAdSetV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PatchAdSetV24Q3.class); } /** - * Convert an instance of PatchAdSet to an JSON string + * Convert an instance of PatchAdSetV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Product.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Product.java index 8d5e4c8c..def064c3 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Product.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Product.java @@ -430,6 +430,10 @@ public ChannelEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PRODUCT_RATING) private String productRating; + public static final String SERIALIZED_NAME_BADGE = "badge"; + @SerializedName(SERIALIZED_NAME_BADGE) + private String badge; + public Product() { } @@ -2310,6 +2314,28 @@ public void setProductRating(String productRating) { this.productRating = productRating; } + + public Product badge(String badge) { + + this.badge = badge; + return this; + } + + /** + * URL of a badge image to display on the product. + * @return badge + **/ + @javax.annotation.Nullable + + public String getBadge() { + return badge; + } + + + public void setBadge(String badge) { + this.badge = badge; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -2445,7 +2471,8 @@ public boolean equals(Object o) { Objects.equals(this.externalSellerId, product.externalSellerId) && Objects.equals(this.externalSellerName, product.externalSellerName) && Objects.equals(this.numberOfReviews, product.numberOfReviews) && - Objects.equals(this.productRating, product.productRating)&& + Objects.equals(this.productRating, product.productRating) && + Objects.equals(this.badge, product.badge)&& Objects.equals(this.additionalProperties, product.additionalProperties); } @@ -2455,7 +2482,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, offerId, title, description, link, imageLink, additionalImageLinks, contentLanguage, targetCountry, channel, expirationDate, adult, kind, brand, color, googleProductCategory, gtin, itemGroupId, material, mpn, pattern, price, salePrice, salePriceEffectiveDate, shipping, shippingWeight, sizes, taxes, customAttributes, identifierExists, installment, loyaltyPoints, multipack, customLabel0, customLabel1, customLabel2, customLabel3, customLabel4, isBundle, mobileLink, availabilityDate, shippingLabel, unitPricingMeasure, unitPricingBaseMeasure, shippingLength, shippingWidth, shippingHeight, displayAdsId, displayAdsSimilarIds, displayAdsTitle, displayAdsLink, displayAdsValue, sellOnGoogleQuantity, promotionIds, maxHandlingTime, minHandlingTime, costOfGoodsSold, source, includedDestinations, excludedDestinations, adsGrouping, adsLabels, adsRedirect, productTypes, productTypeKeys, ageGroup, availability, condition, gender, sizeSystem, sizeType, energyEfficiencyClass, minEnergyEfficiencyClass, maxEnergyEfficiencyClass, taxCategory, transitTimeLabel, sellerId, externalSellerId, externalSellerName, numberOfReviews, productRating, additionalProperties); + return Objects.hash(id, offerId, title, description, link, imageLink, additionalImageLinks, contentLanguage, targetCountry, channel, expirationDate, adult, kind, brand, color, googleProductCategory, gtin, itemGroupId, material, mpn, pattern, price, salePrice, salePriceEffectiveDate, shipping, shippingWeight, sizes, taxes, customAttributes, identifierExists, installment, loyaltyPoints, multipack, customLabel0, customLabel1, customLabel2, customLabel3, customLabel4, isBundle, mobileLink, availabilityDate, shippingLabel, unitPricingMeasure, unitPricingBaseMeasure, shippingLength, shippingWidth, shippingHeight, displayAdsId, displayAdsSimilarIds, displayAdsTitle, displayAdsLink, displayAdsValue, sellOnGoogleQuantity, promotionIds, maxHandlingTime, minHandlingTime, costOfGoodsSold, source, includedDestinations, excludedDestinations, adsGrouping, adsLabels, adsRedirect, productTypes, productTypeKeys, ageGroup, availability, condition, gender, sizeSystem, sizeType, energyEfficiencyClass, minEnergyEfficiencyClass, maxEnergyEfficiencyClass, taxCategory, transitTimeLabel, sellerId, externalSellerId, externalSellerName, numberOfReviews, productRating, badge, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -2550,6 +2577,7 @@ public String toString() { sb.append(" externalSellerName: ").append(toIndentedString(externalSellerName)).append("\n"); sb.append(" numberOfReviews: ").append(toIndentedString(numberOfReviews)).append("\n"); sb.append(" productRating: ").append(toIndentedString(productRating)).append("\n"); + sb.append(" badge: ").append(toIndentedString(badge)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -2654,6 +2682,7 @@ private String toIndentedString(Object o) { openapiFields.add("externalSellerName"); openapiFields.add("numberOfReviews"); openapiFields.add("productRating"); + openapiFields.add("badge"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -2952,6 +2981,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("productRating") != null && !jsonObj.get("productRating").isJsonNull()) && !jsonObj.get("productRating").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `productRating` to be a primitive type in the JSON string but got `%s`", jsonObj.get("productRating").toString())); } + if ((jsonObj.get("badge") != null && !jsonObj.get("badge").isJsonNull()) && !jsonObj.get("badge").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `badge` to be a primitive type in the JSON string but got `%s`", jsonObj.get("badge").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBidding.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV24Q3.java similarity index 67% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBidding.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV24Q3.java index 7028a149..73478b5b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBidding.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,10 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableDecimal; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,85 +42,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set bidding read model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ReadAdSetBidding { +public class ReadAdSetBiddingV24Q3 { public static final String SERIALIZED_NAME_BID_AMOUNT = "bidAmount"; @SerializedName(SERIALIZED_NAME_BID_AMOUNT) - private NillableDecimal bidAmount; - - /** - * The intended optimization for the Ad Set - */ - @JsonAdapter(BidStrategyEnum.Adapter.class) - public enum BidStrategyEnum { - ACTIONS("actions"), - - CLICKS("clicks"), - - CONVERSIONS("conversions"), - - DISPLAYS("displays"), - - INSTALLS("installs"), - - REVENUE("revenue"), - - STORECONVERSIONS("storeConversions"), - - VALUE("value"), - - VIEWEDIMPRESSIONS("viewedImpressions"), - - VISITS("Visits"), - - COMPLETEDVIDEOVIEWS("completedVideoViews"); - - private String value; - - BidStrategyEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static BidStrategyEnum fromValue(String value) { - for (BidStrategyEnum b : BidStrategyEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final BidStrategyEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public BidStrategyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return BidStrategyEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_BID_STRATEGY = "bidStrategy"; - @SerializedName(SERIALIZED_NAME_BID_STRATEGY) - private BidStrategyEnum bidStrategy; + private Double bidAmount; /** * How spend is controlled @@ -130,7 +60,7 @@ public BidStrategyEnum read(final JsonReader jsonReader) throws IOException { public enum CostControllerEnum { COS("COS"), - CPC("CPC"), + MAXCPC("maxCPC"), CPI("CPI"), @@ -142,7 +72,9 @@ public enum CostControllerEnum { CPV("CPV"), - DAILYBUDGET("dailyBudget"); + DAILYBUDGET("dailyBudget"), + + TARGETCPM("targetCPM"); private String value; @@ -186,54 +118,32 @@ public CostControllerEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_COST_CONTROLLER) private CostControllerEnum costController; - public ReadAdSetBidding() { + public ReadAdSetBiddingV24Q3() { } - public ReadAdSetBidding bidAmount(NillableDecimal bidAmount) { + public ReadAdSetBiddingV24Q3 bidAmount(Double bidAmount) { this.bidAmount = bidAmount; return this; } /** - * Get bidAmount + * Decimal value target relating to the `adSetObjective` specified. May be `null` for objectives that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded. * @return bidAmount **/ @javax.annotation.Nullable - public NillableDecimal getBidAmount() { + public Double getBidAmount() { return bidAmount; } - public void setBidAmount(NillableDecimal bidAmount) { + public void setBidAmount(Double bidAmount) { this.bidAmount = bidAmount; } - public ReadAdSetBidding bidStrategy(BidStrategyEnum bidStrategy) { - - this.bidStrategy = bidStrategy; - return this; - } - - /** - * The intended optimization for the Ad Set - * @return bidStrategy - **/ - @javax.annotation.Nullable - - public BidStrategyEnum getBidStrategy() { - return bidStrategy; - } - - - public void setBidStrategy(BidStrategyEnum bidStrategy) { - this.bidStrategy = bidStrategy; - } - - - public ReadAdSetBidding costController(CostControllerEnum costController) { + public ReadAdSetBiddingV24Q3 costController(CostControllerEnum costController) { this.costController = costController; return this; @@ -267,9 +177,9 @@ public void setCostController(CostControllerEnum costController) { * * @param key name of the property * @param value value of the property - * @return the ReadAdSetBidding instance itself + * @return the ReadAdSetBiddingV24Q3 instance itself */ - public ReadAdSetBidding putAdditionalProperty(String key, Object value) { + public ReadAdSetBiddingV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -308,11 +218,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ReadAdSetBidding readAdSetBidding = (ReadAdSetBidding) o; - return Objects.equals(this.bidAmount, readAdSetBidding.bidAmount) && - Objects.equals(this.bidStrategy, readAdSetBidding.bidStrategy) && - Objects.equals(this.costController, readAdSetBidding.costController)&& - Objects.equals(this.additionalProperties, readAdSetBidding.additionalProperties); + ReadAdSetBiddingV24Q3 readAdSetBiddingV24Q3 = (ReadAdSetBiddingV24Q3) o; + return Objects.equals(this.bidAmount, readAdSetBiddingV24Q3.bidAmount) && + Objects.equals(this.costController, readAdSetBiddingV24Q3.costController)&& + Objects.equals(this.additionalProperties, readAdSetBiddingV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -321,7 +230,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(bidAmount, bidStrategy, costController, additionalProperties); + return Objects.hash(bidAmount, costController, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -334,9 +243,8 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ReadAdSetBidding {\n"); + sb.append("class ReadAdSetBiddingV24Q3 {\n"); sb.append(" bidAmount: ").append(toIndentedString(bidAmount)).append("\n"); - sb.append(" bidStrategy: ").append(toIndentedString(bidStrategy)).append("\n"); sb.append(" costController: ").append(toIndentedString(costController)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -362,7 +270,6 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("bidAmount"); - openapiFields.add("bidStrategy"); openapiFields.add("costController"); // a set of required properties/fields (JSON key names) @@ -373,21 +280,14 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ReadAdSetBidding + * @throws IOException if the JSON Object is invalid with respect to ReadAdSetBiddingV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ReadAdSetBidding.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ReadAdSetBidding is not found in the empty JSON string", ReadAdSetBidding.openapiRequiredFields.toString())); + if (!ReadAdSetBiddingV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ReadAdSetBiddingV24Q3 is not found in the empty JSON string", ReadAdSetBiddingV24Q3.openapiRequiredFields.toString())); } } - // validate the optional field `bidAmount` - if (jsonObj.get("bidAmount") != null && !jsonObj.get("bidAmount").isJsonNull()) { - NillableDecimal.validateJsonObject(jsonObj.getAsJsonObject("bidAmount")); - } - if ((jsonObj.get("bidStrategy") != null && !jsonObj.get("bidStrategy").isJsonNull()) && !jsonObj.get("bidStrategy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `bidStrategy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bidStrategy").toString())); - } if ((jsonObj.get("costController") != null && !jsonObj.get("costController").isJsonNull()) && !jsonObj.get("costController").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `costController` to be a primitive type in the JSON string but got `%s`", jsonObj.get("costController").toString())); } @@ -397,16 +297,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReadAdSetBidding.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReadAdSetBidding' and its subtypes + if (!ReadAdSetBiddingV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReadAdSetBiddingV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ReadAdSetBidding.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReadAdSetBiddingV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ReadAdSetBidding value) throws IOException { + public void write(JsonWriter out, ReadAdSetBiddingV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -429,11 +329,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ReadAdSetBidding read(JsonReader in) throws IOException { + public ReadAdSetBiddingV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ReadAdSetBidding instance = thisAdapter.fromJsonTree(jsonObj); + ReadAdSetBiddingV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -460,18 +360,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ReadAdSetBidding given an JSON string + * Create an instance of ReadAdSetBiddingV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of ReadAdSetBidding - * @throws IOException if the JSON string is invalid with respect to ReadAdSetBidding + * @return An instance of ReadAdSetBiddingV24Q3 + * @throws IOException if the JSON string is invalid with respect to ReadAdSetBiddingV24Q3 */ - public static ReadAdSetBidding fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReadAdSetBidding.class); + public static ReadAdSetBiddingV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReadAdSetBiddingV24Q3.class); } /** - * Convert an instance of ReadAdSetBidding to an JSON string + * Convert an instance of ReadAdSetBiddingV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBudget.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV24Q3.java similarity index 86% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBudget.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV24Q3.java index 9b4fbedf..8d90f0ea 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBudget.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,10 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableDecimal; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,13 +42,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set budget read model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ReadAdSetBudget { +public class ReadAdSetBudgetV24Q3 { /** * Gets or Sets budgetStrategy */ @@ -112,7 +111,9 @@ public enum BudgetRenewalEnum { MONTHLY("monthly"), - LIFETIME("lifetime"); + LIFETIME("lifetime"), + + WEEKLY("weekly"); private String value; @@ -272,12 +273,12 @@ public BudgetDeliveryWeekEnum read(final JsonReader jsonReader) throws IOExcepti public static final String SERIALIZED_NAME_BUDGET_AMOUNT = "budgetAmount"; @SerializedName(SERIALIZED_NAME_BUDGET_AMOUNT) - private NillableDecimal budgetAmount; + private Double budgetAmount; - public ReadAdSetBudget() { + public ReadAdSetBudgetV24Q3() { } - public ReadAdSetBudget budgetStrategy(BudgetStrategyEnum budgetStrategy) { + public ReadAdSetBudgetV24Q3 budgetStrategy(BudgetStrategyEnum budgetStrategy) { this.budgetStrategy = budgetStrategy; return this; @@ -299,7 +300,7 @@ public void setBudgetStrategy(BudgetStrategyEnum budgetStrategy) { } - public ReadAdSetBudget budgetRenewal(BudgetRenewalEnum budgetRenewal) { + public ReadAdSetBudgetV24Q3 budgetRenewal(BudgetRenewalEnum budgetRenewal) { this.budgetRenewal = budgetRenewal; return this; @@ -321,7 +322,7 @@ public void setBudgetRenewal(BudgetRenewalEnum budgetRenewal) { } - public ReadAdSetBudget budgetDeliverySmoothing(BudgetDeliverySmoothingEnum budgetDeliverySmoothing) { + public ReadAdSetBudgetV24Q3 budgetDeliverySmoothing(BudgetDeliverySmoothingEnum budgetDeliverySmoothing) { this.budgetDeliverySmoothing = budgetDeliverySmoothing; return this; @@ -343,7 +344,7 @@ public void setBudgetDeliverySmoothing(BudgetDeliverySmoothingEnum budgetDeliver } - public ReadAdSetBudget budgetDeliveryWeek(BudgetDeliveryWeekEnum budgetDeliveryWeek) { + public ReadAdSetBudgetV24Q3 budgetDeliveryWeek(BudgetDeliveryWeekEnum budgetDeliveryWeek) { this.budgetDeliveryWeek = budgetDeliveryWeek; return this; @@ -365,7 +366,7 @@ public void setBudgetDeliveryWeek(BudgetDeliveryWeekEnum budgetDeliveryWeek) { } - public ReadAdSetBudget budgetAmount(NillableDecimal budgetAmount) { + public ReadAdSetBudgetV24Q3 budgetAmount(Double budgetAmount) { this.budgetAmount = budgetAmount; return this; @@ -377,12 +378,12 @@ public ReadAdSetBudget budgetAmount(NillableDecimal budgetAmount) { **/ @javax.annotation.Nullable - public NillableDecimal getBudgetAmount() { + public Double getBudgetAmount() { return budgetAmount; } - public void setBudgetAmount(NillableDecimal budgetAmount) { + public void setBudgetAmount(Double budgetAmount) { this.budgetAmount = budgetAmount; } @@ -399,9 +400,9 @@ public void setBudgetAmount(NillableDecimal budgetAmount) { * * @param key name of the property * @param value value of the property - * @return the ReadAdSetBudget instance itself + * @return the ReadAdSetBudgetV24Q3 instance itself */ - public ReadAdSetBudget putAdditionalProperty(String key, Object value) { + public ReadAdSetBudgetV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -440,13 +441,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ReadAdSetBudget readAdSetBudget = (ReadAdSetBudget) o; - return Objects.equals(this.budgetStrategy, readAdSetBudget.budgetStrategy) && - Objects.equals(this.budgetRenewal, readAdSetBudget.budgetRenewal) && - Objects.equals(this.budgetDeliverySmoothing, readAdSetBudget.budgetDeliverySmoothing) && - Objects.equals(this.budgetDeliveryWeek, readAdSetBudget.budgetDeliveryWeek) && - Objects.equals(this.budgetAmount, readAdSetBudget.budgetAmount)&& - Objects.equals(this.additionalProperties, readAdSetBudget.additionalProperties); + ReadAdSetBudgetV24Q3 readAdSetBudgetV24Q3 = (ReadAdSetBudgetV24Q3) o; + return Objects.equals(this.budgetStrategy, readAdSetBudgetV24Q3.budgetStrategy) && + Objects.equals(this.budgetRenewal, readAdSetBudgetV24Q3.budgetRenewal) && + Objects.equals(this.budgetDeliverySmoothing, readAdSetBudgetV24Q3.budgetDeliverySmoothing) && + Objects.equals(this.budgetDeliveryWeek, readAdSetBudgetV24Q3.budgetDeliveryWeek) && + Objects.equals(this.budgetAmount, readAdSetBudgetV24Q3.budgetAmount)&& + Objects.equals(this.additionalProperties, readAdSetBudgetV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -468,7 +469,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ReadAdSetBudget {\n"); + sb.append("class ReadAdSetBudgetV24Q3 {\n"); sb.append(" budgetStrategy: ").append(toIndentedString(budgetStrategy)).append("\n"); sb.append(" budgetRenewal: ").append(toIndentedString(budgetRenewal)).append("\n"); sb.append(" budgetDeliverySmoothing: ").append(toIndentedString(budgetDeliverySmoothing)).append("\n"); @@ -511,12 +512,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ReadAdSetBudget + * @throws IOException if the JSON Object is invalid with respect to ReadAdSetBudgetV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ReadAdSetBudget.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ReadAdSetBudget is not found in the empty JSON string", ReadAdSetBudget.openapiRequiredFields.toString())); + if (!ReadAdSetBudgetV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ReadAdSetBudgetV24Q3 is not found in the empty JSON string", ReadAdSetBudgetV24Q3.openapiRequiredFields.toString())); } } if ((jsonObj.get("budgetStrategy") != null && !jsonObj.get("budgetStrategy").isJsonNull()) && !jsonObj.get("budgetStrategy").isJsonPrimitive()) { @@ -531,26 +532,22 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("budgetDeliveryWeek") != null && !jsonObj.get("budgetDeliveryWeek").isJsonNull()) && !jsonObj.get("budgetDeliveryWeek").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `budgetDeliveryWeek` to be a primitive type in the JSON string but got `%s`", jsonObj.get("budgetDeliveryWeek").toString())); } - // validate the optional field `budgetAmount` - if (jsonObj.get("budgetAmount") != null && !jsonObj.get("budgetAmount").isJsonNull()) { - NillableDecimal.validateJsonObject(jsonObj.getAsJsonObject("budgetAmount")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReadAdSetBudget.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReadAdSetBudget' and its subtypes + if (!ReadAdSetBudgetV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReadAdSetBudgetV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ReadAdSetBudget.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReadAdSetBudgetV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ReadAdSetBudget value) throws IOException { + public void write(JsonWriter out, ReadAdSetBudgetV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -573,11 +570,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ReadAdSetBudget read(JsonReader in) throws IOException { + public ReadAdSetBudgetV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ReadAdSetBudget instance = thisAdapter.fromJsonTree(jsonObj); + ReadAdSetBudgetV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -604,18 +601,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ReadAdSetBudget given an JSON string + * Create an instance of ReadAdSetBudgetV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of ReadAdSetBudget - * @throws IOException if the JSON string is invalid with respect to ReadAdSetBudget + * @return An instance of ReadAdSetBudgetV24Q3 + * @throws IOException if the JSON string is invalid with respect to ReadAdSetBudgetV24Q3 */ - public static ReadAdSetBudget fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReadAdSetBudget.class); + public static ReadAdSetBudgetV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReadAdSetBudgetV24Q3.class); } /** - * Convert an instance of ReadAdSetBudget to an JSON string + * Convert an instance of ReadAdSetBudgetV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetSchedule.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV24Q3.java similarity index 85% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetSchedule.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV24Q3.java index 939526c1..bb8f43b7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetSchedule.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableDateTime; +import com.criteo.api.marketingsolutions.preview.model.NillableDateTime; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,13 +43,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set schedule read model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ReadAdSetSchedule { +public class ReadAdSetScheduleV24Q3 { public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) private NillableDateTime startDate; @@ -176,10 +176,10 @@ public DeliveryStatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_DELIVERY_STATUS) private DeliveryStatusEnum deliveryStatus; - public ReadAdSetSchedule() { + public ReadAdSetScheduleV24Q3() { } - public ReadAdSetSchedule startDate(NillableDateTime startDate) { + public ReadAdSetScheduleV24Q3 startDate(NillableDateTime startDate) { this.startDate = startDate; return this; @@ -201,7 +201,7 @@ public void setStartDate(NillableDateTime startDate) { } - public ReadAdSetSchedule endDate(NillableDateTime endDate) { + public ReadAdSetScheduleV24Q3 endDate(NillableDateTime endDate) { this.endDate = endDate; return this; @@ -223,7 +223,7 @@ public void setEndDate(NillableDateTime endDate) { } - public ReadAdSetSchedule activationStatus(ActivationStatusEnum activationStatus) { + public ReadAdSetScheduleV24Q3 activationStatus(ActivationStatusEnum activationStatus) { this.activationStatus = activationStatus; return this; @@ -245,7 +245,7 @@ public void setActivationStatus(ActivationStatusEnum activationStatus) { } - public ReadAdSetSchedule deliveryStatus(DeliveryStatusEnum deliveryStatus) { + public ReadAdSetScheduleV24Q3 deliveryStatus(DeliveryStatusEnum deliveryStatus) { this.deliveryStatus = deliveryStatus; return this; @@ -279,9 +279,9 @@ public void setDeliveryStatus(DeliveryStatusEnum deliveryStatus) { * * @param key name of the property * @param value value of the property - * @return the ReadAdSetSchedule instance itself + * @return the ReadAdSetScheduleV24Q3 instance itself */ - public ReadAdSetSchedule putAdditionalProperty(String key, Object value) { + public ReadAdSetScheduleV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -320,12 +320,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ReadAdSetSchedule readAdSetSchedule = (ReadAdSetSchedule) o; - return Objects.equals(this.startDate, readAdSetSchedule.startDate) && - Objects.equals(this.endDate, readAdSetSchedule.endDate) && - Objects.equals(this.activationStatus, readAdSetSchedule.activationStatus) && - Objects.equals(this.deliveryStatus, readAdSetSchedule.deliveryStatus)&& - Objects.equals(this.additionalProperties, readAdSetSchedule.additionalProperties); + ReadAdSetScheduleV24Q3 readAdSetScheduleV24Q3 = (ReadAdSetScheduleV24Q3) o; + return Objects.equals(this.startDate, readAdSetScheduleV24Q3.startDate) && + Objects.equals(this.endDate, readAdSetScheduleV24Q3.endDate) && + Objects.equals(this.activationStatus, readAdSetScheduleV24Q3.activationStatus) && + Objects.equals(this.deliveryStatus, readAdSetScheduleV24Q3.deliveryStatus)&& + Objects.equals(this.additionalProperties, readAdSetScheduleV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -347,7 +347,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ReadAdSetSchedule {\n"); + sb.append("class ReadAdSetScheduleV24Q3 {\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); sb.append(" activationStatus: ").append(toIndentedString(activationStatus)).append("\n"); @@ -388,12 +388,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ReadAdSetSchedule + * @throws IOException if the JSON Object is invalid with respect to ReadAdSetScheduleV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ReadAdSetSchedule.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ReadAdSetSchedule is not found in the empty JSON string", ReadAdSetSchedule.openapiRequiredFields.toString())); + if (!ReadAdSetScheduleV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ReadAdSetScheduleV24Q3 is not found in the empty JSON string", ReadAdSetScheduleV24Q3.openapiRequiredFields.toString())); } } // validate the optional field `startDate` @@ -416,16 +416,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReadAdSetSchedule.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReadAdSetSchedule' and its subtypes + if (!ReadAdSetScheduleV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReadAdSetScheduleV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ReadAdSetSchedule.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReadAdSetScheduleV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ReadAdSetSchedule value) throws IOException { + public void write(JsonWriter out, ReadAdSetScheduleV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -448,11 +448,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ReadAdSetSchedule read(JsonReader in) throws IOException { + public ReadAdSetScheduleV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ReadAdSetSchedule instance = thisAdapter.fromJsonTree(jsonObj); + ReadAdSetScheduleV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -479,18 +479,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ReadAdSetSchedule given an JSON string + * Create an instance of ReadAdSetScheduleV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of ReadAdSetSchedule - * @throws IOException if the JSON string is invalid with respect to ReadAdSetSchedule + * @return An instance of ReadAdSetScheduleV24Q3 + * @throws IOException if the JSON string is invalid with respect to ReadAdSetScheduleV24Q3 */ - public static ReadAdSetSchedule fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReadAdSetSchedule.class); + public static ReadAdSetScheduleV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReadAdSetScheduleV24Q3.class); } /** - * Convert an instance of ReadAdSetSchedule to an JSON string + * Convert an instance of ReadAdSetScheduleV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV24Q3.java similarity index 66% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSet.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV24Q3.java index 1e02b358..21c55b5c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AdSetTargeting; -import com.criteo.api.marketingsolutions.v2023_07.model.ReadAdSetBidding; -import com.criteo.api.marketingsolutions.v2023_07.model.ReadAdSetBudget; -import com.criteo.api.marketingsolutions.v2023_07.model.ReadAdSetSchedule; +import com.criteo.api.marketingsolutions.preview.model.AdSetTargetingV24Q3; +import com.criteo.api.marketingsolutions.preview.model.ReadAdSetBiddingV24Q3; +import com.criteo.api.marketingsolutions.preview.model.ReadAdSetBudgetV24Q3; +import com.criteo.api.marketingsolutions.preview.model.ReadAdSetScheduleV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,13 +46,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * ad set read model */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ReadAdSet { +public class ReadAdSetV24Q3 { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; @@ -122,21 +122,90 @@ public DestinationEnvironmentEnum read(final JsonReader jsonReader) throws IOExc @SerializedName(SERIALIZED_NAME_DESTINATION_ENVIRONMENT) private DestinationEnvironmentEnum destinationEnvironment; + /** + * Gets or Sets objective + */ + @JsonAdapter(ObjectiveEnum.Adapter.class) + public enum ObjectiveEnum { + CUSTOMACTION("customAction"), + + CLICKS("clicks"), + + CONVERSIONS("conversions"), + + DISPLAYS("displays"), + + APPPROMOTION("appPromotion"), + + REVENUE("revenue"), + + STORECONVERSIONS("storeConversions"), + + VALUE("value"), + + REACH("reach"), + + VISITS("visits"), + + VIDEOVIEWS("videoViews"); + + private String value; + + ObjectiveEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ObjectiveEnum fromValue(String value) { + for (ObjectiveEnum b : ObjectiveEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ObjectiveEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ObjectiveEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ObjectiveEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_OBJECTIVE = "objective"; + @SerializedName(SERIALIZED_NAME_OBJECTIVE) + private ObjectiveEnum objective; + public static final String SERIALIZED_NAME_SCHEDULE = "schedule"; @SerializedName(SERIALIZED_NAME_SCHEDULE) - private ReadAdSetSchedule schedule; + private ReadAdSetScheduleV24Q3 schedule; public static final String SERIALIZED_NAME_BIDDING = "bidding"; @SerializedName(SERIALIZED_NAME_BIDDING) - private ReadAdSetBidding bidding; + private ReadAdSetBiddingV24Q3 bidding; public static final String SERIALIZED_NAME_TARGETING = "targeting"; @SerializedName(SERIALIZED_NAME_TARGETING) - private AdSetTargeting targeting; + private AdSetTargetingV24Q3 targeting; public static final String SERIALIZED_NAME_BUDGET = "budget"; @SerializedName(SERIALIZED_NAME_BUDGET) - private ReadAdSetBudget budget; + private ReadAdSetBudgetV24Q3 budget; /** * Gets or Sets mediaType @@ -189,10 +258,61 @@ public MediaTypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_MEDIA_TYPE) private MediaTypeEnum mediaType; - public ReadAdSet() { + /** + * Gets or Sets videoChannel + */ + @JsonAdapter(VideoChannelEnum.Adapter.class) + public enum VideoChannelEnum { + OLV("olv"), + + CTV("ctv"); + + private String value; + + VideoChannelEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static VideoChannelEnum fromValue(String value) { + for (VideoChannelEnum b : VideoChannelEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final VideoChannelEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public VideoChannelEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return VideoChannelEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_VIDEO_CHANNEL = "videoChannel"; + @SerializedName(SERIALIZED_NAME_VIDEO_CHANNEL) + private VideoChannelEnum videoChannel; + + public ReadAdSetV24Q3() { } - public ReadAdSet name(String name) { + public ReadAdSetV24Q3 name(String name) { this.name = name; return this; @@ -214,7 +334,7 @@ public void setName(String name) { } - public ReadAdSet advertiserId(String advertiserId) { + public ReadAdSetV24Q3 advertiserId(String advertiserId) { this.advertiserId = advertiserId; return this; @@ -236,7 +356,7 @@ public void setAdvertiserId(String advertiserId) { } - public ReadAdSet datasetId(String datasetId) { + public ReadAdSetV24Q3 datasetId(String datasetId) { this.datasetId = datasetId; return this; @@ -258,7 +378,7 @@ public void setDatasetId(String datasetId) { } - public ReadAdSet campaignId(String campaignId) { + public ReadAdSetV24Q3 campaignId(String campaignId) { this.campaignId = campaignId; return this; @@ -280,7 +400,7 @@ public void setCampaignId(String campaignId) { } - public ReadAdSet destinationEnvironment(DestinationEnvironmentEnum destinationEnvironment) { + public ReadAdSetV24Q3 destinationEnvironment(DestinationEnvironmentEnum destinationEnvironment) { this.destinationEnvironment = destinationEnvironment; return this; @@ -302,7 +422,29 @@ public void setDestinationEnvironment(DestinationEnvironmentEnum destinationEnvi } - public ReadAdSet schedule(ReadAdSetSchedule schedule) { + public ReadAdSetV24Q3 objective(ObjectiveEnum objective) { + + this.objective = objective; + return this; + } + + /** + * Get objective + * @return objective + **/ + @javax.annotation.Nullable + + public ObjectiveEnum getObjective() { + return objective; + } + + + public void setObjective(ObjectiveEnum objective) { + this.objective = objective; + } + + + public ReadAdSetV24Q3 schedule(ReadAdSetScheduleV24Q3 schedule) { this.schedule = schedule; return this; @@ -314,17 +456,17 @@ public ReadAdSet schedule(ReadAdSetSchedule schedule) { **/ @javax.annotation.Nullable - public ReadAdSetSchedule getSchedule() { + public ReadAdSetScheduleV24Q3 getSchedule() { return schedule; } - public void setSchedule(ReadAdSetSchedule schedule) { + public void setSchedule(ReadAdSetScheduleV24Q3 schedule) { this.schedule = schedule; } - public ReadAdSet bidding(ReadAdSetBidding bidding) { + public ReadAdSetV24Q3 bidding(ReadAdSetBiddingV24Q3 bidding) { this.bidding = bidding; return this; @@ -336,17 +478,17 @@ public ReadAdSet bidding(ReadAdSetBidding bidding) { **/ @javax.annotation.Nullable - public ReadAdSetBidding getBidding() { + public ReadAdSetBiddingV24Q3 getBidding() { return bidding; } - public void setBidding(ReadAdSetBidding bidding) { + public void setBidding(ReadAdSetBiddingV24Q3 bidding) { this.bidding = bidding; } - public ReadAdSet targeting(AdSetTargeting targeting) { + public ReadAdSetV24Q3 targeting(AdSetTargetingV24Q3 targeting) { this.targeting = targeting; return this; @@ -358,17 +500,17 @@ public ReadAdSet targeting(AdSetTargeting targeting) { **/ @javax.annotation.Nullable - public AdSetTargeting getTargeting() { + public AdSetTargetingV24Q3 getTargeting() { return targeting; } - public void setTargeting(AdSetTargeting targeting) { + public void setTargeting(AdSetTargetingV24Q3 targeting) { this.targeting = targeting; } - public ReadAdSet budget(ReadAdSetBudget budget) { + public ReadAdSetV24Q3 budget(ReadAdSetBudgetV24Q3 budget) { this.budget = budget; return this; @@ -380,17 +522,17 @@ public ReadAdSet budget(ReadAdSetBudget budget) { **/ @javax.annotation.Nullable - public ReadAdSetBudget getBudget() { + public ReadAdSetBudgetV24Q3 getBudget() { return budget; } - public void setBudget(ReadAdSetBudget budget) { + public void setBudget(ReadAdSetBudgetV24Q3 budget) { this.budget = budget; } - public ReadAdSet mediaType(MediaTypeEnum mediaType) { + public ReadAdSetV24Q3 mediaType(MediaTypeEnum mediaType) { this.mediaType = mediaType; return this; @@ -411,6 +553,28 @@ public void setMediaType(MediaTypeEnum mediaType) { this.mediaType = mediaType; } + + public ReadAdSetV24Q3 videoChannel(VideoChannelEnum videoChannel) { + + this.videoChannel = videoChannel; + return this; + } + + /** + * Get videoChannel + * @return videoChannel + **/ + @javax.annotation.Nullable + + public VideoChannelEnum getVideoChannel() { + return videoChannel; + } + + + public void setVideoChannel(VideoChannelEnum videoChannel) { + this.videoChannel = videoChannel; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -424,9 +588,9 @@ public void setMediaType(MediaTypeEnum mediaType) { * * @param key name of the property * @param value value of the property - * @return the ReadAdSet instance itself + * @return the ReadAdSetV24Q3 instance itself */ - public ReadAdSet putAdditionalProperty(String key, Object value) { + public ReadAdSetV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -465,18 +629,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ReadAdSet readAdSet = (ReadAdSet) o; - return Objects.equals(this.name, readAdSet.name) && - Objects.equals(this.advertiserId, readAdSet.advertiserId) && - Objects.equals(this.datasetId, readAdSet.datasetId) && - Objects.equals(this.campaignId, readAdSet.campaignId) && - Objects.equals(this.destinationEnvironment, readAdSet.destinationEnvironment) && - Objects.equals(this.schedule, readAdSet.schedule) && - Objects.equals(this.bidding, readAdSet.bidding) && - Objects.equals(this.targeting, readAdSet.targeting) && - Objects.equals(this.budget, readAdSet.budget) && - Objects.equals(this.mediaType, readAdSet.mediaType)&& - Objects.equals(this.additionalProperties, readAdSet.additionalProperties); + ReadAdSetV24Q3 readAdSetV24Q3 = (ReadAdSetV24Q3) o; + return Objects.equals(this.name, readAdSetV24Q3.name) && + Objects.equals(this.advertiserId, readAdSetV24Q3.advertiserId) && + Objects.equals(this.datasetId, readAdSetV24Q3.datasetId) && + Objects.equals(this.campaignId, readAdSetV24Q3.campaignId) && + Objects.equals(this.destinationEnvironment, readAdSetV24Q3.destinationEnvironment) && + Objects.equals(this.objective, readAdSetV24Q3.objective) && + Objects.equals(this.schedule, readAdSetV24Q3.schedule) && + Objects.equals(this.bidding, readAdSetV24Q3.bidding) && + Objects.equals(this.targeting, readAdSetV24Q3.targeting) && + Objects.equals(this.budget, readAdSetV24Q3.budget) && + Objects.equals(this.mediaType, readAdSetV24Q3.mediaType) && + Objects.equals(this.videoChannel, readAdSetV24Q3.videoChannel)&& + Objects.equals(this.additionalProperties, readAdSetV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -485,7 +651,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, advertiserId, datasetId, campaignId, destinationEnvironment, schedule, bidding, targeting, budget, mediaType, additionalProperties); + return Objects.hash(name, advertiserId, datasetId, campaignId, destinationEnvironment, objective, schedule, bidding, targeting, budget, mediaType, videoChannel, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -498,17 +664,19 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ReadAdSet {\n"); + sb.append("class ReadAdSetV24Q3 {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" advertiserId: ").append(toIndentedString(advertiserId)).append("\n"); sb.append(" datasetId: ").append(toIndentedString(datasetId)).append("\n"); sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); sb.append(" destinationEnvironment: ").append(toIndentedString(destinationEnvironment)).append("\n"); + sb.append(" objective: ").append(toIndentedString(objective)).append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); sb.append(" bidding: ").append(toIndentedString(bidding)).append("\n"); sb.append(" targeting: ").append(toIndentedString(targeting)).append("\n"); sb.append(" budget: ").append(toIndentedString(budget)).append("\n"); sb.append(" mediaType: ").append(toIndentedString(mediaType)).append("\n"); + sb.append(" videoChannel: ").append(toIndentedString(videoChannel)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -537,11 +705,13 @@ private String toIndentedString(Object o) { openapiFields.add("datasetId"); openapiFields.add("campaignId"); openapiFields.add("destinationEnvironment"); + openapiFields.add("objective"); openapiFields.add("schedule"); openapiFields.add("bidding"); openapiFields.add("targeting"); openapiFields.add("budget"); openapiFields.add("mediaType"); + openapiFields.add("videoChannel"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -551,12 +721,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ReadAdSet + * @throws IOException if the JSON Object is invalid with respect to ReadAdSetV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ReadAdSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ReadAdSet is not found in the empty JSON string", ReadAdSet.openapiRequiredFields.toString())); + if (!ReadAdSetV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ReadAdSetV24Q3 is not found in the empty JSON string", ReadAdSetV24Q3.openapiRequiredFields.toString())); } } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { @@ -574,41 +744,47 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("destinationEnvironment") != null && !jsonObj.get("destinationEnvironment").isJsonNull()) && !jsonObj.get("destinationEnvironment").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `destinationEnvironment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destinationEnvironment").toString())); } + if ((jsonObj.get("objective") != null && !jsonObj.get("objective").isJsonNull()) && !jsonObj.get("objective").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `objective` to be a primitive type in the JSON string but got `%s`", jsonObj.get("objective").toString())); + } // validate the optional field `schedule` if (jsonObj.get("schedule") != null && !jsonObj.get("schedule").isJsonNull()) { - ReadAdSetSchedule.validateJsonObject(jsonObj.getAsJsonObject("schedule")); + ReadAdSetScheduleV24Q3.validateJsonObject(jsonObj.getAsJsonObject("schedule")); } // validate the optional field `bidding` if (jsonObj.get("bidding") != null && !jsonObj.get("bidding").isJsonNull()) { - ReadAdSetBidding.validateJsonObject(jsonObj.getAsJsonObject("bidding")); + ReadAdSetBiddingV24Q3.validateJsonObject(jsonObj.getAsJsonObject("bidding")); } // validate the optional field `targeting` if (jsonObj.get("targeting") != null && !jsonObj.get("targeting").isJsonNull()) { - AdSetTargeting.validateJsonObject(jsonObj.getAsJsonObject("targeting")); + AdSetTargetingV24Q3.validateJsonObject(jsonObj.getAsJsonObject("targeting")); } // validate the optional field `budget` if (jsonObj.get("budget") != null && !jsonObj.get("budget").isJsonNull()) { - ReadAdSetBudget.validateJsonObject(jsonObj.getAsJsonObject("budget")); + ReadAdSetBudgetV24Q3.validateJsonObject(jsonObj.getAsJsonObject("budget")); } if ((jsonObj.get("mediaType") != null && !jsonObj.get("mediaType").isJsonNull()) && !jsonObj.get("mediaType").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `mediaType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mediaType").toString())); } + if ((jsonObj.get("videoChannel") != null && !jsonObj.get("videoChannel").isJsonNull()) && !jsonObj.get("videoChannel").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `videoChannel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("videoChannel").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReadAdSet.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReadAdSet' and its subtypes + if (!ReadAdSetV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReadAdSetV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ReadAdSet.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReadAdSetV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ReadAdSet value) throws IOException { + public void write(JsonWriter out, ReadAdSetV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -631,11 +807,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ReadAdSet read(JsonReader in) throws IOException { + public ReadAdSetV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ReadAdSet instance = thisAdapter.fromJsonTree(jsonObj); + ReadAdSetV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -662,18 +838,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ReadAdSet given an JSON string + * Create an instance of ReadAdSetV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of ReadAdSet - * @throws IOException if the JSON string is invalid with respect to ReadAdSet + * @return An instance of ReadAdSetV24Q3 + * @throws IOException if the JSON string is invalid with respect to ReadAdSetV24Q3 */ - public static ReadAdSet fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReadAdSet.class); + public static ReadAdSetV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReadAdSetV24Q3.class); } /** - * Convert an instance of ReadAdSet to an JSON string + * Convert an instance of ReadAdSetV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignReadResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetIdV24Q3.java similarity index 78% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignReadResource.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetIdV24Q3.java index c0bdb1c9..3eb2ee15 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignReadResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetIdV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,10 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.Campaign; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,13 +42,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * read model data for resources */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CampaignReadResource { +public class ReadModelAdSetIdV24Q3 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; @@ -60,13 +59,13 @@ public class CampaignReadResource { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private Campaign attributes; + private Object attributes; - public CampaignReadResource() { + public ReadModelAdSetIdV24Q3() { } - public CampaignReadResource( + public ReadModelAdSetIdV24Q3( String id, String type ) { @@ -101,24 +100,24 @@ public String getType() { - public CampaignReadResource attributes(Campaign attributes) { + public ReadModelAdSetIdV24Q3 attributes(Object attributes) { this.attributes = attributes; return this; } /** - * Get attributes + * ad set id model * @return attributes **/ @javax.annotation.Nullable - public Campaign getAttributes() { + public Object getAttributes() { return attributes; } - public void setAttributes(Campaign attributes) { + public void setAttributes(Object attributes) { this.attributes = attributes; } @@ -135,9 +134,9 @@ public void setAttributes(Campaign attributes) { * * @param key name of the property * @param value value of the property - * @return the CampaignReadResource instance itself + * @return the ReadModelAdSetIdV24Q3 instance itself */ - public CampaignReadResource putAdditionalProperty(String key, Object value) { + public ReadModelAdSetIdV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -176,11 +175,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CampaignReadResource campaignReadResource = (CampaignReadResource) o; - return Objects.equals(this.id, campaignReadResource.id) && - Objects.equals(this.type, campaignReadResource.type) && - Objects.equals(this.attributes, campaignReadResource.attributes)&& - Objects.equals(this.additionalProperties, campaignReadResource.additionalProperties); + ReadModelAdSetIdV24Q3 readModelAdSetIdV24Q3 = (ReadModelAdSetIdV24Q3) o; + return Objects.equals(this.id, readModelAdSetIdV24Q3.id) && + Objects.equals(this.type, readModelAdSetIdV24Q3.type) && + Objects.equals(this.attributes, readModelAdSetIdV24Q3.attributes)&& + Objects.equals(this.additionalProperties, readModelAdSetIdV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -202,7 +201,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CampaignReadResource {\n"); + sb.append("class ReadModelAdSetIdV24Q3 {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); @@ -241,12 +240,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CampaignReadResource + * @throws IOException if the JSON Object is invalid with respect to ReadModelAdSetIdV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CampaignReadResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignReadResource is not found in the empty JSON string", CampaignReadResource.openapiRequiredFields.toString())); + if (!ReadModelAdSetIdV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ReadModelAdSetIdV24Q3 is not found in the empty JSON string", ReadModelAdSetIdV24Q3.openapiRequiredFields.toString())); } } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { @@ -255,26 +254,22 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - Campaign.validateJsonObject(jsonObj.getAsJsonObject("attributes")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CampaignReadResource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CampaignReadResource' and its subtypes + if (!ReadModelAdSetIdV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReadModelAdSetIdV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CampaignReadResource.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReadModelAdSetIdV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CampaignReadResource value) throws IOException { + public void write(JsonWriter out, ReadModelAdSetIdV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -297,11 +292,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CampaignReadResource read(JsonReader in) throws IOException { + public ReadModelAdSetIdV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CampaignReadResource instance = thisAdapter.fromJsonTree(jsonObj); + ReadModelAdSetIdV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -328,18 +323,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CampaignReadResource given an JSON string + * Create an instance of ReadModelAdSetIdV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of CampaignReadResource - * @throws IOException if the JSON string is invalid with respect to CampaignReadResource + * @return An instance of ReadModelAdSetIdV24Q3 + * @throws IOException if the JSON string is invalid with respect to ReadModelAdSetIdV24Q3 */ - public static CampaignReadResource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CampaignReadResource.class); + public static ReadModelAdSetIdV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReadModelAdSetIdV24Q3.class); } /** - * Convert an instance of CampaignReadResource to an JSON string + * Convert an instance of ReadModelAdSetIdV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelReadAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV24Q3.java similarity index 81% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelReadAdSet.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV24Q3.java index 27645c76..7d40974c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelReadAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.ReadAdSet; +import com.criteo.api.marketingsolutions.preview.model.ReadAdSetV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,13 +43,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * read model data for resources */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ReadModelReadAdSet { +public class ReadModelReadAdSetV24Q3 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; @@ -60,13 +60,13 @@ public class ReadModelReadAdSet { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private ReadAdSet attributes; + private ReadAdSetV24Q3 attributes; - public ReadModelReadAdSet() { + public ReadModelReadAdSetV24Q3() { } - public ReadModelReadAdSet( + public ReadModelReadAdSetV24Q3( String id, String type ) { @@ -101,7 +101,7 @@ public String getType() { - public ReadModelReadAdSet attributes(ReadAdSet attributes) { + public ReadModelReadAdSetV24Q3 attributes(ReadAdSetV24Q3 attributes) { this.attributes = attributes; return this; @@ -113,12 +113,12 @@ public ReadModelReadAdSet attributes(ReadAdSet attributes) { **/ @javax.annotation.Nullable - public ReadAdSet getAttributes() { + public ReadAdSetV24Q3 getAttributes() { return attributes; } - public void setAttributes(ReadAdSet attributes) { + public void setAttributes(ReadAdSetV24Q3 attributes) { this.attributes = attributes; } @@ -135,9 +135,9 @@ public void setAttributes(ReadAdSet attributes) { * * @param key name of the property * @param value value of the property - * @return the ReadModelReadAdSet instance itself + * @return the ReadModelReadAdSetV24Q3 instance itself */ - public ReadModelReadAdSet putAdditionalProperty(String key, Object value) { + public ReadModelReadAdSetV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -176,11 +176,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ReadModelReadAdSet readModelReadAdSet = (ReadModelReadAdSet) o; - return Objects.equals(this.id, readModelReadAdSet.id) && - Objects.equals(this.type, readModelReadAdSet.type) && - Objects.equals(this.attributes, readModelReadAdSet.attributes)&& - Objects.equals(this.additionalProperties, readModelReadAdSet.additionalProperties); + ReadModelReadAdSetV24Q3 readModelReadAdSetV24Q3 = (ReadModelReadAdSetV24Q3) o; + return Objects.equals(this.id, readModelReadAdSetV24Q3.id) && + Objects.equals(this.type, readModelReadAdSetV24Q3.type) && + Objects.equals(this.attributes, readModelReadAdSetV24Q3.attributes)&& + Objects.equals(this.additionalProperties, readModelReadAdSetV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -202,7 +202,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ReadModelReadAdSet {\n"); + sb.append("class ReadModelReadAdSetV24Q3 {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); @@ -241,12 +241,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ReadModelReadAdSet + * @throws IOException if the JSON Object is invalid with respect to ReadModelReadAdSetV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ReadModelReadAdSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ReadModelReadAdSet is not found in the empty JSON string", ReadModelReadAdSet.openapiRequiredFields.toString())); + if (!ReadModelReadAdSetV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ReadModelReadAdSetV24Q3 is not found in the empty JSON string", ReadModelReadAdSetV24Q3.openapiRequiredFields.toString())); } } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { @@ -257,7 +257,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - ReadAdSet.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + ReadAdSetV24Q3.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } } @@ -265,16 +265,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReadModelReadAdSet.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReadModelReadAdSet' and its subtypes + if (!ReadModelReadAdSetV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReadModelReadAdSetV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ReadModelReadAdSet.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReadModelReadAdSetV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ReadModelReadAdSet value) throws IOException { + public void write(JsonWriter out, ReadModelReadAdSetV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -297,11 +297,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ReadModelReadAdSet read(JsonReader in) throws IOException { + public ReadModelReadAdSetV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ReadModelReadAdSet instance = thisAdapter.fromJsonTree(jsonObj); + ReadModelReadAdSetV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -328,18 +328,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ReadModelReadAdSet given an JSON string + * Create an instance of ReadModelReadAdSetV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of ReadModelReadAdSet - * @throws IOException if the JSON string is invalid with respect to ReadModelReadAdSet + * @return An instance of ReadModelReadAdSetV24Q3 + * @throws IOException if the JSON string is invalid with respect to ReadModelReadAdSetV24Q3 */ - public static ReadModelReadAdSet fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReadModelReadAdSet.class); + public static ReadModelReadAdSetV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReadModelReadAdSetV24Q3.class); } /** - * Convert an instance of ReadModelReadAdSet to an JSON string + * Convert an instance of ReadModelReadAdSetV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailWarning.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailWarning.java new file mode 100644 index 00000000..16291b8d --- /dev/null +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailWarning.java @@ -0,0 +1,398 @@ +/* + * Criteo API + * Criteo API - MarketingSolutions + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.marketingsolutions.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.marketingsolutions.preview.JSON; + +/** + * A warning on a batch operation. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ReportDetailWarning { + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + OVERLARGEBADGEURL("OverlargeBadgeUrl"), + + INVALIDBADGEURL("InvalidBadgeUrl"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_IS_SERVER_RELATED = "isServerRelated"; + @SerializedName(SERIALIZED_NAME_IS_SERVER_RELATED) + private Boolean isServerRelated; + + public ReportDetailWarning() { + } + + public ReportDetailWarning type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public ReportDetailWarning message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + + public String getMessage() { + return message; + } + + + public void setMessage(String message) { + this.message = message; + } + + + public ReportDetailWarning isServerRelated(Boolean isServerRelated) { + + this.isServerRelated = isServerRelated; + return this; + } + + /** + * Get isServerRelated + * @return isServerRelated + **/ + @javax.annotation.Nonnull + + public Boolean getIsServerRelated() { + return isServerRelated; + } + + + public void setIsServerRelated(Boolean isServerRelated) { + this.isServerRelated = isServerRelated; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ReportDetailWarning instance itself + */ + public ReportDetailWarning putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportDetailWarning reportDetailWarning = (ReportDetailWarning) o; + return Objects.equals(this.type, reportDetailWarning.type) && + Objects.equals(this.message, reportDetailWarning.message) && + Objects.equals(this.isServerRelated, reportDetailWarning.isServerRelated)&& + Objects.equals(this.additionalProperties, reportDetailWarning.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(type, message, isServerRelated, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportDetailWarning {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" isServerRelated: ").append(toIndentedString(isServerRelated)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("message"); + openapiFields.add("isServerRelated"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + openapiRequiredFields.add("message"); + openapiRequiredFields.add("isServerRelated"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ReportDetailWarning + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ReportDetailWarning.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ReportDetailWarning is not found in the empty JSON string", ReportDetailWarning.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ReportDetailWarning.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if (!jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ReportDetailWarning.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReportDetailWarning' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReportDetailWarning.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ReportDetailWarning value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ReportDetailWarning read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ReportDetailWarning instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ReportDetailWarning given an JSON string + * + * @param jsonString JSON string + * @return An instance of ReportDetailWarning + * @throws IOException if the JSON string is invalid with respect to ReportDetailWarning + */ + public static ReportDetailWarning fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReportDetailWarning.class); + } + + /** + * Convert an instance of ReportDetailWarning to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileAttributeModel.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailWarnings.java similarity index 65% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileAttributeModel.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailWarnings.java index 0d60d380..2495d4fc 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileAttributeModel.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailWarnings.java @@ -15,12 +15,15 @@ import java.util.Objects; import java.util.Arrays; +import com.criteo.api.marketingsolutions.preview.model.ReportDetailWarning; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -44,62 +47,67 @@ import com.criteo.api.marketingsolutions.preview.JSON; /** - * Attributes of a user profile + * A list of warnings on a batch operation. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class UserProfileAttributeModel { - public static final String SERIALIZED_NAME_KEY = "key"; - @SerializedName(SERIALIZED_NAME_KEY) - private String key; +public class ReportDetailWarnings { + public static final String SERIALIZED_NAME_PRODUCT_ID = "productId"; + @SerializedName(SERIALIZED_NAME_PRODUCT_ID) + private String productId; - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - private String value; + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = new ArrayList<>(); - public UserProfileAttributeModel() { + public ReportDetailWarnings() { } - public UserProfileAttributeModel key(String key) { + public ReportDetailWarnings productId(String productId) { - this.key = key; + this.productId = productId; return this; } /** - * Get key - * @return key + * Get productId + * @return productId **/ @javax.annotation.Nonnull - public String getKey() { - return key; + public String getProductId() { + return productId; } - public void setKey(String key) { - this.key = key; + public void setProductId(String productId) { + this.productId = productId; } - public UserProfileAttributeModel value(String value) { + public ReportDetailWarnings warnings(List warnings) { - this.value = value; + this.warnings = warnings; + return this; + } + + public ReportDetailWarnings addWarningsItem(ReportDetailWarning warningsItem) { + this.warnings.add(warningsItem); return this; } /** - * Get value - * @return value + * Get warnings + * @return warnings **/ @javax.annotation.Nonnull - public String getValue() { - return value; + public List getWarnings() { + return warnings; } - public void setValue(String value) { - this.value = value; + public void setWarnings(List warnings) { + this.warnings = warnings; } /** @@ -115,9 +123,9 @@ public void setValue(String value) { * * @param key name of the property * @param value value of the property - * @return the UserProfileAttributeModel instance itself + * @return the ReportDetailWarnings instance itself */ - public UserProfileAttributeModel putAdditionalProperty(String key, Object value) { + public ReportDetailWarnings putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -156,23 +164,23 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UserProfileAttributeModel userProfileAttributeModel = (UserProfileAttributeModel) o; - return Objects.equals(this.key, userProfileAttributeModel.key) && - Objects.equals(this.value, userProfileAttributeModel.value)&& - Objects.equals(this.additionalProperties, userProfileAttributeModel.additionalProperties); + ReportDetailWarnings reportDetailWarnings = (ReportDetailWarnings) o; + return Objects.equals(this.productId, reportDetailWarnings.productId) && + Objects.equals(this.warnings, reportDetailWarnings.warnings)&& + Objects.equals(this.additionalProperties, reportDetailWarnings.additionalProperties); } @Override public int hashCode() { - return Objects.hash(key, value, additionalProperties); + return Objects.hash(productId, warnings, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UserProfileAttributeModel {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("class ReportDetailWarnings {\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -196,56 +204,63 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("value"); + openapiFields.add("productId"); + openapiFields.add("warnings"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("key"); - openapiRequiredFields.add("value"); + openapiRequiredFields.add("productId"); + openapiRequiredFields.add("warnings"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to UserProfileAttributeModel + * @throws IOException if the JSON Object is invalid with respect to ReportDetailWarnings */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!UserProfileAttributeModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in UserProfileAttributeModel is not found in the empty JSON string", UserProfileAttributeModel.openapiRequiredFields.toString())); + if (!ReportDetailWarnings.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ReportDetailWarnings is not found in the empty JSON string", ReportDetailWarnings.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UserProfileAttributeModel.openapiRequiredFields) { + for (String requiredField : ReportDetailWarnings.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + if (!jsonObj.get("productId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `productId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("productId").toString())); } - if (!jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); } + + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + // validate the required field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + ReportDetailWarning.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserProfileAttributeModel.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserProfileAttributeModel' and its subtypes + if (!ReportDetailWarnings.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReportDetailWarnings' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserProfileAttributeModel.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReportDetailWarnings.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, UserProfileAttributeModel value) throws IOException { + public void write(JsonWriter out, ReportDetailWarnings value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -268,11 +283,11 @@ else if (entry.getValue() instanceof Character) } @Override - public UserProfileAttributeModel read(JsonReader in) throws IOException { + public ReportDetailWarnings read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - UserProfileAttributeModel instance = thisAdapter.fromJsonTree(jsonObj); + ReportDetailWarnings instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -299,18 +314,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of UserProfileAttributeModel given an JSON string + * Create an instance of ReportDetailWarnings given an JSON string * * @param jsonString JSON string - * @return An instance of UserProfileAttributeModel - * @throws IOException if the JSON string is invalid with respect to UserProfileAttributeModel + * @return An instance of ReportDetailWarnings + * @throws IOException if the JSON string is invalid with respect to ReportDetailWarnings */ - public static UserProfileAttributeModel fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UserProfileAttributeModel.class); + public static ReportDetailWarnings fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReportDetailWarnings.class); } /** - * Convert an instance of UserProfileAttributeModel to an JSON string + * Convert an instance of ReportDetailWarnings to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportOkResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportOkResponse.java index 711c68d7..fc7942ee 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportOkResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportOkResponse.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Arrays; import com.criteo.api.marketingsolutions.preview.model.ReportDetailErrors; +import com.criteo.api.marketingsolutions.preview.model.ReportDetailWarnings; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -132,6 +133,14 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_ERROR_DETAILS) private List errorDetails = new ArrayList<>(); + public static final String SERIALIZED_NAME_NUMBER_OF_PRODUCTS_WITH_WARNINGS = "numberOfProductsWithWarnings"; + @SerializedName(SERIALIZED_NAME_NUMBER_OF_PRODUCTS_WITH_WARNINGS) + private Integer numberOfProductsWithWarnings; + + public static final String SERIALIZED_NAME_WARNING_DETAILS = "warningDetails"; + @SerializedName(SERIALIZED_NAME_WARNING_DETAILS) + private List warningDetails = new ArrayList<>(); + public ReportOkResponse() { } @@ -293,6 +302,55 @@ public void setErrorDetails(List errorDetails) { this.errorDetails = errorDetails; } + + public ReportOkResponse numberOfProductsWithWarnings(Integer numberOfProductsWithWarnings) { + + this.numberOfProductsWithWarnings = numberOfProductsWithWarnings; + return this; + } + + /** + * The number of products with Warnings. + * @return numberOfProductsWithWarnings + **/ + @javax.annotation.Nonnull + + public Integer getNumberOfProductsWithWarnings() { + return numberOfProductsWithWarnings; + } + + + public void setNumberOfProductsWithWarnings(Integer numberOfProductsWithWarnings) { + this.numberOfProductsWithWarnings = numberOfProductsWithWarnings; + } + + + public ReportOkResponse warningDetails(List warningDetails) { + + this.warningDetails = warningDetails; + return this; + } + + public ReportOkResponse addWarningDetailsItem(ReportDetailWarnings warningDetailsItem) { + this.warningDetails.add(warningDetailsItem); + return this; + } + + /** + * The list of Warnings with details. + * @return warningDetails + **/ + @javax.annotation.Nonnull + + public List getWarningDetails() { + return warningDetails; + } + + + public void setWarningDetails(List warningDetails) { + this.warningDetails = warningDetails; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -354,13 +412,15 @@ public boolean equals(Object o) { Objects.equals(this.numberOfProductsUpserted, reportOkResponse.numberOfProductsUpserted) && Objects.equals(this.numberOfProductsDeleted, reportOkResponse.numberOfProductsDeleted) && Objects.equals(this.numberOfProductsWithErrors, reportOkResponse.numberOfProductsWithErrors) && - Objects.equals(this.errorDetails, reportOkResponse.errorDetails)&& + Objects.equals(this.errorDetails, reportOkResponse.errorDetails) && + Objects.equals(this.numberOfProductsWithWarnings, reportOkResponse.numberOfProductsWithWarnings) && + Objects.equals(this.warningDetails, reportOkResponse.warningDetails)&& Objects.equals(this.additionalProperties, reportOkResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(status, importRequestTimestamp, numberOfProductsInTheBatch, numberOfProductsUpserted, numberOfProductsDeleted, numberOfProductsWithErrors, errorDetails, additionalProperties); + return Objects.hash(status, importRequestTimestamp, numberOfProductsInTheBatch, numberOfProductsUpserted, numberOfProductsDeleted, numberOfProductsWithErrors, errorDetails, numberOfProductsWithWarnings, warningDetails, additionalProperties); } @Override @@ -374,6 +434,8 @@ public String toString() { sb.append(" numberOfProductsDeleted: ").append(toIndentedString(numberOfProductsDeleted)).append("\n"); sb.append(" numberOfProductsWithErrors: ").append(toIndentedString(numberOfProductsWithErrors)).append("\n"); sb.append(" errorDetails: ").append(toIndentedString(errorDetails)).append("\n"); + sb.append(" numberOfProductsWithWarnings: ").append(toIndentedString(numberOfProductsWithWarnings)).append("\n"); + sb.append(" warningDetails: ").append(toIndentedString(warningDetails)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -404,6 +466,8 @@ private String toIndentedString(Object o) { openapiFields.add("numberOfProductsDeleted"); openapiFields.add("numberOfProductsWithErrors"); openapiFields.add("errorDetails"); + openapiFields.add("numberOfProductsWithWarnings"); + openapiFields.add("warningDetails"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -414,6 +478,8 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("numberOfProductsDeleted"); openapiRequiredFields.add("numberOfProductsWithErrors"); openapiRequiredFields.add("errorDetails"); + openapiRequiredFields.add("numberOfProductsWithWarnings"); + openapiRequiredFields.add("warningDetails"); } /** @@ -448,6 +514,16 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { for (int i = 0; i < jsonArrayerrorDetails.size(); i++) { ReportDetailErrors.validateJsonObject(jsonArrayerrorDetails.get(i).getAsJsonObject()); }; + // ensure the json data is an array + if (!jsonObj.get("warningDetails").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warningDetails` to be an array in the JSON string but got `%s`", jsonObj.get("warningDetails").toString())); + } + + JsonArray jsonArraywarningDetails = jsonObj.getAsJsonArray("warningDetails"); + // validate the required field `warningDetails` (array) + for (int i = 0; i < jsonArraywarningDetails.size(); i++) { + ReportDetailWarnings.validateJsonObject(jsonArraywarningDetails.get(i).getAsJsonObject()); + }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsPatchAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSetV24Q3.java similarity index 80% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsPatchAdSet.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSetV24Q3.java index 4f2ca599..2963a36c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsPatchAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSetV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.WriteModelPatchAdSet; +import com.criteo.api.marketingsolutions.preview.model.WriteModelPatchAdSetV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,27 +45,27 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * List of input resources */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RequestsPatchAdSet { +public class RequestsPatchAdSetV24Q3 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; - public RequestsPatchAdSet() { + public RequestsPatchAdSetV24Q3() { } - public RequestsPatchAdSet data(List data) { + public RequestsPatchAdSetV24Q3 data(List data) { this.data = data; return this; } - public RequestsPatchAdSet addDataItem(WriteModelPatchAdSet dataItem) { + public RequestsPatchAdSetV24Q3 addDataItem(WriteModelPatchAdSetV24Q3 dataItem) { if (this.data == null) { this.data = null; } @@ -79,12 +79,12 @@ public RequestsPatchAdSet addDataItem(WriteModelPatchAdSet dataItem) { **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -101,9 +101,9 @@ public void setData(List data) { * * @param key name of the property * @param value value of the property - * @return the RequestsPatchAdSet instance itself + * @return the RequestsPatchAdSetV24Q3 instance itself */ - public RequestsPatchAdSet putAdditionalProperty(String key, Object value) { + public RequestsPatchAdSetV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -142,9 +142,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RequestsPatchAdSet requestsPatchAdSet = (RequestsPatchAdSet) o; - return Objects.equals(this.data, requestsPatchAdSet.data)&& - Objects.equals(this.additionalProperties, requestsPatchAdSet.additionalProperties); + RequestsPatchAdSetV24Q3 requestsPatchAdSetV24Q3 = (RequestsPatchAdSetV24Q3) o; + return Objects.equals(this.data, requestsPatchAdSetV24Q3.data)&& + Objects.equals(this.additionalProperties, requestsPatchAdSetV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -166,7 +166,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RequestsPatchAdSet {\n"); + sb.append("class RequestsPatchAdSetV24Q3 {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -201,12 +201,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RequestsPatchAdSet + * @throws IOException if the JSON Object is invalid with respect to RequestsPatchAdSetV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RequestsPatchAdSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RequestsPatchAdSet is not found in the empty JSON string", RequestsPatchAdSet.openapiRequiredFields.toString())); + if (!RequestsPatchAdSetV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RequestsPatchAdSetV24Q3 is not found in the empty JSON string", RequestsPatchAdSetV24Q3.openapiRequiredFields.toString())); } } if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -219,7 +219,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - WriteModelPatchAdSet.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + WriteModelPatchAdSetV24Q3.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -229,16 +229,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RequestsPatchAdSet.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RequestsPatchAdSet' and its subtypes + if (!RequestsPatchAdSetV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RequestsPatchAdSetV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RequestsPatchAdSet.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RequestsPatchAdSetV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RequestsPatchAdSet value) throws IOException { + public void write(JsonWriter out, RequestsPatchAdSetV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -261,11 +261,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RequestsPatchAdSet read(JsonReader in) throws IOException { + public RequestsPatchAdSetV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RequestsPatchAdSet instance = thisAdapter.fromJsonTree(jsonObj); + RequestsPatchAdSetV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -292,18 +292,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RequestsPatchAdSet given an JSON string + * Create an instance of RequestsPatchAdSetV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of RequestsPatchAdSet - * @throws IOException if the JSON string is invalid with respect to RequestsPatchAdSet + * @return An instance of RequestsPatchAdSetV24Q3 + * @throws IOException if the JSON string is invalid with respect to RequestsPatchAdSetV24Q3 */ - public static RequestsPatchAdSet fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RequestsPatchAdSet.class); + public static RequestsPatchAdSetV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RequestsPatchAdSetV24Q3.class); } /** - * Convert an instance of RequestsPatchAdSet to an JSON string + * Convert an instance of RequestsPatchAdSetV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseReadAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV24Q3.java similarity index 82% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseReadAdSet.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV24Q3.java index 97d56268..b967797e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseReadAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.ReadModelReadAdSet; +import com.criteo.api.marketingsolutions.preview.model.CommonProblem; +import com.criteo.api.marketingsolutions.preview.model.ReadModelReadAdSetV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,16 +46,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * output resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ResponseReadAdSet { +public class ResponseReadAdSetV24Q3 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private ReadModelReadAdSet data; + private ReadModelReadAdSetV24Q3 data; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) @@ -65,11 +65,11 @@ public class ResponseReadAdSet { @SerializedName(SERIALIZED_NAME_ERRORS) private List errors = null; - public ResponseReadAdSet() { + public ResponseReadAdSetV24Q3() { } - public ResponseReadAdSet( + public ResponseReadAdSetV24Q3( List warnings, List errors ) { @@ -78,7 +78,7 @@ public ResponseReadAdSet( this.errors = errors; } - public ResponseReadAdSet data(ReadModelReadAdSet data) { + public ResponseReadAdSetV24Q3 data(ReadModelReadAdSetV24Q3 data) { this.data = data; return this; @@ -90,12 +90,12 @@ public ResponseReadAdSet data(ReadModelReadAdSet data) { **/ @javax.annotation.Nullable - public ReadModelReadAdSet getData() { + public ReadModelReadAdSetV24Q3 getData() { return data; } - public void setData(ReadModelReadAdSet data) { + public void setData(ReadModelReadAdSetV24Q3 data) { this.data = data; } @@ -138,9 +138,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the ResponseReadAdSet instance itself + * @return the ResponseReadAdSetV24Q3 instance itself */ - public ResponseReadAdSet putAdditionalProperty(String key, Object value) { + public ResponseReadAdSetV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -179,11 +179,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseReadAdSet responseReadAdSet = (ResponseReadAdSet) o; - return Objects.equals(this.data, responseReadAdSet.data) && - Objects.equals(this.warnings, responseReadAdSet.warnings) && - Objects.equals(this.errors, responseReadAdSet.errors)&& - Objects.equals(this.additionalProperties, responseReadAdSet.additionalProperties); + ResponseReadAdSetV24Q3 responseReadAdSetV24Q3 = (ResponseReadAdSetV24Q3) o; + return Objects.equals(this.data, responseReadAdSetV24Q3.data) && + Objects.equals(this.warnings, responseReadAdSetV24Q3.warnings) && + Objects.equals(this.errors, responseReadAdSetV24Q3.errors)&& + Objects.equals(this.additionalProperties, responseReadAdSetV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -205,7 +205,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ResponseReadAdSet {\n"); + sb.append("class ResponseReadAdSetV24Q3 {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); @@ -244,17 +244,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ResponseReadAdSet + * @throws IOException if the JSON Object is invalid with respect to ResponseReadAdSetV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ResponseReadAdSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ResponseReadAdSet is not found in the empty JSON string", ResponseReadAdSet.openapiRequiredFields.toString())); + if (!ResponseReadAdSetV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResponseReadAdSetV24Q3 is not found in the empty JSON string", ResponseReadAdSetV24Q3.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - ReadModelReadAdSet.validateJsonObject(jsonObj.getAsJsonObject("data")); + ReadModelReadAdSetV24Q3.validateJsonObject(jsonObj.getAsJsonObject("data")); } if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); @@ -290,16 +290,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResponseReadAdSet.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResponseReadAdSet' and its subtypes + if (!ResponseReadAdSetV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResponseReadAdSetV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ResponseReadAdSet.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResponseReadAdSetV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ResponseReadAdSet value) throws IOException { + public void write(JsonWriter out, ResponseReadAdSetV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -322,11 +322,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ResponseReadAdSet read(JsonReader in) throws IOException { + public ResponseReadAdSetV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ResponseReadAdSet instance = thisAdapter.fromJsonTree(jsonObj); + ResponseReadAdSetV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -353,18 +353,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ResponseReadAdSet given an JSON string + * Create an instance of ResponseReadAdSetV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of ResponseReadAdSet - * @throws IOException if the JSON string is invalid with respect to ResponseReadAdSet + * @return An instance of ResponseReadAdSetV24Q3 + * @throws IOException if the JSON string is invalid with respect to ResponseReadAdSetV24Q3 */ - public static ResponseReadAdSet fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ResponseReadAdSet.class); + public static ResponseReadAdSetV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResponseReadAdSetV24Q3.class); } /** - * Convert an instance of ResponseReadAdSet to an JSON string + * Convert an instance of ResponseReadAdSetV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetIdV24Q3.java similarity index 81% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignListResponse.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetIdV24Q3.java index 7c62c7d5..5fe1501b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetIdV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CampaignReadResource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.marketingsolutions.preview.model.CommonProblem; +import com.criteo.api.marketingsolutions.preview.model.ReadModelAdSetIdV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,16 +46,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * List of output resources */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CampaignListResponse { +public class ResponsesAdSetIdV24Q3 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) @@ -65,12 +65,12 @@ public class CampaignListResponse { @SerializedName(SERIALIZED_NAME_ERRORS) private List errors = null; - public CampaignListResponse() { + public ResponsesAdSetIdV24Q3() { } - public CampaignListResponse( - List data, + public ResponsesAdSetIdV24Q3( + List data, List warnings, List errors ) { @@ -86,7 +86,7 @@ public CampaignListResponse( **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } @@ -131,9 +131,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the CampaignListResponse instance itself + * @return the ResponsesAdSetIdV24Q3 instance itself */ - public CampaignListResponse putAdditionalProperty(String key, Object value) { + public ResponsesAdSetIdV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -172,11 +172,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CampaignListResponse campaignListResponse = (CampaignListResponse) o; - return Objects.equals(this.data, campaignListResponse.data) && - Objects.equals(this.warnings, campaignListResponse.warnings) && - Objects.equals(this.errors, campaignListResponse.errors)&& - Objects.equals(this.additionalProperties, campaignListResponse.additionalProperties); + ResponsesAdSetIdV24Q3 responsesAdSetIdV24Q3 = (ResponsesAdSetIdV24Q3) o; + return Objects.equals(this.data, responsesAdSetIdV24Q3.data) && + Objects.equals(this.warnings, responsesAdSetIdV24Q3.warnings) && + Objects.equals(this.errors, responsesAdSetIdV24Q3.errors)&& + Objects.equals(this.additionalProperties, responsesAdSetIdV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -198,7 +198,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CampaignListResponse {\n"); + sb.append("class ResponsesAdSetIdV24Q3 {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); @@ -237,12 +237,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CampaignListResponse + * @throws IOException if the JSON Object is invalid with respect to ResponsesAdSetIdV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CampaignListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignListResponse is not found in the empty JSON string", CampaignListResponse.openapiRequiredFields.toString())); + if (!ResponsesAdSetIdV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResponsesAdSetIdV24Q3 is not found in the empty JSON string", ResponsesAdSetIdV24Q3.openapiRequiredFields.toString())); } } if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -255,7 +255,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - CampaignReadResource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + ReadModelAdSetIdV24Q3.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -293,16 +293,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CampaignListResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CampaignListResponse' and its subtypes + if (!ResponsesAdSetIdV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResponsesAdSetIdV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CampaignListResponse.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResponsesAdSetIdV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CampaignListResponse value) throws IOException { + public void write(JsonWriter out, ResponsesAdSetIdV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -325,11 +325,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CampaignListResponse read(JsonReader in) throws IOException { + public ResponsesAdSetIdV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CampaignListResponse instance = thisAdapter.fromJsonTree(jsonObj); + ResponsesAdSetIdV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -356,18 +356,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CampaignListResponse given an JSON string + * Create an instance of ResponsesAdSetIdV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of CampaignListResponse - * @throws IOException if the JSON string is invalid with respect to CampaignListResponse + * @return An instance of ResponsesAdSetIdV24Q3 + * @throws IOException if the JSON string is invalid with respect to ResponsesAdSetIdV24Q3 */ - public static CampaignListResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CampaignListResponse.class); + public static ResponsesAdSetIdV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResponsesAdSetIdV24Q3.class); } /** - * Convert an instance of CampaignListResponse to an JSON string + * Convert an instance of ResponsesAdSetIdV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesReadAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV24Q3.java similarity index 83% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesReadAdSet.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV24Q3.java index 8b7a87fa..098f69c7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesReadAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; -import com.criteo.api.marketingsolutions.v2023_07.model.ReadModelReadAdSet; +import com.criteo.api.marketingsolutions.preview.model.CommonProblem; +import com.criteo.api.marketingsolutions.preview.model.ReadModelReadAdSetV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,16 +46,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * List of output resources */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ResponsesReadAdSet { +public class ResponsesReadAdSetV24Q3 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) @@ -65,12 +65,12 @@ public class ResponsesReadAdSet { @SerializedName(SERIALIZED_NAME_ERRORS) private List errors = null; - public ResponsesReadAdSet() { + public ResponsesReadAdSetV24Q3() { } - public ResponsesReadAdSet( - List data, + public ResponsesReadAdSetV24Q3( + List data, List warnings, List errors ) { @@ -86,7 +86,7 @@ public ResponsesReadAdSet( **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } @@ -131,9 +131,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the ResponsesReadAdSet instance itself + * @return the ResponsesReadAdSetV24Q3 instance itself */ - public ResponsesReadAdSet putAdditionalProperty(String key, Object value) { + public ResponsesReadAdSetV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -172,11 +172,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponsesReadAdSet responsesReadAdSet = (ResponsesReadAdSet) o; - return Objects.equals(this.data, responsesReadAdSet.data) && - Objects.equals(this.warnings, responsesReadAdSet.warnings) && - Objects.equals(this.errors, responsesReadAdSet.errors)&& - Objects.equals(this.additionalProperties, responsesReadAdSet.additionalProperties); + ResponsesReadAdSetV24Q3 responsesReadAdSetV24Q3 = (ResponsesReadAdSetV24Q3) o; + return Objects.equals(this.data, responsesReadAdSetV24Q3.data) && + Objects.equals(this.warnings, responsesReadAdSetV24Q3.warnings) && + Objects.equals(this.errors, responsesReadAdSetV24Q3.errors)&& + Objects.equals(this.additionalProperties, responsesReadAdSetV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -198,7 +198,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ResponsesReadAdSet {\n"); + sb.append("class ResponsesReadAdSetV24Q3 {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); @@ -237,12 +237,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ResponsesReadAdSet + * @throws IOException if the JSON Object is invalid with respect to ResponsesReadAdSetV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ResponsesReadAdSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ResponsesReadAdSet is not found in the empty JSON string", ResponsesReadAdSet.openapiRequiredFields.toString())); + if (!ResponsesReadAdSetV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResponsesReadAdSetV24Q3 is not found in the empty JSON string", ResponsesReadAdSetV24Q3.openapiRequiredFields.toString())); } } if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -255,7 +255,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - ReadModelReadAdSet.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + ReadModelReadAdSetV24Q3.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -293,16 +293,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResponsesReadAdSet.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResponsesReadAdSet' and its subtypes + if (!ResponsesReadAdSetV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResponsesReadAdSetV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ResponsesReadAdSet.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResponsesReadAdSetV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ResponsesReadAdSet value) throws IOException { + public void write(JsonWriter out, ResponsesReadAdSetV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -325,11 +325,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ResponsesReadAdSet read(JsonReader in) throws IOException { + public ResponsesReadAdSetV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ResponsesReadAdSet instance = thisAdapter.fromJsonTree(jsonObj); + ResponsesReadAdSetV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -356,18 +356,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ResponsesReadAdSet given an JSON string + * Create an instance of ResponsesReadAdSetV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of ResponsesReadAdSet - * @throws IOException if the JSON string is invalid with respect to ResponsesReadAdSet + * @return An instance of ResponsesReadAdSetV24Q3 + * @throws IOException if the JSON string is invalid with respect to ResponsesReadAdSetV24Q3 */ - public static ResponsesReadAdSet fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ResponsesReadAdSet.class); + public static ResponsesReadAdSetV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResponsesReadAdSetV24Q3.class); } /** - * Convert an instance of ResponsesReadAdSet to an JSON string + * Convert an instance of ResponsesReadAdSetV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioning.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioning.java index 62767748..85773043 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioning.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioning.java @@ -108,6 +108,61 @@ public VideoPlacementEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_VIDEO_PLACEMENT) private List videoPlacement = null; + /** + * Gets or Sets videoPlcmt + */ + @JsonAdapter(VideoPlcmtEnum.Adapter.class) + public enum VideoPlcmtEnum { + INSTREAM("InStream"), + + ACCOMPANYINGCONTENT("AccompanyingContent"), + + INTERSTITIAL("Interstitial"), + + NOCONTENTSTANDALONE("NoContentStandalone"); + + private String value; + + VideoPlcmtEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static VideoPlcmtEnum fromValue(String value) { + for (VideoPlcmtEnum b : VideoPlcmtEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final VideoPlcmtEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public VideoPlcmtEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return VideoPlcmtEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_VIDEO_PLCMT = "videoPlcmt"; + @SerializedName(SERIALIZED_NAME_VIDEO_PLCMT) + private List videoPlcmt = null; + /** * Gets or Sets playbackMethod */ @@ -412,6 +467,36 @@ public void setVideoPlacement(List videoPlacement) { } + public SetAdSetTargetingVideoPositioning videoPlcmt(List videoPlcmt) { + + this.videoPlcmt = videoPlcmt; + return this; + } + + public SetAdSetTargetingVideoPositioning addVideoPlcmtItem(VideoPlcmtEnum videoPlcmtItem) { + if (this.videoPlcmt == null) { + this.videoPlcmt = null; + } + this.videoPlcmt.add(videoPlcmtItem); + return this; + } + + /** + * Get videoPlcmt + * @return videoPlcmt + **/ + @javax.annotation.Nullable + + public List getVideoPlcmt() { + return videoPlcmt; + } + + + public void setVideoPlcmt(List videoPlcmt) { + this.videoPlcmt = videoPlcmt; + } + + public SetAdSetTargetingVideoPositioning playbackMethod(List playbackMethod) { this.playbackMethod = playbackMethod; @@ -609,6 +694,7 @@ public boolean equals(Object o) { } SetAdSetTargetingVideoPositioning setAdSetTargetingVideoPositioning = (SetAdSetTargetingVideoPositioning) o; return Objects.equals(this.videoPlacement, setAdSetTargetingVideoPositioning.videoPlacement) && + Objects.equals(this.videoPlcmt, setAdSetTargetingVideoPositioning.videoPlcmt) && Objects.equals(this.playbackMethod, setAdSetTargetingVideoPositioning.playbackMethod) && Objects.equals(this.skippable, setAdSetTargetingVideoPositioning.skippable) && Objects.equals(this.videoInStreamPosition, setAdSetTargetingVideoPositioning.videoInStreamPosition) && @@ -623,7 +709,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(videoPlacement, playbackMethod, skippable, videoInStreamPosition, videoPlayerSize, videoAspectRatio, additionalProperties); + return Objects.hash(videoPlacement, videoPlcmt, playbackMethod, skippable, videoInStreamPosition, videoPlayerSize, videoAspectRatio, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -638,6 +724,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SetAdSetTargetingVideoPositioning {\n"); sb.append(" videoPlacement: ").append(toIndentedString(videoPlacement)).append("\n"); + sb.append(" videoPlcmt: ").append(toIndentedString(videoPlcmt)).append("\n"); sb.append(" playbackMethod: ").append(toIndentedString(playbackMethod)).append("\n"); sb.append(" skippable: ").append(toIndentedString(skippable)).append("\n"); sb.append(" videoInStreamPosition: ").append(toIndentedString(videoInStreamPosition)).append("\n"); @@ -667,6 +754,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("videoPlacement"); + openapiFields.add("videoPlcmt"); openapiFields.add("playbackMethod"); openapiFields.add("skippable"); openapiFields.add("videoInStreamPosition"); @@ -694,6 +782,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("Expected the field `videoPlacement` to be an array in the JSON string but got `%s`", jsonObj.get("videoPlacement").toString())); } // ensure the optional json data is an array if present + if (jsonObj.get("videoPlcmt") != null && !jsonObj.get("videoPlcmt").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `videoPlcmt` to be an array in the JSON string but got `%s`", jsonObj.get("videoPlcmt").toString())); + } + // ensure the optional json data is an array if present if (jsonObj.get("playbackMethod") != null && !jsonObj.get("playbackMethod").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `playbackMethod` to be an array in the JSON string but got `%s`", jsonObj.get("playbackMethod").toString())); } diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModel.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModel.java deleted file mode 100644 index 8b3804d0..00000000 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModel.java +++ /dev/null @@ -1,438 +0,0 @@ -/* - * Criteo API - * Criteo API - MarketingSolutions - * - * The version of the OpenAPI document: preview - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.marketingsolutions.preview.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.UserProfileAttributeModel; -import com.criteo.api.marketingsolutions.preview.model.UserProfileIdentifierModel; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.marketingsolutions.preview.JSON; - -/** - * Used for the /user-profiles/set endpoint. Contains information about the user profile that we add or update - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SetUserProfileModel { - public static final String SERIALIZED_NAME_USER_PROFILE_ID = "userProfileId"; - @SerializedName(SERIALIZED_NAME_USER_PROFILE_ID) - private String userProfileId; - - public static final String SERIALIZED_NAME_USER_PROFILE_LIST_ID = "userProfileListId"; - @SerializedName(SERIALIZED_NAME_USER_PROFILE_LIST_ID) - private String userProfileListId; - - public static final String SERIALIZED_NAME_USER_PROFILE_IDENTIFIERS = "userProfileIdentifiers"; - @SerializedName(SERIALIZED_NAME_USER_PROFILE_IDENTIFIERS) - private List userProfileIdentifiers = null; - - public static final String SERIALIZED_NAME_USER_PROFILE_ATTRIBUTES = "userProfileAttributes"; - @SerializedName(SERIALIZED_NAME_USER_PROFILE_ATTRIBUTES) - private List userProfileAttributes = null; - - public SetUserProfileModel() { - } - - public SetUserProfileModel userProfileId(String userProfileId) { - - this.userProfileId = userProfileId; - return this; - } - - /** - * Get userProfileId - * @return userProfileId - **/ - @javax.annotation.Nonnull - - public String getUserProfileId() { - return userProfileId; - } - - - public void setUserProfileId(String userProfileId) { - this.userProfileId = userProfileId; - } - - - public SetUserProfileModel userProfileListId(String userProfileListId) { - - this.userProfileListId = userProfileListId; - return this; - } - - /** - * Get userProfileListId - * @return userProfileListId - **/ - @javax.annotation.Nullable - - public String getUserProfileListId() { - return userProfileListId; - } - - - public void setUserProfileListId(String userProfileListId) { - this.userProfileListId = userProfileListId; - } - - - public SetUserProfileModel userProfileIdentifiers(List userProfileIdentifiers) { - - this.userProfileIdentifiers = userProfileIdentifiers; - return this; - } - - public SetUserProfileModel addUserProfileIdentifiersItem(UserProfileIdentifierModel userProfileIdentifiersItem) { - if (this.userProfileIdentifiers == null) { - this.userProfileIdentifiers = null; - } - this.userProfileIdentifiers.add(userProfileIdentifiersItem); - return this; - } - - /** - * Get userProfileIdentifiers - * @return userProfileIdentifiers - **/ - @javax.annotation.Nullable - - public List getUserProfileIdentifiers() { - return userProfileIdentifiers; - } - - - public void setUserProfileIdentifiers(List userProfileIdentifiers) { - this.userProfileIdentifiers = userProfileIdentifiers; - } - - - public SetUserProfileModel userProfileAttributes(List userProfileAttributes) { - - this.userProfileAttributes = userProfileAttributes; - return this; - } - - public SetUserProfileModel addUserProfileAttributesItem(UserProfileAttributeModel userProfileAttributesItem) { - if (this.userProfileAttributes == null) { - this.userProfileAttributes = null; - } - this.userProfileAttributes.add(userProfileAttributesItem); - return this; - } - - /** - * Get userProfileAttributes - * @return userProfileAttributes - **/ - @javax.annotation.Nullable - - public List getUserProfileAttributes() { - return userProfileAttributes; - } - - - public void setUserProfileAttributes(List userProfileAttributes) { - this.userProfileAttributes = userProfileAttributes; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the SetUserProfileModel instance itself - */ - public SetUserProfileModel putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SetUserProfileModel setUserProfileModel = (SetUserProfileModel) o; - return Objects.equals(this.userProfileId, setUserProfileModel.userProfileId) && - Objects.equals(this.userProfileListId, setUserProfileModel.userProfileListId) && - Objects.equals(this.userProfileIdentifiers, setUserProfileModel.userProfileIdentifiers) && - Objects.equals(this.userProfileAttributes, setUserProfileModel.userProfileAttributes)&& - Objects.equals(this.additionalProperties, setUserProfileModel.additionalProperties); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(userProfileId, userProfileListId, userProfileIdentifiers, userProfileAttributes, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SetUserProfileModel {\n"); - sb.append(" userProfileId: ").append(toIndentedString(userProfileId)).append("\n"); - sb.append(" userProfileListId: ").append(toIndentedString(userProfileListId)).append("\n"); - sb.append(" userProfileIdentifiers: ").append(toIndentedString(userProfileIdentifiers)).append("\n"); - sb.append(" userProfileAttributes: ").append(toIndentedString(userProfileAttributes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("userProfileId"); - openapiFields.add("userProfileListId"); - openapiFields.add("userProfileIdentifiers"); - openapiFields.add("userProfileAttributes"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userProfileId"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to SetUserProfileModel - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!SetUserProfileModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SetUserProfileModel is not found in the empty JSON string", SetUserProfileModel.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SetUserProfileModel.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("userProfileId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userProfileId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userProfileId").toString())); - } - if ((jsonObj.get("userProfileListId") != null && !jsonObj.get("userProfileListId").isJsonNull()) && !jsonObj.get("userProfileListId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userProfileListId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userProfileListId").toString())); - } - if (jsonObj.get("userProfileIdentifiers") != null && !jsonObj.get("userProfileIdentifiers").isJsonNull()) { - JsonArray jsonArrayuserProfileIdentifiers = jsonObj.getAsJsonArray("userProfileIdentifiers"); - if (jsonArrayuserProfileIdentifiers != null) { - // ensure the json data is an array - if (!jsonObj.get("userProfileIdentifiers").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `userProfileIdentifiers` to be an array in the JSON string but got `%s`", jsonObj.get("userProfileIdentifiers").toString())); - } - - // validate the optional field `userProfileIdentifiers` (array) - for (int i = 0; i < jsonArrayuserProfileIdentifiers.size(); i++) { - UserProfileIdentifierModel.validateJsonObject(jsonArrayuserProfileIdentifiers.get(i).getAsJsonObject()); - }; - } - } - if (jsonObj.get("userProfileAttributes") != null && !jsonObj.get("userProfileAttributes").isJsonNull()) { - JsonArray jsonArrayuserProfileAttributes = jsonObj.getAsJsonArray("userProfileAttributes"); - if (jsonArrayuserProfileAttributes != null) { - // ensure the json data is an array - if (!jsonObj.get("userProfileAttributes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `userProfileAttributes` to be an array in the JSON string but got `%s`", jsonObj.get("userProfileAttributes").toString())); - } - - // validate the optional field `userProfileAttributes` (array) - for (int i = 0; i < jsonArrayuserProfileAttributes.size(); i++) { - UserProfileAttributeModel.validateJsonObject(jsonArrayuserProfileAttributes.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetUserProfileModel.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetUserProfileModel' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetUserProfileModel.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetUserProfileModel value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public SetUserProfileModel read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - SetUserProfileModel instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of SetUserProfileModel given an JSON string - * - * @param jsonString JSON string - * @return An instance of SetUserProfileModel - * @throws IOException if the JSON string is invalid with respect to SetUserProfileModel - */ - public static SetUserProfileModel fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SetUserProfileModel.class); - } - - /** - * Convert an instance of SetUserProfileModel to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelPatchAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSetV24Q3.java similarity index 81% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelPatchAdSet.java rename to sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSetV24Q3.java index 9fca216b..780eaf6b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelPatchAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSetV24Q3.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.marketingsolutions.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.PatchAdSet; +import com.criteo.api.marketingsolutions.preview.model.PatchAdSetV24Q3; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,13 +43,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.marketingsolutions.preview.JSON; /** * write model data for resources */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class WriteModelPatchAdSet { +public class WriteModelPatchAdSetV24Q3 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; @@ -60,12 +60,12 @@ public class WriteModelPatchAdSet { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private PatchAdSet attributes; + private PatchAdSetV24Q3 attributes; - public WriteModelPatchAdSet() { + public WriteModelPatchAdSetV24Q3() { } - public WriteModelPatchAdSet id(String id) { + public WriteModelPatchAdSetV24Q3 id(String id) { this.id = id; return this; @@ -87,7 +87,7 @@ public void setId(String id) { } - public WriteModelPatchAdSet type(String type) { + public WriteModelPatchAdSetV24Q3 type(String type) { this.type = type; return this; @@ -109,7 +109,7 @@ public void setType(String type) { } - public WriteModelPatchAdSet attributes(PatchAdSet attributes) { + public WriteModelPatchAdSetV24Q3 attributes(PatchAdSetV24Q3 attributes) { this.attributes = attributes; return this; @@ -121,12 +121,12 @@ public WriteModelPatchAdSet attributes(PatchAdSet attributes) { **/ @javax.annotation.Nullable - public PatchAdSet getAttributes() { + public PatchAdSetV24Q3 getAttributes() { return attributes; } - public void setAttributes(PatchAdSet attributes) { + public void setAttributes(PatchAdSetV24Q3 attributes) { this.attributes = attributes; } @@ -143,9 +143,9 @@ public void setAttributes(PatchAdSet attributes) { * * @param key name of the property * @param value value of the property - * @return the WriteModelPatchAdSet instance itself + * @return the WriteModelPatchAdSetV24Q3 instance itself */ - public WriteModelPatchAdSet putAdditionalProperty(String key, Object value) { + public WriteModelPatchAdSetV24Q3 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -184,11 +184,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - WriteModelPatchAdSet writeModelPatchAdSet = (WriteModelPatchAdSet) o; - return Objects.equals(this.id, writeModelPatchAdSet.id) && - Objects.equals(this.type, writeModelPatchAdSet.type) && - Objects.equals(this.attributes, writeModelPatchAdSet.attributes)&& - Objects.equals(this.additionalProperties, writeModelPatchAdSet.additionalProperties); + WriteModelPatchAdSetV24Q3 writeModelPatchAdSetV24Q3 = (WriteModelPatchAdSetV24Q3) o; + return Objects.equals(this.id, writeModelPatchAdSetV24Q3.id) && + Objects.equals(this.type, writeModelPatchAdSetV24Q3.type) && + Objects.equals(this.attributes, writeModelPatchAdSetV24Q3.attributes)&& + Objects.equals(this.additionalProperties, writeModelPatchAdSetV24Q3.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -210,7 +210,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class WriteModelPatchAdSet {\n"); + sb.append("class WriteModelPatchAdSetV24Q3 {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); @@ -249,12 +249,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to WriteModelPatchAdSet + * @throws IOException if the JSON Object is invalid with respect to WriteModelPatchAdSetV24Q3 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!WriteModelPatchAdSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in WriteModelPatchAdSet is not found in the empty JSON string", WriteModelPatchAdSet.openapiRequiredFields.toString())); + if (!WriteModelPatchAdSetV24Q3.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in WriteModelPatchAdSetV24Q3 is not found in the empty JSON string", WriteModelPatchAdSetV24Q3.openapiRequiredFields.toString())); } } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { @@ -265,7 +265,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - PatchAdSet.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + PatchAdSetV24Q3.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } } @@ -273,16 +273,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WriteModelPatchAdSet.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WriteModelPatchAdSet' and its subtypes + if (!WriteModelPatchAdSetV24Q3.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WriteModelPatchAdSetV24Q3' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(WriteModelPatchAdSet.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(WriteModelPatchAdSetV24Q3.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, WriteModelPatchAdSet value) throws IOException { + public void write(JsonWriter out, WriteModelPatchAdSetV24Q3 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -305,11 +305,11 @@ else if (entry.getValue() instanceof Character) } @Override - public WriteModelPatchAdSet read(JsonReader in) throws IOException { + public WriteModelPatchAdSetV24Q3 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - WriteModelPatchAdSet instance = thisAdapter.fromJsonTree(jsonObj); + WriteModelPatchAdSetV24Q3 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -336,18 +336,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of WriteModelPatchAdSet given an JSON string + * Create an instance of WriteModelPatchAdSetV24Q3 given an JSON string * * @param jsonString JSON string - * @return An instance of WriteModelPatchAdSet - * @throws IOException if the JSON string is invalid with respect to WriteModelPatchAdSet + * @return An instance of WriteModelPatchAdSetV24Q3 + * @throws IOException if the JSON string is invalid with respect to WriteModelPatchAdSetV24Q3 */ - public static WriteModelPatchAdSet fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, WriteModelPatchAdSet.class); + public static WriteModelPatchAdSetV24Q3 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, WriteModelPatchAdSetV24Q3.class); } /** - * Convert an instance of WriteModelPatchAdSet to an JSON string + * Convert an instance of WriteModelPatchAdSetV24Q3 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/.openapi-generator/FILES b/sdks/retailmedia_2023-07/.openapi-generator/FILES deleted file mode 100644 index 296bb2ab..00000000 --- a/sdks/retailmedia_2023-07/.openapi-generator/FILES +++ /dev/null @@ -1,426 +0,0 @@ -.github/workflows/maven.yml -.gitignore -.openapi-generator-ignore -.travis.yml -README.md -api/openapi.yaml -build.gradle -build.sbt -docs/AccountsApi.md -docs/AddRemoveKeywordModel.md -docs/AddRemoveKeywordsModel.md -docs/AddRemoveKeywordsModelRequest.md -docs/AddRemoveKeywordsModelResource.md -docs/AddToBasketIdsUpdateModel202110Request.md -docs/AddToBasketTarget202110Request.md -docs/AddToBasketTarget202110Response.md -docs/AnalyticsApi.md -docs/ApplicationSummaryModel.md -docs/ApplicationSummaryModelResource.md -docs/ApplicationSummaryModelResponse.md -docs/ApprovalStatusModel.md -docs/Asset.md -docs/AssetResource.md -docs/AssetResponse.md -docs/AsyncCampaignsReport.md -docs/AsyncCampaignsReportRequest.md -docs/AsyncCampaignsReportResource.md -docs/AsyncLineItemsReport.md -docs/AsyncLineItemsReportRequest.md -docs/AsyncLineItemsReportResource.md -docs/AsyncReportResponse.md -docs/AuctionLineItemCreateModelRequest.md -docs/AuctionLineItemPagedListResponse.md -docs/AuctionLineItemResponse.md -docs/AuctionLineItemUpdateModelRequest.md -docs/AudienceApi.md -docs/AudienceIdsUpdateModel202110Request.md -docs/AudienceTarget202110Request.md -docs/AudienceTarget202110Response.md -docs/Balance202110PagedListResponse.md -docs/BalanceApi.md -docs/BalanceCampaign202110ListRequest.md -docs/BalanceCampaign202110PagedListResponse.md -docs/CampaignApi.md -docs/CampaignAttributesV202301.md -docs/CampaignV202301.md -docs/Category202204.md -docs/Category202204ListResponse.md -docs/ChoiceOption.md -docs/ChoiceVariableSpecification.md -docs/ChoiceVariableValue.md -docs/ColorVariableValue.md -docs/CommonError.md -docs/CommonLineItemPagedListResponse.md -docs/CommonLineItemResponse.md -docs/CommonProblem.md -docs/CommonWarning.md -docs/Creative202110.md -docs/Creative202110ListResponse.md -docs/Creative202210.md -docs/Creative202210ListResponse.md -docs/Creative202210Response.md -docs/CreativeCreateModel202207.md -docs/CreativeUpdateModel202207.md -docs/EditableCampaignAttributesV202301.md -docs/ExternalAccount.md -docs/ExternalAddToBasketIdsUpdateModel202110.md -docs/ExternalAddToBasketTarget202110.md -docs/ExternalAuctionLineItem.md -docs/ExternalAuctionLineItemCreateModel.md -docs/ExternalAuctionLineItemUpdateModel.md -docs/ExternalAudienceIdsUpdateModel202110.md -docs/ExternalAudienceTarget202110.md -docs/ExternalBalance202110.md -docs/ExternalBrand.md -docs/ExternalCatalogRequest.md -docs/ExternalCatalogStatus.md -docs/ExternalCommonLineItem.md -docs/ExternalKeywordTarget202110.md -docs/ExternalLineItemCapping202110.md -docs/ExternalLineItemPage202110.md -docs/ExternalLineItemPageCategory202110.md -docs/ExternalPreferredLineItem202110.md -docs/ExternalPreferredLineItemCreateModel202110.md -docs/ExternalPreferredLineItemUpdateModel202110.md -docs/ExternalPromotedProduct202110.md -docs/ExternalRetailer.md -docs/ExternalRetailerPages202110.md -docs/ExternalStoreIdsUpdateModel202110.md -docs/ExternalStoreTarget202110.md -docs/FilesVariableValue.md -docs/FilesVariablesSpecification.md -docs/GatewayApi.md -docs/HyperlinkVariableValue.md -docs/InputKeywordsModel.md -docs/InputResourceOfAuctionLineItemCreateModel.md -docs/InputResourceOfPreferredLineItemCreateModel202110.md -docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md -docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md -docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md -docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md -docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md -docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md -docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md -docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md -docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md -docs/JsonApiPageResponseOfAccount.md -docs/JsonApiPageResponseOfBrand.md -docs/JsonApiPageResponseOfCampaignV202301.md -docs/JsonApiPageResponseOfRetailer.md -docs/JsonApiRequestOfCatalogRequest.md -docs/JsonApiSingleResponseOfCampaignV202301.md -docs/JsonApiSingleResponseOfCatalogStatus.md -docs/JsonApiSingleResponseOfLineItemBidMultipliers.md -docs/KeywordDataModel.md -docs/KeywordTarget202110Request.md -docs/KeywordTarget202110Response.md -docs/KeywordsModel.md -docs/KeywordsModelResource.md -docs/KeywordsModelResponse.md -docs/LineItemBidMultipliers.md -docs/LineItemBidMultipliersRequest.md -docs/LineItemBidMultipliersResponse.md -docs/MatchTypeModel.md -docs/NegotiationStateModel.md -docs/PageMetadata.md -docs/PageTypeEnvironment.md -docs/PostCampaignV202301.md -docs/PreferredLineItem202110PagedListResponse.md -docs/PreferredLineItem202110Response.md -docs/PreferredLineItemCreateModel202110Request.md -docs/PreferredLineItemUpdateModel202110Request.md -docs/ProblemDetails.md -docs/PromotedProduct202110ListRequest.md -docs/PromotedProduct202110PagedListResponse.md -docs/ProposalStatusModel.md -docs/ProposalStatusModelResource.md -docs/ProposalStatusModelResponse.md -docs/PutCampaignV202301.md -docs/ReportOutcome.md -docs/ResourceOfAuctionLineItem.md -docs/ResourceOfAuctionLineItemUpdateModel.md -docs/ResourceOfBalance202110.md -docs/ResourceOfBalanceCampaign202110.md -docs/ResourceOfCategory202204.md -docs/ResourceOfCommonLineItem.md -docs/ResourceOfCreative202110.md -docs/ResourceOfCreative202210.md -docs/ResourceOfLineItemBidMultipliers.md -docs/ResourceOfPreferredLineItem202110.md -docs/ResourceOfPreferredLineItemUpdateModel202110.md -docs/ResourceOfPromotedProduct202110.md -docs/ResourceOfTemplate.md -docs/ResourceOutcome.md -docs/ReviewStateModel.md -docs/RmLegacyAudienceCreateEntityV1.md -docs/RmLegacyAudienceCreateEntityV1Resource.md -docs/RmLegacyAudienceCreateEntityV1Response.md -docs/RmLegacyAudienceCreateEntityV2.md -docs/RmLegacyAudienceCreateEntityV2Resource.md -docs/RmLegacyAudienceCreateEntityV2Response.md -docs/RmLegacyAudienceCreateInputEntityV1.md -docs/RmLegacyAudienceCreateInputEntityV2.md -docs/RmLegacyAudienceGetEntityV1.md -docs/RmLegacyAudienceGetEntityV1ListResponse.md -docs/RmLegacyAudienceGetEntityV1Resource.md -docs/RmLegacyAudienceGetEntityV2.md -docs/RmLegacyAudienceGetEntityV2ListResponse.md -docs/RmLegacyAudienceGetEntityV2Resource.md -docs/RmLegacyAudienceUserBehaviorCreateV2.md -docs/RmLegacyAudienceUserBehaviorDetailsV2.md -docs/RmLegacySegmentCustomerList.md -docs/RmLegacySegmentUserBehaviorCreateV2.md -docs/RmLegacySegmentUserBehaviorV1.md -docs/RmLegacySegmentUserBehaviorV2.md -docs/RmcaCommonProblem.md -docs/Section.md -docs/SetBidModel.md -docs/SetBidsModel.md -docs/SetBidsModelRequest.md -docs/SetBidsModelResource.md -docs/StatusResponse.md -docs/StatusResponseResource.md -docs/StoreIdsUpdateModel202110Request.md -docs/StoreTarget202110Request.md -docs/StoreTarget202110Response.md -docs/Template.md -docs/TemplateListResponse.md -docs/TemplateResponse.md -docs/TemplateVariable.md -docs/TemplateVariableValue.md -docs/TextVariableSpecification.md -docs/TextVariableValue.md -docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md -docs/ValueTypeResourceOfAddToBasketTarget202110.md -docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md -docs/ValueTypeResourceOfAudienceTarget202110.md -docs/ValueTypeResourceOfKeywordTarget202110.md -docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md -docs/ValueTypeResourceOfStoreTarget202110.md -git_push.sh -gradle.properties -gradle/wrapper/gradle-wrapper.jar -gradle/wrapper/gradle-wrapper.properties -gradlew -gradlew.bat -pom.xml -settings.gradle -src/main/AndroidManifest.xml -src/main/java/com/criteo/api/retailmedia/v2023_07/ApiCallback.java -src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClient.java -src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClientBuilder.java -src/main/java/com/criteo/api/retailmedia/v2023_07/ApiException.java -src/main/java/com/criteo/api/retailmedia/v2023_07/ApiResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/Configuration.java -src/main/java/com/criteo/api/retailmedia/v2023_07/GzipRequestInterceptor.java -src/main/java/com/criteo/api/retailmedia/v2023_07/JSON.java -src/main/java/com/criteo/api/retailmedia/v2023_07/Pair.java -src/main/java/com/criteo/api/retailmedia/v2023_07/ProgressRequestBody.java -src/main/java/com/criteo/api/retailmedia/v2023_07/ProgressResponseBody.java -src/main/java/com/criteo/api/retailmedia/v2023_07/ServerConfiguration.java -src/main/java/com/criteo/api/retailmedia/v2023_07/ServerVariable.java -src/main/java/com/criteo/api/retailmedia/v2023_07/StringUtil.java -src/main/java/com/criteo/api/retailmedia/v2023_07/api/AccountsApi.java -src/main/java/com/criteo/api/retailmedia/v2023_07/api/AnalyticsApi.java -src/main/java/com/criteo/api/retailmedia/v2023_07/api/AudienceApi.java -src/main/java/com/criteo/api/retailmedia/v2023_07/api/BalanceApi.java -src/main/java/com/criteo/api/retailmedia/v2023_07/api/CampaignApi.java -src/main/java/com/criteo/api/retailmedia/v2023_07/api/GatewayApi.java -src/main/java/com/criteo/api/retailmedia/v2023_07/auth/ApiKeyAuth.java -src/main/java/com/criteo/api/retailmedia/v2023_07/auth/Authentication.java -src/main/java/com/criteo/api/retailmedia/v2023_07/auth/HttpBasicAuth.java -src/main/java/com/criteo/api/retailmedia/v2023_07/auth/HttpBearerAuth.java -src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuth.java -src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuthFlow.java -src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuthOkHttpClient.java -src/main/java/com/criteo/api/retailmedia/v2023_07/auth/RetryingOAuth.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AbstractOpenApiSchema.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModelRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModelResource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketIdsUpdateModel202110Request.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketTarget202110Request.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketTarget202110Response.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApprovalStatusModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/Asset.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReport.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReportRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReportResource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReport.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReportRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReportResource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncReportResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemCreateModelRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemPagedListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemUpdateModelRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceIdsUpdateModel202110Request.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceTarget202110Request.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceTarget202110Response.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/Balance202110PagedListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/BalanceCampaign202110ListRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/BalanceCampaign202110PagedListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignAttributesV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/Category202204.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/Category202204ListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceOption.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceVariableSpecification.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceVariableValue.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ColorVariableValue.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonError.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonLineItemPagedListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonLineItemResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonProblem.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonWarning.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202110ListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210ListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210Response.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreativeCreateModel202207.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreativeUpdateModel202207.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/EditableCampaignAttributesV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAccount.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAddToBasketIdsUpdateModel202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAddToBasketTarget202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItem.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItemCreateModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItemUpdateModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAudienceIdsUpdateModel202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAudienceTarget202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalBalance202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalBrand.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCatalogRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCatalogStatus.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCommonLineItem.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalKeywordTarget202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemCapping202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemPage202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemPageCategory202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItem202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItemCreateModel202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItemUpdateModel202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPromotedProduct202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalRetailer.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalRetailerPages202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalStoreIdsUpdateModel202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalStoreTarget202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/FilesVariableValue.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/FilesVariablesSpecification.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/HyperlinkVariableValue.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputKeywordsModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputResourceOfAuctionLineItemCreateModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputResourceOfPreferredLineItemCreateModel202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfAccount.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfBrand.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfCampaignV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfRetailer.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiRequestOfCatalogRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfCampaignV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfCatalogStatus.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfLineItemBidMultipliers.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordDataModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordTarget202110Request.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordTarget202110Response.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModelResource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModelResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliers.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliersRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliersResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/MatchTypeModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/NegotiationStateModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/PageMetadata.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/PageTypeEnvironment.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/PostCampaignV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItem202110PagedListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItem202110Response.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItemCreateModel202110Request.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItemUpdateModel202110Request.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProblemDetails.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/PromotedProduct202110ListRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/PromotedProduct202110PagedListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModelResource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModelResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/PutCampaignV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportOutcome.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItem.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItemUpdateModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalance202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalanceCampaign202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCategory202204.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCommonLineItem.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202210.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfLineItemBidMultipliers.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItem202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItemUpdateModel202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPromotedProduct202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfTemplate.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOutcome.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReviewStateModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1Resource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1Response.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2Resource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2Response.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateInputEntityV1.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateInputEntityV2.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1ListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1Resource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2ListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2Resource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceUserBehaviorCreateV2.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceUserBehaviorDetailsV2.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentCustomerList.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorCreateV2.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorV1.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorV2.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmcaCommonProblem.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/Section.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModel.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModelRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModelResource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponseResource.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreIdsUpdateModel202110Request.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreTarget202110Request.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreTarget202110Response.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/Template.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateListResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateVariable.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateVariableValue.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/TextVariableSpecification.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/TextVariableValue.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAddToBasketTarget202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAudienceIdsUpdateModel202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAudienceTarget202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfKeywordTarget202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfStoreIdsUpdateModel202110.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfStoreTarget202110.java -src/test/java/com/criteo/api/retailmedia/v2023_07/ExampleApplication.java -src/test/java/com/criteo/api/retailmedia/v2023_07/GatewayApiTest.java diff --git a/sdks/retailmedia_2023-07/README.md b/sdks/retailmedia_2023-07/README.md deleted file mode 100644 index e393e750..00000000 --- a/sdks/retailmedia_2023-07/README.md +++ /dev/null @@ -1,345 +0,0 @@ -# JAVA SDK for Criteo API retailmedia for 2023_07 version - -## Introduction -API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. -These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. - -More information: [https://developers.criteo.com/](https://developers.criteo.com/) - -Criteo API - -- Package version: 2023.07.0.240826 - - -*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* - -## Requirements - -Building the API client library requires: - -1. Java 1.8+ -2. Gradle - -## How to build - -To build the jar, simply execute: - -```shell -./gradlew jar -``` - -The built jar will be available in build/libs. - -### Maven users - -Add this dependency to your project's POM: - -```xml - - com.criteo - criteo-api-retailmedia-sdk - 2023.07.0.240826 - compile - -``` - -### Gradle users - -Add this dependency to your project's build file: - -```groovy -compile "com.criteo:criteo-api-retailmedia-sdk:2023.07.0.240826" -``` - -### Others - -At first generate the JAR by executing: - -```shell -./gradlew jar -``` - -Then manually install the following JARs: - -* `build/libs/criteo-api-retailmedia-sdk-2023.07.0.240826.jar` - -## Example - -Please see [src/test/java/com/criteo/api/retailmedia/v2023_07/ExampleApplication.java](src/test/java/com/criteo/api/retailmedia/v2023_07/ExampleApplication.java) for an example on how to perform a simple call. - -## Documentation for API Endpoints - -All URIs are relative to *https://api.criteo.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AccountsApi* | [**getApiV1ExternalAccounts**](docs/AccountsApi.md#getApiV1ExternalAccounts) | **GET** /2023-07/retail-media/accounts | -*AnalyticsApi* | [**generateAsyncCampaignsReport**](docs/AnalyticsApi.md#generateAsyncCampaignsReport) | **POST** /2023-07/retail-media/reports/campaigns | -*AnalyticsApi* | [**generateAsyncLineItemsReport**](docs/AnalyticsApi.md#generateAsyncLineItemsReport) | **POST** /2023-07/retail-media/reports/line-items | -*AnalyticsApi* | [**getAsyncExportOutput**](docs/AnalyticsApi.md#getAsyncExportOutput) | **GET** /2023-07/retail-media/reports/{reportId}/output | -*AnalyticsApi* | [**getAsyncExportStatus**](docs/AnalyticsApi.md#getAsyncExportStatus) | **GET** /2023-07/retail-media/reports/{reportId}/status | -*AudienceApi* | [**legacyCreateAudienceV1**](docs/AudienceApi.md#legacyCreateAudienceV1) | **POST** /2023-07/retail-media/accounts/{accountId}/audiences | -*AudienceApi* | [**legacyGetAudienceV1**](docs/AudienceApi.md#legacyGetAudienceV1) | **GET** /2023-07/retail-media/accounts/{accountId}/audiences | -*AudienceApi* | [**legacyGetAudienceV2**](docs/AudienceApi.md#legacyGetAudienceV2) | **GET** /2023-07/retail-media/v2/accounts/{accountId}/audiences | -*AudienceApi* | [**legacyUpdateAudienceV2**](docs/AudienceApi.md#legacyUpdateAudienceV2) | **POST** /2023-07/retail-media/v2/accounts/{accountId}/audiences | -*BalanceApi* | [**getApi202110ExternalAccountBalancesByAccountId**](docs/BalanceApi.md#getApi202110ExternalAccountBalancesByAccountId) | **GET** /2023-07/retail-media/accounts/{account-id}/balances | -*BalanceApi* | [**getApi202110ExternalBalanceCampaignsByBalanceId**](docs/BalanceApi.md#getApi202110ExternalBalanceCampaignsByBalanceId) | **GET** /2023-07/retail-media/balances/{balance-id}/campaigns | -*CampaignApi* | [**addRemoveKeywords**](docs/CampaignApi.md#addRemoveKeywords) | **POST** /2023-07/retail-media/line-items/{id}/keywords/add-remove | -*CampaignApi* | [**createAsset**](docs/CampaignApi.md#createAsset) | **POST** /2023-07/retail-media/assets | -*CampaignApi* | [**fetchKeywords**](docs/CampaignApi.md#fetchKeywords) | **GET** /2023-07/retail-media/line-items/{id}/keywords | -*CampaignApi* | [**fetchProposal**](docs/CampaignApi.md#fetchProposal) | **GET** /2023-07/retail-media/preferred-deal-line-items/{id}/proposal | -*CampaignApi* | [**getApi202110ExternalAccountCreativesByAccountId**](docs/CampaignApi.md#getApi202110ExternalAccountCreativesByAccountId) | **GET** /2023-07/retail-media/accounts/{account-id}/creatives | -*CampaignApi* | [**getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId**](docs/CampaignApi.md#getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId) | **GET** /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords | -*CampaignApi* | [**getApi202110ExternalCampaignPreferredLineItemsByCampaignId**](docs/CampaignApi.md#getApi202110ExternalCampaignPreferredLineItemsByCampaignId) | **GET** /2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items | -*CampaignApi* | [**getApi202110ExternalLineItemProductsByLineItemId**](docs/CampaignApi.md#getApi202110ExternalLineItemProductsByLineItemId) | **GET** /2023-07/retail-media/line-items/{line-item-id}/products | -*CampaignApi* | [**getApi202110ExternalPreferredLineItemByLineItemId**](docs/CampaignApi.md#getApi202110ExternalPreferredLineItemByLineItemId) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id} | -*CampaignApi* | [**getApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId**](docs/CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | -*CampaignApi* | [**getApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId**](docs/CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences | -*CampaignApi* | [**getApi202110ExternalPreferredLineItemTargetingStoresByLineItemId**](docs/CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingStoresByLineItemId) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores | -*CampaignApi* | [**getApi202110ExternalRetailerPagesByRetailerId**](docs/CampaignApi.md#getApi202110ExternalRetailerPagesByRetailerId) | **GET** /2023-07/retail-media/retailers/{retailerId}/pages | -*CampaignApi* | [**getApi202204ExternalCategorieByCategoryId**](docs/CampaignApi.md#getApi202204ExternalCategorieByCategoryId) | **GET** /2023-07/retail-media/categories/{categoryId} | -*CampaignApi* | [**getApi202204ExternalCategories**](docs/CampaignApi.md#getApi202204ExternalCategories) | **GET** /2023-07/retail-media/categories | -*CampaignApi* | [**getApi202207ExternalRetailerByRetailerIdTemplatestemplateId**](docs/CampaignApi.md#getApi202207ExternalRetailerByRetailerIdTemplatestemplateId) | **GET** /2023-07/retail-media/retailers/{retailer-id}/templates/{template-id} | -*CampaignApi* | [**getApi202207ExternalRetailerTemplatesByRetailerId**](docs/CampaignApi.md#getApi202207ExternalRetailerTemplatesByRetailerId) | **GET** /2023-07/retail-media/retailers/{retailer-id}/templates | -*CampaignApi* | [**getApi202210ExternalAccountByAccountIdCreativescreativeId**](docs/CampaignApi.md#getApi202210ExternalAccountByAccountIdCreativescreativeId) | **GET** /2023-07/retail-media/accounts/{account-id}/creatives/{creative-id} | -*CampaignApi* | [**getApi202301ExternalAccountCampaignsByAccountId**](docs/CampaignApi.md#getApi202301ExternalAccountCampaignsByAccountId) | **GET** /2023-07/retail-media/accounts/{account-id}/campaigns | -*CampaignApi* | [**getApi202301ExternalCampaignByCampaignId**](docs/CampaignApi.md#getApi202301ExternalCampaignByCampaignId) | **GET** /2023-07/retail-media/campaigns/{campaignId} | -*CampaignApi* | [**getApi202301ExternalLineItemBidMultipliersByLineItemId**](docs/CampaignApi.md#getApi202301ExternalLineItemBidMultipliersByLineItemId) | **GET** /2023-07/retail-media/line-items/{line-item-id}/bid-multipliers | -*CampaignApi* | [**getApiV1ExternalAccountBrandsByAccountId**](docs/CampaignApi.md#getApiV1ExternalAccountBrandsByAccountId) | **GET** /2023-07/retail-media/accounts/{accountId}/brands | -*CampaignApi* | [**getApiV1ExternalAccountRetailersByAccountId**](docs/CampaignApi.md#getApiV1ExternalAccountRetailersByAccountId) | **GET** /2023-07/retail-media/accounts/{accountId}/retailers | -*CampaignApi* | [**getApiV1ExternalCatalogOutputByCatalogId**](docs/CampaignApi.md#getApiV1ExternalCatalogOutputByCatalogId) | **GET** /2023-07/retail-media/catalogs/{catalogId}/output | -*CampaignApi* | [**getApiV1ExternalCatalogStatusByCatalogId**](docs/CampaignApi.md#getApiV1ExternalCatalogStatusByCatalogId) | **GET** /2023-07/retail-media/catalogs/{catalogId}/status | -*CampaignApi* | [**getApiV2ExternalAccountLineItemsByAccountId**](docs/CampaignApi.md#getApiV2ExternalAccountLineItemsByAccountId) | **GET** /2023-07/retail-media/accounts/{account-id}/line-items | -*CampaignApi* | [**getApiV2ExternalAuctionLineItemByLineItemId**](docs/CampaignApi.md#getApiV2ExternalAuctionLineItemByLineItemId) | **GET** /2023-07/retail-media/auction-line-items/{line-item-id} | -*CampaignApi* | [**getApiV2ExternalCampaignAuctionLineItemsByCampaignId**](docs/CampaignApi.md#getApiV2ExternalCampaignAuctionLineItemsByCampaignId) | **GET** /2023-07/retail-media/campaigns/{campaign-id}/auction-line-items | -*CampaignApi* | [**getApiV2ExternalLineItemByLineItemId**](docs/CampaignApi.md#getApiV2ExternalLineItemByLineItemId) | **GET** /2023-07/retail-media/line-items/{line-item-id} | -*CampaignApi* | [**postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId**](docs/CampaignApi.md#postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId) | **POST** /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append | -*CampaignApi* | [**postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId**](docs/CampaignApi.md#postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId) | **POST** /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete | -*CampaignApi* | [**postApi202110ExternalBalanceCampaignsAppendByBalanceId**](docs/CampaignApi.md#postApi202110ExternalBalanceCampaignsAppendByBalanceId) | **POST** /2023-07/retail-media/balances/{balance-id}/campaigns/append | -*CampaignApi* | [**postApi202110ExternalBalanceCampaignsDeleteByBalanceId**](docs/CampaignApi.md#postApi202110ExternalBalanceCampaignsDeleteByBalanceId) | **POST** /2023-07/retail-media/balances/{balance-id}/campaigns/delete | -*CampaignApi* | [**postApi202110ExternalCampaignPreferredLineItemsByCampaignId**](docs/CampaignApi.md#postApi202110ExternalCampaignPreferredLineItemsByCampaignId) | **POST** /2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items | -*CampaignApi* | [**postApi202110ExternalLineItemProductsAppendByLineItemId**](docs/CampaignApi.md#postApi202110ExternalLineItemProductsAppendByLineItemId) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/append | -*CampaignApi* | [**postApi202110ExternalLineItemProductsDeleteByLineItemId**](docs/CampaignApi.md#postApi202110ExternalLineItemProductsDeleteByLineItemId) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/delete | -*CampaignApi* | [**postApi202110ExternalLineItemProductsPauseByLineItemId**](docs/CampaignApi.md#postApi202110ExternalLineItemProductsPauseByLineItemId) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/pause | -*CampaignApi* | [**postApi202110ExternalLineItemProductsUnpauseByLineItemId**](docs/CampaignApi.md#postApi202110ExternalLineItemProductsUnpauseByLineItemId) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/unpause | -*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append | -*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete | -*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append | -*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete | -*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append | -*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete | -*CampaignApi* | [**postApi202210ExternalAccountCreativesByAccountId**](docs/CampaignApi.md#postApi202210ExternalAccountCreativesByAccountId) | **POST** /2023-07/retail-media/accounts/{account-id}/creatives | -*CampaignApi* | [**postApi202210ExternalAccountCreativesSearchByAccountId**](docs/CampaignApi.md#postApi202210ExternalAccountCreativesSearchByAccountId) | **POST** /2023-07/retail-media/accounts/{account-id}/creatives/search | -*CampaignApi* | [**postApi202301ExternalAccountCampaignsByAccountId**](docs/CampaignApi.md#postApi202301ExternalAccountCampaignsByAccountId) | **POST** /2023-07/retail-media/accounts/{account-id}/campaigns | -*CampaignApi* | [**postApiV1ExternalAccountCatalogsByAccountId**](docs/CampaignApi.md#postApiV1ExternalAccountCatalogsByAccountId) | **POST** /2023-07/retail-media/accounts/{accountId}/catalogs | -*CampaignApi* | [**postApiV2ExternalCampaignAuctionLineItemsByCampaignId**](docs/CampaignApi.md#postApiV2ExternalCampaignAuctionLineItemsByCampaignId) | **POST** /2023-07/retail-media/campaigns/{campaign-id}/auction-line-items | -*CampaignApi* | [**putApi202110ExternalPreferredLineItemByLineItemId**](docs/CampaignApi.md#putApi202110ExternalPreferredLineItemByLineItemId) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id} | -*CampaignApi* | [**putApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId**](docs/CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | -*CampaignApi* | [**putApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId**](docs/CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences | -*CampaignApi* | [**putApi202110ExternalPreferredLineItemTargetingStoresByLineItemId**](docs/CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingStoresByLineItemId) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores | -*CampaignApi* | [**putApi202210ExternalAccountByAccountIdCreativescreativeId**](docs/CampaignApi.md#putApi202210ExternalAccountByAccountIdCreativescreativeId) | **PUT** /2023-07/retail-media/accounts/{account-id}/creatives/{creative-id} | -*CampaignApi* | [**putApi202301ExternalCampaignByCampaignId**](docs/CampaignApi.md#putApi202301ExternalCampaignByCampaignId) | **PUT** /2023-07/retail-media/campaigns/{campaignId} | -*CampaignApi* | [**putApi202301ExternalLineItemBidMultipliersByLineItemId**](docs/CampaignApi.md#putApi202301ExternalLineItemBidMultipliersByLineItemId) | **PUT** /2023-07/retail-media/line-items/{line-item-id}/bid-multipliers | -*CampaignApi* | [**putApiV2ExternalAuctionLineItemByLineItemId**](docs/CampaignApi.md#putApiV2ExternalAuctionLineItemByLineItemId) | **PUT** /2023-07/retail-media/auction-line-items/{line-item-id} | -*CampaignApi* | [**setKeywordBids**](docs/CampaignApi.md#setKeywordBids) | **POST** /2023-07/retail-media/line-items/{id}/keywords/set-bid | -*CampaignApi* | [**submitProposal**](docs/CampaignApi.md#submitProposal) | **POST** /2023-07/retail-media/preferred-deal-line-items/{id}/proposal/submit | -*GatewayApi* | [**getCurrentApplication**](docs/GatewayApi.md#getCurrentApplication) | **GET** /2023-07/retail-media/me | - - -## Documentation for Models - - - [AddRemoveKeywordModel](docs/AddRemoveKeywordModel.md) - - [AddRemoveKeywordsModel](docs/AddRemoveKeywordsModel.md) - - [AddRemoveKeywordsModelRequest](docs/AddRemoveKeywordsModelRequest.md) - - [AddRemoveKeywordsModelResource](docs/AddRemoveKeywordsModelResource.md) - - [AddToBasketIdsUpdateModel202110Request](docs/AddToBasketIdsUpdateModel202110Request.md) - - [AddToBasketTarget202110Request](docs/AddToBasketTarget202110Request.md) - - [AddToBasketTarget202110Response](docs/AddToBasketTarget202110Response.md) - - [ApplicationSummaryModel](docs/ApplicationSummaryModel.md) - - [ApplicationSummaryModelResource](docs/ApplicationSummaryModelResource.md) - - [ApplicationSummaryModelResponse](docs/ApplicationSummaryModelResponse.md) - - [ApprovalStatusModel](docs/ApprovalStatusModel.md) - - [Asset](docs/Asset.md) - - [AssetResource](docs/AssetResource.md) - - [AssetResponse](docs/AssetResponse.md) - - [AsyncCampaignsReport](docs/AsyncCampaignsReport.md) - - [AsyncCampaignsReportRequest](docs/AsyncCampaignsReportRequest.md) - - [AsyncCampaignsReportResource](docs/AsyncCampaignsReportResource.md) - - [AsyncLineItemsReport](docs/AsyncLineItemsReport.md) - - [AsyncLineItemsReportRequest](docs/AsyncLineItemsReportRequest.md) - - [AsyncLineItemsReportResource](docs/AsyncLineItemsReportResource.md) - - [AsyncReportResponse](docs/AsyncReportResponse.md) - - [AuctionLineItemCreateModelRequest](docs/AuctionLineItemCreateModelRequest.md) - - [AuctionLineItemPagedListResponse](docs/AuctionLineItemPagedListResponse.md) - - [AuctionLineItemResponse](docs/AuctionLineItemResponse.md) - - [AuctionLineItemUpdateModelRequest](docs/AuctionLineItemUpdateModelRequest.md) - - [AudienceIdsUpdateModel202110Request](docs/AudienceIdsUpdateModel202110Request.md) - - [AudienceTarget202110Request](docs/AudienceTarget202110Request.md) - - [AudienceTarget202110Response](docs/AudienceTarget202110Response.md) - - [Balance202110PagedListResponse](docs/Balance202110PagedListResponse.md) - - [BalanceCampaign202110ListRequest](docs/BalanceCampaign202110ListRequest.md) - - [BalanceCampaign202110PagedListResponse](docs/BalanceCampaign202110PagedListResponse.md) - - [CampaignAttributesV202301](docs/CampaignAttributesV202301.md) - - [CampaignV202301](docs/CampaignV202301.md) - - [Category202204](docs/Category202204.md) - - [Category202204ListResponse](docs/Category202204ListResponse.md) - - [ChoiceOption](docs/ChoiceOption.md) - - [ChoiceVariableSpecification](docs/ChoiceVariableSpecification.md) - - [ChoiceVariableValue](docs/ChoiceVariableValue.md) - - [ColorVariableValue](docs/ColorVariableValue.md) - - [CommonError](docs/CommonError.md) - - [CommonLineItemPagedListResponse](docs/CommonLineItemPagedListResponse.md) - - [CommonLineItemResponse](docs/CommonLineItemResponse.md) - - [CommonProblem](docs/CommonProblem.md) - - [CommonWarning](docs/CommonWarning.md) - - [Creative202110](docs/Creative202110.md) - - [Creative202110ListResponse](docs/Creative202110ListResponse.md) - - [Creative202210](docs/Creative202210.md) - - [Creative202210ListResponse](docs/Creative202210ListResponse.md) - - [Creative202210Response](docs/Creative202210Response.md) - - [CreativeCreateModel202207](docs/CreativeCreateModel202207.md) - - [CreativeUpdateModel202207](docs/CreativeUpdateModel202207.md) - - [EditableCampaignAttributesV202301](docs/EditableCampaignAttributesV202301.md) - - [ExternalAccount](docs/ExternalAccount.md) - - [ExternalAddToBasketIdsUpdateModel202110](docs/ExternalAddToBasketIdsUpdateModel202110.md) - - [ExternalAddToBasketTarget202110](docs/ExternalAddToBasketTarget202110.md) - - [ExternalAuctionLineItem](docs/ExternalAuctionLineItem.md) - - [ExternalAuctionLineItemCreateModel](docs/ExternalAuctionLineItemCreateModel.md) - - [ExternalAuctionLineItemUpdateModel](docs/ExternalAuctionLineItemUpdateModel.md) - - [ExternalAudienceIdsUpdateModel202110](docs/ExternalAudienceIdsUpdateModel202110.md) - - [ExternalAudienceTarget202110](docs/ExternalAudienceTarget202110.md) - - [ExternalBalance202110](docs/ExternalBalance202110.md) - - [ExternalBrand](docs/ExternalBrand.md) - - [ExternalCatalogRequest](docs/ExternalCatalogRequest.md) - - [ExternalCatalogStatus](docs/ExternalCatalogStatus.md) - - [ExternalCommonLineItem](docs/ExternalCommonLineItem.md) - - [ExternalKeywordTarget202110](docs/ExternalKeywordTarget202110.md) - - [ExternalLineItemCapping202110](docs/ExternalLineItemCapping202110.md) - - [ExternalLineItemPage202110](docs/ExternalLineItemPage202110.md) - - [ExternalLineItemPageCategory202110](docs/ExternalLineItemPageCategory202110.md) - - [ExternalPreferredLineItem202110](docs/ExternalPreferredLineItem202110.md) - - [ExternalPreferredLineItemCreateModel202110](docs/ExternalPreferredLineItemCreateModel202110.md) - - [ExternalPreferredLineItemUpdateModel202110](docs/ExternalPreferredLineItemUpdateModel202110.md) - - [ExternalPromotedProduct202110](docs/ExternalPromotedProduct202110.md) - - [ExternalRetailer](docs/ExternalRetailer.md) - - [ExternalRetailerPages202110](docs/ExternalRetailerPages202110.md) - - [ExternalStoreIdsUpdateModel202110](docs/ExternalStoreIdsUpdateModel202110.md) - - [ExternalStoreTarget202110](docs/ExternalStoreTarget202110.md) - - [FilesVariableValue](docs/FilesVariableValue.md) - - [FilesVariablesSpecification](docs/FilesVariablesSpecification.md) - - [HyperlinkVariableValue](docs/HyperlinkVariableValue.md) - - [InputKeywordsModel](docs/InputKeywordsModel.md) - - [InputResourceOfAuctionLineItemCreateModel](docs/InputResourceOfAuctionLineItemCreateModel.md) - - [InputResourceOfPreferredLineItemCreateModel202110](docs/InputResourceOfPreferredLineItemCreateModel202110.md) - - [JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301](docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md) - - [JsonApiBodyWithIdOfInt64AndAccountAndAccount](docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md) - - [JsonApiBodyWithIdOfInt64AndBrandAndBrand](docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md) - - [JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301](docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md) - - [JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus](docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md) - - [JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers](docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md) - - [JsonApiBodyWithIdOfInt64AndRetailerAndRetailer](docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md) - - [JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301](docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md) - - [JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest](docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md) - - [JsonApiPageResponseOfAccount](docs/JsonApiPageResponseOfAccount.md) - - [JsonApiPageResponseOfBrand](docs/JsonApiPageResponseOfBrand.md) - - [JsonApiPageResponseOfCampaignV202301](docs/JsonApiPageResponseOfCampaignV202301.md) - - [JsonApiPageResponseOfRetailer](docs/JsonApiPageResponseOfRetailer.md) - - [JsonApiRequestOfCatalogRequest](docs/JsonApiRequestOfCatalogRequest.md) - - [JsonApiSingleResponseOfCampaignV202301](docs/JsonApiSingleResponseOfCampaignV202301.md) - - [JsonApiSingleResponseOfCatalogStatus](docs/JsonApiSingleResponseOfCatalogStatus.md) - - [JsonApiSingleResponseOfLineItemBidMultipliers](docs/JsonApiSingleResponseOfLineItemBidMultipliers.md) - - [KeywordDataModel](docs/KeywordDataModel.md) - - [KeywordTarget202110Request](docs/KeywordTarget202110Request.md) - - [KeywordTarget202110Response](docs/KeywordTarget202110Response.md) - - [KeywordsModel](docs/KeywordsModel.md) - - [KeywordsModelResource](docs/KeywordsModelResource.md) - - [KeywordsModelResponse](docs/KeywordsModelResponse.md) - - [LineItemBidMultipliers](docs/LineItemBidMultipliers.md) - - [LineItemBidMultipliersRequest](docs/LineItemBidMultipliersRequest.md) - - [LineItemBidMultipliersResponse](docs/LineItemBidMultipliersResponse.md) - - [MatchTypeModel](docs/MatchTypeModel.md) - - [NegotiationStateModel](docs/NegotiationStateModel.md) - - [PageMetadata](docs/PageMetadata.md) - - [PageTypeEnvironment](docs/PageTypeEnvironment.md) - - [PostCampaignV202301](docs/PostCampaignV202301.md) - - [PreferredLineItem202110PagedListResponse](docs/PreferredLineItem202110PagedListResponse.md) - - [PreferredLineItem202110Response](docs/PreferredLineItem202110Response.md) - - [PreferredLineItemCreateModel202110Request](docs/PreferredLineItemCreateModel202110Request.md) - - [PreferredLineItemUpdateModel202110Request](docs/PreferredLineItemUpdateModel202110Request.md) - - [ProblemDetails](docs/ProblemDetails.md) - - [PromotedProduct202110ListRequest](docs/PromotedProduct202110ListRequest.md) - - [PromotedProduct202110PagedListResponse](docs/PromotedProduct202110PagedListResponse.md) - - [ProposalStatusModel](docs/ProposalStatusModel.md) - - [ProposalStatusModelResource](docs/ProposalStatusModelResource.md) - - [ProposalStatusModelResponse](docs/ProposalStatusModelResponse.md) - - [PutCampaignV202301](docs/PutCampaignV202301.md) - - [ReportOutcome](docs/ReportOutcome.md) - - [ResourceOfAuctionLineItem](docs/ResourceOfAuctionLineItem.md) - - [ResourceOfAuctionLineItemUpdateModel](docs/ResourceOfAuctionLineItemUpdateModel.md) - - [ResourceOfBalance202110](docs/ResourceOfBalance202110.md) - - [ResourceOfBalanceCampaign202110](docs/ResourceOfBalanceCampaign202110.md) - - [ResourceOfCategory202204](docs/ResourceOfCategory202204.md) - - [ResourceOfCommonLineItem](docs/ResourceOfCommonLineItem.md) - - [ResourceOfCreative202110](docs/ResourceOfCreative202110.md) - - [ResourceOfCreative202210](docs/ResourceOfCreative202210.md) - - [ResourceOfLineItemBidMultipliers](docs/ResourceOfLineItemBidMultipliers.md) - - [ResourceOfPreferredLineItem202110](docs/ResourceOfPreferredLineItem202110.md) - - [ResourceOfPreferredLineItemUpdateModel202110](docs/ResourceOfPreferredLineItemUpdateModel202110.md) - - [ResourceOfPromotedProduct202110](docs/ResourceOfPromotedProduct202110.md) - - [ResourceOfTemplate](docs/ResourceOfTemplate.md) - - [ResourceOutcome](docs/ResourceOutcome.md) - - [ReviewStateModel](docs/ReviewStateModel.md) - - [RmLegacyAudienceCreateEntityV1](docs/RmLegacyAudienceCreateEntityV1.md) - - [RmLegacyAudienceCreateEntityV1Resource](docs/RmLegacyAudienceCreateEntityV1Resource.md) - - [RmLegacyAudienceCreateEntityV1Response](docs/RmLegacyAudienceCreateEntityV1Response.md) - - [RmLegacyAudienceCreateEntityV2](docs/RmLegacyAudienceCreateEntityV2.md) - - [RmLegacyAudienceCreateEntityV2Resource](docs/RmLegacyAudienceCreateEntityV2Resource.md) - - [RmLegacyAudienceCreateEntityV2Response](docs/RmLegacyAudienceCreateEntityV2Response.md) - - [RmLegacyAudienceCreateInputEntityV1](docs/RmLegacyAudienceCreateInputEntityV1.md) - - [RmLegacyAudienceCreateInputEntityV2](docs/RmLegacyAudienceCreateInputEntityV2.md) - - [RmLegacyAudienceGetEntityV1](docs/RmLegacyAudienceGetEntityV1.md) - - [RmLegacyAudienceGetEntityV1ListResponse](docs/RmLegacyAudienceGetEntityV1ListResponse.md) - - [RmLegacyAudienceGetEntityV1Resource](docs/RmLegacyAudienceGetEntityV1Resource.md) - - [RmLegacyAudienceGetEntityV2](docs/RmLegacyAudienceGetEntityV2.md) - - [RmLegacyAudienceGetEntityV2ListResponse](docs/RmLegacyAudienceGetEntityV2ListResponse.md) - - [RmLegacyAudienceGetEntityV2Resource](docs/RmLegacyAudienceGetEntityV2Resource.md) - - [RmLegacyAudienceUserBehaviorCreateV2](docs/RmLegacyAudienceUserBehaviorCreateV2.md) - - [RmLegacyAudienceUserBehaviorDetailsV2](docs/RmLegacyAudienceUserBehaviorDetailsV2.md) - - [RmLegacySegmentCustomerList](docs/RmLegacySegmentCustomerList.md) - - [RmLegacySegmentUserBehaviorCreateV2](docs/RmLegacySegmentUserBehaviorCreateV2.md) - - [RmLegacySegmentUserBehaviorV1](docs/RmLegacySegmentUserBehaviorV1.md) - - [RmLegacySegmentUserBehaviorV2](docs/RmLegacySegmentUserBehaviorV2.md) - - [RmcaCommonProblem](docs/RmcaCommonProblem.md) - - [Section](docs/Section.md) - - [SetBidModel](docs/SetBidModel.md) - - [SetBidsModel](docs/SetBidsModel.md) - - [SetBidsModelRequest](docs/SetBidsModelRequest.md) - - [SetBidsModelResource](docs/SetBidsModelResource.md) - - [StatusResponse](docs/StatusResponse.md) - - [StatusResponseResource](docs/StatusResponseResource.md) - - [StoreIdsUpdateModel202110Request](docs/StoreIdsUpdateModel202110Request.md) - - [StoreTarget202110Request](docs/StoreTarget202110Request.md) - - [StoreTarget202110Response](docs/StoreTarget202110Response.md) - - [Template](docs/Template.md) - - [TemplateListResponse](docs/TemplateListResponse.md) - - [TemplateResponse](docs/TemplateResponse.md) - - [TemplateVariable](docs/TemplateVariable.md) - - [TemplateVariableValue](docs/TemplateVariableValue.md) - - [TextVariableSpecification](docs/TextVariableSpecification.md) - - [TextVariableValue](docs/TextVariableValue.md) - - [ValueTypeResourceOfAddToBasketIdsUpdateModel202110](docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md) - - [ValueTypeResourceOfAddToBasketTarget202110](docs/ValueTypeResourceOfAddToBasketTarget202110.md) - - [ValueTypeResourceOfAudienceIdsUpdateModel202110](docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md) - - [ValueTypeResourceOfAudienceTarget202110](docs/ValueTypeResourceOfAudienceTarget202110.md) - - [ValueTypeResourceOfKeywordTarget202110](docs/ValueTypeResourceOfKeywordTarget202110.md) - - [ValueTypeResourceOfStoreIdsUpdateModel202110](docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md) - - [ValueTypeResourceOfStoreTarget202110](docs/ValueTypeResourceOfStoreTarget202110.md) - - -## Recommendation - -It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues. - -## Disclaimer - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/sdks/retailmedia_2023-07/docs/AudienceApi.md b/sdks/retailmedia_2023-07/docs/AudienceApi.md deleted file mode 100644 index ad42f29f..00000000 --- a/sdks/retailmedia_2023-07/docs/AudienceApi.md +++ /dev/null @@ -1,398 +0,0 @@ -# AudienceApi - -All URIs are relative to *https://api.criteo.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**legacyCreateAudienceV1**](AudienceApi.md#legacyCreateAudienceV1) | **POST** /2023-07/retail-media/accounts/{accountId}/audiences | | -| [**legacyGetAudienceV1**](AudienceApi.md#legacyGetAudienceV1) | **GET** /2023-07/retail-media/accounts/{accountId}/audiences | | -| [**legacyGetAudienceV2**](AudienceApi.md#legacyGetAudienceV2) | **GET** /2023-07/retail-media/v2/accounts/{accountId}/audiences | | -| [**legacyUpdateAudienceV2**](AudienceApi.md#legacyUpdateAudienceV2) | **POST** /2023-07/retail-media/v2/accounts/{accountId}/audiences | | - - - -## legacyCreateAudienceV1 - -> RmLegacyAudienceCreateEntityV1Response legacyCreateAudienceV1(accountId, rmLegacyAudienceCreateInputEntityV1) - - - -Create an Audience (deprecated Public API) - -### Example - -```java -package com.criteo.api.retailmedia.v2023_07; - -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.AudienceApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - AudienceApi apiInstance = new AudienceApi(defaultClient); - Long accountId = 56L; // Long | ID of the account to which this audience belongs. - RmLegacyAudienceCreateInputEntityV1 rmLegacyAudienceCreateInputEntityV1 = new RmLegacyAudienceCreateInputEntityV1(); // RmLegacyAudienceCreateInputEntityV1 | Audience creation request. - try { - RmLegacyAudienceCreateEntityV1Response result = apiInstance.legacyCreateAudienceV1(accountId, rmLegacyAudienceCreateInputEntityV1); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#legacyCreateAudienceV1"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accountId** | **Long**| ID of the account to which this audience belongs. | | -| **rmLegacyAudienceCreateInputEntityV1** | [**RmLegacyAudienceCreateInputEntityV1**](RmLegacyAudienceCreateInputEntityV1.md)| Audience creation request. | | - -### Return type - -[**RmLegacyAudienceCreateEntityV1Response**](RmLegacyAudienceCreateEntityV1Response.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | -| **201** | The audience that was just created. | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | - - -## legacyGetAudienceV1 - -> RmLegacyAudienceGetEntityV1ListResponse legacyGetAudienceV1(accountId, limitToId, pageSize, pageIndex) - - - -Get a page of Audiences. (deprecated Public API) - -### Example - -```java -package com.criteo.api.retailmedia.v2023_07; - -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.AudienceApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - AudienceApi apiInstance = new AudienceApi(defaultClient); - Long accountId = 56L; // Long | ID of the account to which this audience belongs. - List limitToId = Arrays.asList(); // List | Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 - Integer pageSize = 56; // Integer | Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. - Integer pageIndex = 56; // Integer | Returns the specified page of results given a pageSize; pages are 0-indexed. - try { - RmLegacyAudienceGetEntityV1ListResponse result = apiInstance.legacyGetAudienceV1(accountId, limitToId, pageSize, pageIndex); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#legacyGetAudienceV1"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accountId** | **Long**| ID of the account to which this audience belongs. | | -| **limitToId** | [**List<Integer>**](Integer.md)| Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 | [optional] | -| **pageSize** | **Integer**| Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. | [optional] | -| **pageIndex** | **Integer**| Returns the specified page of results given a pageSize; pages are 0-indexed. | [optional] | - -### Return type - -[**RmLegacyAudienceGetEntityV1ListResponse**](RmLegacyAudienceGetEntityV1ListResponse.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: text/plain, application/json, text/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A page of audiences for the supplied account or shared by related retailers. | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | - - -## legacyGetAudienceV2 - -> RmLegacyAudienceGetEntityV2ListResponse legacyGetAudienceV2(accountId, limitToId, pageSize, pageIndex) - - - -Get a page of Audiences. (deprecated Public API) - -### Example - -```java -package com.criteo.api.retailmedia.v2023_07; - -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.AudienceApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - AudienceApi apiInstance = new AudienceApi(defaultClient); - Long accountId = 56L; // Long | ID of the account to which this audience belongs. - List limitToId = Arrays.asList(); // List | Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 - Integer pageSize = 56; // Integer | Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. - Integer pageIndex = 56; // Integer | Returns the specified page of results given a pageSize; pages are 0-indexed. - try { - RmLegacyAudienceGetEntityV2ListResponse result = apiInstance.legacyGetAudienceV2(accountId, limitToId, pageSize, pageIndex); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#legacyGetAudienceV2"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accountId** | **Long**| ID of the account to which this audience belongs. | | -| **limitToId** | [**List<Integer>**](Integer.md)| Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 | [optional] | -| **pageSize** | **Integer**| Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. | [optional] | -| **pageIndex** | **Integer**| Returns the specified page of results given a pageSize; pages are 0-indexed. | [optional] | - -### Return type - -[**RmLegacyAudienceGetEntityV2ListResponse**](RmLegacyAudienceGetEntityV2ListResponse.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: text/plain, application/json, text/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A page of audiences for the supplied account or shared by related retailers. | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | - - -## legacyUpdateAudienceV2 - -> RmLegacyAudienceCreateEntityV2Response legacyUpdateAudienceV2(accountId, rmLegacyAudienceCreateInputEntityV2) - - - -Create an Audience (deprecated Public API) - -### Example - -```java -package com.criteo.api.retailmedia.v2023_07; - -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.AudienceApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - AudienceApi apiInstance = new AudienceApi(defaultClient); - Long accountId = 56L; // Long | ID of the account to which this audience belongs. - RmLegacyAudienceCreateInputEntityV2 rmLegacyAudienceCreateInputEntityV2 = new RmLegacyAudienceCreateInputEntityV2(); // RmLegacyAudienceCreateInputEntityV2 | Audience creation request. - try { - RmLegacyAudienceCreateEntityV2Response result = apiInstance.legacyUpdateAudienceV2(accountId, rmLegacyAudienceCreateInputEntityV2); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#legacyUpdateAudienceV2"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accountId** | **Long**| ID of the account to which this audience belongs. | | -| **rmLegacyAudienceCreateInputEntityV2** | [**RmLegacyAudienceCreateInputEntityV2**](RmLegacyAudienceCreateInputEntityV2.md)| Audience creation request. | | - -### Return type - -[**RmLegacyAudienceCreateEntityV2Response**](RmLegacyAudienceCreateEntityV2Response.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: text/plain, application/json, text/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | -| **201** | The audience that was just created. | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | - diff --git a/sdks/retailmedia_2023-07/docs/Balance202110PagedListResponse.md b/sdks/retailmedia_2023-07/docs/Balance202110PagedListResponse.md deleted file mode 100644 index ea0aab80..00000000 --- a/sdks/retailmedia_2023-07/docs/Balance202110PagedListResponse.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# Balance202110PagedListResponse - -Data model for a paged list of response resources - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] | -|**data** | [**List<ResourceOfBalance202110>**](ResourceOfBalance202110.md) | | [optional] | -|**warnings** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | -|**errors** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | - - - diff --git a/sdks/retailmedia_2023-07/docs/BalanceApi.md b/sdks/retailmedia_2023-07/docs/BalanceApi.md deleted file mode 100644 index 84e417a4..00000000 --- a/sdks/retailmedia_2023-07/docs/BalanceApi.md +++ /dev/null @@ -1,200 +0,0 @@ -# BalanceApi - -All URIs are relative to *https://api.criteo.com* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**getApi202110ExternalAccountBalancesByAccountId**](BalanceApi.md#getApi202110ExternalAccountBalancesByAccountId) | **GET** /2023-07/retail-media/accounts/{account-id}/balances | | -| [**getApi202110ExternalBalanceCampaignsByBalanceId**](BalanceApi.md#getApi202110ExternalBalanceCampaignsByBalanceId) | **GET** /2023-07/retail-media/balances/{balance-id}/campaigns | | - - - -## getApi202110ExternalAccountBalancesByAccountId - -> Balance202110PagedListResponse getApi202110ExternalAccountBalancesByAccountId(accountId, limitToId, pageIndex, pageSize) - - - -Gets page of balance objects for the given account id - -### Example - -```java -package com.criteo.api.retailmedia.v2023_07; - -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.BalanceApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - BalanceApi apiInstance = new BalanceApi(defaultClient); - String accountId = "accountId_example"; // String | The account to get balances for - List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to - Integer pageIndex = 56; // Integer | The 0 indexed page index you would like to receive given the page size - Integer pageSize = 56; // Integer | The maximum number of items you would like to receive in this request - try { - Balance202110PagedListResponse result = apiInstance.getApi202110ExternalAccountBalancesByAccountId(accountId, limitToId, pageIndex, pageSize); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BalanceApi#getApi202110ExternalAccountBalancesByAccountId"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| The account to get balances for | | -| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | -| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] | -| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] | - -### Return type - -[**Balance202110PagedListResponse**](Balance202110PagedListResponse.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - - -## getApi202110ExternalBalanceCampaignsByBalanceId - -> BalanceCampaign202110PagedListResponse getApi202110ExternalBalanceCampaignsByBalanceId(balanceId, limitToId, pageIndex, pageSize) - - - -Gets page of campaigns for the given balanceId - -### Example - -```java -package com.criteo.api.retailmedia.v2023_07; - -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.BalanceApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - BalanceApi apiInstance = new BalanceApi(defaultClient); - String balanceId = "balanceId_example"; // String | The balance to get campaigns from - List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to - Integer pageIndex = 56; // Integer | The 0 indexed page index you would like to receive given the page size - Integer pageSize = 56; // Integer | The maximum number of items you would like to receive in this request - try { - BalanceCampaign202110PagedListResponse result = apiInstance.getApi202110ExternalBalanceCampaignsByBalanceId(balanceId, limitToId, pageIndex, pageSize); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BalanceApi#getApi202110ExternalBalanceCampaignsByBalanceId"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **balanceId** | **String**| The balance to get campaigns from | | -| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | -| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] | -| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] | - -### Return type - -[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - diff --git a/sdks/retailmedia_2023-07/docs/Creative202210ListResponse.md b/sdks/retailmedia_2023-07/docs/Creative202210ListResponse.md deleted file mode 100644 index 0ccd5d1b..00000000 --- a/sdks/retailmedia_2023-07/docs/Creative202210ListResponse.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# Creative202210ListResponse - -Data model for a list of response resources - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<ResourceOfCreative202210>**](ResourceOfCreative202210.md) | | [optional] | -|**warnings** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | -|**errors** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | - - - diff --git a/sdks/retailmedia_2023-07/docs/ExternalBalance202110.md b/sdks/retailmedia_2023-07/docs/ExternalBalance202110.md deleted file mode 100644 index a53fcf60..00000000 --- a/sdks/retailmedia_2023-07/docs/ExternalBalance202110.md +++ /dev/null @@ -1,47 +0,0 @@ - - -# ExternalBalance202110 - -A Retail Media Balance used to determine the funds available for any or all campaigns in an account - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | | | -|**poNumber** | **String** | | | -|**memo** | **String** | | | -|**deposited** | **BigDecimal** | | | -|**spent** | **BigDecimal** | | | -|**remaining** | **BigDecimal** | | | -|**startDate** | **LocalDate** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | | -|**endDate** | **LocalDate** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] | -|**status** | [**StatusEnum**](#StatusEnum) | | | -|**createdAt** | **OffsetDateTime** | | | -|**updatedAt** | **OffsetDateTime** | | | -|**privateMarketBillingType** | [**PrivateMarketBillingTypeEnum**](#PrivateMarketBillingTypeEnum) | Billing type for Private Market. | | - - - -## Enum: StatusEnum - -| Name | Value | -|---- | -----| -| UNKNOWN | "unknown" | -| SCHEDULED | "scheduled" | -| ACTIVE | "active" | -| ENDED | "ended" | - - - -## Enum: PrivateMarketBillingTypeEnum - -| Name | Value | -|---- | -----| -| NOTAPPLICABLE | "NotApplicable" | -| BILLBYRETAILER | "BillByRetailer" | -| BILLBYCRITEO | "BillByCriteo" | -| UNKNOWN | "Unknown" | - - - diff --git a/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md deleted file mode 100644 index ba661c6d..00000000 --- a/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers - -Response object for line item bid multiplier calls - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | | | -|**type** | **String** | | | -|**attributes** | [**LineItemBidMultipliers**](LineItemBidMultipliers.md) | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/docs/LineItemBidMultipliers.md b/sdks/retailmedia_2023-07/docs/LineItemBidMultipliers.md deleted file mode 100644 index df112f31..00000000 --- a/sdks/retailmedia_2023-07/docs/LineItemBidMultipliers.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# LineItemBidMultipliers - -Data model representing bid multipliers on a line item - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**search** | **Double** | | [optional] | -|**homepage** | **Double** | | [optional] | -|**categories** | **Double** | | [optional] | -|**productDetail** | **Double** | | [optional] | -|**confirmation** | **Double** | | [optional] | -|**merchandising** | **Double** | | [optional] | -|**deals** | **Double** | | [optional] | -|**checkout** | **Double** | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersRequest.md b/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersRequest.md deleted file mode 100644 index 9212599c..00000000 --- a/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# LineItemBidMultipliersRequest - -Data model for an input resource - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**ResourceOfLineItemBidMultipliers**](ResourceOfLineItemBidMultipliers.md) | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersResponse.md b/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersResponse.md deleted file mode 100644 index ca448b3f..00000000 --- a/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersResponse.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# LineItemBidMultipliersResponse - -Data model for response resource - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**ResourceOfLineItemBidMultipliers**](ResourceOfLineItemBidMultipliers.md) | | [optional] | -|**warnings** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | -|**errors** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | - - - diff --git a/sdks/retailmedia_2023-07/docs/PreferredLineItem202110PagedListResponse.md b/sdks/retailmedia_2023-07/docs/PreferredLineItem202110PagedListResponse.md deleted file mode 100644 index f02803b3..00000000 --- a/sdks/retailmedia_2023-07/docs/PreferredLineItem202110PagedListResponse.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# PreferredLineItem202110PagedListResponse - -Data model for a paged list of response resources - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] | -|**data** | [**List<ResourceOfPreferredLineItem202110>**](ResourceOfPreferredLineItem202110.md) | | [optional] | -|**warnings** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | -|**errors** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | - - - diff --git a/sdks/retailmedia_2023-07/docs/PreferredLineItem202110Response.md b/sdks/retailmedia_2023-07/docs/PreferredLineItem202110Response.md deleted file mode 100644 index d3c8f257..00000000 --- a/sdks/retailmedia_2023-07/docs/PreferredLineItem202110Response.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# PreferredLineItem202110Response - -Data model for response resource - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**ResourceOfPreferredLineItem202110**](ResourceOfPreferredLineItem202110.md) | | [optional] | -|**warnings** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | -|**errors** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | - - - diff --git a/sdks/retailmedia_2023-07/docs/PreferredLineItemCreateModel202110Request.md b/sdks/retailmedia_2023-07/docs/PreferredLineItemCreateModel202110Request.md deleted file mode 100644 index 0ed5e703..00000000 --- a/sdks/retailmedia_2023-07/docs/PreferredLineItemCreateModel202110Request.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# PreferredLineItemCreateModel202110Request - -Data model for a create input resource - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**InputResourceOfPreferredLineItemCreateModel202110**](InputResourceOfPreferredLineItemCreateModel202110.md) | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/docs/PreferredLineItemUpdateModel202110Request.md b/sdks/retailmedia_2023-07/docs/PreferredLineItemUpdateModel202110Request.md deleted file mode 100644 index 82e01aed..00000000 --- a/sdks/retailmedia_2023-07/docs/PreferredLineItemUpdateModel202110Request.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# PreferredLineItemUpdateModel202110Request - -Data model for an input resource - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**ResourceOfPreferredLineItemUpdateModel202110**](ResourceOfPreferredLineItemUpdateModel202110.md) | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/docs/PromotedProduct202110ListRequest.md b/sdks/retailmedia_2023-07/docs/PromotedProduct202110ListRequest.md deleted file mode 100644 index 40b94556..00000000 --- a/sdks/retailmedia_2023-07/docs/PromotedProduct202110ListRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# PromotedProduct202110ListRequest - -Data model for a list of input resources - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<ResourceOfPromotedProduct202110>**](ResourceOfPromotedProduct202110.md) | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/docs/PromotedProduct202110PagedListResponse.md b/sdks/retailmedia_2023-07/docs/PromotedProduct202110PagedListResponse.md deleted file mode 100644 index 2c22d81d..00000000 --- a/sdks/retailmedia_2023-07/docs/PromotedProduct202110PagedListResponse.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# PromotedProduct202110PagedListResponse - -Data model for a paged list of response resources - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] | -|**data** | [**List<ResourceOfPromotedProduct202110>**](ResourceOfPromotedProduct202110.md) | | [optional] | -|**warnings** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | -|**errors** | [**List<ProblemDetails>**](ProblemDetails.md) | | [optional] [readonly] | - - - diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItemUpdateModel202110.md b/sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItemUpdateModel202110.md deleted file mode 100644 index 2a6b5e80..00000000 --- a/sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItemUpdateModel202110.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ResourceOfPreferredLineItemUpdateModel202110 - -Data model for a Resource - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | Id of the entity | [optional] | -|**type** | **String** | Canonical type name of the entity | [optional] | -|**attributes** | [**ExternalPreferredLineItemUpdateModel202110**](ExternalPreferredLineItemUpdateModel202110.md) | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV1.md b/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV1.md deleted file mode 100644 index 484ba6b0..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV1.md +++ /dev/null @@ -1,45 +0,0 @@ - - -# RmLegacyAudienceCreateEntityV1 - -Audience definition - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**userType** | [**UserTypeEnum**](#UserTypeEnum) | Type of the user | | -|**lookbackWindow** | [**LookbackWindowEnum**](#LookbackWindowEnum) | Length of lookback window | | -|**brandIds** | **Set<Long>** | The brands to target | [optional] | -|**categoryIds** | **Set<Integer>** | The categories to target | [optional] | -|**retailerId** | **Long** | ID of the retailer associated with this audience | | -|**name** | **String** | Name of the audience | | - - - -## Enum: UserTypeEnum - -| Name | Value | -|---- | -----| -| VIEWER | "viewer" | -| BUYER | "buyer" | -| ADDTOCARTER | "addToCarter" | - - - -## Enum: LookbackWindowEnum - -| Name | Value | -|---- | -----| -| P7D | "P7D" | -| P14D | "P14D" | -| P30D | "P30D" | -| P45D | "P45D" | -| P60D | "P60D" | -| P90D | "P90D" | -| P120D | "P120D" | -| P150D | "P150D" | -| P180D | "P180D" | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV2.md b/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV2.md deleted file mode 100644 index 7cfe21c9..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV2.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# RmLegacyAudienceCreateEntityV2 - -Audience definition - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**retailerId** | **Long** | ID of the retailer associated with this audience | | -|**userBehaviorDetails** | [**RmLegacyAudienceUserBehaviorCreateV2**](RmLegacyAudienceUserBehaviorCreateV2.md) | | | -|**name** | **String** | Name of the audience | | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateInputEntityV1.md b/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateInputEntityV1.md deleted file mode 100644 index a62d2584..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateInputEntityV1.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# RmLegacyAudienceCreateInputEntityV1 - -Input to create audience. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**RmLegacyAudienceCreateEntityV1Resource**](RmLegacyAudienceCreateEntityV1Resource.md) | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV1.md b/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV1.md deleted file mode 100644 index 1262000a..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV1.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# RmLegacyAudienceGetEntityV1 - -Audience definition of people of interest for a marketer. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name of the audience | | -|**retailerId** | **String** | ID of the retailer associated with this audience | | -|**userBehaviorDetails** | [**RmLegacySegmentUserBehaviorV1**](RmLegacySegmentUserBehaviorV1.md) | | [optional] | -|**customerListDetails** | [**RmLegacySegmentCustomerList**](RmLegacySegmentCustomerList.md) | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV1Resource.md b/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV1Resource.md deleted file mode 100644 index 6701f5c3..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV1Resource.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# RmLegacyAudienceGetEntityV1Resource - -A class that represents a domain entity exposed by an API - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**attributes** | [**RmLegacyAudienceGetEntityV1**](RmLegacyAudienceGetEntityV1.md) | | [optional] | -|**id** | **String** | | [optional] | -|**audienceType** | [**AudienceTypeEnum**](#AudienceTypeEnum) | | [optional] | -|**type** | **String** | | [optional] | - - - -## Enum: AudienceTypeEnum - -| Name | Value | -|---- | -----| -| CUSTOMERLIST | "customerList" | -| USERBEHAVIOR | "userBehavior" | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV2.md b/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV2.md deleted file mode 100644 index ad436ff1..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV2.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# RmLegacyAudienceGetEntityV2 - -Audience definition of people of interest for a marketer - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**retailerId** | **String** | ID of the retailer associated with this audience | | -|**userBehaviorDetails** | [**RmLegacyAudienceUserBehaviorDetailsV2**](RmLegacyAudienceUserBehaviorDetailsV2.md) | | [optional] | -|**customerListDetails** | [**RmLegacySegmentCustomerList**](RmLegacySegmentCustomerList.md) | | [optional] | -|**name** | **String** | Name of the audience | | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceUserBehaviorCreateV2.md b/sdks/retailmedia_2023-07/docs/RmLegacyAudienceUserBehaviorCreateV2.md deleted file mode 100644 index 2091aac3..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceUserBehaviorCreateV2.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# RmLegacyAudienceUserBehaviorCreateV2 - -User Behavior to include and optionally exclude. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**inclusiveSegment** | [**RmLegacySegmentUserBehaviorCreateV2**](RmLegacySegmentUserBehaviorCreateV2.md) | | | -|**exclusiveSegment** | [**RmLegacySegmentUserBehaviorCreateV2**](RmLegacySegmentUserBehaviorCreateV2.md) | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceUserBehaviorDetailsV2.md b/sdks/retailmedia_2023-07/docs/RmLegacyAudienceUserBehaviorDetailsV2.md deleted file mode 100644 index 9665823a..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceUserBehaviorDetailsV2.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# RmLegacyAudienceUserBehaviorDetailsV2 - -User Behavior Details. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**inclusiveSegment** | [**RmLegacySegmentUserBehaviorV2**](RmLegacySegmentUserBehaviorV2.md) | | | -|**exclusiveSegment** | [**RmLegacySegmentUserBehaviorV2**](RmLegacySegmentUserBehaviorV2.md) | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacySegmentCustomerList.md b/sdks/retailmedia_2023-07/docs/RmLegacySegmentCustomerList.md deleted file mode 100644 index 374c033f..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacySegmentCustomerList.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# RmLegacySegmentCustomerList - -Audience definition of people based on a customer list - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**size** | **String** | Number of users in the customer list audience. | | -|**isShared** | **Boolean** | Indicate if the audience is shared. | | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacySegmentUserBehaviorCreateV2.md b/sdks/retailmedia_2023-07/docs/RmLegacySegmentUserBehaviorCreateV2.md deleted file mode 100644 index 48b400e0..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacySegmentUserBehaviorCreateV2.md +++ /dev/null @@ -1,43 +0,0 @@ - - -# RmLegacySegmentUserBehaviorCreateV2 - -User Behavior Details. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**userAction** | [**UserActionEnum**](#UserActionEnum) | Type of shopper activity used to generate the audience. | | -|**lookbackWindow** | [**LookbackWindowEnum**](#LookbackWindowEnum) | Length of lookback window | | -|**categoryIds** | **Set<Integer>** | The categories to target | [optional] | -|**brandIds** | **Set<Long>** | The brands to target | [optional] | - - - -## Enum: UserActionEnum - -| Name | Value | -|---- | -----| -| BUY | "buy" | -| VIEW | "view" | -| ADDTOCART | "addToCart" | - - - -## Enum: LookbackWindowEnum - -| Name | Value | -|---- | -----| -| P7D | "P7D" | -| P14D | "P14D" | -| P30D | "P30D" | -| P45D | "P45D" | -| P60D | "P60D" | -| P90D | "P90D" | -| P120D | "P120D" | -| P150D | "P150D" | -| P180D | "P180D" | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacySegmentUserBehaviorV1.md b/sdks/retailmedia_2023-07/docs/RmLegacySegmentUserBehaviorV1.md deleted file mode 100644 index a625ac2c..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacySegmentUserBehaviorV1.md +++ /dev/null @@ -1,52 +0,0 @@ - - -# RmLegacySegmentUserBehaviorV1 - -Audience definition of people based on what they visited - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**userType** | [**UserTypeEnum**](#UserTypeEnum) | Type of shopper activity used to generate the audience. | | -|**lookbackWindow** | [**LookbackWindowEnum**](#LookbackWindowEnum) | Length of lookback window | | -|**targetType** | [**TargetTypeEnum**](#TargetTypeEnum) | Type of target | [optional] | -|**targetIds** | **Set<String>** | The categories to target | [optional] | - - - -## Enum: UserTypeEnum - -| Name | Value | -|---- | -----| -| VIEWER | "viewer" | -| BUYER | "buyer" | -| ADDTOCARTER | "addToCarter" | - - - -## Enum: LookbackWindowEnum - -| Name | Value | -|---- | -----| -| P7D | "P7D" | -| P14D | "P14D" | -| P30D | "P30D" | -| P45D | "P45D" | -| P60D | "P60D" | -| P90D | "P90D" | -| P120D | "P120D" | -| P150D | "P150D" | -| P180D | "P180D" | - - - -## Enum: TargetTypeEnum - -| Name | Value | -|---- | -----| -| BRAND | "brand" | -| CATEGORY | "category" | - - - diff --git a/sdks/retailmedia_2023-07/docs/RmLegacySegmentUserBehaviorV2.md b/sdks/retailmedia_2023-07/docs/RmLegacySegmentUserBehaviorV2.md deleted file mode 100644 index d2cf4788..00000000 --- a/sdks/retailmedia_2023-07/docs/RmLegacySegmentUserBehaviorV2.md +++ /dev/null @@ -1,45 +0,0 @@ - - -# RmLegacySegmentUserBehaviorV2 - -Audience definition of people based on what they visited - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**userAction** | [**UserActionEnum**](#UserActionEnum) | Type of shopper activity used to generate the audience. | | -|**lookbackWindow** | [**LookbackWindowEnum**](#LookbackWindowEnum) | Length of lookback window | | -|**categoryIds** | **Set<Integer>** | The categories to target | [optional] | -|**brandIds** | **Set<Long>** | The brands to target | [optional] | -|**minPrice** | **Double** | The min price of targeted skus. | [optional] | -|**maxPrice** | **Double** | The max price of targeted skus. | [optional] | - - - -## Enum: UserActionEnum - -| Name | Value | -|---- | -----| -| BUY | "buy" | -| VIEW | "view" | -| ADDTOCART | "addToCart" | - - - -## Enum: LookbackWindowEnum - -| Name | Value | -|---- | -----| -| P7D | "P7D" | -| P14D | "P14D" | -| P30D | "P30D" | -| P45D | "P45D" | -| P60D | "P60D" | -| P90D | "P90D" | -| P120D | "P120D" | -| P150D | "P150D" | -| P180D | "P180D" | - - - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AccountsApi.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AccountsApi.java deleted file mode 100644 index 3c54d3b7..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AccountsApi.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.api; - -import com.criteo.api.retailmedia.v2023_07.ApiCallback; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.ApiResponse; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.Pair; -import com.criteo.api.retailmedia.v2023_07.ProgressRequestBody; -import com.criteo.api.retailmedia.v2023_07.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.criteo.api.retailmedia.v2023_07.model.JsonApiPageResponseOfAccount; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class AccountsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public AccountsApi() { - this(Configuration.getDefaultApiClient()); - } - - public AccountsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for getApiV1ExternalAccounts - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) - * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getApiV1ExternalAccountsCall(List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limitToId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); - } - - if (pageIndex != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getApiV1ExternalAccountsValidateBeforeCall(List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - return getApiV1ExternalAccountsCall(limitToId, pageIndex, pageSize, _callback); - - } - - /** - * - * Gets page of account objects that the current user can access - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) - * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) - * @return JsonApiPageResponseOfAccount - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public JsonApiPageResponseOfAccount getApiV1ExternalAccounts(List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { - ApiResponse localVarResp = getApiV1ExternalAccountsWithHttpInfo(limitToId, pageIndex, pageSize); - return localVarResp.getData(); - } - - /** - * - * Gets page of account objects that the current user can access - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) - * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) - * @return ApiResponse<JsonApiPageResponseOfAccount> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public ApiResponse getApiV1ExternalAccountsWithHttpInfo(List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { - okhttp3.Call localVarCall = getApiV1ExternalAccountsValidateBeforeCall(limitToId, pageIndex, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Gets page of account objects that the current user can access - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) - * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getApiV1ExternalAccountsAsync(List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApiV1ExternalAccountsValidateBeforeCall(limitToId, pageIndex, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AudienceApi.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AudienceApi.java deleted file mode 100644 index 9899cbe2..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AudienceApi.java +++ /dev/null @@ -1,729 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.api; - -import com.criteo.api.retailmedia.v2023_07.ApiCallback; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.ApiResponse; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.Pair; -import com.criteo.api.retailmedia.v2023_07.ProgressRequestBody; -import com.criteo.api.retailmedia.v2023_07.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV1Response; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV2Response; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateInputEntityV1; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateInputEntityV2; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV1ListResponse; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV2ListResponse; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class AudienceApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public AudienceApi() { - this(Configuration.getDefaultApiClient()); - } - - public AudienceApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for legacyCreateAudienceV1 - * @param accountId ID of the account to which this audience belongs. (required) - * @param rmLegacyAudienceCreateInputEntityV1 Audience creation request. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 Success -
201 The audience that was just created. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- * @deprecated - */ - @Deprecated - public okhttp3.Call legacyCreateAudienceV1Call(Long accountId, RmLegacyAudienceCreateInputEntityV1 rmLegacyAudienceCreateInputEntityV1, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = rmLegacyAudienceCreateInputEntityV1; - - // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{accountId}/audiences" - .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @Deprecated - @SuppressWarnings("rawtypes") - private okhttp3.Call legacyCreateAudienceV1ValidateBeforeCall(Long accountId, RmLegacyAudienceCreateInputEntityV1 rmLegacyAudienceCreateInputEntityV1, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling legacyCreateAudienceV1(Async)"); - } - - // verify the required parameter 'rmLegacyAudienceCreateInputEntityV1' is set - if (rmLegacyAudienceCreateInputEntityV1 == null) { - throw new ApiException("Missing the required parameter 'rmLegacyAudienceCreateInputEntityV1' when calling legacyCreateAudienceV1(Async)"); - } - - return legacyCreateAudienceV1Call(accountId, rmLegacyAudienceCreateInputEntityV1, _callback); - - } - - /** - * - * Create an Audience (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param rmLegacyAudienceCreateInputEntityV1 Audience creation request. (required) - * @return RmLegacyAudienceCreateEntityV1Response - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 Success -
201 The audience that was just created. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- * @deprecated - */ - @Deprecated - public RmLegacyAudienceCreateEntityV1Response legacyCreateAudienceV1(Long accountId, RmLegacyAudienceCreateInputEntityV1 rmLegacyAudienceCreateInputEntityV1) throws ApiException { - ApiResponse localVarResp = legacyCreateAudienceV1WithHttpInfo(accountId, rmLegacyAudienceCreateInputEntityV1); - return localVarResp.getData(); - } - - /** - * - * Create an Audience (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param rmLegacyAudienceCreateInputEntityV1 Audience creation request. (required) - * @return ApiResponse<RmLegacyAudienceCreateEntityV1Response> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 Success -
201 The audience that was just created. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- * @deprecated - */ - @Deprecated - public ApiResponse legacyCreateAudienceV1WithHttpInfo(Long accountId, RmLegacyAudienceCreateInputEntityV1 rmLegacyAudienceCreateInputEntityV1) throws ApiException { - okhttp3.Call localVarCall = legacyCreateAudienceV1ValidateBeforeCall(accountId, rmLegacyAudienceCreateInputEntityV1, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Create an Audience (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param rmLegacyAudienceCreateInputEntityV1 Audience creation request. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 Success -
201 The audience that was just created. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- * @deprecated - */ - @Deprecated - public okhttp3.Call legacyCreateAudienceV1Async(Long accountId, RmLegacyAudienceCreateInputEntityV1 rmLegacyAudienceCreateInputEntityV1, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = legacyCreateAudienceV1ValidateBeforeCall(accountId, rmLegacyAudienceCreateInputEntityV1, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for legacyGetAudienceV1 - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public okhttp3.Call legacyGetAudienceV1Call(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{accountId}/audiences" - .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limitToId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageIndex != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); - } - - final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call legacyGetAudienceV1ValidateBeforeCall(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling legacyGetAudienceV1(Async)"); - } - - return legacyGetAudienceV1Call(accountId, limitToId, pageSize, pageIndex, _callback); - - } - - /** - * - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @return RmLegacyAudienceGetEntityV1ListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public RmLegacyAudienceGetEntityV1ListResponse legacyGetAudienceV1(Long accountId, List limitToId, Integer pageSize, Integer pageIndex) throws ApiException { - ApiResponse localVarResp = legacyGetAudienceV1WithHttpInfo(accountId, limitToId, pageSize, pageIndex); - return localVarResp.getData(); - } - - /** - * - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @return ApiResponse<RmLegacyAudienceGetEntityV1ListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public ApiResponse legacyGetAudienceV1WithHttpInfo(Long accountId, List limitToId, Integer pageSize, Integer pageIndex) throws ApiException { - okhttp3.Call localVarCall = legacyGetAudienceV1ValidateBeforeCall(accountId, limitToId, pageSize, pageIndex, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public okhttp3.Call legacyGetAudienceV1Async(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = legacyGetAudienceV1ValidateBeforeCall(accountId, limitToId, pageSize, pageIndex, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for legacyGetAudienceV2 - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public okhttp3.Call legacyGetAudienceV2Call(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2023-07/retail-media/v2/accounts/{accountId}/audiences" - .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limitToId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageIndex != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); - } - - final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call legacyGetAudienceV2ValidateBeforeCall(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling legacyGetAudienceV2(Async)"); - } - - return legacyGetAudienceV2Call(accountId, limitToId, pageSize, pageIndex, _callback); - - } - - /** - * - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @return RmLegacyAudienceGetEntityV2ListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public RmLegacyAudienceGetEntityV2ListResponse legacyGetAudienceV2(Long accountId, List limitToId, Integer pageSize, Integer pageIndex) throws ApiException { - ApiResponse localVarResp = legacyGetAudienceV2WithHttpInfo(accountId, limitToId, pageSize, pageIndex); - return localVarResp.getData(); - } - - /** - * - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @return ApiResponse<RmLegacyAudienceGetEntityV2ListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public ApiResponse legacyGetAudienceV2WithHttpInfo(Long accountId, List limitToId, Integer pageSize, Integer pageIndex) throws ApiException { - okhttp3.Call localVarCall = legacyGetAudienceV2ValidateBeforeCall(accountId, limitToId, pageSize, pageIndex, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public okhttp3.Call legacyGetAudienceV2Async(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = legacyGetAudienceV2ValidateBeforeCall(accountId, limitToId, pageSize, pageIndex, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for legacyUpdateAudienceV2 - * @param accountId ID of the account to which this audience belongs. (required) - * @param rmLegacyAudienceCreateInputEntityV2 Audience creation request. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 Success -
201 The audience that was just created. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- * @deprecated - */ - @Deprecated - public okhttp3.Call legacyUpdateAudienceV2Call(Long accountId, RmLegacyAudienceCreateInputEntityV2 rmLegacyAudienceCreateInputEntityV2, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = rmLegacyAudienceCreateInputEntityV2; - - // create path and map variables - String localVarPath = "/2023-07/retail-media/v2/accounts/{accountId}/audiences" - .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @Deprecated - @SuppressWarnings("rawtypes") - private okhttp3.Call legacyUpdateAudienceV2ValidateBeforeCall(Long accountId, RmLegacyAudienceCreateInputEntityV2 rmLegacyAudienceCreateInputEntityV2, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling legacyUpdateAudienceV2(Async)"); - } - - // verify the required parameter 'rmLegacyAudienceCreateInputEntityV2' is set - if (rmLegacyAudienceCreateInputEntityV2 == null) { - throw new ApiException("Missing the required parameter 'rmLegacyAudienceCreateInputEntityV2' when calling legacyUpdateAudienceV2(Async)"); - } - - return legacyUpdateAudienceV2Call(accountId, rmLegacyAudienceCreateInputEntityV2, _callback); - - } - - /** - * - * Create an Audience (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param rmLegacyAudienceCreateInputEntityV2 Audience creation request. (required) - * @return RmLegacyAudienceCreateEntityV2Response - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 Success -
201 The audience that was just created. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- * @deprecated - */ - @Deprecated - public RmLegacyAudienceCreateEntityV2Response legacyUpdateAudienceV2(Long accountId, RmLegacyAudienceCreateInputEntityV2 rmLegacyAudienceCreateInputEntityV2) throws ApiException { - ApiResponse localVarResp = legacyUpdateAudienceV2WithHttpInfo(accountId, rmLegacyAudienceCreateInputEntityV2); - return localVarResp.getData(); - } - - /** - * - * Create an Audience (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param rmLegacyAudienceCreateInputEntityV2 Audience creation request. (required) - * @return ApiResponse<RmLegacyAudienceCreateEntityV2Response> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 Success -
201 The audience that was just created. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- * @deprecated - */ - @Deprecated - public ApiResponse legacyUpdateAudienceV2WithHttpInfo(Long accountId, RmLegacyAudienceCreateInputEntityV2 rmLegacyAudienceCreateInputEntityV2) throws ApiException { - okhttp3.Call localVarCall = legacyUpdateAudienceV2ValidateBeforeCall(accountId, rmLegacyAudienceCreateInputEntityV2, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Create an Audience (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param rmLegacyAudienceCreateInputEntityV2 Audience creation request. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Status Code Description Response Headers
200 Success -
201 The audience that was just created. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- * @deprecated - */ - @Deprecated - public okhttp3.Call legacyUpdateAudienceV2Async(Long accountId, RmLegacyAudienceCreateInputEntityV2 rmLegacyAudienceCreateInputEntityV2, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = legacyUpdateAudienceV2ValidateBeforeCall(accountId, rmLegacyAudienceCreateInputEntityV2, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/BalanceApi.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/BalanceApi.java deleted file mode 100644 index 9975cb48..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/BalanceApi.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.api; - -import com.criteo.api.retailmedia.v2023_07.ApiCallback; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.ApiResponse; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.Pair; -import com.criteo.api.retailmedia.v2023_07.ProgressRequestBody; -import com.criteo.api.retailmedia.v2023_07.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.criteo.api.retailmedia.v2023_07.model.Balance202110PagedListResponse; -import com.criteo.api.retailmedia.v2023_07.model.BalanceCampaign202110PagedListResponse; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.ws.rs.core.GenericType; - -public class BalanceApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public BalanceApi() { - this(Configuration.getDefaultApiClient()); - } - - public BalanceApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for getApi202110ExternalAccountBalancesByAccountId - * @param accountId The account to get balances for (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getApi202110ExternalAccountBalancesByAccountIdCall(String accountId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{account-id}/balances" - .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limitToId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); - } - - if (pageIndex != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getApi202110ExternalAccountBalancesByAccountIdValidateBeforeCall(String accountId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling getApi202110ExternalAccountBalancesByAccountId(Async)"); - } - - return getApi202110ExternalAccountBalancesByAccountIdCall(accountId, limitToId, pageIndex, pageSize, _callback); - - } - - /** - * - * Gets page of balance objects for the given account id - * @param accountId The account to get balances for (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @return Balance202110PagedListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public Balance202110PagedListResponse getApi202110ExternalAccountBalancesByAccountId(String accountId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { - ApiResponse localVarResp = getApi202110ExternalAccountBalancesByAccountIdWithHttpInfo(accountId, limitToId, pageIndex, pageSize); - return localVarResp.getData(); - } - - /** - * - * Gets page of balance objects for the given account id - * @param accountId The account to get balances for (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @return ApiResponse<Balance202110PagedListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public ApiResponse getApi202110ExternalAccountBalancesByAccountIdWithHttpInfo(String accountId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { - okhttp3.Call localVarCall = getApi202110ExternalAccountBalancesByAccountIdValidateBeforeCall(accountId, limitToId, pageIndex, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Gets page of balance objects for the given account id - * @param accountId The account to get balances for (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getApi202110ExternalAccountBalancesByAccountIdAsync(String accountId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApi202110ExternalAccountBalancesByAccountIdValidateBeforeCall(accountId, limitToId, pageIndex, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getApi202110ExternalBalanceCampaignsByBalanceId - * @param balanceId The balance to get campaigns from (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getApi202110ExternalBalanceCampaignsByBalanceIdCall(String balanceId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2023-07/retail-media/balances/{balance-id}/campaigns" - .replace("{" + "balance-id" + "}", localVarApiClient.escapeString(balanceId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limitToId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); - } - - if (pageIndex != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getApi202110ExternalBalanceCampaignsByBalanceIdValidateBeforeCall(String balanceId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'balanceId' is set - if (balanceId == null) { - throw new ApiException("Missing the required parameter 'balanceId' when calling getApi202110ExternalBalanceCampaignsByBalanceId(Async)"); - } - - return getApi202110ExternalBalanceCampaignsByBalanceIdCall(balanceId, limitToId, pageIndex, pageSize, _callback); - - } - - /** - * - * Gets page of campaigns for the given balanceId - * @param balanceId The balance to get campaigns from (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @return BalanceCampaign202110PagedListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public BalanceCampaign202110PagedListResponse getApi202110ExternalBalanceCampaignsByBalanceId(String balanceId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { - ApiResponse localVarResp = getApi202110ExternalBalanceCampaignsByBalanceIdWithHttpInfo(balanceId, limitToId, pageIndex, pageSize); - return localVarResp.getData(); - } - - /** - * - * Gets page of campaigns for the given balanceId - * @param balanceId The balance to get campaigns from (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @return ApiResponse<BalanceCampaign202110PagedListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public ApiResponse getApi202110ExternalBalanceCampaignsByBalanceIdWithHttpInfo(String balanceId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { - okhttp3.Call localVarCall = getApi202110ExternalBalanceCampaignsByBalanceIdValidateBeforeCall(balanceId, limitToId, pageIndex, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Gets page of campaigns for the given balanceId - * @param balanceId The balance to get campaigns from (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getApi202110ExternalBalanceCampaignsByBalanceIdAsync(String balanceId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApi202110ExternalBalanceCampaignsByBalanceIdValidateBeforeCall(balanceId, limitToId, pageIndex, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Balance202110PagedListResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Balance202110PagedListResponse.java deleted file mode 100644 index a4d8958b..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Balance202110PagedListResponse.java +++ /dev/null @@ -1,415 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.PageMetadata; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfBalance202110; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Data model for a paged list of response resources - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class Balance202110PagedListResponse { - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private PageMetadata metadata; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; - - public static final String SERIALIZED_NAME_WARNINGS = "warnings"; - @SerializedName(SERIALIZED_NAME_WARNINGS) - private List warnings = null; - - public static final String SERIALIZED_NAME_ERRORS = "errors"; - @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = null; - - public Balance202110PagedListResponse() { - } - - - public Balance202110PagedListResponse( - List warnings, - List errors - ) { - this(); - this.warnings = warnings; - this.errors = errors; - } - - public Balance202110PagedListResponse metadata(PageMetadata metadata) { - - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * @return metadata - **/ - @javax.annotation.Nullable - - public PageMetadata getMetadata() { - return metadata; - } - - - public void setMetadata(PageMetadata metadata) { - this.metadata = metadata; - } - - - public Balance202110PagedListResponse data(List data) { - - this.data = data; - return this; - } - - public Balance202110PagedListResponse addDataItem(ResourceOfBalance202110 dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - /** - * Get warnings - * @return warnings - **/ - @javax.annotation.Nullable - - public List getWarnings() { - return warnings; - } - - - - - /** - * Get errors - * @return errors - **/ - @javax.annotation.Nullable - - public List getErrors() { - return errors; - } - - - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Balance202110PagedListResponse instance itself - */ - public Balance202110PagedListResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Balance202110PagedListResponse balance202110PagedListResponse = (Balance202110PagedListResponse) o; - return Objects.equals(this.metadata, balance202110PagedListResponse.metadata) && - Objects.equals(this.data, balance202110PagedListResponse.data) && - Objects.equals(this.warnings, balance202110PagedListResponse.warnings) && - Objects.equals(this.errors, balance202110PagedListResponse.errors)&& - Objects.equals(this.additionalProperties, balance202110PagedListResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(metadata, data, warnings, errors, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Balance202110PagedListResponse {\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metadata"); - openapiFields.add("data"); - openapiFields.add("warnings"); - openapiFields.add("errors"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Balance202110PagedListResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!Balance202110PagedListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Balance202110PagedListResponse is not found in the empty JSON string", Balance202110PagedListResponse.openapiRequiredFields.toString())); - } - } - // validate the optional field `metadata` - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - PageMetadata.validateJsonObject(jsonObj.getAsJsonObject("metadata")); - } - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - ResourceOfBalance202110.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); - }; - } - } - if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { - JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); - if (jsonArraywarnings != null) { - // ensure the json data is an array - if (!jsonObj.get("warnings").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); - } - - // validate the optional field `warnings` (array) - for (int i = 0; i < jsonArraywarnings.size(); i++) { - ProblemDetails.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); - }; - } - } - if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - if (jsonArrayerrors != null) { - // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); - } - - // validate the optional field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - ProblemDetails.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Balance202110PagedListResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Balance202110PagedListResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Balance202110PagedListResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Balance202110PagedListResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Balance202110PagedListResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Balance202110PagedListResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Balance202110PagedListResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of Balance202110PagedListResponse - * @throws IOException if the JSON string is invalid with respect to Balance202110PagedListResponse - */ - public static Balance202110PagedListResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Balance202110PagedListResponse.class); - } - - /** - * Convert an instance of Balance202110PagedListResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210ListResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210ListResponse.java deleted file mode 100644 index 310de70f..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210ListResponse.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfCreative202210; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Data model for a list of response resources - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class Creative202210ListResponse { - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; - - public static final String SERIALIZED_NAME_WARNINGS = "warnings"; - @SerializedName(SERIALIZED_NAME_WARNINGS) - private List warnings = null; - - public static final String SERIALIZED_NAME_ERRORS = "errors"; - @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = null; - - public Creative202210ListResponse() { - } - - - public Creative202210ListResponse( - List warnings, - List errors - ) { - this(); - this.warnings = warnings; - this.errors = errors; - } - - public Creative202210ListResponse data(List data) { - - this.data = data; - return this; - } - - public Creative202210ListResponse addDataItem(ResourceOfCreative202210 dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - /** - * Get warnings - * @return warnings - **/ - @javax.annotation.Nullable - - public List getWarnings() { - return warnings; - } - - - - - /** - * Get errors - * @return errors - **/ - @javax.annotation.Nullable - - public List getErrors() { - return errors; - } - - - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the Creative202210ListResponse instance itself - */ - public Creative202210ListResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Creative202210ListResponse creative202210ListResponse = (Creative202210ListResponse) o; - return Objects.equals(this.data, creative202210ListResponse.data) && - Objects.equals(this.warnings, creative202210ListResponse.warnings) && - Objects.equals(this.errors, creative202210ListResponse.errors)&& - Objects.equals(this.additionalProperties, creative202210ListResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, warnings, errors, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Creative202210ListResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("warnings"); - openapiFields.add("errors"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Creative202210ListResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!Creative202210ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Creative202210ListResponse is not found in the empty JSON string", Creative202210ListResponse.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - ResourceOfCreative202210.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); - }; - } - } - if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { - JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); - if (jsonArraywarnings != null) { - // ensure the json data is an array - if (!jsonObj.get("warnings").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); - } - - // validate the optional field `warnings` (array) - for (int i = 0; i < jsonArraywarnings.size(); i++) { - ProblemDetails.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); - }; - } - } - if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - if (jsonArrayerrors != null) { - // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); - } - - // validate the optional field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - ProblemDetails.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Creative202210ListResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Creative202210ListResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Creative202210ListResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Creative202210ListResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public Creative202210ListResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - Creative202210ListResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Creative202210ListResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of Creative202210ListResponse - * @throws IOException if the JSON string is invalid with respect to Creative202210ListResponse - */ - public static Creative202210ListResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Creative202210ListResponse.class); - } - - /** - * Convert an instance of Creative202210ListResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliersResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliersResponse.java deleted file mode 100644 index ac5b5be7..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliersResponse.java +++ /dev/null @@ -1,363 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfLineItemBidMultipliers; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Data model for response resource - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class LineItemBidMultipliersResponse { - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private ResourceOfLineItemBidMultipliers data; - - public static final String SERIALIZED_NAME_WARNINGS = "warnings"; - @SerializedName(SERIALIZED_NAME_WARNINGS) - private List warnings = null; - - public static final String SERIALIZED_NAME_ERRORS = "errors"; - @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = null; - - public LineItemBidMultipliersResponse() { - } - - - public LineItemBidMultipliersResponse( - List warnings, - List errors - ) { - this(); - this.warnings = warnings; - this.errors = errors; - } - - public LineItemBidMultipliersResponse data(ResourceOfLineItemBidMultipliers data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - - public ResourceOfLineItemBidMultipliers getData() { - return data; - } - - - public void setData(ResourceOfLineItemBidMultipliers data) { - this.data = data; - } - - - /** - * Get warnings - * @return warnings - **/ - @javax.annotation.Nullable - - public List getWarnings() { - return warnings; - } - - - - - /** - * Get errors - * @return errors - **/ - @javax.annotation.Nullable - - public List getErrors() { - return errors; - } - - - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the LineItemBidMultipliersResponse instance itself - */ - public LineItemBidMultipliersResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LineItemBidMultipliersResponse lineItemBidMultipliersResponse = (LineItemBidMultipliersResponse) o; - return Objects.equals(this.data, lineItemBidMultipliersResponse.data) && - Objects.equals(this.warnings, lineItemBidMultipliersResponse.warnings) && - Objects.equals(this.errors, lineItemBidMultipliersResponse.errors)&& - Objects.equals(this.additionalProperties, lineItemBidMultipliersResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, warnings, errors, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LineItemBidMultipliersResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("warnings"); - openapiFields.add("errors"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to LineItemBidMultipliersResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!LineItemBidMultipliersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LineItemBidMultipliersResponse is not found in the empty JSON string", LineItemBidMultipliersResponse.openapiRequiredFields.toString())); - } - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - ResourceOfLineItemBidMultipliers.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { - JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); - if (jsonArraywarnings != null) { - // ensure the json data is an array - if (!jsonObj.get("warnings").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); - } - - // validate the optional field `warnings` (array) - for (int i = 0; i < jsonArraywarnings.size(); i++) { - ProblemDetails.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); - }; - } - } - if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - if (jsonArrayerrors != null) { - // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); - } - - // validate the optional field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - ProblemDetails.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!LineItemBidMultipliersResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LineItemBidMultipliersResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(LineItemBidMultipliersResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, LineItemBidMultipliersResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public LineItemBidMultipliersResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - LineItemBidMultipliersResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of LineItemBidMultipliersResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of LineItemBidMultipliersResponse - * @throws IOException if the JSON string is invalid with respect to LineItemBidMultipliersResponse - */ - public static LineItemBidMultipliersResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, LineItemBidMultipliersResponse.class); - } - - /** - * Convert an instance of LineItemBidMultipliersResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateInputEntityV2.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateInputEntityV2.java deleted file mode 100644 index 05ee8355..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateInputEntityV2.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV2Resource; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Input to create audience. - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceCreateInputEntityV2 { - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private RmLegacyAudienceCreateEntityV2Resource data; - - public RmLegacyAudienceCreateInputEntityV2() { - } - - public RmLegacyAudienceCreateInputEntityV2 data(RmLegacyAudienceCreateEntityV2Resource data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - - public RmLegacyAudienceCreateEntityV2Resource getData() { - return data; - } - - - public void setData(RmLegacyAudienceCreateEntityV2Resource data) { - this.data = data; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacyAudienceCreateInputEntityV2 instance itself - */ - public RmLegacyAudienceCreateInputEntityV2 putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacyAudienceCreateInputEntityV2 rmLegacyAudienceCreateInputEntityV2 = (RmLegacyAudienceCreateInputEntityV2) o; - return Objects.equals(this.data, rmLegacyAudienceCreateInputEntityV2.data)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceCreateInputEntityV2.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceCreateInputEntityV2 {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceCreateInputEntityV2 - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacyAudienceCreateInputEntityV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceCreateInputEntityV2 is not found in the empty JSON string", RmLegacyAudienceCreateInputEntityV2.openapiRequiredFields.toString())); - } - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - RmLegacyAudienceCreateEntityV2Resource.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceCreateInputEntityV2.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceCreateInputEntityV2' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceCreateInputEntityV2.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacyAudienceCreateInputEntityV2 value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacyAudienceCreateInputEntityV2 read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacyAudienceCreateInputEntityV2 instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacyAudienceCreateInputEntityV2 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacyAudienceCreateInputEntityV2 - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceCreateInputEntityV2 - */ - public static RmLegacyAudienceCreateInputEntityV2 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceCreateInputEntityV2.class); - } - - /** - * Convert an instance of RmLegacyAudienceCreateInputEntityV2 to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1.java deleted file mode 100644 index 356b5f20..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1.java +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacySegmentCustomerList; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacySegmentUserBehaviorV1; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Audience definition of people of interest for a marketer. - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV1 { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; - @SerializedName(SERIALIZED_NAME_RETAILER_ID) - private String retailerId; - - public static final String SERIALIZED_NAME_USER_BEHAVIOR_DETAILS = "userBehaviorDetails"; - @SerializedName(SERIALIZED_NAME_USER_BEHAVIOR_DETAILS) - private RmLegacySegmentUserBehaviorV1 userBehaviorDetails; - - public static final String SERIALIZED_NAME_CUSTOMER_LIST_DETAILS = "customerListDetails"; - @SerializedName(SERIALIZED_NAME_CUSTOMER_LIST_DETAILS) - private RmLegacySegmentCustomerList customerListDetails; - - public RmLegacyAudienceGetEntityV1() { - } - - public RmLegacyAudienceGetEntityV1 name(String name) { - - this.name = name; - return this; - } - - /** - * Name of the audience - * @return name - **/ - @javax.annotation.Nonnull - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public RmLegacyAudienceGetEntityV1 retailerId(String retailerId) { - - this.retailerId = retailerId; - return this; - } - - /** - * ID of the retailer associated with this audience - * @return retailerId - **/ - @javax.annotation.Nonnull - - public String getRetailerId() { - return retailerId; - } - - - public void setRetailerId(String retailerId) { - this.retailerId = retailerId; - } - - - public RmLegacyAudienceGetEntityV1 userBehaviorDetails(RmLegacySegmentUserBehaviorV1 userBehaviorDetails) { - - this.userBehaviorDetails = userBehaviorDetails; - return this; - } - - /** - * Get userBehaviorDetails - * @return userBehaviorDetails - **/ - @javax.annotation.Nullable - - public RmLegacySegmentUserBehaviorV1 getUserBehaviorDetails() { - return userBehaviorDetails; - } - - - public void setUserBehaviorDetails(RmLegacySegmentUserBehaviorV1 userBehaviorDetails) { - this.userBehaviorDetails = userBehaviorDetails; - } - - - public RmLegacyAudienceGetEntityV1 customerListDetails(RmLegacySegmentCustomerList customerListDetails) { - - this.customerListDetails = customerListDetails; - return this; - } - - /** - * Get customerListDetails - * @return customerListDetails - **/ - @javax.annotation.Nullable - - public RmLegacySegmentCustomerList getCustomerListDetails() { - return customerListDetails; - } - - - public void setCustomerListDetails(RmLegacySegmentCustomerList customerListDetails) { - this.customerListDetails = customerListDetails; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacyAudienceGetEntityV1 instance itself - */ - public RmLegacyAudienceGetEntityV1 putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacyAudienceGetEntityV1 rmLegacyAudienceGetEntityV1 = (RmLegacyAudienceGetEntityV1) o; - return Objects.equals(this.name, rmLegacyAudienceGetEntityV1.name) && - Objects.equals(this.retailerId, rmLegacyAudienceGetEntityV1.retailerId) && - Objects.equals(this.userBehaviorDetails, rmLegacyAudienceGetEntityV1.userBehaviorDetails) && - Objects.equals(this.customerListDetails, rmLegacyAudienceGetEntityV1.customerListDetails)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV1.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, retailerId, userBehaviorDetails, customerListDetails, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV1 {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); - sb.append(" userBehaviorDetails: ").append(toIndentedString(userBehaviorDetails)).append("\n"); - sb.append(" customerListDetails: ").append(toIndentedString(customerListDetails)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("retailerId"); - openapiFields.add("userBehaviorDetails"); - openapiFields.add("customerListDetails"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("retailerId"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV1 - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV1 is not found in the empty JSON string", RmLegacyAudienceGetEntityV1.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacyAudienceGetEntityV1.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (!jsonObj.get("retailerId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `retailerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("retailerId").toString())); - } - // validate the optional field `userBehaviorDetails` - if (jsonObj.get("userBehaviorDetails") != null && !jsonObj.get("userBehaviorDetails").isJsonNull()) { - RmLegacySegmentUserBehaviorV1.validateJsonObject(jsonObj.getAsJsonObject("userBehaviorDetails")); - } - // validate the optional field `customerListDetails` - if (jsonObj.get("customerListDetails") != null && !jsonObj.get("customerListDetails").isJsonNull()) { - RmLegacySegmentCustomerList.validateJsonObject(jsonObj.getAsJsonObject("customerListDetails")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV1' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV1.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV1 value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacyAudienceGetEntityV1 read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacyAudienceGetEntityV1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV1 - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV1 - */ - public static RmLegacyAudienceGetEntityV1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV1.class); - } - - /** - * Convert an instance of RmLegacyAudienceGetEntityV1 to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2.java deleted file mode 100644 index 2da177e6..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2.java +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceUserBehaviorDetailsV2; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacySegmentCustomerList; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Audience definition of people of interest for a marketer - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV2 { - public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; - @SerializedName(SERIALIZED_NAME_RETAILER_ID) - private String retailerId; - - public static final String SERIALIZED_NAME_USER_BEHAVIOR_DETAILS = "userBehaviorDetails"; - @SerializedName(SERIALIZED_NAME_USER_BEHAVIOR_DETAILS) - private RmLegacyAudienceUserBehaviorDetailsV2 userBehaviorDetails; - - public static final String SERIALIZED_NAME_CUSTOMER_LIST_DETAILS = "customerListDetails"; - @SerializedName(SERIALIZED_NAME_CUSTOMER_LIST_DETAILS) - private RmLegacySegmentCustomerList customerListDetails; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public RmLegacyAudienceGetEntityV2() { - } - - public RmLegacyAudienceGetEntityV2 retailerId(String retailerId) { - - this.retailerId = retailerId; - return this; - } - - /** - * ID of the retailer associated with this audience - * @return retailerId - **/ - @javax.annotation.Nonnull - - public String getRetailerId() { - return retailerId; - } - - - public void setRetailerId(String retailerId) { - this.retailerId = retailerId; - } - - - public RmLegacyAudienceGetEntityV2 userBehaviorDetails(RmLegacyAudienceUserBehaviorDetailsV2 userBehaviorDetails) { - - this.userBehaviorDetails = userBehaviorDetails; - return this; - } - - /** - * Get userBehaviorDetails - * @return userBehaviorDetails - **/ - @javax.annotation.Nullable - - public RmLegacyAudienceUserBehaviorDetailsV2 getUserBehaviorDetails() { - return userBehaviorDetails; - } - - - public void setUserBehaviorDetails(RmLegacyAudienceUserBehaviorDetailsV2 userBehaviorDetails) { - this.userBehaviorDetails = userBehaviorDetails; - } - - - public RmLegacyAudienceGetEntityV2 customerListDetails(RmLegacySegmentCustomerList customerListDetails) { - - this.customerListDetails = customerListDetails; - return this; - } - - /** - * Get customerListDetails - * @return customerListDetails - **/ - @javax.annotation.Nullable - - public RmLegacySegmentCustomerList getCustomerListDetails() { - return customerListDetails; - } - - - public void setCustomerListDetails(RmLegacySegmentCustomerList customerListDetails) { - this.customerListDetails = customerListDetails; - } - - - public RmLegacyAudienceGetEntityV2 name(String name) { - - this.name = name; - return this; - } - - /** - * Name of the audience - * @return name - **/ - @javax.annotation.Nonnull - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacyAudienceGetEntityV2 instance itself - */ - public RmLegacyAudienceGetEntityV2 putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacyAudienceGetEntityV2 rmLegacyAudienceGetEntityV2 = (RmLegacyAudienceGetEntityV2) o; - return Objects.equals(this.retailerId, rmLegacyAudienceGetEntityV2.retailerId) && - Objects.equals(this.userBehaviorDetails, rmLegacyAudienceGetEntityV2.userBehaviorDetails) && - Objects.equals(this.customerListDetails, rmLegacyAudienceGetEntityV2.customerListDetails) && - Objects.equals(this.name, rmLegacyAudienceGetEntityV2.name)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV2.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(retailerId, userBehaviorDetails, customerListDetails, name, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV2 {\n"); - sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); - sb.append(" userBehaviorDetails: ").append(toIndentedString(userBehaviorDetails)).append("\n"); - sb.append(" customerListDetails: ").append(toIndentedString(customerListDetails)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("retailerId"); - openapiFields.add("userBehaviorDetails"); - openapiFields.add("customerListDetails"); - openapiFields.add("name"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("retailerId"); - openapiRequiredFields.add("name"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV2 - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV2 is not found in the empty JSON string", RmLegacyAudienceGetEntityV2.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacyAudienceGetEntityV2.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("retailerId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `retailerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("retailerId").toString())); - } - // validate the optional field `userBehaviorDetails` - if (jsonObj.get("userBehaviorDetails") != null && !jsonObj.get("userBehaviorDetails").isJsonNull()) { - RmLegacyAudienceUserBehaviorDetailsV2.validateJsonObject(jsonObj.getAsJsonObject("userBehaviorDetails")); - } - // validate the optional field `customerListDetails` - if (jsonObj.get("customerListDetails") != null && !jsonObj.get("customerListDetails").isJsonNull()) { - RmLegacySegmentCustomerList.validateJsonObject(jsonObj.getAsJsonObject("customerListDetails")); - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV2.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV2' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV2.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV2 value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacyAudienceGetEntityV2 read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV2 instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacyAudienceGetEntityV2 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV2 - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV2 - */ - public static RmLegacyAudienceGetEntityV2 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV2.class); - } - - /** - * Convert an instance of RmLegacyAudienceGetEntityV2 to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceUserBehaviorCreateV2.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceUserBehaviorCreateV2.java deleted file mode 100644 index 961c4852..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceUserBehaviorCreateV2.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacySegmentUserBehaviorCreateV2; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * User Behavior to include and optionally exclude. - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceUserBehaviorCreateV2 { - public static final String SERIALIZED_NAME_INCLUSIVE_SEGMENT = "inclusiveSegment"; - @SerializedName(SERIALIZED_NAME_INCLUSIVE_SEGMENT) - private RmLegacySegmentUserBehaviorCreateV2 inclusiveSegment; - - public static final String SERIALIZED_NAME_EXCLUSIVE_SEGMENT = "exclusiveSegment"; - @SerializedName(SERIALIZED_NAME_EXCLUSIVE_SEGMENT) - private RmLegacySegmentUserBehaviorCreateV2 exclusiveSegment; - - public RmLegacyAudienceUserBehaviorCreateV2() { - } - - public RmLegacyAudienceUserBehaviorCreateV2 inclusiveSegment(RmLegacySegmentUserBehaviorCreateV2 inclusiveSegment) { - - this.inclusiveSegment = inclusiveSegment; - return this; - } - - /** - * Get inclusiveSegment - * @return inclusiveSegment - **/ - @javax.annotation.Nonnull - - public RmLegacySegmentUserBehaviorCreateV2 getInclusiveSegment() { - return inclusiveSegment; - } - - - public void setInclusiveSegment(RmLegacySegmentUserBehaviorCreateV2 inclusiveSegment) { - this.inclusiveSegment = inclusiveSegment; - } - - - public RmLegacyAudienceUserBehaviorCreateV2 exclusiveSegment(RmLegacySegmentUserBehaviorCreateV2 exclusiveSegment) { - - this.exclusiveSegment = exclusiveSegment; - return this; - } - - /** - * Get exclusiveSegment - * @return exclusiveSegment - **/ - @javax.annotation.Nullable - - public RmLegacySegmentUserBehaviorCreateV2 getExclusiveSegment() { - return exclusiveSegment; - } - - - public void setExclusiveSegment(RmLegacySegmentUserBehaviorCreateV2 exclusiveSegment) { - this.exclusiveSegment = exclusiveSegment; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacyAudienceUserBehaviorCreateV2 instance itself - */ - public RmLegacyAudienceUserBehaviorCreateV2 putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacyAudienceUserBehaviorCreateV2 rmLegacyAudienceUserBehaviorCreateV2 = (RmLegacyAudienceUserBehaviorCreateV2) o; - return Objects.equals(this.inclusiveSegment, rmLegacyAudienceUserBehaviorCreateV2.inclusiveSegment) && - Objects.equals(this.exclusiveSegment, rmLegacyAudienceUserBehaviorCreateV2.exclusiveSegment)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceUserBehaviorCreateV2.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(inclusiveSegment, exclusiveSegment, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceUserBehaviorCreateV2 {\n"); - sb.append(" inclusiveSegment: ").append(toIndentedString(inclusiveSegment)).append("\n"); - sb.append(" exclusiveSegment: ").append(toIndentedString(exclusiveSegment)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("inclusiveSegment"); - openapiFields.add("exclusiveSegment"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("inclusiveSegment"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceUserBehaviorCreateV2 - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacyAudienceUserBehaviorCreateV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceUserBehaviorCreateV2 is not found in the empty JSON string", RmLegacyAudienceUserBehaviorCreateV2.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacyAudienceUserBehaviorCreateV2.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - // validate the required field `inclusiveSegment` - RmLegacySegmentUserBehaviorCreateV2.validateJsonObject(jsonObj.getAsJsonObject("inclusiveSegment")); - // validate the optional field `exclusiveSegment` - if (jsonObj.get("exclusiveSegment") != null && !jsonObj.get("exclusiveSegment").isJsonNull()) { - RmLegacySegmentUserBehaviorCreateV2.validateJsonObject(jsonObj.getAsJsonObject("exclusiveSegment")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceUserBehaviorCreateV2.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceUserBehaviorCreateV2' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceUserBehaviorCreateV2.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacyAudienceUserBehaviorCreateV2 value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacyAudienceUserBehaviorCreateV2 read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacyAudienceUserBehaviorCreateV2 instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacyAudienceUserBehaviorCreateV2 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacyAudienceUserBehaviorCreateV2 - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceUserBehaviorCreateV2 - */ - public static RmLegacyAudienceUserBehaviorCreateV2 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceUserBehaviorCreateV2.class); - } - - /** - * Convert an instance of RmLegacyAudienceUserBehaviorCreateV2 to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceUserBehaviorDetailsV2.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceUserBehaviorDetailsV2.java deleted file mode 100644 index bbbab929..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceUserBehaviorDetailsV2.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacySegmentUserBehaviorV2; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * User Behavior Details. - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceUserBehaviorDetailsV2 { - public static final String SERIALIZED_NAME_INCLUSIVE_SEGMENT = "inclusiveSegment"; - @SerializedName(SERIALIZED_NAME_INCLUSIVE_SEGMENT) - private RmLegacySegmentUserBehaviorV2 inclusiveSegment; - - public static final String SERIALIZED_NAME_EXCLUSIVE_SEGMENT = "exclusiveSegment"; - @SerializedName(SERIALIZED_NAME_EXCLUSIVE_SEGMENT) - private RmLegacySegmentUserBehaviorV2 exclusiveSegment; - - public RmLegacyAudienceUserBehaviorDetailsV2() { - } - - public RmLegacyAudienceUserBehaviorDetailsV2 inclusiveSegment(RmLegacySegmentUserBehaviorV2 inclusiveSegment) { - - this.inclusiveSegment = inclusiveSegment; - return this; - } - - /** - * Get inclusiveSegment - * @return inclusiveSegment - **/ - @javax.annotation.Nonnull - - public RmLegacySegmentUserBehaviorV2 getInclusiveSegment() { - return inclusiveSegment; - } - - - public void setInclusiveSegment(RmLegacySegmentUserBehaviorV2 inclusiveSegment) { - this.inclusiveSegment = inclusiveSegment; - } - - - public RmLegacyAudienceUserBehaviorDetailsV2 exclusiveSegment(RmLegacySegmentUserBehaviorV2 exclusiveSegment) { - - this.exclusiveSegment = exclusiveSegment; - return this; - } - - /** - * Get exclusiveSegment - * @return exclusiveSegment - **/ - @javax.annotation.Nullable - - public RmLegacySegmentUserBehaviorV2 getExclusiveSegment() { - return exclusiveSegment; - } - - - public void setExclusiveSegment(RmLegacySegmentUserBehaviorV2 exclusiveSegment) { - this.exclusiveSegment = exclusiveSegment; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacyAudienceUserBehaviorDetailsV2 instance itself - */ - public RmLegacyAudienceUserBehaviorDetailsV2 putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacyAudienceUserBehaviorDetailsV2 rmLegacyAudienceUserBehaviorDetailsV2 = (RmLegacyAudienceUserBehaviorDetailsV2) o; - return Objects.equals(this.inclusiveSegment, rmLegacyAudienceUserBehaviorDetailsV2.inclusiveSegment) && - Objects.equals(this.exclusiveSegment, rmLegacyAudienceUserBehaviorDetailsV2.exclusiveSegment)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceUserBehaviorDetailsV2.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(inclusiveSegment, exclusiveSegment, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceUserBehaviorDetailsV2 {\n"); - sb.append(" inclusiveSegment: ").append(toIndentedString(inclusiveSegment)).append("\n"); - sb.append(" exclusiveSegment: ").append(toIndentedString(exclusiveSegment)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("inclusiveSegment"); - openapiFields.add("exclusiveSegment"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("inclusiveSegment"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceUserBehaviorDetailsV2 - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacyAudienceUserBehaviorDetailsV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceUserBehaviorDetailsV2 is not found in the empty JSON string", RmLegacyAudienceUserBehaviorDetailsV2.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacyAudienceUserBehaviorDetailsV2.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - // validate the required field `inclusiveSegment` - RmLegacySegmentUserBehaviorV2.validateJsonObject(jsonObj.getAsJsonObject("inclusiveSegment")); - // validate the optional field `exclusiveSegment` - if (jsonObj.get("exclusiveSegment") != null && !jsonObj.get("exclusiveSegment").isJsonNull()) { - RmLegacySegmentUserBehaviorV2.validateJsonObject(jsonObj.getAsJsonObject("exclusiveSegment")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceUserBehaviorDetailsV2.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceUserBehaviorDetailsV2' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceUserBehaviorDetailsV2.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacyAudienceUserBehaviorDetailsV2 value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacyAudienceUserBehaviorDetailsV2 read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacyAudienceUserBehaviorDetailsV2 instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacyAudienceUserBehaviorDetailsV2 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacyAudienceUserBehaviorDetailsV2 - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceUserBehaviorDetailsV2 - */ - public static RmLegacyAudienceUserBehaviorDetailsV2 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceUserBehaviorDetailsV2.class); - } - - /** - * Convert an instance of RmLegacyAudienceUserBehaviorDetailsV2 to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentCustomerList.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentCustomerList.java deleted file mode 100644 index f49f513d..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentCustomerList.java +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Audience definition of people based on a customer list - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacySegmentCustomerList { - public static final String SERIALIZED_NAME_SIZE = "size"; - @SerializedName(SERIALIZED_NAME_SIZE) - private String size; - - public static final String SERIALIZED_NAME_IS_SHARED = "isShared"; - @SerializedName(SERIALIZED_NAME_IS_SHARED) - private Boolean isShared; - - public RmLegacySegmentCustomerList() { - } - - public RmLegacySegmentCustomerList size(String size) { - - this.size = size; - return this; - } - - /** - * Number of users in the customer list audience. - * @return size - **/ - @javax.annotation.Nonnull - - public String getSize() { - return size; - } - - - public void setSize(String size) { - this.size = size; - } - - - public RmLegacySegmentCustomerList isShared(Boolean isShared) { - - this.isShared = isShared; - return this; - } - - /** - * Indicate if the audience is shared. - * @return isShared - **/ - @javax.annotation.Nonnull - - public Boolean getIsShared() { - return isShared; - } - - - public void setIsShared(Boolean isShared) { - this.isShared = isShared; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacySegmentCustomerList instance itself - */ - public RmLegacySegmentCustomerList putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacySegmentCustomerList rmLegacySegmentCustomerList = (RmLegacySegmentCustomerList) o; - return Objects.equals(this.size, rmLegacySegmentCustomerList.size) && - Objects.equals(this.isShared, rmLegacySegmentCustomerList.isShared)&& - Objects.equals(this.additionalProperties, rmLegacySegmentCustomerList.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(size, isShared, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacySegmentCustomerList {\n"); - sb.append(" size: ").append(toIndentedString(size)).append("\n"); - sb.append(" isShared: ").append(toIndentedString(isShared)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("size"); - openapiFields.add("isShared"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("size"); - openapiRequiredFields.add("isShared"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacySegmentCustomerList - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacySegmentCustomerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacySegmentCustomerList is not found in the empty JSON string", RmLegacySegmentCustomerList.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacySegmentCustomerList.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("size").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `size` to be a primitive type in the JSON string but got `%s`", jsonObj.get("size").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacySegmentCustomerList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacySegmentCustomerList' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacySegmentCustomerList.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacySegmentCustomerList value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacySegmentCustomerList read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacySegmentCustomerList instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacySegmentCustomerList given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacySegmentCustomerList - * @throws IOException if the JSON string is invalid with respect to RmLegacySegmentCustomerList - */ - public static RmLegacySegmentCustomerList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacySegmentCustomerList.class); - } - - /** - * Convert an instance of RmLegacySegmentCustomerList to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorV1.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorV1.java deleted file mode 100644 index 49b52ddf..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorV1.java +++ /dev/null @@ -1,565 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.LinkedHashSet; -import java.util.Set; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Audience definition of people based on what they visited - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacySegmentUserBehaviorV1 { - /** - * Type of shopper activity used to generate the audience. - */ - @JsonAdapter(UserTypeEnum.Adapter.class) - public enum UserTypeEnum { - VIEWER("viewer"), - - BUYER("buyer"), - - ADDTOCARTER("addToCarter"); - - private String value; - - UserTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static UserTypeEnum fromValue(String value) { - for (UserTypeEnum b : UserTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final UserTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public UserTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return UserTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_USER_TYPE = "userType"; - @SerializedName(SERIALIZED_NAME_USER_TYPE) - private UserTypeEnum userType; - - /** - * Length of lookback window - */ - @JsonAdapter(LookbackWindowEnum.Adapter.class) - public enum LookbackWindowEnum { - P7D("P7D"), - - P14D("P14D"), - - P30D("P30D"), - - P45D("P45D"), - - P60D("P60D"), - - P90D("P90D"), - - P120D("P120D"), - - P150D("P150D"), - - P180D("P180D"); - - private String value; - - LookbackWindowEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static LookbackWindowEnum fromValue(String value) { - for (LookbackWindowEnum b : LookbackWindowEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final LookbackWindowEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public LookbackWindowEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return LookbackWindowEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_LOOKBACK_WINDOW = "lookbackWindow"; - @SerializedName(SERIALIZED_NAME_LOOKBACK_WINDOW) - private LookbackWindowEnum lookbackWindow; - - /** - * Type of target - */ - @JsonAdapter(TargetTypeEnum.Adapter.class) - public enum TargetTypeEnum { - BRAND("brand"), - - CATEGORY("category"); - - private String value; - - TargetTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static TargetTypeEnum fromValue(String value) { - for (TargetTypeEnum b : TargetTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final TargetTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public TargetTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return TargetTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_TARGET_TYPE = "targetType"; - @SerializedName(SERIALIZED_NAME_TARGET_TYPE) - private TargetTypeEnum targetType; - - public static final String SERIALIZED_NAME_TARGET_IDS = "targetIds"; - @SerializedName(SERIALIZED_NAME_TARGET_IDS) - private Set targetIds = null; - - public RmLegacySegmentUserBehaviorV1() { - } - - public RmLegacySegmentUserBehaviorV1 userType(UserTypeEnum userType) { - - this.userType = userType; - return this; - } - - /** - * Type of shopper activity used to generate the audience. - * @return userType - **/ - @javax.annotation.Nonnull - - public UserTypeEnum getUserType() { - return userType; - } - - - public void setUserType(UserTypeEnum userType) { - this.userType = userType; - } - - - public RmLegacySegmentUserBehaviorV1 lookbackWindow(LookbackWindowEnum lookbackWindow) { - - this.lookbackWindow = lookbackWindow; - return this; - } - - /** - * Length of lookback window - * @return lookbackWindow - **/ - @javax.annotation.Nonnull - - public LookbackWindowEnum getLookbackWindow() { - return lookbackWindow; - } - - - public void setLookbackWindow(LookbackWindowEnum lookbackWindow) { - this.lookbackWindow = lookbackWindow; - } - - - public RmLegacySegmentUserBehaviorV1 targetType(TargetTypeEnum targetType) { - - this.targetType = targetType; - return this; - } - - /** - * Type of target - * @return targetType - **/ - @javax.annotation.Nullable - - public TargetTypeEnum getTargetType() { - return targetType; - } - - - public void setTargetType(TargetTypeEnum targetType) { - this.targetType = targetType; - } - - - public RmLegacySegmentUserBehaviorV1 targetIds(Set targetIds) { - - this.targetIds = targetIds; - return this; - } - - public RmLegacySegmentUserBehaviorV1 addTargetIdsItem(String targetIdsItem) { - if (this.targetIds == null) { - this.targetIds = null; - } - this.targetIds.add(targetIdsItem); - return this; - } - - /** - * The categories to target - * @return targetIds - **/ - @javax.annotation.Nullable - - public Set getTargetIds() { - return targetIds; - } - - - public void setTargetIds(Set targetIds) { - this.targetIds = targetIds; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacySegmentUserBehaviorV1 instance itself - */ - public RmLegacySegmentUserBehaviorV1 putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacySegmentUserBehaviorV1 rmLegacySegmentUserBehaviorV1 = (RmLegacySegmentUserBehaviorV1) o; - return Objects.equals(this.userType, rmLegacySegmentUserBehaviorV1.userType) && - Objects.equals(this.lookbackWindow, rmLegacySegmentUserBehaviorV1.lookbackWindow) && - Objects.equals(this.targetType, rmLegacySegmentUserBehaviorV1.targetType) && - Objects.equals(this.targetIds, rmLegacySegmentUserBehaviorV1.targetIds)&& - Objects.equals(this.additionalProperties, rmLegacySegmentUserBehaviorV1.additionalProperties); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(userType, lookbackWindow, targetType, targetIds, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacySegmentUserBehaviorV1 {\n"); - sb.append(" userType: ").append(toIndentedString(userType)).append("\n"); - sb.append(" lookbackWindow: ").append(toIndentedString(lookbackWindow)).append("\n"); - sb.append(" targetType: ").append(toIndentedString(targetType)).append("\n"); - sb.append(" targetIds: ").append(toIndentedString(targetIds)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("userType"); - openapiFields.add("lookbackWindow"); - openapiFields.add("targetType"); - openapiFields.add("targetIds"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userType"); - openapiRequiredFields.add("lookbackWindow"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacySegmentUserBehaviorV1 - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacySegmentUserBehaviorV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacySegmentUserBehaviorV1 is not found in the empty JSON string", RmLegacySegmentUserBehaviorV1.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacySegmentUserBehaviorV1.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("userType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userType").toString())); - } - if (!jsonObj.get("lookbackWindow").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `lookbackWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lookbackWindow").toString())); - } - if ((jsonObj.get("targetType") != null && !jsonObj.get("targetType").isJsonNull()) && !jsonObj.get("targetType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `targetType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetType").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("targetIds") != null && !jsonObj.get("targetIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `targetIds` to be an array in the JSON string but got `%s`", jsonObj.get("targetIds").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacySegmentUserBehaviorV1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacySegmentUserBehaviorV1' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacySegmentUserBehaviorV1.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacySegmentUserBehaviorV1 value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacySegmentUserBehaviorV1 read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacySegmentUserBehaviorV1 instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacySegmentUserBehaviorV1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacySegmentUserBehaviorV1 - * @throws IOException if the JSON string is invalid with respect to RmLegacySegmentUserBehaviorV1 - */ - public static RmLegacySegmentUserBehaviorV1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacySegmentUserBehaviorV1.class); - } - - /** - * Convert an instance of RmLegacySegmentUserBehaviorV1 to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorV2.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorV2.java deleted file mode 100644 index 9dc4a0b8..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorV2.java +++ /dev/null @@ -1,585 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.LinkedHashSet; -import java.util.Set; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Audience definition of people based on what they visited - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacySegmentUserBehaviorV2 { - /** - * Type of shopper activity used to generate the audience. - */ - @JsonAdapter(UserActionEnum.Adapter.class) - public enum UserActionEnum { - BUY("buy"), - - VIEW("view"), - - ADDTOCART("addToCart"); - - private String value; - - UserActionEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static UserActionEnum fromValue(String value) { - for (UserActionEnum b : UserActionEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final UserActionEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public UserActionEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return UserActionEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_USER_ACTION = "userAction"; - @SerializedName(SERIALIZED_NAME_USER_ACTION) - private UserActionEnum userAction; - - /** - * Length of lookback window - */ - @JsonAdapter(LookbackWindowEnum.Adapter.class) - public enum LookbackWindowEnum { - P7D("P7D"), - - P14D("P14D"), - - P30D("P30D"), - - P45D("P45D"), - - P60D("P60D"), - - P90D("P90D"), - - P120D("P120D"), - - P150D("P150D"), - - P180D("P180D"); - - private String value; - - LookbackWindowEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static LookbackWindowEnum fromValue(String value) { - for (LookbackWindowEnum b : LookbackWindowEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final LookbackWindowEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public LookbackWindowEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return LookbackWindowEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_LOOKBACK_WINDOW = "lookbackWindow"; - @SerializedName(SERIALIZED_NAME_LOOKBACK_WINDOW) - private LookbackWindowEnum lookbackWindow; - - public static final String SERIALIZED_NAME_CATEGORY_IDS = "categoryIds"; - @SerializedName(SERIALIZED_NAME_CATEGORY_IDS) - private Set categoryIds = null; - - public static final String SERIALIZED_NAME_BRAND_IDS = "brandIds"; - @SerializedName(SERIALIZED_NAME_BRAND_IDS) - private Set brandIds = null; - - public static final String SERIALIZED_NAME_MIN_PRICE = "minPrice"; - @SerializedName(SERIALIZED_NAME_MIN_PRICE) - private Double minPrice; - - public static final String SERIALIZED_NAME_MAX_PRICE = "maxPrice"; - @SerializedName(SERIALIZED_NAME_MAX_PRICE) - private Double maxPrice; - - public RmLegacySegmentUserBehaviorV2() { - } - - public RmLegacySegmentUserBehaviorV2 userAction(UserActionEnum userAction) { - - this.userAction = userAction; - return this; - } - - /** - * Type of shopper activity used to generate the audience. - * @return userAction - **/ - @javax.annotation.Nonnull - - public UserActionEnum getUserAction() { - return userAction; - } - - - public void setUserAction(UserActionEnum userAction) { - this.userAction = userAction; - } - - - public RmLegacySegmentUserBehaviorV2 lookbackWindow(LookbackWindowEnum lookbackWindow) { - - this.lookbackWindow = lookbackWindow; - return this; - } - - /** - * Length of lookback window - * @return lookbackWindow - **/ - @javax.annotation.Nonnull - - public LookbackWindowEnum getLookbackWindow() { - return lookbackWindow; - } - - - public void setLookbackWindow(LookbackWindowEnum lookbackWindow) { - this.lookbackWindow = lookbackWindow; - } - - - public RmLegacySegmentUserBehaviorV2 categoryIds(Set categoryIds) { - - this.categoryIds = categoryIds; - return this; - } - - public RmLegacySegmentUserBehaviorV2 addCategoryIdsItem(Integer categoryIdsItem) { - if (this.categoryIds == null) { - this.categoryIds = null; - } - this.categoryIds.add(categoryIdsItem); - return this; - } - - /** - * The categories to target - * @return categoryIds - **/ - @javax.annotation.Nullable - - public Set getCategoryIds() { - return categoryIds; - } - - - public void setCategoryIds(Set categoryIds) { - this.categoryIds = categoryIds; - } - - - public RmLegacySegmentUserBehaviorV2 brandIds(Set brandIds) { - - this.brandIds = brandIds; - return this; - } - - public RmLegacySegmentUserBehaviorV2 addBrandIdsItem(Long brandIdsItem) { - if (this.brandIds == null) { - this.brandIds = null; - } - this.brandIds.add(brandIdsItem); - return this; - } - - /** - * The brands to target - * @return brandIds - **/ - @javax.annotation.Nullable - - public Set getBrandIds() { - return brandIds; - } - - - public void setBrandIds(Set brandIds) { - this.brandIds = brandIds; - } - - - public RmLegacySegmentUserBehaviorV2 minPrice(Double minPrice) { - - this.minPrice = minPrice; - return this; - } - - /** - * The min price of targeted skus. - * @return minPrice - **/ - @javax.annotation.Nullable - - public Double getMinPrice() { - return minPrice; - } - - - public void setMinPrice(Double minPrice) { - this.minPrice = minPrice; - } - - - public RmLegacySegmentUserBehaviorV2 maxPrice(Double maxPrice) { - - this.maxPrice = maxPrice; - return this; - } - - /** - * The max price of targeted skus. - * @return maxPrice - **/ - @javax.annotation.Nullable - - public Double getMaxPrice() { - return maxPrice; - } - - - public void setMaxPrice(Double maxPrice) { - this.maxPrice = maxPrice; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacySegmentUserBehaviorV2 instance itself - */ - public RmLegacySegmentUserBehaviorV2 putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacySegmentUserBehaviorV2 rmLegacySegmentUserBehaviorV2 = (RmLegacySegmentUserBehaviorV2) o; - return Objects.equals(this.userAction, rmLegacySegmentUserBehaviorV2.userAction) && - Objects.equals(this.lookbackWindow, rmLegacySegmentUserBehaviorV2.lookbackWindow) && - Objects.equals(this.categoryIds, rmLegacySegmentUserBehaviorV2.categoryIds) && - Objects.equals(this.brandIds, rmLegacySegmentUserBehaviorV2.brandIds) && - Objects.equals(this.minPrice, rmLegacySegmentUserBehaviorV2.minPrice) && - Objects.equals(this.maxPrice, rmLegacySegmentUserBehaviorV2.maxPrice)&& - Objects.equals(this.additionalProperties, rmLegacySegmentUserBehaviorV2.additionalProperties); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(userAction, lookbackWindow, categoryIds, brandIds, minPrice, maxPrice, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacySegmentUserBehaviorV2 {\n"); - sb.append(" userAction: ").append(toIndentedString(userAction)).append("\n"); - sb.append(" lookbackWindow: ").append(toIndentedString(lookbackWindow)).append("\n"); - sb.append(" categoryIds: ").append(toIndentedString(categoryIds)).append("\n"); - sb.append(" brandIds: ").append(toIndentedString(brandIds)).append("\n"); - sb.append(" minPrice: ").append(toIndentedString(minPrice)).append("\n"); - sb.append(" maxPrice: ").append(toIndentedString(maxPrice)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("userAction"); - openapiFields.add("lookbackWindow"); - openapiFields.add("categoryIds"); - openapiFields.add("brandIds"); - openapiFields.add("minPrice"); - openapiFields.add("maxPrice"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userAction"); - openapiRequiredFields.add("lookbackWindow"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacySegmentUserBehaviorV2 - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacySegmentUserBehaviorV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacySegmentUserBehaviorV2 is not found in the empty JSON string", RmLegacySegmentUserBehaviorV2.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacySegmentUserBehaviorV2.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("userAction").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userAction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userAction").toString())); - } - if (!jsonObj.get("lookbackWindow").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `lookbackWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lookbackWindow").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("categoryIds") != null && !jsonObj.get("categoryIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `categoryIds` to be an array in the JSON string but got `%s`", jsonObj.get("categoryIds").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("brandIds") != null && !jsonObj.get("brandIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `brandIds` to be an array in the JSON string but got `%s`", jsonObj.get("brandIds").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacySegmentUserBehaviorV2.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacySegmentUserBehaviorV2' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacySegmentUserBehaviorV2.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacySegmentUserBehaviorV2 value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacySegmentUserBehaviorV2 read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacySegmentUserBehaviorV2 instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacySegmentUserBehaviorV2 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacySegmentUserBehaviorV2 - * @throws IOException if the JSON string is invalid with respect to RmLegacySegmentUserBehaviorV2 - */ - public static RmLegacySegmentUserBehaviorV2 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacySegmentUserBehaviorV2.class); - } - - /** - * Convert an instance of RmLegacySegmentUserBehaviorV2 to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-10/README.md b/sdks/retailmedia_2023-10/README.md index 2a589433..49538557 100644 --- a/sdks/retailmedia_2023-10/README.md +++ b/sdks/retailmedia_2023-10/README.md @@ -4,11 +4,11 @@ API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. -More information: [https://developers.criteo.com/](https://developers.criteo.com/) +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). Criteo API -- Package version: 2023.10.0.240826 +- Package version: 2023.10.0.241029 *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.criteo criteo-api-retailmedia-sdk - 2023.10.0.240826 + 2023.10.0.241029 compile ``` @@ -48,7 +48,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.criteo:criteo-api-retailmedia-sdk:2023.10.0.240826" +compile "com.criteo:criteo-api-retailmedia-sdk:2023.10.0.241029" ``` ### Others @@ -61,7 +61,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* `build/libs/criteo-api-retailmedia-sdk-2023.10.0.240826.jar` +* `build/libs/criteo-api-retailmedia-sdk-2023.10.0.241029.jar` ## Example diff --git a/sdks/retailmedia_2023-10/api/openapi.yaml b/sdks/retailmedia_2023-10/api/openapi.yaml index 4bf6baa0..cb5b7d73 100644 --- a/sdks/retailmedia_2023-10/api/openapi.yaml +++ b/sdks/retailmedia_2023-10/api/openapi.yaml @@ -1163,7 +1163,9 @@ paths: x-accepts: application/json /2023-10/retail-media/reports/campaigns: post: - description: Return an asynchronous Campaigns Report + description: |- + Return an asynchronous Campaigns Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncCampaignsReport requestBody: content: @@ -1224,7 +1226,9 @@ paths: x-accepts: application/json /2023-10/retail-media/reports/line-items: post: - description: Returns an asynchronous Line Items Report + description: |- + Returns an asynchronous Line Items Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncLineItemsReport requestBody: content: @@ -1285,7 +1289,9 @@ paths: x-accepts: application/json /2023-10/retail-media/reports/revenue: post: - description: Returns an asynchronous Revenue Report + description: |- + Returns an asynchronous Revenue Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncRevenueReport requestBody: content: @@ -3433,6 +3439,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3446,6 +3453,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3857,6 +3865,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3933,6 +3942,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3980,6 +3990,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - countries - currency @@ -4140,8 +4154,7 @@ components: - fileExtension type: object RmLegacyAudienceGetEntityV1ListResponse: - description: A top-level object that encapsulates a Criteo API response for - several entities and metadata + description: The outcome of an API call. example: data: - attributes: @@ -4529,7 +4542,8 @@ components: type: array type: object RmLegacyAudienceCreateInputEntityV1: - description: Input to create audience. + description: A top-level object that encapsulates a Criteo API request for a + single entity. example: data: attributes: @@ -4550,7 +4564,8 @@ components: $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV1Resource' type: object RmLegacyAudienceCreateInputEntityV2: - description: Input to create audience. + description: A top-level object that encapsulates a Criteo API request for a + single entity. example: data: attributes: @@ -4604,9 +4619,11 @@ components: attributes: $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1' id: + description: Unique identifier of this resource. nullable: true type: string audienceType: + description: Type of the audience. enum: - customerList - userBehavior @@ -8094,8 +8111,9 @@ components: maxBytes: 2 properties: title: + nullable: true type: string - x-nullable: false + x-nullable: true templateVariables: items: $ref: '#/components/schemas/TemplateVariable' @@ -8103,7 +8121,6 @@ components: x-nullable: false required: - templateVariables - - title type: object x-nullable: false TemplateVariable: @@ -9478,6 +9495,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -9506,6 +9524,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -9600,6 +9619,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -10946,6 +10966,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -11080,9 +11101,10 @@ components: attributes: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -11308,6 +11330,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -11728,6 +11751,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -11845,9 +11869,10 @@ components: attributes: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -12094,6 +12119,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -12239,6 +12265,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - accountId - budgetRemaining @@ -12932,6 +12962,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -13032,6 +13063,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - endDate - isAutoDailyPacing @@ -13314,9 +13349,10 @@ components: example: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -13398,6 +13434,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - clickAttributionWindow - endDate diff --git a/sdks/retailmedia_2023-10/build.gradle b/sdks/retailmedia_2023-10/build.gradle index 2cbf5bcd..b1fff29a 100644 --- a/sdks/retailmedia_2023-10/build.gradle +++ b/sdks/retailmedia_2023-10/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2023.10.0.240826' +version = '2023.10.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-retailmedia-sdk' - version '2023.10.0.240826' + version '2023.10.0.241029' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/retailmedia_2023-10/docs/AccountsApi.md b/sdks/retailmedia_2023-10/docs/AccountsApi.md index 44fb6ee6..ae4dcf58 100644 --- a/sdks/retailmedia_2023-10/docs/AccountsApi.md +++ b/sdks/retailmedia_2023-10/docs/AccountsApi.md @@ -1,6 +1,6 @@ # AccountsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2023-10/docs/AnalyticsApi.md b/sdks/retailmedia_2023-10/docs/AnalyticsApi.md index b66ddad4..9a4589f1 100644 --- a/sdks/retailmedia_2023-10/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2023-10/docs/AnalyticsApi.md @@ -1,6 +1,6 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -18,7 +18,7 @@ All URIs are relative to *https://api.criteo.com* -Return an asynchronous Campaigns Report +Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. ### Example @@ -109,7 +109,7 @@ public class Example { -Returns an asynchronous Line Items Report +Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. ### Example @@ -200,7 +200,7 @@ public class Example { -Returns an asynchronous Revenue Report +Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. ### Example diff --git a/sdks/retailmedia_2023-10/docs/AudienceApi.md b/sdks/retailmedia_2023-10/docs/AudienceApi.md index 4028d011..1bd3fc8f 100644 --- a/sdks/retailmedia_2023-10/docs/AudienceApi.md +++ b/sdks/retailmedia_2023-10/docs/AudienceApi.md @@ -1,6 +1,6 @@ # AudienceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2023-10/docs/BalanceApi.md b/sdks/retailmedia_2023-10/docs/BalanceApi.md index a98fc93e..b9b3e90a 100644 --- a/sdks/retailmedia_2023-10/docs/BalanceApi.md +++ b/sdks/retailmedia_2023-10/docs/BalanceApi.md @@ -1,6 +1,6 @@ # BalanceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2023-10/docs/CampaignApi.md b/sdks/retailmedia_2023-10/docs/CampaignApi.md index 09994ca5..59496958 100644 --- a/sdks/retailmedia_2023-10/docs/CampaignApi.md +++ b/sdks/retailmedia_2023-10/docs/CampaignApi.md @@ -1,6 +1,6 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2023-10/docs/CampaignAttributesV202301.md b/sdks/retailmedia_2023-10/docs/CampaignAttributesV202301.md index 5ab75c0d..0dce9412 100644 --- a/sdks/retailmedia_2023-10/docs/CampaignAttributesV202301.md +++ b/sdks/retailmedia_2023-10/docs/CampaignAttributesV202301.md @@ -22,6 +22,7 @@ An object that represents the available options to set when creating a Retail Me |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2023-10/docs/CampaignV202301.md b/sdks/retailmedia_2023-10/docs/CampaignV202301.md index 91d388e6..c1b97116 100644 --- a/sdks/retailmedia_2023-10/docs/CampaignV202301.md +++ b/sdks/retailmedia_2023-10/docs/CampaignV202301.md @@ -29,6 +29,7 @@ A Retail Media Campaign used to represent an advertiser's marketing objective |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2023-10/docs/EditableCampaignAttributesV202301.md b/sdks/retailmedia_2023-10/docs/EditableCampaignAttributesV202301.md index 79597de5..7be2a3d8 100644 --- a/sdks/retailmedia_2023-10/docs/EditableCampaignAttributesV202301.md +++ b/sdks/retailmedia_2023-10/docs/EditableCampaignAttributesV202301.md @@ -20,6 +20,7 @@ An object that represents the available options to set when editing a Retail Med |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2023-10/docs/ExternalAccount.md b/sdks/retailmedia_2023-10/docs/ExternalAccount.md index 6f37640d..10ac5d36 100644 --- a/sdks/retailmedia_2023-10/docs/ExternalAccount.md +++ b/sdks/retailmedia_2023-10/docs/ExternalAccount.md @@ -16,6 +16,7 @@ A Retail Media Account used to launch campaigns and line items |**parentAccountLabel** | **String** | | | |**timeZone** | **String** | | | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2023-10/docs/GatewayApi.md b/sdks/retailmedia_2023-10/docs/GatewayApi.md index e559f277..c8d6c241 100644 --- a/sdks/retailmedia_2023-10/docs/GatewayApi.md +++ b/sdks/retailmedia_2023-10/docs/GatewayApi.md @@ -1,6 +1,6 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2023-10/docs/RmLegacyAudienceCreateInputEntityV1.md b/sdks/retailmedia_2023-10/docs/RmLegacyAudienceCreateInputEntityV1.md index a62d2584..a4be1b31 100644 --- a/sdks/retailmedia_2023-10/docs/RmLegacyAudienceCreateInputEntityV1.md +++ b/sdks/retailmedia_2023-10/docs/RmLegacyAudienceCreateInputEntityV1.md @@ -2,7 +2,7 @@ # RmLegacyAudienceCreateInputEntityV1 -Input to create audience. +A top-level object that encapsulates a Criteo API request for a single entity. ## Properties diff --git a/sdks/retailmedia_2023-10/docs/RmLegacyAudienceCreateInputEntityV2.md b/sdks/retailmedia_2023-10/docs/RmLegacyAudienceCreateInputEntityV2.md index 4b631afd..f2bfba9e 100644 --- a/sdks/retailmedia_2023-10/docs/RmLegacyAudienceCreateInputEntityV2.md +++ b/sdks/retailmedia_2023-10/docs/RmLegacyAudienceCreateInputEntityV2.md @@ -2,7 +2,7 @@ # RmLegacyAudienceCreateInputEntityV2 -Input to create audience. +A top-level object that encapsulates a Criteo API request for a single entity. ## Properties diff --git a/sdks/retailmedia_2023-10/docs/RmLegacyAudienceGetEntityV1ListResponse.md b/sdks/retailmedia_2023-10/docs/RmLegacyAudienceGetEntityV1ListResponse.md index 07cd5264..421fea4c 100644 --- a/sdks/retailmedia_2023-10/docs/RmLegacyAudienceGetEntityV1ListResponse.md +++ b/sdks/retailmedia_2023-10/docs/RmLegacyAudienceGetEntityV1ListResponse.md @@ -2,7 +2,7 @@ # RmLegacyAudienceGetEntityV1ListResponse -A top-level object that encapsulates a Criteo API response for several entities and metadata +The outcome of an API call. ## Properties diff --git a/sdks/retailmedia_2023-10/docs/RmLegacyAudienceGetEntityV1Resource.md b/sdks/retailmedia_2023-10/docs/RmLegacyAudienceGetEntityV1Resource.md index 6701f5c3..426e9017 100644 --- a/sdks/retailmedia_2023-10/docs/RmLegacyAudienceGetEntityV1Resource.md +++ b/sdks/retailmedia_2023-10/docs/RmLegacyAudienceGetEntityV1Resource.md @@ -9,8 +9,8 @@ A class that represents a domain entity exposed by an API | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**attributes** | [**RmLegacyAudienceGetEntityV1**](RmLegacyAudienceGetEntityV1.md) | | [optional] | -|**id** | **String** | | [optional] | -|**audienceType** | [**AudienceTypeEnum**](#AudienceTypeEnum) | | [optional] | +|**id** | **String** | Unique identifier of this resource. | [optional] | +|**audienceType** | [**AudienceTypeEnum**](#AudienceTypeEnum) | Type of the audience. | [optional] | |**type** | **String** | | [optional] | diff --git a/sdks/retailmedia_2023-10/docs/Section.md b/sdks/retailmedia_2023-10/docs/Section.md index 582cd3b5..4966c3b1 100644 --- a/sdks/retailmedia_2023-10/docs/Section.md +++ b/sdks/retailmedia_2023-10/docs/Section.md @@ -8,7 +8,7 @@ Section object that hold template variables | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**title** | **String** | | | +|**title** | **String** | | [optional] | |**templateVariables** | [**List<TemplateVariable>**](TemplateVariable.md) | | | diff --git a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/ApiClient.java b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/ApiClient.java index 0dd8cbb5..978cde6e 100644 --- a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/ApiClient.java +++ b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2023.10.0.240826/java"); + setUserAgent("OpenAPI-Generator/2023.10.0.241029/java"); authentications = new HashMap(); } diff --git a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/api/AnalyticsApi.java b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/api/AnalyticsApi.java index 25016f85..2f27e169 100644 --- a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/api/AnalyticsApi.java +++ b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/api/AnalyticsApi.java @@ -154,7 +154,7 @@ private okhttp3.Call generateAsyncCampaignsReportValidateBeforeCall(AsyncCampaig /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -173,7 +173,7 @@ public AsyncReportResponse generateAsyncCampaignsReport(AsyncCampaignsReportRequ /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -193,7 +193,7 @@ public ApiResponse generateAsyncCampaignsReportWithHttpInfo /** * (asynchronously) - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -290,7 +290,7 @@ private okhttp3.Call generateAsyncLineItemsReportValidateBeforeCall(AsyncLineIte /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -309,7 +309,7 @@ public AsyncReportResponse generateAsyncLineItemsReport(AsyncLineItemsReportRequ /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -329,7 +329,7 @@ public ApiResponse generateAsyncLineItemsReportWithHttpInfo /** * (asynchronously) - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -426,7 +426,7 @@ private okhttp3.Call generateAsyncRevenueReportValidateBeforeCall(AsyncRevenueRe /** * - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -445,7 +445,7 @@ public AsyncReportResponse generateAsyncRevenueReport(AsyncRevenueReportRequest /** * - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -465,7 +465,7 @@ public ApiResponse generateAsyncRevenueReportWithHttpInfo(A /** * (asynchronously) - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/CampaignAttributesV202301.java b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/CampaignAttributesV202301.java index 32c42501..0f72ebb2 100644 --- a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/CampaignAttributesV202301.java +++ b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/CampaignAttributesV202301.java @@ -366,6 +366,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public CampaignAttributesV202301() { } @@ -684,6 +688,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public CampaignAttributesV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -752,7 +778,8 @@ public boolean equals(Object o) { Objects.equals(this.endDate, campaignAttributesV202301.endDate) && Objects.equals(this.clickAttributionScope, campaignAttributesV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, campaignAttributesV202301.viewAttributionScope) && - Objects.equals(this.companyName, campaignAttributesV202301.companyName)&& + Objects.equals(this.companyName, campaignAttributesV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, campaignAttributesV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, campaignAttributesV202301.additionalProperties); } @@ -762,7 +789,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -790,6 +817,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -827,6 +855,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -880,6 +909,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/CampaignV202301.java b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/CampaignV202301.java index be47104c..99ee3bea 100644 --- a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/CampaignV202301.java +++ b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/CampaignV202301.java @@ -447,6 +447,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public CampaignV202301() { } @@ -924,6 +928,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public CampaignV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -999,7 +1025,8 @@ public boolean equals(Object o) { Objects.equals(this.endDate, campaignV202301.endDate) && Objects.equals(this.clickAttributionScope, campaignV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, campaignV202301.viewAttributionScope) && - Objects.equals(this.companyName, campaignV202301.companyName)&& + Objects.equals(this.companyName, campaignV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, campaignV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, campaignV202301.additionalProperties); } @@ -1009,7 +1036,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(accountId, promotedBrandIds, budgetSpent, budgetRemaining, status, createdAt, updatedAt, type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(accountId, promotedBrandIds, budgetSpent, budgetRemaining, status, createdAt, updatedAt, type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -1044,6 +1071,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -1088,6 +1116,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -1159,6 +1188,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/EditableCampaignAttributesV202301.java b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/EditableCampaignAttributesV202301.java index a39cd868..129196b4 100644 --- a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/EditableCampaignAttributesV202301.java +++ b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/EditableCampaignAttributesV202301.java @@ -307,6 +307,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public EditableCampaignAttributesV202301() { } @@ -573,6 +577,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public EditableCampaignAttributesV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -639,7 +665,8 @@ public boolean equals(Object o) { Objects.equals(this.viewAttributionWindow, editableCampaignAttributesV202301.viewAttributionWindow) && Objects.equals(this.clickAttributionScope, editableCampaignAttributesV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, editableCampaignAttributesV202301.viewAttributionScope) && - Objects.equals(this.companyName, editableCampaignAttributesV202301.companyName)&& + Objects.equals(this.companyName, editableCampaignAttributesV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, editableCampaignAttributesV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, editableCampaignAttributesV202301.additionalProperties); } @@ -649,7 +676,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionWindow, viewAttributionWindow, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionWindow, viewAttributionWindow, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -675,6 +702,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -710,6 +738,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -758,6 +787,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/ExternalAccount.java b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/ExternalAccount.java index e2d2cf1a..da122fae 100644 --- a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/ExternalAccount.java +++ b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/ExternalAccount.java @@ -181,6 +181,10 @@ public SubtypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public ExternalAccount() { } @@ -364,6 +368,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public ExternalAccount onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -426,7 +452,8 @@ public boolean equals(Object o) { Objects.equals(this.currency, externalAccount.currency) && Objects.equals(this.parentAccountLabel, externalAccount.parentAccountLabel) && Objects.equals(this.timeZone, externalAccount.timeZone) && - Objects.equals(this.companyName, externalAccount.companyName)&& + Objects.equals(this.companyName, externalAccount.companyName) && + Objects.equals(this.onBehalfCompanyName, externalAccount.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, externalAccount.additionalProperties); } @@ -436,7 +463,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, additionalProperties); + return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -458,6 +485,7 @@ public String toString() { sb.append(" parentAccountLabel: ").append(toIndentedString(parentAccountLabel)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -489,6 +517,7 @@ private String toIndentedString(Object o) { openapiFields.add("parentAccountLabel"); openapiFields.add("timeZone"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -546,6 +575,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceCreateInputEntityV1.java b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceCreateInputEntityV1.java index 16f94a96..8dcc7e63 100644 --- a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceCreateInputEntityV1.java +++ b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceCreateInputEntityV1.java @@ -45,7 +45,7 @@ import com.criteo.api.retailmedia.v2023_10.JSON; /** - * Input to create audience. + * A top-level object that encapsulates a Criteo API request for a single entity. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceCreateInputEntityV1 { diff --git a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceCreateInputEntityV2.java b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceCreateInputEntityV2.java index 616ff1dd..462ed7c2 100644 --- a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceCreateInputEntityV2.java +++ b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceCreateInputEntityV2.java @@ -45,7 +45,7 @@ import com.criteo.api.retailmedia.v2023_10.JSON; /** - * Input to create audience. + * A top-level object that encapsulates a Criteo API request for a single entity. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceCreateInputEntityV2 { diff --git a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceGetEntityV1ListResponse.java b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceGetEntityV1ListResponse.java index 7bbab7ff..adf40ad7 100644 --- a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceGetEntityV1ListResponse.java +++ b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceGetEntityV1ListResponse.java @@ -49,7 +49,7 @@ import com.criteo.api.retailmedia.v2023_10.JSON; /** - * A top-level object that encapsulates a Criteo API response for several entities and metadata + * The outcome of an API call. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceGetEntityV1ListResponse { diff --git a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceGetEntityV1Resource.java b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceGetEntityV1Resource.java index 2f6380fa..7f9d3406 100644 --- a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceGetEntityV1Resource.java +++ b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/RmLegacyAudienceGetEntityV1Resource.java @@ -59,7 +59,7 @@ public class RmLegacyAudienceGetEntityV1Resource { private String id; /** - * Gets or Sets audienceType + * Type of the audience. */ @JsonAdapter(AudienceTypeEnum.Adapter.class) public enum AudienceTypeEnum { @@ -145,7 +145,7 @@ public RmLegacyAudienceGetEntityV1Resource id(String id) { } /** - * Get id + * Unique identifier of this resource. * @return id **/ @javax.annotation.Nullable @@ -167,7 +167,7 @@ public RmLegacyAudienceGetEntityV1Resource audienceType(AudienceTypeEnum audienc } /** - * Get audienceType + * Type of the audience. * @return audienceType **/ @javax.annotation.Nullable diff --git a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/Section.java b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/Section.java index dc3b61a6..7555cee7 100644 --- a/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/Section.java +++ b/sdks/retailmedia_2023-10/src/main/java/com/criteo/api/retailmedia/v2023_10/model/Section.java @@ -24,6 +24,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -72,7 +73,7 @@ public Section title(String title) { * Get title * @return title **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public String getTitle() { return title; @@ -170,11 +171,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, section.additionalProperties); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { return Objects.hash(title, templateVariables, additionalProperties); } + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -209,7 +221,6 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("title"); openapiRequiredFields.add("templateVariables"); } @@ -232,7 +243,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (!jsonObj.get("title").isJsonPrimitive()) { + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); } // ensure the json data is an array diff --git a/sdks/retailmedia_2024-01/README.md b/sdks/retailmedia_2024-01/README.md index 91dd2817..6ab1a7c6 100644 --- a/sdks/retailmedia_2024-01/README.md +++ b/sdks/retailmedia_2024-01/README.md @@ -4,11 +4,11 @@ API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. -More information: [https://developers.criteo.com/](https://developers.criteo.com/) +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). Criteo API -- Package version: 2024.01.0.240826 +- Package version: 2024.01.0.241029 *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.criteo criteo-api-retailmedia-sdk - 2024.01.0.240826 + 2024.01.0.241029 compile ``` @@ -48,7 +48,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.criteo:criteo-api-retailmedia-sdk:2024.01.0.240826" +compile "com.criteo:criteo-api-retailmedia-sdk:2024.01.0.241029" ``` ### Others @@ -61,7 +61,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* `build/libs/criteo-api-retailmedia-sdk-2024.01.0.240826.jar` +* `build/libs/criteo-api-retailmedia-sdk-2024.01.0.241029.jar` ## Example diff --git a/sdks/retailmedia_2024-01/api/openapi.yaml b/sdks/retailmedia_2024-01/api/openapi.yaml index 7a18711c..49e74192 100644 --- a/sdks/retailmedia_2024-01/api/openapi.yaml +++ b/sdks/retailmedia_2024-01/api/openapi.yaml @@ -1163,7 +1163,9 @@ paths: x-accepts: application/json /2024-01/retail-media/reports/campaigns: post: - description: Return an asynchronous Campaigns Report + description: |- + Return an asynchronous Campaigns Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncCampaignsReport requestBody: content: @@ -1224,7 +1226,9 @@ paths: x-accepts: application/json /2024-01/retail-media/reports/line-items: post: - description: Returns an asynchronous Line Items Report + description: |- + Returns an asynchronous Line Items Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncLineItemsReport requestBody: content: @@ -1285,7 +1289,9 @@ paths: x-accepts: application/json /2024-01/retail-media/reports/revenue: post: - description: Returns an asynchronous Revenue Report + description: |- + Returns an asynchronous Revenue Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncRevenueReport requestBody: content: @@ -3563,6 +3569,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3576,6 +3583,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3987,6 +3995,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -4063,6 +4072,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -4110,6 +4120,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - countries - currency @@ -4270,8 +4284,7 @@ components: - fileExtension type: object RmLegacyAudienceGetEntityV1ListResponse: - description: A top-level object that encapsulates a Criteo API response for - several entities and metadata + description: The outcome of an API call. example: data: - attributes: @@ -4659,7 +4672,8 @@ components: type: array type: object RmLegacyAudienceCreateInputEntityV1: - description: Input to create audience. + description: A top-level object that encapsulates a Criteo API request for a + single entity. example: data: attributes: @@ -4680,7 +4694,8 @@ components: $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV1Resource' type: object RmLegacyAudienceCreateInputEntityV2: - description: Input to create audience. + description: A top-level object that encapsulates a Criteo API request for a + single entity. example: data: attributes: @@ -4734,9 +4749,11 @@ components: attributes: $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1' id: + description: Unique identifier of this resource. nullable: true type: string audienceType: + description: Type of the audience. enum: - customerList - userBehavior @@ -8224,8 +8241,9 @@ components: maxBytes: 2 properties: title: + nullable: true type: string - x-nullable: false + x-nullable: true templateVariables: items: $ref: '#/components/schemas/TemplateVariable' @@ -8233,7 +8251,6 @@ components: x-nullable: false required: - templateVariables - - title type: object x-nullable: false TemplateVariable: @@ -10121,6 +10138,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -10149,6 +10167,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -10243,6 +10262,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -11589,6 +11609,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -11723,9 +11744,10 @@ components: attributes: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -11951,6 +11973,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -12371,6 +12394,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -12488,9 +12512,10 @@ components: attributes: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -12737,6 +12762,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -12882,6 +12908,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - accountId - budgetRemaining @@ -13575,6 +13605,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -13675,6 +13706,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - endDate - isAutoDailyPacing @@ -13957,9 +13992,10 @@ components: example: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -14041,6 +14077,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - clickAttributionWindow - endDate diff --git a/sdks/retailmedia_2024-01/build.gradle b/sdks/retailmedia_2024-01/build.gradle index deedfdc9..cdebce2e 100644 --- a/sdks/retailmedia_2024-01/build.gradle +++ b/sdks/retailmedia_2024-01/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2024.01.0.240826' +version = '2024.01.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-retailmedia-sdk' - version '2024.01.0.240826' + version '2024.01.0.241029' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/retailmedia_2024-01/docs/AccountsApi.md b/sdks/retailmedia_2024-01/docs/AccountsApi.md index 4fc45517..6edd3dc8 100644 --- a/sdks/retailmedia_2024-01/docs/AccountsApi.md +++ b/sdks/retailmedia_2024-01/docs/AccountsApi.md @@ -1,6 +1,6 @@ # AccountsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-01/docs/AnalyticsApi.md b/sdks/retailmedia_2024-01/docs/AnalyticsApi.md index 0813295e..90aaf626 100644 --- a/sdks/retailmedia_2024-01/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2024-01/docs/AnalyticsApi.md @@ -1,6 +1,6 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -18,7 +18,7 @@ All URIs are relative to *https://api.criteo.com* -Return an asynchronous Campaigns Report +Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. ### Example @@ -109,7 +109,7 @@ public class Example { -Returns an asynchronous Line Items Report +Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. ### Example @@ -200,7 +200,7 @@ public class Example { -Returns an asynchronous Revenue Report +Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. ### Example diff --git a/sdks/retailmedia_2024-01/docs/AudienceApi.md b/sdks/retailmedia_2024-01/docs/AudienceApi.md index 59b817d3..c8923f84 100644 --- a/sdks/retailmedia_2024-01/docs/AudienceApi.md +++ b/sdks/retailmedia_2024-01/docs/AudienceApi.md @@ -1,6 +1,6 @@ # AudienceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-01/docs/BalanceApi.md b/sdks/retailmedia_2024-01/docs/BalanceApi.md index 4694ae2c..7c5cfc22 100644 --- a/sdks/retailmedia_2024-01/docs/BalanceApi.md +++ b/sdks/retailmedia_2024-01/docs/BalanceApi.md @@ -1,6 +1,6 @@ # BalanceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-01/docs/CampaignApi.md b/sdks/retailmedia_2024-01/docs/CampaignApi.md index 5351c3d3..cfa5d3bc 100644 --- a/sdks/retailmedia_2024-01/docs/CampaignApi.md +++ b/sdks/retailmedia_2024-01/docs/CampaignApi.md @@ -1,6 +1,6 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-01/docs/CampaignAttributesV202301.md b/sdks/retailmedia_2024-01/docs/CampaignAttributesV202301.md index 5ab75c0d..0dce9412 100644 --- a/sdks/retailmedia_2024-01/docs/CampaignAttributesV202301.md +++ b/sdks/retailmedia_2024-01/docs/CampaignAttributesV202301.md @@ -22,6 +22,7 @@ An object that represents the available options to set when creating a Retail Me |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-01/docs/CampaignV202301.md b/sdks/retailmedia_2024-01/docs/CampaignV202301.md index 91d388e6..c1b97116 100644 --- a/sdks/retailmedia_2024-01/docs/CampaignV202301.md +++ b/sdks/retailmedia_2024-01/docs/CampaignV202301.md @@ -29,6 +29,7 @@ A Retail Media Campaign used to represent an advertiser's marketing objective |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-01/docs/EditableCampaignAttributesV202301.md b/sdks/retailmedia_2024-01/docs/EditableCampaignAttributesV202301.md index 79597de5..7be2a3d8 100644 --- a/sdks/retailmedia_2024-01/docs/EditableCampaignAttributesV202301.md +++ b/sdks/retailmedia_2024-01/docs/EditableCampaignAttributesV202301.md @@ -20,6 +20,7 @@ An object that represents the available options to set when editing a Retail Med |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-01/docs/ExternalAccount.md b/sdks/retailmedia_2024-01/docs/ExternalAccount.md index 6f37640d..10ac5d36 100644 --- a/sdks/retailmedia_2024-01/docs/ExternalAccount.md +++ b/sdks/retailmedia_2024-01/docs/ExternalAccount.md @@ -16,6 +16,7 @@ A Retail Media Account used to launch campaigns and line items |**parentAccountLabel** | **String** | | | |**timeZone** | **String** | | | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-01/docs/GatewayApi.md b/sdks/retailmedia_2024-01/docs/GatewayApi.md index 26517590..7abb23d7 100644 --- a/sdks/retailmedia_2024-01/docs/GatewayApi.md +++ b/sdks/retailmedia_2024-01/docs/GatewayApi.md @@ -1,6 +1,6 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-01/docs/RmLegacyAudienceCreateInputEntityV1.md b/sdks/retailmedia_2024-01/docs/RmLegacyAudienceCreateInputEntityV1.md index a62d2584..a4be1b31 100644 --- a/sdks/retailmedia_2024-01/docs/RmLegacyAudienceCreateInputEntityV1.md +++ b/sdks/retailmedia_2024-01/docs/RmLegacyAudienceCreateInputEntityV1.md @@ -2,7 +2,7 @@ # RmLegacyAudienceCreateInputEntityV1 -Input to create audience. +A top-level object that encapsulates a Criteo API request for a single entity. ## Properties diff --git a/sdks/retailmedia_2024-01/docs/RmLegacyAudienceCreateInputEntityV2.md b/sdks/retailmedia_2024-01/docs/RmLegacyAudienceCreateInputEntityV2.md index 4b631afd..f2bfba9e 100644 --- a/sdks/retailmedia_2024-01/docs/RmLegacyAudienceCreateInputEntityV2.md +++ b/sdks/retailmedia_2024-01/docs/RmLegacyAudienceCreateInputEntityV2.md @@ -2,7 +2,7 @@ # RmLegacyAudienceCreateInputEntityV2 -Input to create audience. +A top-level object that encapsulates a Criteo API request for a single entity. ## Properties diff --git a/sdks/retailmedia_2024-01/docs/RmLegacyAudienceGetEntityV1ListResponse.md b/sdks/retailmedia_2024-01/docs/RmLegacyAudienceGetEntityV1ListResponse.md index 07cd5264..421fea4c 100644 --- a/sdks/retailmedia_2024-01/docs/RmLegacyAudienceGetEntityV1ListResponse.md +++ b/sdks/retailmedia_2024-01/docs/RmLegacyAudienceGetEntityV1ListResponse.md @@ -2,7 +2,7 @@ # RmLegacyAudienceGetEntityV1ListResponse -A top-level object that encapsulates a Criteo API response for several entities and metadata +The outcome of an API call. ## Properties diff --git a/sdks/retailmedia_2024-01/docs/RmLegacyAudienceGetEntityV1Resource.md b/sdks/retailmedia_2024-01/docs/RmLegacyAudienceGetEntityV1Resource.md index 6701f5c3..426e9017 100644 --- a/sdks/retailmedia_2024-01/docs/RmLegacyAudienceGetEntityV1Resource.md +++ b/sdks/retailmedia_2024-01/docs/RmLegacyAudienceGetEntityV1Resource.md @@ -9,8 +9,8 @@ A class that represents a domain entity exposed by an API | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**attributes** | [**RmLegacyAudienceGetEntityV1**](RmLegacyAudienceGetEntityV1.md) | | [optional] | -|**id** | **String** | | [optional] | -|**audienceType** | [**AudienceTypeEnum**](#AudienceTypeEnum) | | [optional] | +|**id** | **String** | Unique identifier of this resource. | [optional] | +|**audienceType** | [**AudienceTypeEnum**](#AudienceTypeEnum) | Type of the audience. | [optional] | |**type** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-01/docs/Section.md b/sdks/retailmedia_2024-01/docs/Section.md index 582cd3b5..4966c3b1 100644 --- a/sdks/retailmedia_2024-01/docs/Section.md +++ b/sdks/retailmedia_2024-01/docs/Section.md @@ -8,7 +8,7 @@ Section object that hold template variables | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**title** | **String** | | | +|**title** | **String** | | [optional] | |**templateVariables** | [**List<TemplateVariable>**](TemplateVariable.md) | | | diff --git a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/ApiClient.java b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/ApiClient.java index 4e25b27b..32ee3fab 100644 --- a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/ApiClient.java +++ b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2024.01.0.240826/java"); + setUserAgent("OpenAPI-Generator/2024.01.0.241029/java"); authentications = new HashMap(); } diff --git a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/api/AnalyticsApi.java b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/api/AnalyticsApi.java index 8e73d3d1..99ad8f7e 100644 --- a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/api/AnalyticsApi.java +++ b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/api/AnalyticsApi.java @@ -154,7 +154,7 @@ private okhttp3.Call generateAsyncCampaignsReportValidateBeforeCall(AsyncCampaig /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -173,7 +173,7 @@ public AsyncReportResponse generateAsyncCampaignsReport(AsyncCampaignsReportRequ /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -193,7 +193,7 @@ public ApiResponse generateAsyncCampaignsReportWithHttpInfo /** * (asynchronously) - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -290,7 +290,7 @@ private okhttp3.Call generateAsyncLineItemsReportValidateBeforeCall(AsyncLineIte /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -309,7 +309,7 @@ public AsyncReportResponse generateAsyncLineItemsReport(AsyncLineItemsReportRequ /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -329,7 +329,7 @@ public ApiResponse generateAsyncLineItemsReportWithHttpInfo /** * (asynchronously) - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -426,7 +426,7 @@ private okhttp3.Call generateAsyncRevenueReportValidateBeforeCall(AsyncRevenueRe /** * - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -445,7 +445,7 @@ public AsyncReportResponse generateAsyncRevenueReport(AsyncRevenueReportRequest /** * - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -465,7 +465,7 @@ public ApiResponse generateAsyncRevenueReportWithHttpInfo(A /** * (asynchronously) - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/CampaignAttributesV202301.java b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/CampaignAttributesV202301.java index 0bdf7e0f..6a1d4f56 100644 --- a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/CampaignAttributesV202301.java +++ b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/CampaignAttributesV202301.java @@ -366,6 +366,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public CampaignAttributesV202301() { } @@ -684,6 +688,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public CampaignAttributesV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -752,7 +778,8 @@ public boolean equals(Object o) { Objects.equals(this.endDate, campaignAttributesV202301.endDate) && Objects.equals(this.clickAttributionScope, campaignAttributesV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, campaignAttributesV202301.viewAttributionScope) && - Objects.equals(this.companyName, campaignAttributesV202301.companyName)&& + Objects.equals(this.companyName, campaignAttributesV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, campaignAttributesV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, campaignAttributesV202301.additionalProperties); } @@ -762,7 +789,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -790,6 +817,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -827,6 +855,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -880,6 +909,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/CampaignV202301.java b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/CampaignV202301.java index 556be7e6..7a5e5fed 100644 --- a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/CampaignV202301.java +++ b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/CampaignV202301.java @@ -447,6 +447,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public CampaignV202301() { } @@ -924,6 +928,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public CampaignV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -999,7 +1025,8 @@ public boolean equals(Object o) { Objects.equals(this.endDate, campaignV202301.endDate) && Objects.equals(this.clickAttributionScope, campaignV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, campaignV202301.viewAttributionScope) && - Objects.equals(this.companyName, campaignV202301.companyName)&& + Objects.equals(this.companyName, campaignV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, campaignV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, campaignV202301.additionalProperties); } @@ -1009,7 +1036,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(accountId, promotedBrandIds, budgetSpent, budgetRemaining, status, createdAt, updatedAt, type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(accountId, promotedBrandIds, budgetSpent, budgetRemaining, status, createdAt, updatedAt, type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -1044,6 +1071,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -1088,6 +1116,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -1159,6 +1188,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/EditableCampaignAttributesV202301.java b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/EditableCampaignAttributesV202301.java index 8ede33df..aa21a0b9 100644 --- a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/EditableCampaignAttributesV202301.java +++ b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/EditableCampaignAttributesV202301.java @@ -307,6 +307,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public EditableCampaignAttributesV202301() { } @@ -573,6 +577,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public EditableCampaignAttributesV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -639,7 +665,8 @@ public boolean equals(Object o) { Objects.equals(this.viewAttributionWindow, editableCampaignAttributesV202301.viewAttributionWindow) && Objects.equals(this.clickAttributionScope, editableCampaignAttributesV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, editableCampaignAttributesV202301.viewAttributionScope) && - Objects.equals(this.companyName, editableCampaignAttributesV202301.companyName)&& + Objects.equals(this.companyName, editableCampaignAttributesV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, editableCampaignAttributesV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, editableCampaignAttributesV202301.additionalProperties); } @@ -649,7 +676,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionWindow, viewAttributionWindow, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionWindow, viewAttributionWindow, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -675,6 +702,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -710,6 +738,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -758,6 +787,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/ExternalAccount.java b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/ExternalAccount.java index 4eb347e7..cea44a83 100644 --- a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/ExternalAccount.java +++ b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/ExternalAccount.java @@ -181,6 +181,10 @@ public SubtypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public ExternalAccount() { } @@ -364,6 +368,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public ExternalAccount onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -426,7 +452,8 @@ public boolean equals(Object o) { Objects.equals(this.currency, externalAccount.currency) && Objects.equals(this.parentAccountLabel, externalAccount.parentAccountLabel) && Objects.equals(this.timeZone, externalAccount.timeZone) && - Objects.equals(this.companyName, externalAccount.companyName)&& + Objects.equals(this.companyName, externalAccount.companyName) && + Objects.equals(this.onBehalfCompanyName, externalAccount.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, externalAccount.additionalProperties); } @@ -436,7 +463,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, additionalProperties); + return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -458,6 +485,7 @@ public String toString() { sb.append(" parentAccountLabel: ").append(toIndentedString(parentAccountLabel)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -489,6 +517,7 @@ private String toIndentedString(Object o) { openapiFields.add("parentAccountLabel"); openapiFields.add("timeZone"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -546,6 +575,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceCreateInputEntityV1.java b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceCreateInputEntityV1.java index daeac3df..e36237a4 100644 --- a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceCreateInputEntityV1.java +++ b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceCreateInputEntityV1.java @@ -45,7 +45,7 @@ import com.criteo.api.retailmedia.v2024_01.JSON; /** - * Input to create audience. + * A top-level object that encapsulates a Criteo API request for a single entity. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceCreateInputEntityV1 { diff --git a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceCreateInputEntityV2.java b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceCreateInputEntityV2.java index dbef0fc0..aac500ff 100644 --- a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceCreateInputEntityV2.java +++ b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceCreateInputEntityV2.java @@ -45,7 +45,7 @@ import com.criteo.api.retailmedia.v2024_01.JSON; /** - * Input to create audience. + * A top-level object that encapsulates a Criteo API request for a single entity. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceCreateInputEntityV2 { diff --git a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceGetEntityV1ListResponse.java b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceGetEntityV1ListResponse.java index 0fe46aae..4704350e 100644 --- a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceGetEntityV1ListResponse.java +++ b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceGetEntityV1ListResponse.java @@ -49,7 +49,7 @@ import com.criteo.api.retailmedia.v2024_01.JSON; /** - * A top-level object that encapsulates a Criteo API response for several entities and metadata + * The outcome of an API call. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceGetEntityV1ListResponse { diff --git a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceGetEntityV1Resource.java b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceGetEntityV1Resource.java index a8ea6fbd..2973da4f 100644 --- a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceGetEntityV1Resource.java +++ b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/RmLegacyAudienceGetEntityV1Resource.java @@ -59,7 +59,7 @@ public class RmLegacyAudienceGetEntityV1Resource { private String id; /** - * Gets or Sets audienceType + * Type of the audience. */ @JsonAdapter(AudienceTypeEnum.Adapter.class) public enum AudienceTypeEnum { @@ -145,7 +145,7 @@ public RmLegacyAudienceGetEntityV1Resource id(String id) { } /** - * Get id + * Unique identifier of this resource. * @return id **/ @javax.annotation.Nullable @@ -167,7 +167,7 @@ public RmLegacyAudienceGetEntityV1Resource audienceType(AudienceTypeEnum audienc } /** - * Get audienceType + * Type of the audience. * @return audienceType **/ @javax.annotation.Nullable diff --git a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/Section.java b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/Section.java index 06baa90e..8d5b7439 100644 --- a/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/Section.java +++ b/sdks/retailmedia_2024-01/src/main/java/com/criteo/api/retailmedia/v2024_01/model/Section.java @@ -24,6 +24,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -72,7 +73,7 @@ public Section title(String title) { * Get title * @return title **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public String getTitle() { return title; @@ -170,11 +171,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, section.additionalProperties); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { return Objects.hash(title, templateVariables, additionalProperties); } + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -209,7 +221,6 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("title"); openapiRequiredFields.add("templateVariables"); } @@ -232,7 +243,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (!jsonObj.get("title").isJsonPrimitive()) { + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); } // ensure the json data is an array diff --git a/sdks/retailmedia_2024-04/README.md b/sdks/retailmedia_2024-04/README.md index 07ea7551..84e69f45 100644 --- a/sdks/retailmedia_2024-04/README.md +++ b/sdks/retailmedia_2024-04/README.md @@ -4,11 +4,11 @@ API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. -More information: [https://developers.criteo.com/](https://developers.criteo.com/) +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). Criteo API -- Package version: 2024.04.0.240826 +- Package version: 2024.04.0.241029 *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.criteo criteo-api-retailmedia-sdk - 2024.04.0.240826 + 2024.04.0.241029 compile ``` @@ -48,7 +48,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.criteo:criteo-api-retailmedia-sdk:2024.04.0.240826" +compile "com.criteo:criteo-api-retailmedia-sdk:2024.04.0.241029" ``` ### Others @@ -61,7 +61,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* `build/libs/criteo-api-retailmedia-sdk-2024.04.0.240826.jar` +* `build/libs/criteo-api-retailmedia-sdk-2024.04.0.241029.jar` ## Example diff --git a/sdks/retailmedia_2024-04/api/openapi.yaml b/sdks/retailmedia_2024-04/api/openapi.yaml index af72e239..09ff1a70 100644 --- a/sdks/retailmedia_2024-04/api/openapi.yaml +++ b/sdks/retailmedia_2024-04/api/openapi.yaml @@ -1163,7 +1163,9 @@ paths: x-accepts: application/json /2024-04/retail-media/reports/campaigns: post: - description: Return an asynchronous Campaigns Report + description: |- + Return an asynchronous Campaigns Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncCampaignsReport requestBody: content: @@ -1224,7 +1226,9 @@ paths: x-accepts: application/json /2024-04/retail-media/reports/line-items: post: - description: Returns an asynchronous Line Items Report + description: |- + Returns an asynchronous Line Items Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncLineItemsReport requestBody: content: @@ -1285,7 +1289,9 @@ paths: x-accepts: application/json /2024-04/retail-media/reports/revenue: post: - description: Returns an asynchronous Revenue Report + description: |- + Returns an asynchronous Revenue Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncRevenueReport requestBody: content: @@ -3739,6 +3745,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3752,6 +3759,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -4163,6 +4171,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -4239,6 +4248,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -4286,6 +4296,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - countries - currency @@ -4446,8 +4460,7 @@ components: - fileExtension type: object RmLegacyAudienceGetEntityV1ListResponse: - description: A top-level object that encapsulates a Criteo API response for - several entities and metadata + description: The outcome of an API call. example: data: - attributes: @@ -4835,7 +4848,8 @@ components: type: array type: object RmLegacyAudienceCreateInputEntityV1: - description: Input to create audience. + description: A top-level object that encapsulates a Criteo API request for a + single entity. example: data: attributes: @@ -4856,7 +4870,8 @@ components: $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV1Resource' type: object RmLegacyAudienceCreateInputEntityV2: - description: Input to create audience. + description: A top-level object that encapsulates a Criteo API request for a + single entity. example: data: attributes: @@ -4910,9 +4925,11 @@ components: attributes: $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1' id: + description: Unique identifier of this resource. nullable: true type: string audienceType: + description: Type of the audience. enum: - customerList - userBehavior @@ -8400,8 +8417,9 @@ components: maxBytes: 2 properties: title: + nullable: true type: string - x-nullable: false + x-nullable: true templateVariables: items: $ref: '#/components/schemas/TemplateVariable' @@ -8409,7 +8427,6 @@ components: x-nullable: false required: - templateVariables - - title type: object x-nullable: false TemplateVariable: @@ -9599,6 +9616,7 @@ components: companyName: companyName parentAccountLabel: parentAccountLabel name: name + onBehalfCompanyName: onBehalfCompanyName countryIds: - countryIds - countryIds @@ -9897,6 +9915,7 @@ components: - 0 companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName type: type properties: data: @@ -9985,6 +10004,7 @@ components: companyName: companyName parentAccountLabel: parentAccountLabel name: name + onBehalfCompanyName: onBehalfCompanyName countryIds: - countryIds - countryIds @@ -10152,6 +10172,7 @@ components: - 0 companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName type: type properties: type: @@ -10167,6 +10188,7 @@ components: companyName: companyName parentAccountLabel: parentAccountLabel name: name + onBehalfCompanyName: onBehalfCompanyName countryIds: - countryIds - countryIds @@ -10180,8 +10202,11 @@ components: nullable: true type: string companyName: - description: Display name for reporting the owning entity of ads for the - Digital Services Act in the European Union + description: Paying entity name of ads for the Digital Services Act + nullable: true + type: string + onBehalfCompanyName: + description: On behalf entity name of ads for the Digital Services Act nullable: true type: string type: @@ -10331,14 +10356,18 @@ components: - 0 companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName properties: name: description: "the name of the account, must be unique across all accounts" nullable: true type: string companyName: - description: Display name for reporting the owning entity of ads for the - Digital Services Act in the European Union + description: Paying entity name of ads for the Digital Services Act + nullable: true + type: string + onBehalfCompanyName: + description: On behalf entity name of ads for the Digital Services Act nullable: true type: string brands: @@ -10705,6 +10734,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -10733,6 +10763,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -10827,6 +10858,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -12173,6 +12205,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -12307,9 +12340,10 @@ components: attributes: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -12535,6 +12569,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -12955,6 +12990,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -13072,9 +13108,10 @@ components: attributes: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -13321,6 +13358,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -13466,6 +13504,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - accountId - budgetRemaining @@ -14159,6 +14201,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -14259,6 +14302,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - endDate - isAutoDailyPacing @@ -14541,9 +14588,10 @@ components: example: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -14625,6 +14673,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - clickAttributionWindow - endDate diff --git a/sdks/retailmedia_2024-04/build.gradle b/sdks/retailmedia_2024-04/build.gradle index b06417cc..7104069a 100644 --- a/sdks/retailmedia_2024-04/build.gradle +++ b/sdks/retailmedia_2024-04/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2024.04.0.240826' +version = '2024.04.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-retailmedia-sdk' - version '2024.04.0.240826' + version '2024.04.0.241029' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/retailmedia_2024-04/docs/AccountsApi.md b/sdks/retailmedia_2024-04/docs/AccountsApi.md index 500256cc..83adf7b5 100644 --- a/sdks/retailmedia_2024-04/docs/AccountsApi.md +++ b/sdks/retailmedia_2024-04/docs/AccountsApi.md @@ -1,6 +1,6 @@ # AccountsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-04/docs/AnalyticsApi.md b/sdks/retailmedia_2024-04/docs/AnalyticsApi.md index 06aa1c45..f7436361 100644 --- a/sdks/retailmedia_2024-04/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2024-04/docs/AnalyticsApi.md @@ -1,6 +1,6 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -18,7 +18,7 @@ All URIs are relative to *https://api.criteo.com* -Return an asynchronous Campaigns Report +Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. ### Example @@ -109,7 +109,7 @@ public class Example { -Returns an asynchronous Line Items Report +Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. ### Example @@ -200,7 +200,7 @@ public class Example { -Returns an asynchronous Revenue Report +Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. ### Example diff --git a/sdks/retailmedia_2024-04/docs/AudienceApi.md b/sdks/retailmedia_2024-04/docs/AudienceApi.md index be2baee4..ca824234 100644 --- a/sdks/retailmedia_2024-04/docs/AudienceApi.md +++ b/sdks/retailmedia_2024-04/docs/AudienceApi.md @@ -1,6 +1,6 @@ # AudienceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-04/docs/BalanceApi.md b/sdks/retailmedia_2024-04/docs/BalanceApi.md index 35bd2e9a..6274e673 100644 --- a/sdks/retailmedia_2024-04/docs/BalanceApi.md +++ b/sdks/retailmedia_2024-04/docs/BalanceApi.md @@ -1,6 +1,6 @@ # BalanceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-04/docs/CampaignApi.md b/sdks/retailmedia_2024-04/docs/CampaignApi.md index 647c199d..7225617d 100644 --- a/sdks/retailmedia_2024-04/docs/CampaignApi.md +++ b/sdks/retailmedia_2024-04/docs/CampaignApi.md @@ -1,6 +1,6 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-04/docs/CampaignAttributesV202301.md b/sdks/retailmedia_2024-04/docs/CampaignAttributesV202301.md index 5ab75c0d..0dce9412 100644 --- a/sdks/retailmedia_2024-04/docs/CampaignAttributesV202301.md +++ b/sdks/retailmedia_2024-04/docs/CampaignAttributesV202301.md @@ -22,6 +22,7 @@ An object that represents the available options to set when creating a Retail Me |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-04/docs/CampaignV202301.md b/sdks/retailmedia_2024-04/docs/CampaignV202301.md index 91d388e6..c1b97116 100644 --- a/sdks/retailmedia_2024-04/docs/CampaignV202301.md +++ b/sdks/retailmedia_2024-04/docs/CampaignV202301.md @@ -29,6 +29,7 @@ A Retail Media Campaign used to represent an advertiser's marketing objective |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-04/docs/EditableCampaignAttributesV202301.md b/sdks/retailmedia_2024-04/docs/EditableCampaignAttributesV202301.md index 79597de5..7be2a3d8 100644 --- a/sdks/retailmedia_2024-04/docs/EditableCampaignAttributesV202301.md +++ b/sdks/retailmedia_2024-04/docs/EditableCampaignAttributesV202301.md @@ -20,6 +20,7 @@ An object that represents the available options to set when editing a Retail Med |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-04/docs/ExternalAccount.md b/sdks/retailmedia_2024-04/docs/ExternalAccount.md index 6f37640d..10ac5d36 100644 --- a/sdks/retailmedia_2024-04/docs/ExternalAccount.md +++ b/sdks/retailmedia_2024-04/docs/ExternalAccount.md @@ -16,6 +16,7 @@ A Retail Media Account used to launch campaigns and line items |**parentAccountLabel** | **String** | | | |**timeZone** | **String** | | | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-04/docs/GatewayApi.md b/sdks/retailmedia_2024-04/docs/GatewayApi.md index bc2aad2c..f105d3e8 100644 --- a/sdks/retailmedia_2024-04/docs/GatewayApi.md +++ b/sdks/retailmedia_2024-04/docs/GatewayApi.md @@ -1,6 +1,6 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-04/docs/RetailMediaAccount.md b/sdks/retailmedia_2024-04/docs/RetailMediaAccount.md index b1900bd1..d4066b2b 100644 --- a/sdks/retailmedia_2024-04/docs/RetailMediaAccount.md +++ b/sdks/retailmedia_2024-04/docs/RetailMediaAccount.md @@ -9,7 +9,8 @@ The details for a newly created account | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | account name | [optional] | -|**companyName** | **String** | Display name for reporting the owning entity of ads for the Digital Services Act in the European Union | [optional] | +|**companyName** | **String** | Paying entity name of ads for the Digital Services Act | [optional] | +|**onBehalfCompanyName** | **String** | On behalf entity name of ads for the Digital Services Act | [optional] | |**type** | [**TypeEnum**](#TypeEnum) | Type for the account | [optional] | |**subType** | [**SubTypeEnum**](#SubTypeEnum) | subtype for the account | [optional] | |**countryIds** | **List<String>** | list of countries associated with the account | [optional] | diff --git a/sdks/retailmedia_2024-04/docs/RetailMediaBrandAccountCreation.md b/sdks/retailmedia_2024-04/docs/RetailMediaBrandAccountCreation.md index 43cea1ee..fff1b561 100644 --- a/sdks/retailmedia_2024-04/docs/RetailMediaBrandAccountCreation.md +++ b/sdks/retailmedia_2024-04/docs/RetailMediaBrandAccountCreation.md @@ -9,7 +9,8 @@ the initial set up and configuration options for a new private market demand bra | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | the name of the account, must be unique across all accounts | [optional] | -|**companyName** | **String** | Display name for reporting the owning entity of ads for the Digital Services Act in the European Union | [optional] | +|**companyName** | **String** | Paying entity name of ads for the Digital Services Act | [optional] | +|**onBehalfCompanyName** | **String** | On behalf entity name of ads for the Digital Services Act | [optional] | |**brands** | **List<Long>** | list of brands to link to the new account | [optional] | diff --git a/sdks/retailmedia_2024-04/docs/RmLegacyAudienceCreateInputEntityV1.md b/sdks/retailmedia_2024-04/docs/RmLegacyAudienceCreateInputEntityV1.md index a62d2584..a4be1b31 100644 --- a/sdks/retailmedia_2024-04/docs/RmLegacyAudienceCreateInputEntityV1.md +++ b/sdks/retailmedia_2024-04/docs/RmLegacyAudienceCreateInputEntityV1.md @@ -2,7 +2,7 @@ # RmLegacyAudienceCreateInputEntityV1 -Input to create audience. +A top-level object that encapsulates a Criteo API request for a single entity. ## Properties diff --git a/sdks/retailmedia_2024-04/docs/RmLegacyAudienceCreateInputEntityV2.md b/sdks/retailmedia_2024-04/docs/RmLegacyAudienceCreateInputEntityV2.md index 4b631afd..f2bfba9e 100644 --- a/sdks/retailmedia_2024-04/docs/RmLegacyAudienceCreateInputEntityV2.md +++ b/sdks/retailmedia_2024-04/docs/RmLegacyAudienceCreateInputEntityV2.md @@ -2,7 +2,7 @@ # RmLegacyAudienceCreateInputEntityV2 -Input to create audience. +A top-level object that encapsulates a Criteo API request for a single entity. ## Properties diff --git a/sdks/retailmedia_2024-04/docs/RmLegacyAudienceGetEntityV1ListResponse.md b/sdks/retailmedia_2024-04/docs/RmLegacyAudienceGetEntityV1ListResponse.md index 07cd5264..421fea4c 100644 --- a/sdks/retailmedia_2024-04/docs/RmLegacyAudienceGetEntityV1ListResponse.md +++ b/sdks/retailmedia_2024-04/docs/RmLegacyAudienceGetEntityV1ListResponse.md @@ -2,7 +2,7 @@ # RmLegacyAudienceGetEntityV1ListResponse -A top-level object that encapsulates a Criteo API response for several entities and metadata +The outcome of an API call. ## Properties diff --git a/sdks/retailmedia_2024-04/docs/RmLegacyAudienceGetEntityV1Resource.md b/sdks/retailmedia_2024-04/docs/RmLegacyAudienceGetEntityV1Resource.md index 6701f5c3..426e9017 100644 --- a/sdks/retailmedia_2024-04/docs/RmLegacyAudienceGetEntityV1Resource.md +++ b/sdks/retailmedia_2024-04/docs/RmLegacyAudienceGetEntityV1Resource.md @@ -9,8 +9,8 @@ A class that represents a domain entity exposed by an API | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**attributes** | [**RmLegacyAudienceGetEntityV1**](RmLegacyAudienceGetEntityV1.md) | | [optional] | -|**id** | **String** | | [optional] | -|**audienceType** | [**AudienceTypeEnum**](#AudienceTypeEnum) | | [optional] | +|**id** | **String** | Unique identifier of this resource. | [optional] | +|**audienceType** | [**AudienceTypeEnum**](#AudienceTypeEnum) | Type of the audience. | [optional] | |**type** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-04/docs/Section.md b/sdks/retailmedia_2024-04/docs/Section.md index 582cd3b5..4966c3b1 100644 --- a/sdks/retailmedia_2024-04/docs/Section.md +++ b/sdks/retailmedia_2024-04/docs/Section.md @@ -8,7 +8,7 @@ Section object that hold template variables | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**title** | **String** | | | +|**title** | **String** | | [optional] | |**templateVariables** | [**List<TemplateVariable>**](TemplateVariable.md) | | | diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/ApiClient.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/ApiClient.java index ea4ad0b3..fc6d61cb 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/ApiClient.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2024.04.0.240826/java"); + setUserAgent("OpenAPI-Generator/2024.04.0.241029/java"); authentications = new HashMap(); } diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/api/AnalyticsApi.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/api/AnalyticsApi.java index 1f26bf47..694430a4 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/api/AnalyticsApi.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/api/AnalyticsApi.java @@ -154,7 +154,7 @@ private okhttp3.Call generateAsyncCampaignsReportValidateBeforeCall(AsyncCampaig /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -173,7 +173,7 @@ public AsyncReportResponse generateAsyncCampaignsReport(AsyncCampaignsReportRequ /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -193,7 +193,7 @@ public ApiResponse generateAsyncCampaignsReportWithHttpInfo /** * (asynchronously) - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -290,7 +290,7 @@ private okhttp3.Call generateAsyncLineItemsReportValidateBeforeCall(AsyncLineIte /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -309,7 +309,7 @@ public AsyncReportResponse generateAsyncLineItemsReport(AsyncLineItemsReportRequ /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -329,7 +329,7 @@ public ApiResponse generateAsyncLineItemsReportWithHttpInfo /** * (asynchronously) - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -426,7 +426,7 @@ private okhttp3.Call generateAsyncRevenueReportValidateBeforeCall(AsyncRevenueRe /** * - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -445,7 +445,7 @@ public AsyncReportResponse generateAsyncRevenueReport(AsyncRevenueReportRequest /** * - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -465,7 +465,7 @@ public ApiResponse generateAsyncRevenueReportWithHttpInfo(A /** * (asynchronously) - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/CampaignAttributesV202301.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/CampaignAttributesV202301.java index 0688a1e3..d7b9c57f 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/CampaignAttributesV202301.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/CampaignAttributesV202301.java @@ -366,6 +366,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public CampaignAttributesV202301() { } @@ -684,6 +688,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public CampaignAttributesV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -752,7 +778,8 @@ public boolean equals(Object o) { Objects.equals(this.endDate, campaignAttributesV202301.endDate) && Objects.equals(this.clickAttributionScope, campaignAttributesV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, campaignAttributesV202301.viewAttributionScope) && - Objects.equals(this.companyName, campaignAttributesV202301.companyName)&& + Objects.equals(this.companyName, campaignAttributesV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, campaignAttributesV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, campaignAttributesV202301.additionalProperties); } @@ -762,7 +789,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -790,6 +817,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -827,6 +855,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -880,6 +909,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/CampaignV202301.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/CampaignV202301.java index db888a53..4596513b 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/CampaignV202301.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/CampaignV202301.java @@ -447,6 +447,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public CampaignV202301() { } @@ -924,6 +928,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public CampaignV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -999,7 +1025,8 @@ public boolean equals(Object o) { Objects.equals(this.endDate, campaignV202301.endDate) && Objects.equals(this.clickAttributionScope, campaignV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, campaignV202301.viewAttributionScope) && - Objects.equals(this.companyName, campaignV202301.companyName)&& + Objects.equals(this.companyName, campaignV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, campaignV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, campaignV202301.additionalProperties); } @@ -1009,7 +1036,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(accountId, promotedBrandIds, budgetSpent, budgetRemaining, status, createdAt, updatedAt, type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(accountId, promotedBrandIds, budgetSpent, budgetRemaining, status, createdAt, updatedAt, type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -1044,6 +1071,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -1088,6 +1116,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -1159,6 +1188,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/EditableCampaignAttributesV202301.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/EditableCampaignAttributesV202301.java index 603c8f61..a33228d5 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/EditableCampaignAttributesV202301.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/EditableCampaignAttributesV202301.java @@ -307,6 +307,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public EditableCampaignAttributesV202301() { } @@ -573,6 +577,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public EditableCampaignAttributesV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -639,7 +665,8 @@ public boolean equals(Object o) { Objects.equals(this.viewAttributionWindow, editableCampaignAttributesV202301.viewAttributionWindow) && Objects.equals(this.clickAttributionScope, editableCampaignAttributesV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, editableCampaignAttributesV202301.viewAttributionScope) && - Objects.equals(this.companyName, editableCampaignAttributesV202301.companyName)&& + Objects.equals(this.companyName, editableCampaignAttributesV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, editableCampaignAttributesV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, editableCampaignAttributesV202301.additionalProperties); } @@ -649,7 +676,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionWindow, viewAttributionWindow, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionWindow, viewAttributionWindow, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -675,6 +702,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -710,6 +738,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -758,6 +787,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/ExternalAccount.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/ExternalAccount.java index 4114a49b..6e4e9d50 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/ExternalAccount.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/ExternalAccount.java @@ -181,6 +181,10 @@ public SubtypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public ExternalAccount() { } @@ -364,6 +368,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public ExternalAccount onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -426,7 +452,8 @@ public boolean equals(Object o) { Objects.equals(this.currency, externalAccount.currency) && Objects.equals(this.parentAccountLabel, externalAccount.parentAccountLabel) && Objects.equals(this.timeZone, externalAccount.timeZone) && - Objects.equals(this.companyName, externalAccount.companyName)&& + Objects.equals(this.companyName, externalAccount.companyName) && + Objects.equals(this.onBehalfCompanyName, externalAccount.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, externalAccount.additionalProperties); } @@ -436,7 +463,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, additionalProperties); + return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -458,6 +485,7 @@ public String toString() { sb.append(" parentAccountLabel: ").append(toIndentedString(parentAccountLabel)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -489,6 +517,7 @@ private String toIndentedString(Object o) { openapiFields.add("parentAccountLabel"); openapiFields.add("timeZone"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -546,6 +575,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RetailMediaAccount.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RetailMediaAccount.java index dafd2b22..366b32ce 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RetailMediaAccount.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RetailMediaAccount.java @@ -59,6 +59,10 @@ public class RetailMediaAccount { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + /** * Type for the account */ @@ -213,7 +217,7 @@ public RetailMediaAccount companyName(String companyName) { } /** - * Display name for reporting the owning entity of ads for the Digital Services Act in the European Union + * Paying entity name of ads for the Digital Services Act * @return companyName **/ @javax.annotation.Nullable @@ -228,6 +232,28 @@ public void setCompanyName(String companyName) { } + public RetailMediaAccount onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * On behalf entity name of ads for the Digital Services Act + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + + public RetailMediaAccount type(TypeEnum type) { this.type = type; @@ -380,6 +406,7 @@ public boolean equals(Object o) { RetailMediaAccount retailMediaAccount = (RetailMediaAccount) o; return Objects.equals(this.name, retailMediaAccount.name) && Objects.equals(this.companyName, retailMediaAccount.companyName) && + Objects.equals(this.onBehalfCompanyName, retailMediaAccount.onBehalfCompanyName) && Objects.equals(this.type, retailMediaAccount.type) && Objects.equals(this.subType, retailMediaAccount.subType) && Objects.equals(this.countryIds, retailMediaAccount.countryIds) && @@ -394,7 +421,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, companyName, type, subType, countryIds, currencyId, parentAccountLabel, timeZone); + return Objects.hash(name, companyName, onBehalfCompanyName, type, subType, countryIds, currencyId, parentAccountLabel, timeZone); } private static int hashCodeNullable(JsonNullable a) { @@ -410,6 +437,7 @@ public String toString() { sb.append("class RetailMediaAccount {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); sb.append(" countryIds: ").append(toIndentedString(countryIds)).append("\n"); @@ -440,6 +468,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("name"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); openapiFields.add("type"); openapiFields.add("subType"); openapiFields.add("countryIds"); @@ -477,6 +506,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RetailMediaBrandAccountCreation.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RetailMediaBrandAccountCreation.java index 740e26e5..5ce02fc5 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RetailMediaBrandAccountCreation.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RetailMediaBrandAccountCreation.java @@ -59,6 +59,10 @@ public class RetailMediaBrandAccountCreation { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public static final String SERIALIZED_NAME_BRANDS = "brands"; @SerializedName(SERIALIZED_NAME_BRANDS) private List brands = null; @@ -95,7 +99,7 @@ public RetailMediaBrandAccountCreation companyName(String companyName) { } /** - * Display name for reporting the owning entity of ads for the Digital Services Act in the European Union + * Paying entity name of ads for the Digital Services Act * @return companyName **/ @javax.annotation.Nullable @@ -110,6 +114,28 @@ public void setCompanyName(String companyName) { } + public RetailMediaBrandAccountCreation onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * On behalf entity name of ads for the Digital Services Act + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + + public RetailMediaBrandAccountCreation brands(List brands) { this.brands = brands; @@ -152,6 +178,7 @@ public boolean equals(Object o) { RetailMediaBrandAccountCreation retailMediaBrandAccountCreation = (RetailMediaBrandAccountCreation) o; return Objects.equals(this.name, retailMediaBrandAccountCreation.name) && Objects.equals(this.companyName, retailMediaBrandAccountCreation.companyName) && + Objects.equals(this.onBehalfCompanyName, retailMediaBrandAccountCreation.onBehalfCompanyName) && Objects.equals(this.brands, retailMediaBrandAccountCreation.brands); } @@ -161,7 +188,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, companyName, brands); + return Objects.hash(name, companyName, onBehalfCompanyName, brands); } private static int hashCodeNullable(JsonNullable a) { @@ -177,6 +204,7 @@ public String toString() { sb.append("class RetailMediaBrandAccountCreation {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" brands: ").append(toIndentedString(brands)).append("\n"); sb.append("}"); return sb.toString(); @@ -202,6 +230,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("name"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); openapiFields.add("brands"); // a set of required properties/fields (JSON key names) @@ -234,6 +263,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } // ensure the optional json data is an array if present if (jsonObj.get("brands") != null && !jsonObj.get("brands").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `brands` to be an array in the JSON string but got `%s`", jsonObj.get("brands").toString())); diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceCreateInputEntityV1.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceCreateInputEntityV1.java index 63c1b187..97215a80 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceCreateInputEntityV1.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceCreateInputEntityV1.java @@ -45,7 +45,7 @@ import com.criteo.api.retailmedia.v2024_04.JSON; /** - * Input to create audience. + * A top-level object that encapsulates a Criteo API request for a single entity. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceCreateInputEntityV1 { diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceCreateInputEntityV2.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceCreateInputEntityV2.java index 650538af..cb5eb90e 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceCreateInputEntityV2.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceCreateInputEntityV2.java @@ -45,7 +45,7 @@ import com.criteo.api.retailmedia.v2024_04.JSON; /** - * Input to create audience. + * A top-level object that encapsulates a Criteo API request for a single entity. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceCreateInputEntityV2 { diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceGetEntityV1ListResponse.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceGetEntityV1ListResponse.java index 6418e37a..e37d8c76 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceGetEntityV1ListResponse.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceGetEntityV1ListResponse.java @@ -49,7 +49,7 @@ import com.criteo.api.retailmedia.v2024_04.JSON; /** - * A top-level object that encapsulates a Criteo API response for several entities and metadata + * The outcome of an API call. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceGetEntityV1ListResponse { diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceGetEntityV1Resource.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceGetEntityV1Resource.java index 5a916c5d..953a7e17 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceGetEntityV1Resource.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/RmLegacyAudienceGetEntityV1Resource.java @@ -59,7 +59,7 @@ public class RmLegacyAudienceGetEntityV1Resource { private String id; /** - * Gets or Sets audienceType + * Type of the audience. */ @JsonAdapter(AudienceTypeEnum.Adapter.class) public enum AudienceTypeEnum { @@ -145,7 +145,7 @@ public RmLegacyAudienceGetEntityV1Resource id(String id) { } /** - * Get id + * Unique identifier of this resource. * @return id **/ @javax.annotation.Nullable @@ -167,7 +167,7 @@ public RmLegacyAudienceGetEntityV1Resource audienceType(AudienceTypeEnum audienc } /** - * Get audienceType + * Type of the audience. * @return audienceType **/ @javax.annotation.Nullable diff --git a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/Section.java b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/Section.java index 8d52ffff..ae5ed4f8 100644 --- a/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/Section.java +++ b/sdks/retailmedia_2024-04/src/main/java/com/criteo/api/retailmedia/v2024_04/model/Section.java @@ -24,6 +24,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -72,7 +73,7 @@ public Section title(String title) { * Get title * @return title **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public String getTitle() { return title; @@ -170,11 +171,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, section.additionalProperties); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { return Objects.hash(title, templateVariables, additionalProperties); } + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -209,7 +221,6 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("title"); openapiRequiredFields.add("templateVariables"); } @@ -232,7 +243,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (!jsonObj.get("title").isJsonPrimitive()) { + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); } // ensure the json data is an array diff --git a/sdks/retailmedia_2024-07/README.md b/sdks/retailmedia_2024-07/README.md index 9ac7c28f..38f22e26 100644 --- a/sdks/retailmedia_2024-07/README.md +++ b/sdks/retailmedia_2024-07/README.md @@ -4,11 +4,11 @@ API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. -More information: [https://developers.criteo.com/](https://developers.criteo.com/) +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). Criteo API -- Package version: 2024.07.0.240826 +- Package version: 2024.07.0.241029 *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.criteo criteo-api-retailmedia-sdk - 2024.07.0.240826 + 2024.07.0.241029 compile ``` @@ -48,7 +48,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.criteo:criteo-api-retailmedia-sdk:2024.07.0.240826" +compile "com.criteo:criteo-api-retailmedia-sdk:2024.07.0.241029" ``` ### Others @@ -61,7 +61,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* `build/libs/criteo-api-retailmedia-sdk-2024.07.0.240826.jar` +* `build/libs/criteo-api-retailmedia-sdk-2024.07.0.241029.jar` ## Example diff --git a/sdks/retailmedia_2024-07/api/openapi.yaml b/sdks/retailmedia_2024-07/api/openapi.yaml index 1ff43e89..a544ec5c 100644 --- a/sdks/retailmedia_2024-07/api/openapi.yaml +++ b/sdks/retailmedia_2024-07/api/openapi.yaml @@ -1374,7 +1374,9 @@ paths: x-accepts: application/json /2024-07/retail-media/reports/campaigns: post: - description: Return an asynchronous Campaigns Report + description: |- + Return an asynchronous Campaigns Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncCampaignsReport requestBody: content: @@ -1435,7 +1437,9 @@ paths: x-accepts: application/json /2024-07/retail-media/reports/line-items: post: - description: Returns an asynchronous Line Items Report + description: |- + Returns an asynchronous Line Items Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncLineItemsReport requestBody: content: @@ -1496,7 +1500,9 @@ paths: x-accepts: application/json /2024-07/retail-media/reports/revenue: post: - description: Returns an asynchronous Revenue Report + description: |- + Returns an asynchronous Revenue Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncRevenueReport requestBody: content: @@ -3892,6 +3898,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3905,6 +3912,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -4316,6 +4324,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -4392,6 +4401,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -4439,6 +4449,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - countries - currency @@ -4599,8 +4613,7 @@ components: - fileExtension type: object RmLegacyAudienceGetEntityV1ListResponse: - description: A top-level object that encapsulates a Criteo API response for - several entities and metadata + description: The outcome of an API call. example: data: - attributes: @@ -4988,7 +5001,8 @@ components: type: array type: object RmLegacyAudienceCreateInputEntityV1: - description: Input to create audience. + description: A top-level object that encapsulates a Criteo API request for a + single entity. example: data: attributes: @@ -5009,7 +5023,8 @@ components: $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV1Resource' type: object RmLegacyAudienceCreateInputEntityV2: - description: Input to create audience. + description: A top-level object that encapsulates a Criteo API request for a + single entity. example: data: attributes: @@ -5063,9 +5078,11 @@ components: attributes: $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1' id: + description: Unique identifier of this resource. nullable: true type: string audienceType: + description: Type of the audience. enum: - customerList - userBehavior @@ -8756,8 +8773,9 @@ components: maxBytes: 2 properties: title: + nullable: true type: string - x-nullable: false + x-nullable: true templateVariables: items: $ref: '#/components/schemas/TemplateVariable' @@ -8765,7 +8783,6 @@ components: x-nullable: false required: - templateVariables - - title type: object x-nullable: false TemplateVariable: @@ -9955,6 +9972,7 @@ components: companyName: companyName parentAccountLabel: parentAccountLabel name: name + onBehalfCompanyName: onBehalfCompanyName countryIds: - countryIds - countryIds @@ -10328,6 +10346,7 @@ components: - 0 companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName type: type properties: data: @@ -10342,6 +10361,7 @@ components: attributes: companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName sellers: - sellerId: sellerId retailerId: 0 @@ -10456,6 +10476,7 @@ components: companyName: companyName parentAccountLabel: parentAccountLabel name: name + onBehalfCompanyName: onBehalfCompanyName countryIds: - countryIds - countryIds @@ -10638,6 +10659,7 @@ components: - 0 companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName type: type properties: type: @@ -10654,6 +10676,7 @@ components: attributes: companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName sellers: - sellerId: sellerId retailerId: 0 @@ -10674,6 +10697,7 @@ components: companyName: companyName parentAccountLabel: parentAccountLabel name: name + onBehalfCompanyName: onBehalfCompanyName countryIds: - countryIds - countryIds @@ -10687,8 +10711,11 @@ components: nullable: true type: string companyName: - description: Display name for reporting the owning entity of ads for the - Digital Services Act in the European Union + description: Paying entity name of ads for the Digital Services Act + nullable: true + type: string + onBehalfCompanyName: + description: On behalf entity name of ads for the Digital Services Act nullable: true type: string type: @@ -10855,14 +10882,18 @@ components: - 0 companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName properties: name: description: "the name of the account, must be unique across all accounts" nullable: true type: string companyName: - description: Display name for reporting the owning entity of ads for the - Digital Services Act in the European Union + description: Paying entity name of ads for the Digital Services Act + nullable: true + type: string + onBehalfCompanyName: + description: On behalf entity name of ads for the Digital Services Act nullable: true type: string brands: @@ -10880,6 +10911,7 @@ components: example: companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName sellers: - sellerId: sellerId retailerId: 0 @@ -10891,8 +10923,11 @@ components: nullable: true type: string companyName: - description: Display name for reporting the owning entity of ads for the - Digital Services Act in the European Union + description: Paying entity name of ads for the Digital Services Act + nullable: true + type: string + onBehalfCompanyName: + description: On behalf entity name of ads for the Digital Services Act nullable: true type: string sellers: @@ -11255,6 +11290,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -11283,6 +11319,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -11377,6 +11414,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -12638,6 +12676,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -12772,9 +12811,10 @@ components: attributes: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -12978,6 +13018,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -13372,6 +13413,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -13489,9 +13531,10 @@ components: attributes: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -13730,6 +13773,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -13875,6 +13919,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - accountId - budgetRemaining @@ -14539,6 +14587,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -14639,6 +14688,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - endDate - isAutoDailyPacing @@ -14921,9 +14974,10 @@ components: example: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -15005,6 +15059,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - clickAttributionWindow - endDate diff --git a/sdks/retailmedia_2024-07/build.gradle b/sdks/retailmedia_2024-07/build.gradle index de89b255..d67a3859 100644 --- a/sdks/retailmedia_2024-07/build.gradle +++ b/sdks/retailmedia_2024-07/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2024.07.0.240826' +version = '2024.07.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-retailmedia-sdk' - version '2024.07.0.240826' + version '2024.07.0.241029' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/retailmedia_2024-07/docs/AccountsApi.md b/sdks/retailmedia_2024-07/docs/AccountsApi.md index 918f6544..73775fa9 100644 --- a/sdks/retailmedia_2024-07/docs/AccountsApi.md +++ b/sdks/retailmedia_2024-07/docs/AccountsApi.md @@ -1,6 +1,6 @@ # AccountsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-07/docs/AnalyticsApi.md b/sdks/retailmedia_2024-07/docs/AnalyticsApi.md index 5f9cb454..71fbda74 100644 --- a/sdks/retailmedia_2024-07/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2024-07/docs/AnalyticsApi.md @@ -1,6 +1,6 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -18,7 +18,7 @@ All URIs are relative to *https://api.criteo.com* -Return an asynchronous Campaigns Report +Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. ### Example @@ -109,7 +109,7 @@ public class Example { -Returns an asynchronous Line Items Report +Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. ### Example @@ -200,7 +200,7 @@ public class Example { -Returns an asynchronous Revenue Report +Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. ### Example diff --git a/sdks/retailmedia_2024-07/docs/AudienceApi.md b/sdks/retailmedia_2024-07/docs/AudienceApi.md index d4849b7f..5b325e79 100644 --- a/sdks/retailmedia_2024-07/docs/AudienceApi.md +++ b/sdks/retailmedia_2024-07/docs/AudienceApi.md @@ -1,6 +1,6 @@ # AudienceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-07/docs/BalanceApi.md b/sdks/retailmedia_2024-07/docs/BalanceApi.md index f1845be1..bd28f75d 100644 --- a/sdks/retailmedia_2024-07/docs/BalanceApi.md +++ b/sdks/retailmedia_2024-07/docs/BalanceApi.md @@ -1,6 +1,6 @@ # BalanceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-07/docs/CampaignApi.md b/sdks/retailmedia_2024-07/docs/CampaignApi.md index b6bf0ab3..58345834 100644 --- a/sdks/retailmedia_2024-07/docs/CampaignApi.md +++ b/sdks/retailmedia_2024-07/docs/CampaignApi.md @@ -1,6 +1,6 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-07/docs/CampaignAttributesV202301.md b/sdks/retailmedia_2024-07/docs/CampaignAttributesV202301.md index 5ab75c0d..0dce9412 100644 --- a/sdks/retailmedia_2024-07/docs/CampaignAttributesV202301.md +++ b/sdks/retailmedia_2024-07/docs/CampaignAttributesV202301.md @@ -22,6 +22,7 @@ An object that represents the available options to set when creating a Retail Me |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-07/docs/CampaignV202301.md b/sdks/retailmedia_2024-07/docs/CampaignV202301.md index 91d388e6..c1b97116 100644 --- a/sdks/retailmedia_2024-07/docs/CampaignV202301.md +++ b/sdks/retailmedia_2024-07/docs/CampaignV202301.md @@ -29,6 +29,7 @@ A Retail Media Campaign used to represent an advertiser's marketing objective |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-07/docs/EditableCampaignAttributesV202301.md b/sdks/retailmedia_2024-07/docs/EditableCampaignAttributesV202301.md index 79597de5..7be2a3d8 100644 --- a/sdks/retailmedia_2024-07/docs/EditableCampaignAttributesV202301.md +++ b/sdks/retailmedia_2024-07/docs/EditableCampaignAttributesV202301.md @@ -20,6 +20,7 @@ An object that represents the available options to set when editing a Retail Med |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-07/docs/ExternalAccount.md b/sdks/retailmedia_2024-07/docs/ExternalAccount.md index 6f37640d..10ac5d36 100644 --- a/sdks/retailmedia_2024-07/docs/ExternalAccount.md +++ b/sdks/retailmedia_2024-07/docs/ExternalAccount.md @@ -16,6 +16,7 @@ A Retail Media Account used to launch campaigns and line items |**parentAccountLabel** | **String** | | | |**timeZone** | **String** | | | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-07/docs/GatewayApi.md b/sdks/retailmedia_2024-07/docs/GatewayApi.md index e46d4d2d..95c1c4db 100644 --- a/sdks/retailmedia_2024-07/docs/GatewayApi.md +++ b/sdks/retailmedia_2024-07/docs/GatewayApi.md @@ -1,6 +1,6 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_2024-07/docs/RetailMediaAccount.md b/sdks/retailmedia_2024-07/docs/RetailMediaAccount.md index b1900bd1..d4066b2b 100644 --- a/sdks/retailmedia_2024-07/docs/RetailMediaAccount.md +++ b/sdks/retailmedia_2024-07/docs/RetailMediaAccount.md @@ -9,7 +9,8 @@ The details for a newly created account | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | account name | [optional] | -|**companyName** | **String** | Display name for reporting the owning entity of ads for the Digital Services Act in the European Union | [optional] | +|**companyName** | **String** | Paying entity name of ads for the Digital Services Act | [optional] | +|**onBehalfCompanyName** | **String** | On behalf entity name of ads for the Digital Services Act | [optional] | |**type** | [**TypeEnum**](#TypeEnum) | Type for the account | [optional] | |**subType** | [**SubTypeEnum**](#SubTypeEnum) | subtype for the account | [optional] | |**countryIds** | **List<String>** | list of countries associated with the account | [optional] | diff --git a/sdks/retailmedia_2024-07/docs/RetailMediaBrandAccountCreation.md b/sdks/retailmedia_2024-07/docs/RetailMediaBrandAccountCreation.md index 43cea1ee..fff1b561 100644 --- a/sdks/retailmedia_2024-07/docs/RetailMediaBrandAccountCreation.md +++ b/sdks/retailmedia_2024-07/docs/RetailMediaBrandAccountCreation.md @@ -9,7 +9,8 @@ the initial set up and configuration options for a new private market demand bra | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | the name of the account, must be unique across all accounts | [optional] | -|**companyName** | **String** | Display name for reporting the owning entity of ads for the Digital Services Act in the European Union | [optional] | +|**companyName** | **String** | Paying entity name of ads for the Digital Services Act | [optional] | +|**onBehalfCompanyName** | **String** | On behalf entity name of ads for the Digital Services Act | [optional] | |**brands** | **List<Long>** | list of brands to link to the new account | [optional] | diff --git a/sdks/retailmedia_2024-07/docs/RetailMediaSellerAccountCreation.md b/sdks/retailmedia_2024-07/docs/RetailMediaSellerAccountCreation.md index ef2374cf..86f6d3bc 100644 --- a/sdks/retailmedia_2024-07/docs/RetailMediaSellerAccountCreation.md +++ b/sdks/retailmedia_2024-07/docs/RetailMediaSellerAccountCreation.md @@ -9,7 +9,8 @@ the initial set up and configuration options for a new private market demand bra | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | the name of the account, must be unique across all accounts | [optional] | -|**companyName** | **String** | Display name for reporting the owning entity of ads for the Digital Services Act in the European Union | [optional] | +|**companyName** | **String** | Paying entity name of ads for the Digital Services Act | [optional] | +|**onBehalfCompanyName** | **String** | On behalf entity name of ads for the Digital Services Act | [optional] | |**sellers** | [**List<RetailMediaSeller>**](RetailMediaSeller.md) | list of sellers to associate to the new account | [optional] | diff --git a/sdks/retailmedia_2024-07/docs/RmLegacyAudienceCreateInputEntityV1.md b/sdks/retailmedia_2024-07/docs/RmLegacyAudienceCreateInputEntityV1.md index a62d2584..a4be1b31 100644 --- a/sdks/retailmedia_2024-07/docs/RmLegacyAudienceCreateInputEntityV1.md +++ b/sdks/retailmedia_2024-07/docs/RmLegacyAudienceCreateInputEntityV1.md @@ -2,7 +2,7 @@ # RmLegacyAudienceCreateInputEntityV1 -Input to create audience. +A top-level object that encapsulates a Criteo API request for a single entity. ## Properties diff --git a/sdks/retailmedia_2024-07/docs/RmLegacyAudienceCreateInputEntityV2.md b/sdks/retailmedia_2024-07/docs/RmLegacyAudienceCreateInputEntityV2.md index 4b631afd..f2bfba9e 100644 --- a/sdks/retailmedia_2024-07/docs/RmLegacyAudienceCreateInputEntityV2.md +++ b/sdks/retailmedia_2024-07/docs/RmLegacyAudienceCreateInputEntityV2.md @@ -2,7 +2,7 @@ # RmLegacyAudienceCreateInputEntityV2 -Input to create audience. +A top-level object that encapsulates a Criteo API request for a single entity. ## Properties diff --git a/sdks/retailmedia_2024-07/docs/RmLegacyAudienceGetEntityV1ListResponse.md b/sdks/retailmedia_2024-07/docs/RmLegacyAudienceGetEntityV1ListResponse.md index 07cd5264..421fea4c 100644 --- a/sdks/retailmedia_2024-07/docs/RmLegacyAudienceGetEntityV1ListResponse.md +++ b/sdks/retailmedia_2024-07/docs/RmLegacyAudienceGetEntityV1ListResponse.md @@ -2,7 +2,7 @@ # RmLegacyAudienceGetEntityV1ListResponse -A top-level object that encapsulates a Criteo API response for several entities and metadata +The outcome of an API call. ## Properties diff --git a/sdks/retailmedia_2024-07/docs/RmLegacyAudienceGetEntityV1Resource.md b/sdks/retailmedia_2024-07/docs/RmLegacyAudienceGetEntityV1Resource.md index 6701f5c3..426e9017 100644 --- a/sdks/retailmedia_2024-07/docs/RmLegacyAudienceGetEntityV1Resource.md +++ b/sdks/retailmedia_2024-07/docs/RmLegacyAudienceGetEntityV1Resource.md @@ -9,8 +9,8 @@ A class that represents a domain entity exposed by an API | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**attributes** | [**RmLegacyAudienceGetEntityV1**](RmLegacyAudienceGetEntityV1.md) | | [optional] | -|**id** | **String** | | [optional] | -|**audienceType** | [**AudienceTypeEnum**](#AudienceTypeEnum) | | [optional] | +|**id** | **String** | Unique identifier of this resource. | [optional] | +|**audienceType** | [**AudienceTypeEnum**](#AudienceTypeEnum) | Type of the audience. | [optional] | |**type** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-07/docs/Section.md b/sdks/retailmedia_2024-07/docs/Section.md index 582cd3b5..4966c3b1 100644 --- a/sdks/retailmedia_2024-07/docs/Section.md +++ b/sdks/retailmedia_2024-07/docs/Section.md @@ -8,7 +8,7 @@ Section object that hold template variables | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**title** | **String** | | | +|**title** | **String** | | [optional] | |**templateVariables** | [**List<TemplateVariable>**](TemplateVariable.md) | | | diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/ApiClient.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/ApiClient.java index 40d0342a..7160a84f 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/ApiClient.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2024.07.0.240826/java"); + setUserAgent("OpenAPI-Generator/2024.07.0.241029/java"); authentications = new HashMap(); } diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/api/AnalyticsApi.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/api/AnalyticsApi.java index 80fe0ef4..8b93b9ec 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/api/AnalyticsApi.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/api/AnalyticsApi.java @@ -154,7 +154,7 @@ private okhttp3.Call generateAsyncCampaignsReportValidateBeforeCall(AsyncCampaig /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -173,7 +173,7 @@ public AsyncReportResponse generateAsyncCampaignsReport(AsyncCampaignsReportRequ /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -193,7 +193,7 @@ public ApiResponse generateAsyncCampaignsReportWithHttpInfo /** * (asynchronously) - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -290,7 +290,7 @@ private okhttp3.Call generateAsyncLineItemsReportValidateBeforeCall(AsyncLineIte /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -309,7 +309,7 @@ public AsyncReportResponse generateAsyncLineItemsReport(AsyncLineItemsReportRequ /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -329,7 +329,7 @@ public ApiResponse generateAsyncLineItemsReportWithHttpInfo /** * (asynchronously) - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -426,7 +426,7 @@ private okhttp3.Call generateAsyncRevenueReportValidateBeforeCall(AsyncRevenueRe /** * - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -445,7 +445,7 @@ public AsyncReportResponse generateAsyncRevenueReport(AsyncRevenueReportRequest /** * - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -465,7 +465,7 @@ public ApiResponse generateAsyncRevenueReportWithHttpInfo(A /** * (asynchronously) - * Returns an asynchronous Revenue Report + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. * @param asyncRevenueReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/CampaignAttributesV202301.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/CampaignAttributesV202301.java index f1bd6409..e2be9d8b 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/CampaignAttributesV202301.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/CampaignAttributesV202301.java @@ -366,6 +366,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public CampaignAttributesV202301() { } @@ -684,6 +688,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public CampaignAttributesV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -752,7 +778,8 @@ public boolean equals(Object o) { Objects.equals(this.endDate, campaignAttributesV202301.endDate) && Objects.equals(this.clickAttributionScope, campaignAttributesV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, campaignAttributesV202301.viewAttributionScope) && - Objects.equals(this.companyName, campaignAttributesV202301.companyName)&& + Objects.equals(this.companyName, campaignAttributesV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, campaignAttributesV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, campaignAttributesV202301.additionalProperties); } @@ -762,7 +789,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -790,6 +817,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -827,6 +855,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -880,6 +909,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/CampaignV202301.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/CampaignV202301.java index 54eac34e..6edb0d9e 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/CampaignV202301.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/CampaignV202301.java @@ -447,6 +447,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public CampaignV202301() { } @@ -924,6 +928,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public CampaignV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -999,7 +1025,8 @@ public boolean equals(Object o) { Objects.equals(this.endDate, campaignV202301.endDate) && Objects.equals(this.clickAttributionScope, campaignV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, campaignV202301.viewAttributionScope) && - Objects.equals(this.companyName, campaignV202301.companyName)&& + Objects.equals(this.companyName, campaignV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, campaignV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, campaignV202301.additionalProperties); } @@ -1009,7 +1036,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(accountId, promotedBrandIds, budgetSpent, budgetRemaining, status, createdAt, updatedAt, type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(accountId, promotedBrandIds, budgetSpent, budgetRemaining, status, createdAt, updatedAt, type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -1044,6 +1071,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -1088,6 +1116,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -1159,6 +1188,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/EditableCampaignAttributesV202301.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/EditableCampaignAttributesV202301.java index 08990a8b..54b9e441 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/EditableCampaignAttributesV202301.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/EditableCampaignAttributesV202301.java @@ -307,6 +307,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public EditableCampaignAttributesV202301() { } @@ -573,6 +577,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public EditableCampaignAttributesV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -639,7 +665,8 @@ public boolean equals(Object o) { Objects.equals(this.viewAttributionWindow, editableCampaignAttributesV202301.viewAttributionWindow) && Objects.equals(this.clickAttributionScope, editableCampaignAttributesV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, editableCampaignAttributesV202301.viewAttributionScope) && - Objects.equals(this.companyName, editableCampaignAttributesV202301.companyName)&& + Objects.equals(this.companyName, editableCampaignAttributesV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, editableCampaignAttributesV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, editableCampaignAttributesV202301.additionalProperties); } @@ -649,7 +676,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionWindow, viewAttributionWindow, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionWindow, viewAttributionWindow, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -675,6 +702,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -710,6 +738,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -758,6 +787,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/ExternalAccount.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/ExternalAccount.java index 7739550c..e9267cfd 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/ExternalAccount.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/ExternalAccount.java @@ -181,6 +181,10 @@ public SubtypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public ExternalAccount() { } @@ -364,6 +368,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public ExternalAccount onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -426,7 +452,8 @@ public boolean equals(Object o) { Objects.equals(this.currency, externalAccount.currency) && Objects.equals(this.parentAccountLabel, externalAccount.parentAccountLabel) && Objects.equals(this.timeZone, externalAccount.timeZone) && - Objects.equals(this.companyName, externalAccount.companyName)&& + Objects.equals(this.companyName, externalAccount.companyName) && + Objects.equals(this.onBehalfCompanyName, externalAccount.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, externalAccount.additionalProperties); } @@ -436,7 +463,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, additionalProperties); + return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -458,6 +485,7 @@ public String toString() { sb.append(" parentAccountLabel: ").append(toIndentedString(parentAccountLabel)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -489,6 +517,7 @@ private String toIndentedString(Object o) { openapiFields.add("parentAccountLabel"); openapiFields.add("timeZone"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -546,6 +575,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaAccount.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaAccount.java index 2750df8f..adaa2761 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaAccount.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaAccount.java @@ -59,6 +59,10 @@ public class RetailMediaAccount { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + /** * Type for the account */ @@ -213,7 +217,7 @@ public RetailMediaAccount companyName(String companyName) { } /** - * Display name for reporting the owning entity of ads for the Digital Services Act in the European Union + * Paying entity name of ads for the Digital Services Act * @return companyName **/ @javax.annotation.Nullable @@ -228,6 +232,28 @@ public void setCompanyName(String companyName) { } + public RetailMediaAccount onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * On behalf entity name of ads for the Digital Services Act + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + + public RetailMediaAccount type(TypeEnum type) { this.type = type; @@ -380,6 +406,7 @@ public boolean equals(Object o) { RetailMediaAccount retailMediaAccount = (RetailMediaAccount) o; return Objects.equals(this.name, retailMediaAccount.name) && Objects.equals(this.companyName, retailMediaAccount.companyName) && + Objects.equals(this.onBehalfCompanyName, retailMediaAccount.onBehalfCompanyName) && Objects.equals(this.type, retailMediaAccount.type) && Objects.equals(this.subType, retailMediaAccount.subType) && Objects.equals(this.countryIds, retailMediaAccount.countryIds) && @@ -394,7 +421,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, companyName, type, subType, countryIds, currencyId, parentAccountLabel, timeZone); + return Objects.hash(name, companyName, onBehalfCompanyName, type, subType, countryIds, currencyId, parentAccountLabel, timeZone); } private static int hashCodeNullable(JsonNullable a) { @@ -410,6 +437,7 @@ public String toString() { sb.append("class RetailMediaAccount {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); sb.append(" countryIds: ").append(toIndentedString(countryIds)).append("\n"); @@ -440,6 +468,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("name"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); openapiFields.add("type"); openapiFields.add("subType"); openapiFields.add("countryIds"); @@ -477,6 +506,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaBrandAccountCreation.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaBrandAccountCreation.java index f36ecb8e..9b949705 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaBrandAccountCreation.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaBrandAccountCreation.java @@ -59,6 +59,10 @@ public class RetailMediaBrandAccountCreation { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public static final String SERIALIZED_NAME_BRANDS = "brands"; @SerializedName(SERIALIZED_NAME_BRANDS) private List brands = null; @@ -95,7 +99,7 @@ public RetailMediaBrandAccountCreation companyName(String companyName) { } /** - * Display name for reporting the owning entity of ads for the Digital Services Act in the European Union + * Paying entity name of ads for the Digital Services Act * @return companyName **/ @javax.annotation.Nullable @@ -110,6 +114,28 @@ public void setCompanyName(String companyName) { } + public RetailMediaBrandAccountCreation onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * On behalf entity name of ads for the Digital Services Act + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + + public RetailMediaBrandAccountCreation brands(List brands) { this.brands = brands; @@ -152,6 +178,7 @@ public boolean equals(Object o) { RetailMediaBrandAccountCreation retailMediaBrandAccountCreation = (RetailMediaBrandAccountCreation) o; return Objects.equals(this.name, retailMediaBrandAccountCreation.name) && Objects.equals(this.companyName, retailMediaBrandAccountCreation.companyName) && + Objects.equals(this.onBehalfCompanyName, retailMediaBrandAccountCreation.onBehalfCompanyName) && Objects.equals(this.brands, retailMediaBrandAccountCreation.brands); } @@ -161,7 +188,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, companyName, brands); + return Objects.hash(name, companyName, onBehalfCompanyName, brands); } private static int hashCodeNullable(JsonNullable a) { @@ -177,6 +204,7 @@ public String toString() { sb.append("class RetailMediaBrandAccountCreation {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" brands: ").append(toIndentedString(brands)).append("\n"); sb.append("}"); return sb.toString(); @@ -202,6 +230,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("name"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); openapiFields.add("brands"); // a set of required properties/fields (JSON key names) @@ -234,6 +263,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } // ensure the optional json data is an array if present if (jsonObj.get("brands") != null && !jsonObj.get("brands").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `brands` to be an array in the JSON string but got `%s`", jsonObj.get("brands").toString())); diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaSellerAccountCreation.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaSellerAccountCreation.java index 160e0fda..54021b63 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaSellerAccountCreation.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RetailMediaSellerAccountCreation.java @@ -60,6 +60,10 @@ public class RetailMediaSellerAccountCreation { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public static final String SERIALIZED_NAME_SELLERS = "sellers"; @SerializedName(SERIALIZED_NAME_SELLERS) private List sellers = null; @@ -96,7 +100,7 @@ public RetailMediaSellerAccountCreation companyName(String companyName) { } /** - * Display name for reporting the owning entity of ads for the Digital Services Act in the European Union + * Paying entity name of ads for the Digital Services Act * @return companyName **/ @javax.annotation.Nullable @@ -111,6 +115,28 @@ public void setCompanyName(String companyName) { } + public RetailMediaSellerAccountCreation onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * On behalf entity name of ads for the Digital Services Act + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + + public RetailMediaSellerAccountCreation sellers(List sellers) { this.sellers = sellers; @@ -153,6 +179,7 @@ public boolean equals(Object o) { RetailMediaSellerAccountCreation retailMediaSellerAccountCreation = (RetailMediaSellerAccountCreation) o; return Objects.equals(this.name, retailMediaSellerAccountCreation.name) && Objects.equals(this.companyName, retailMediaSellerAccountCreation.companyName) && + Objects.equals(this.onBehalfCompanyName, retailMediaSellerAccountCreation.onBehalfCompanyName) && Objects.equals(this.sellers, retailMediaSellerAccountCreation.sellers); } @@ -162,7 +189,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, companyName, sellers); + return Objects.hash(name, companyName, onBehalfCompanyName, sellers); } private static int hashCodeNullable(JsonNullable a) { @@ -178,6 +205,7 @@ public String toString() { sb.append("class RetailMediaSellerAccountCreation {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" sellers: ").append(toIndentedString(sellers)).append("\n"); sb.append("}"); return sb.toString(); @@ -203,6 +231,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("name"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); openapiFields.add("sellers"); // a set of required properties/fields (JSON key names) @@ -235,6 +264,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } if (jsonObj.get("sellers") != null && !jsonObj.get("sellers").isJsonNull()) { JsonArray jsonArraysellers = jsonObj.getAsJsonArray("sellers"); if (jsonArraysellers != null) { diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceCreateInputEntityV1.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceCreateInputEntityV1.java index 8204f9ad..bd75a6ab 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceCreateInputEntityV1.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceCreateInputEntityV1.java @@ -45,7 +45,7 @@ import com.criteo.api.retailmedia.v2024_07.JSON; /** - * Input to create audience. + * A top-level object that encapsulates a Criteo API request for a single entity. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceCreateInputEntityV1 { diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceCreateInputEntityV2.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceCreateInputEntityV2.java index 85010d86..56abcc52 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceCreateInputEntityV2.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceCreateInputEntityV2.java @@ -45,7 +45,7 @@ import com.criteo.api.retailmedia.v2024_07.JSON; /** - * Input to create audience. + * A top-level object that encapsulates a Criteo API request for a single entity. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceCreateInputEntityV2 { diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceGetEntityV1ListResponse.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceGetEntityV1ListResponse.java index 41b327d9..491ce626 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceGetEntityV1ListResponse.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceGetEntityV1ListResponse.java @@ -49,7 +49,7 @@ import com.criteo.api.retailmedia.v2024_07.JSON; /** - * A top-level object that encapsulates a Criteo API response for several entities and metadata + * The outcome of an API call. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmLegacyAudienceGetEntityV1ListResponse { diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceGetEntityV1Resource.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceGetEntityV1Resource.java index 2b48291b..06f7bcb8 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceGetEntityV1Resource.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/RmLegacyAudienceGetEntityV1Resource.java @@ -59,7 +59,7 @@ public class RmLegacyAudienceGetEntityV1Resource { private String id; /** - * Gets or Sets audienceType + * Type of the audience. */ @JsonAdapter(AudienceTypeEnum.Adapter.class) public enum AudienceTypeEnum { @@ -145,7 +145,7 @@ public RmLegacyAudienceGetEntityV1Resource id(String id) { } /** - * Get id + * Unique identifier of this resource. * @return id **/ @javax.annotation.Nullable @@ -167,7 +167,7 @@ public RmLegacyAudienceGetEntityV1Resource audienceType(AudienceTypeEnum audienc } /** - * Get audienceType + * Type of the audience. * @return audienceType **/ @javax.annotation.Nullable diff --git a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/Section.java b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/Section.java index 8f33c083..8041dfd6 100644 --- a/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/Section.java +++ b/sdks/retailmedia_2024-07/src/main/java/com/criteo/api/retailmedia/v2024_07/model/Section.java @@ -24,6 +24,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -72,7 +73,7 @@ public Section title(String title) { * Get title * @return title **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public String getTitle() { return title; @@ -170,11 +171,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, section.additionalProperties); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { return Objects.hash(title, templateVariables, additionalProperties); } + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -209,7 +221,6 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("title"); openapiRequiredFields.add("templateVariables"); } @@ -232,7 +243,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (!jsonObj.get("title").isJsonPrimitive()) { + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); } // ensure the json data is an array diff --git a/sdks/retailmedia_2023-07/.github/workflows/maven.yml b/sdks/retailmedia_2024-10/.github/workflows/maven.yml similarity index 100% rename from sdks/retailmedia_2023-07/.github/workflows/maven.yml rename to sdks/retailmedia_2024-10/.github/workflows/maven.yml diff --git a/sdks/retailmedia_2023-07/.gitignore b/sdks/retailmedia_2024-10/.gitignore similarity index 100% rename from sdks/retailmedia_2023-07/.gitignore rename to sdks/retailmedia_2024-10/.gitignore diff --git a/sdks/retailmedia_2024-10/.openapi-generator/FILES b/sdks/retailmedia_2024-10/.openapi-generator/FILES new file mode 100644 index 00000000..7defd7d4 --- /dev/null +++ b/sdks/retailmedia_2024-10/.openapi-generator/FILES @@ -0,0 +1,594 @@ +.github/workflows/maven.yml +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +build.gradle +build.sbt +docs/AccountsApi.md +docs/AddFundsToBalanceV2.md +docs/AddFundsToBalanceV2Request.md +docs/AddRemoveKeywordModel.md +docs/AddRemoveKeywordsModel.md +docs/AddRemoveKeywordsModelRequest.md +docs/AddRemoveKeywordsModelResource.md +docs/AddToBasketIdsUpdateModel202110Request.md +docs/AddToBasketTarget202110Request.md +docs/AddToBasketTarget202110Response.md +docs/AnalyticsApi.md +docs/ApplicationSummaryModel.md +docs/ApplicationSummaryModelResource.md +docs/ApplicationSummaryModelResponse.md +docs/ApprovalStatusModel.md +docs/Asset.md +docs/AssetResource.md +docs/AssetResponse.md +docs/AsyncCampaignsReport.md +docs/AsyncCampaignsReportRequest.md +docs/AsyncCampaignsReportResource.md +docs/AsyncLineItemsReport.md +docs/AsyncLineItemsReportRequest.md +docs/AsyncLineItemsReportResource.md +docs/AsyncReportResponse.md +docs/AsyncRevenueReport.md +docs/AsyncRevenueReportRequest.md +docs/AsyncRevenueReportResource.md +docs/AuctionLineItemCreateModelRequest.md +docs/AuctionLineItemPagedListResponse.md +docs/AuctionLineItemResponse.md +docs/AuctionLineItemUpdateModelRequest.md +docs/AudienceApi.md +docs/AudienceError.md +docs/AudienceIdsUpdateModel202110Request.md +docs/AudienceTarget202110Request.md +docs/AudienceTarget202110Response.md +docs/AudienceWarning.md +docs/BalanceApi.md +docs/BalanceCampaign202110ListRequest.md +docs/BalanceCampaign202110PagedListResponse.md +docs/BalanceHistoryChangeDataCaptureV1.md +docs/BalanceResponseV2.md +docs/BalanceResponseV2Response.md +docs/CampaignApi.md +docs/CampaignAttributesV202301.md +docs/CampaignBudgetOverrides.md +docs/CampaignDailyBudgetOverride.md +docs/CampaignMonthlyBudgetOverride.md +docs/CampaignV202301.md +docs/Category202204.md +docs/Category202204ListResponse.md +docs/ChangeDatesOfBalanceV2.md +docs/ChangeDatesOfBalanceV2Request.md +docs/ChangeDetailsV1.md +docs/ChoiceOption.md +docs/ChoiceVariableSpecification.md +docs/ChoiceVariableValue.md +docs/ColorVariableValue.md +docs/CommonError.md +docs/CommonLineItemPagedListResponse.md +docs/CommonLineItemResponse.md +docs/CommonProblem.md +docs/CommonWarning.md +docs/CreateBalanceV2.md +docs/CreateBalanceV2Request.md +docs/Creative202110.md +docs/Creative202110ListResponse.md +docs/Creative202210.md +docs/Creative202210Response.md +docs/CreativeCreateModel202207.md +docs/CreativeUpdateModel202207.md +docs/CreativeV2ListResponse.md +docs/CreativeV2Response.md +docs/DailyLineItemBudgetOverride.md +docs/EditableCampaignAttributesV202301.md +docs/ErrorCodeResponse.md +docs/ExternalAccount.md +docs/ExternalAddToBasketIdsUpdateModel202110.md +docs/ExternalAddToBasketTarget202110.md +docs/ExternalAuctionLineItem.md +docs/ExternalAuctionLineItemCreateModel.md +docs/ExternalAuctionLineItemUpdateModel.md +docs/ExternalAudienceIdsUpdateModel202110.md +docs/ExternalAudienceTarget202110.md +docs/ExternalBrand.md +docs/ExternalCatalogRequest.md +docs/ExternalCatalogStatus.md +docs/ExternalChoiceVariableValue.md +docs/ExternalColorVariableValue.md +docs/ExternalCommonLineItem.md +docs/ExternalCreativeV2.md +docs/ExternalFilesVariableValue.md +docs/ExternalHyperlinkVariableValue.md +docs/ExternalKeywordTarget202110.md +docs/ExternalLineItemBidMultipliersV2.md +docs/ExternalLineItemCappingV2.md +docs/ExternalLineItemPageCategoryV2.md +docs/ExternalLineItemPageV2.md +docs/ExternalPageTypeEnvironment.md +docs/ExternalPreferredLineItemCreateModelV2.md +docs/ExternalPreferredLineItemUpdateModelV2.md +docs/ExternalPreferredLineItemV2.md +docs/ExternalRetailer.md +docs/ExternalRetailerPages202110.md +docs/ExternalStoreIdsUpdateModel202110.md +docs/ExternalStoreTarget202110.md +docs/ExternalTemplateVariableValue.md +docs/ExternalTextVariableValue.md +docs/ExternalVideoVariableValue.md +docs/FilesVariableValue.md +docs/FilesVariablesSpecification.md +docs/GatewayApi.md +docs/HyperlinkVariableValue.md +docs/InputKeywordsModel.md +docs/InputResourceOfAuctionLineItemCreateModel.md +docs/InputResourceOfPreferredLineItemCreateModelV2.md +docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md +docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md +docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md +docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md +docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md +docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.md +docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md +docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md +docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md +docs/JsonApiPageResponseOfAccount.md +docs/JsonApiPageResponseOfBrand.md +docs/JsonApiPageResponseOfCampaignV202301.md +docs/JsonApiPageResponseOfRetailer.md +docs/JsonApiRequestOfCatalogRequest.md +docs/JsonApiSingleResponseOfCampaignV202301.md +docs/JsonApiSingleResponseOfCatalogStatus.md +docs/JsonApiSingleResponseOfLineItemBidMultipliersV2.md +docs/KeywordDataModel.md +docs/KeywordTarget202110Request.md +docs/KeywordTarget202110Response.md +docs/KeywordsModel.md +docs/KeywordsModelResource.md +docs/KeywordsModelResponse.md +docs/LineItemBidMultipliersV2Request.md +docs/LineItemBidMultipliersV2Response.md +docs/LineItemBudgetOverrides.md +docs/LineItemProductStatus.md +docs/MatchTypeModel.md +docs/Metadata.md +docs/MonthlyLineItemBudegetOverride.md +docs/NegotiationStateModel.md +docs/NillableString.md +docs/PageMetadata.md +docs/PageOfBalanceHistoryChangeDataCaptureV1.md +docs/PageTypeEnvironment.md +docs/PagedResourceCollectionOutcomeOfBalanceResponseV2.md +docs/PostCampaignV202301.md +docs/PreferredLineItemCreateModelV2Request.md +docs/PreferredLineItemUpdateModelV2Request.md +docs/PreferredLineItemV2PagedListResponse.md +docs/PreferredLineItemV2Response.md +docs/ProblemDetails.md +docs/ProductMetadata.md +docs/ProductResourceOutcome.md +docs/PromotedProduct.md +docs/PromotedProductResource.md +docs/PromotedProductResourceCollectionInput.md +docs/PromotedProductResourceCollectionOutcome.md +docs/ProposalStatusModel.md +docs/ProposalStatusModelResource.md +docs/ProposalStatusModelResponse.md +docs/PutCampaignV202301.md +docs/ReportOutcome.md +docs/ResourceOfAddFundsToBalanceV2.md +docs/ResourceOfAuctionLineItem.md +docs/ResourceOfAuctionLineItemUpdateModel.md +docs/ResourceOfBalanceCampaign202110.md +docs/ResourceOfBalanceResponseV2.md +docs/ResourceOfCategory202204.md +docs/ResourceOfChangeDatesOfBalanceV2.md +docs/ResourceOfCommonLineItem.md +docs/ResourceOfCreateBalanceV2.md +docs/ResourceOfCreative202110.md +docs/ResourceOfCreative202210.md +docs/ResourceOfCreativeV2.md +docs/ResourceOfLineItemBidMultipliersV2.md +docs/ResourceOfPreferredLineItemUpdateModelV2.md +docs/ResourceOfPreferredLineItemV2.md +docs/ResourceOfRetailMediaAccount.md +docs/ResourceOfTemplate.md +docs/ResourceOfUpdateBalanceModelV2.md +docs/ResourceOutcome.md +docs/ResourceOutcomeOfRetailMediaAccount.md +docs/RetailMediaAccount.md +docs/RetailMediaBrandAccountCreation.md +docs/RetailMediaBrands.md +docs/RetailMediaContactlistAmendment.md +docs/RetailMediaContactlistAmendmentAttributes.md +docs/RetailMediaContactlistAmendmentRequest.md +docs/RetailMediaContactlistOperation.md +docs/RetailMediaContactlistOperationResponseAttributes.md +docs/RetailMediaContactlistOperationResponseAttributesAttributes.md +docs/RetailMediaSeller.md +docs/RetailMediaSellerAccountCreation.md +docs/ReviewStateModel.md +docs/RmAlgebraNodeV1.md +docs/RmAudienceEntityV1.md +docs/RmAudienceEntityV1Resource.md +docs/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md +docs/RmAudienceSearchEntityV1.md +docs/RmAudienceSearchEntityV1Resource.md +docs/RmAudienceSearchInputV1.md +docs/RmAudienceSearchMetadataV1.md +docs/RmAudienceSegmentBulkCreateInputV1.md +docs/RmAudienceSegmentBulkDeleteInputV1.md +docs/RmAudienceSegmentBulkUpdateInputV1.md +docs/RmAudienceSegmentCreateEntityV1.md +docs/RmAudienceSegmentCreateEntityV1Resource.md +docs/RmAudienceSegmentDeleteEntityV1Resource.md +docs/RmAudienceSegmentEntityV1.md +docs/RmAudienceSegmentEntityV1ListResponse.md +docs/RmAudienceSegmentEntityV1Resource.md +docs/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.md +docs/RmAudienceSegmentIdEntityV1ListResponse.md +docs/RmAudienceSegmentIdEntityV1Resource.md +docs/RmAudienceSegmentSearchEntityV1.md +docs/RmAudienceSegmentSearchEntityV1Resource.md +docs/RmAudienceSegmentSearchInputV1.md +docs/RmAudienceSegmentSearchMetadataV1.md +docs/RmAudienceSegmentUpdateEntityV1.md +docs/RmAudienceSegmentUpdateEntityV1Resource.md +docs/RmContactListCreateV1.md +docs/RmContactListStatisticsEntityV1.md +docs/RmContactListStatisticsEntityV1Resource.md +docs/RmContactListStatisticsEntityV1Response.md +docs/RmContactListV1.md +docs/RmEventsV1.md +docs/RmcaCommonProblem.md +docs/Section.md +docs/SetBidModel.md +docs/SetBidsModel.md +docs/SetBidsModelRequest.md +docs/SetBidsModelResource.md +docs/StatusResponse.md +docs/StatusResponseResource.md +docs/StoreIdsUpdateModel202110Request.md +docs/StoreTarget202110Request.md +docs/StoreTarget202110Response.md +docs/Template.md +docs/TemplateListResponse.md +docs/TemplateResponse.md +docs/TemplateVariable.md +docs/TemplateVariableValue.md +docs/TextVariableSpecification.md +docs/TextVariableValue.md +docs/UpdateBalanceModelV2.md +docs/UpdateBalanceModelV2Request.md +docs/ValueResourceCollectionInputOfRetailMediaSeller.md +docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md +docs/ValueResourceInputOfCampaignBudgetOverrides.md +docs/ValueResourceInputOfLineItemBudgetOverrides.md +docs/ValueResourceInputOfRetailMediaBrandAccountCreation.md +docs/ValueResourceInputOfRetailMediaBrands.md +docs/ValueResourceInputOfRetailMediaSellerAccountCreation.md +docs/ValueResourceOfCampaignBudgetOverrides.md +docs/ValueResourceOfLineItemBudgetOverrides.md +docs/ValueResourceOfRetailMediaBrandAccountCreation.md +docs/ValueResourceOfRetailMediaBrands.md +docs/ValueResourceOfRetailMediaSeller.md +docs/ValueResourceOfRetailMediaSellerAccountCreation.md +docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md +docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md +docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md +docs/ValueTypeResourceOfAddToBasketTarget202110.md +docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md +docs/ValueTypeResourceOfAudienceTarget202110.md +docs/ValueTypeResourceOfKeywordTarget202110.md +docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md +docs/ValueTypeResourceOfStoreTarget202110.md +git_push.sh +gradle.properties +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper.properties +gradlew +gradlew.bat +pom.xml +settings.gradle +src/main/AndroidManifest.xml +src/main/java/com/criteo/api/retailmedia/v2024_10/ApiCallback.java +src/main/java/com/criteo/api/retailmedia/v2024_10/ApiClient.java +src/main/java/com/criteo/api/retailmedia/v2024_10/ApiClientBuilder.java +src/main/java/com/criteo/api/retailmedia/v2024_10/ApiException.java +src/main/java/com/criteo/api/retailmedia/v2024_10/ApiResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/Configuration.java +src/main/java/com/criteo/api/retailmedia/v2024_10/GzipRequestInterceptor.java +src/main/java/com/criteo/api/retailmedia/v2024_10/JSON.java +src/main/java/com/criteo/api/retailmedia/v2024_10/Pair.java +src/main/java/com/criteo/api/retailmedia/v2024_10/ProgressRequestBody.java +src/main/java/com/criteo/api/retailmedia/v2024_10/ProgressResponseBody.java +src/main/java/com/criteo/api/retailmedia/v2024_10/ServerConfiguration.java +src/main/java/com/criteo/api/retailmedia/v2024_10/ServerVariable.java +src/main/java/com/criteo/api/retailmedia/v2024_10/StringUtil.java +src/main/java/com/criteo/api/retailmedia/v2024_10/api/AccountsApi.java +src/main/java/com/criteo/api/retailmedia/v2024_10/api/AnalyticsApi.java +src/main/java/com/criteo/api/retailmedia/v2024_10/api/AudienceApi.java +src/main/java/com/criteo/api/retailmedia/v2024_10/api/BalanceApi.java +src/main/java/com/criteo/api/retailmedia/v2024_10/api/CampaignApi.java +src/main/java/com/criteo/api/retailmedia/v2024_10/api/GatewayApi.java +src/main/java/com/criteo/api/retailmedia/v2024_10/auth/ApiKeyAuth.java +src/main/java/com/criteo/api/retailmedia/v2024_10/auth/Authentication.java +src/main/java/com/criteo/api/retailmedia/v2024_10/auth/HttpBasicAuth.java +src/main/java/com/criteo/api/retailmedia/v2024_10/auth/HttpBearerAuth.java +src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuth.java +src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuthFlow.java +src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuthOkHttpClient.java +src/main/java/com/criteo/api/retailmedia/v2024_10/auth/RetryingOAuth.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AbstractOpenApiSchema.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddFundsToBalanceV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddFundsToBalanceV2Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModelRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModelResource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketIdsUpdateModel202110Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketTarget202110Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketTarget202110Response.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModelResource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModelResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApprovalStatusModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/Asset.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AssetResource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AssetResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReport.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReportRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReportResource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReport.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReportRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReportResource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncReportResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReport.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReportRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReportResource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemCreateModelRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemPagedListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemUpdateModelRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceError.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceIdsUpdateModel202110Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceTarget202110Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceTarget202110Response.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceWarning.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceCampaign202110ListRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceCampaign202110PagedListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceHistoryChangeDataCaptureV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceResponseV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceResponseV2Response.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignAttributesV202301.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignBudgetOverrides.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignDailyBudgetOverride.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignMonthlyBudgetOverride.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignV202301.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/Category202204.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/Category202204ListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDatesOfBalanceV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDatesOfBalanceV2Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDetailsV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceOption.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceVariableSpecification.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ColorVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonError.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonLineItemPagedListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonLineItemResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonProblem.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonWarning.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreateBalanceV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreateBalanceV2Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202110ListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202210.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202210Response.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeCreateModel202207.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeUpdateModel202207.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeV2ListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeV2Response.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/DailyLineItemBudgetOverride.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/EditableCampaignAttributesV202301.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ErrorCodeResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAccount.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAddToBasketIdsUpdateModel202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAddToBasketTarget202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItem.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItemCreateModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItemUpdateModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAudienceIdsUpdateModel202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAudienceTarget202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalBrand.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCatalogRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCatalogStatus.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalChoiceVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalColorVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCommonLineItem.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCreativeV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalFilesVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalHyperlinkVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalKeywordTarget202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemBidMultipliersV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemCappingV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemPageCategoryV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemPageV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPageTypeEnvironment.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemCreateModelV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemUpdateModelV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalRetailer.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalRetailerPages202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalStoreIdsUpdateModel202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalStoreTarget202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalTemplateVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalTextVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalVideoVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/FilesVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/FilesVariablesSpecification.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/HyperlinkVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputKeywordsModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputResourceOfAuctionLineItemCreateModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputResourceOfPreferredLineItemCreateModelV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfAccount.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfBrand.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfCampaignV202301.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfRetailer.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiRequestOfCatalogRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfCampaignV202301.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfCatalogStatus.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfLineItemBidMultipliersV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordDataModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordTarget202110Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordTarget202110Response.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModelResource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModelResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBidMultipliersV2Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBidMultipliersV2Response.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBudgetOverrides.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemProductStatus.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/MatchTypeModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/Metadata.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/MonthlyLineItemBudegetOverride.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/NegotiationStateModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/NillableString.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageMetadata.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageOfBalanceHistoryChangeDataCaptureV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageTypeEnvironment.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PagedResourceCollectionOutcomeOfBalanceResponseV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PostCampaignV202301.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemCreateModelV2Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemUpdateModelV2Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemV2PagedListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemV2Response.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProblemDetails.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProductMetadata.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProductResourceOutcome.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProduct.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResourceCollectionInput.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResourceCollectionOutcome.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModelResource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModelResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/PutCampaignV202301.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ReportOutcome.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAddFundsToBalanceV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAuctionLineItem.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAuctionLineItemUpdateModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfBalanceCampaign202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfBalanceResponseV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCategory202204.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfChangeDatesOfBalanceV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCommonLineItem.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreateBalanceV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreative202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreative202210.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreativeV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfLineItemBidMultipliersV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfPreferredLineItemUpdateModelV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfPreferredLineItemV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfRetailMediaAccount.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfTemplate.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfUpdateBalanceModelV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOutcome.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOutcomeOfRetailMediaAccount.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaAccount.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaBrandAccountCreation.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaBrands.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendment.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendmentAttributes.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendmentRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperation.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperationResponseAttributes.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperationResponseAttributesAttributes.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaSeller.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaSellerAccountCreation.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ReviewStateModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAlgebraNodeV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1Resource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchEntityV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchEntityV1Resource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchInputV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchMetadataV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkCreateInputV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkDeleteInputV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkUpdateInputV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentCreateEntityV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentCreateEntityV1Resource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentDeleteEntityV1Resource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1ListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1Resource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentIdEntityV1ListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentIdEntityV1Resource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchEntityV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchEntityV1Resource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchInputV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchMetadataV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentUpdateEntityV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentUpdateEntityV1Resource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListCreateV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1Resource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1Response.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmEventsV1.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmcaCommonProblem.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/Section.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModel.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModelRequest.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModelResource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/StatusResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/StatusResponseResource.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreIdsUpdateModel202110Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreTarget202110Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreTarget202110Response.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/Template.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateListResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateResponse.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateVariable.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/TextVariableSpecification.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/TextVariableValue.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/UpdateBalanceModelV2.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/UpdateBalanceModelV2Request.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceCollectionInputOfRetailMediaSeller.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceCollectionOutcomeOfRetailMediaSeller.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfCampaignBudgetOverrides.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfLineItemBudgetOverrides.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaBrandAccountCreation.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaBrands.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaSellerAccountCreation.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfCampaignBudgetOverrides.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfLineItemBudgetOverrides.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaBrandAccountCreation.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaBrands.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaSeller.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaSellerAccountCreation.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOutcomeOfLineItemBudgetOverrides.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAddToBasketTarget202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAudienceIdsUpdateModel202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAudienceTarget202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfKeywordTarget202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfStoreIdsUpdateModel202110.java +src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfStoreTarget202110.java +src/test/java/com/criteo/api/retailmedia/v2024_10/ExampleApplication.java +src/test/java/com/criteo/api/retailmedia/v2024_10/GatewayApiTest.java diff --git a/sdks/retailmedia_2023-07/.openapi-generator/VERSION b/sdks/retailmedia_2024-10/.openapi-generator/VERSION similarity index 100% rename from sdks/retailmedia_2023-07/.openapi-generator/VERSION rename to sdks/retailmedia_2024-10/.openapi-generator/VERSION diff --git a/sdks/retailmedia_2024-10/README.md b/sdks/retailmedia_2024-10/README.md new file mode 100644 index 00000000..b2757887 --- /dev/null +++ b/sdks/retailmedia_2024-10/README.md @@ -0,0 +1,449 @@ +# JAVA SDK for Criteo API retailmedia for 2024_10 version + +## Introduction +API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. +These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. + +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). + +Criteo API + +- Package version: 2024.10.0.241029 + + +*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* + +## Requirements + +Building the API client library requires: + +1. Java 1.8+ +2. Gradle + +## How to build + +To build the jar, simply execute: + +```shell +./gradlew jar +``` + +The built jar will be available in build/libs. + +### Maven users + +Add this dependency to your project's POM: + +```xml + + com.criteo + criteo-api-retailmedia-sdk + 2024.10.0.241029 + compile + +``` + +### Gradle users + +Add this dependency to your project's build file: + +```groovy +compile "com.criteo:criteo-api-retailmedia-sdk:2024.10.0.241029" +``` + +### Others + +At first generate the JAR by executing: + +```shell +./gradlew jar +``` + +Then manually install the following JARs: + +* `build/libs/criteo-api-retailmedia-sdk-2024.10.0.241029.jar` + +## Example + +Please see [src/test/java/com/criteo/api/retailmedia/v2024_10/ExampleApplication.java](src/test/java/com/criteo/api/retailmedia/v2024_10/ExampleApplication.java) for an example on how to perform a simple call. + +## Documentation for API Endpoints + +All URIs are relative to *https://api.criteo.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AccountsApi* | [**addBrands**](docs/AccountsApi.md#addBrands) | **POST** /2024-10/retail-media/account-management/accounts/{accountId}/brands/add | +*AccountsApi* | [**createPrivateMarketDemandBrandAccount**](docs/AccountsApi.md#createPrivateMarketDemandBrandAccount) | **POST** /2024-10/retail-media/account-management/accounts/{accountId}/create-brand-account | +*AccountsApi* | [**createPrivateMarketDemandSellerAccount**](docs/AccountsApi.md#createPrivateMarketDemandSellerAccount) | **POST** /2024-10/retail-media/account-management/accounts/{accountId}/create-seller-account | +*AccountsApi* | [**getApiV1ExternalAccounts**](docs/AccountsApi.md#getApiV1ExternalAccounts) | **GET** /2024-10/retail-media/accounts | +*AccountsApi* | [**removeBrands**](docs/AccountsApi.md#removeBrands) | **POST** /2024-10/retail-media/account-management/accounts/{accountId}/brands/remove | +*AccountsApi* | [**updateSellers**](docs/AccountsApi.md#updateSellers) | **PUT** /2024-10/retail-media/account-management/accounts/{accountId}/sellers | +*AnalyticsApi* | [**generateAsyncCampaignsReport**](docs/AnalyticsApi.md#generateAsyncCampaignsReport) | **POST** /2024-10/retail-media/reports/campaigns | +*AnalyticsApi* | [**generateAsyncLineItemsReport**](docs/AnalyticsApi.md#generateAsyncLineItemsReport) | **POST** /2024-10/retail-media/reports/line-items | +*AnalyticsApi* | [**generateAsyncRevenueReport**](docs/AnalyticsApi.md#generateAsyncRevenueReport) | **POST** /2024-10/retail-media/reports/revenue | +*AnalyticsApi* | [**getAsyncExportOutput**](docs/AnalyticsApi.md#getAsyncExportOutput) | **GET** /2024-10/retail-media/reports/{reportId}/output | +*AnalyticsApi* | [**getAsyncExportStatus**](docs/AnalyticsApi.md#getAsyncExportStatus) | **GET** /2024-10/retail-media/reports/{reportId}/status | +*AudienceApi* | [**bulkCreateAudienceSegments**](docs/AudienceApi.md#bulkCreateAudienceSegments) | **POST** /2024-10/retail-media/accounts/{account-id}/audience-segments/create | +*AudienceApi* | [**bulkDeleteAudienceSegments**](docs/AudienceApi.md#bulkDeleteAudienceSegments) | **POST** /2024-10/retail-media/accounts/{account-id}/audience-segments/delete | +*AudienceApi* | [**bulkUpdateAudienceSegments**](docs/AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2024-10/retail-media/accounts/{account-id}/audience-segments | +*AudienceApi* | [**deleteContactListIdentifiers**](docs/AudienceApi.md#deleteContactListIdentifiers) | **POST** /2024-10/retail-media/audience-segments/{audience-segment-id}/contact-list/clear | +*AudienceApi* | [**getAudienceSegmentContactListStatistics**](docs/AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2024-10/retail-media/accounts/{account-id}/audience-segments/{audience-segment-id}/contact-list | +*AudienceApi* | [**searchAudienceSegments**](docs/AudienceApi.md#searchAudienceSegments) | **POST** /2024-10/retail-media/accounts/{account-id}/audience-segments/search | +*AudienceApi* | [**searchAudiences**](docs/AudienceApi.md#searchAudiences) | **POST** /2024-10/retail-media/accounts/{account-id}/audiences/search | +*AudienceApi* | [**updateContactListIdentifiers**](docs/AudienceApi.md#updateContactListIdentifiers) | **POST** /2024-10/retail-media/audience-segments/{audience-segment-id}/contact-list/add-remove | +*BalanceApi* | [**getApi202110ExternalBalanceCampaignsByBalanceId**](docs/BalanceApi.md#getApi202110ExternalBalanceCampaignsByBalanceId) | **GET** /2024-10/retail-media/balances/{balance-id}/campaigns | +*BalanceApi* | [**getApiV2ExternalAccountBalancesByAccountId**](docs/BalanceApi.md#getApiV2ExternalAccountBalancesByAccountId) | **GET** /2024-10/retail-media/accounts/{account-id}/balances | +*BalanceApi* | [**getApiV2ExternalAccountByAccountIdBalancesbalanceId**](docs/BalanceApi.md#getApiV2ExternalAccountByAccountIdBalancesbalanceId) | **GET** /2024-10/retail-media/accounts/{account-id}/balances/{balance-id} | +*BalanceApi* | [**getBalanceHistory**](docs/BalanceApi.md#getBalanceHistory) | **GET** /2024-10/retail-media/balances/{balanceId}/history | +*BalanceApi* | [**patchApiV2ExternalAccountByAccountIdBalancesbalanceId**](docs/BalanceApi.md#patchApiV2ExternalAccountByAccountIdBalancesbalanceId) | **PATCH** /2024-10/retail-media/accounts/{account-id}/balances/{balance-id} | +*BalanceApi* | [**postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId**](docs/BalanceApi.md#postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId) | **POST** /2024-10/retail-media/accounts/{account-id}/balances/{balance-id}/add-funds | +*BalanceApi* | [**postApiV2ExternalAccountBalancesByAccountId**](docs/BalanceApi.md#postApiV2ExternalAccountBalancesByAccountId) | **POST** /2024-10/retail-media/accounts/{account-id}/balances | +*BalanceApi* | [**postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId**](docs/BalanceApi.md#postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId) | **POST** /2024-10/retail-media/accounts/{account-id}/balances/{balance-id}/change-dates | +*CampaignApi* | [**addRemoveKeywords**](docs/CampaignApi.md#addRemoveKeywords) | **POST** /2024-10/retail-media/line-items/{id}/keywords/add-remove | +*CampaignApi* | [**appendPromotedProducts**](docs/CampaignApi.md#appendPromotedProducts) | **POST** /2024-10/retail-media/line-items/{line-item-id}/products/append | +*CampaignApi* | [**createAsset**](docs/CampaignApi.md#createAsset) | **POST** /2024-10/retail-media/assets | +*CampaignApi* | [**deletePromotedProducts**](docs/CampaignApi.md#deletePromotedProducts) | **POST** /2024-10/retail-media/line-items/{line-item-id}/products/delete | +*CampaignApi* | [**fetchKeywords**](docs/CampaignApi.md#fetchKeywords) | **GET** /2024-10/retail-media/line-items/{id}/keywords | +*CampaignApi* | [**fetchPromotedProducts**](docs/CampaignApi.md#fetchPromotedProducts) | **GET** /2024-10/retail-media/line-items/{line-item-id}/products | +*CampaignApi* | [**fetchProposal**](docs/CampaignApi.md#fetchProposal) | **GET** /2024-10/retail-media/preferred-deal-line-items/{id}/proposal | +*CampaignApi* | [**getApi202110ExternalAccountCreativesByAccountId**](docs/CampaignApi.md#getApi202110ExternalAccountCreativesByAccountId) | **GET** /2024-10/retail-media/accounts/{account-id}/creatives | +*CampaignApi* | [**getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId**](docs/CampaignApi.md#getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId) | **GET** /2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords | +*CampaignApi* | [**getApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId**](docs/CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId) | **GET** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | +*CampaignApi* | [**getApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId**](docs/CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId) | **GET** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences | +*CampaignApi* | [**getApi202110ExternalPreferredLineItemTargetingStoresByLineItemId**](docs/CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingStoresByLineItemId) | **GET** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores | +*CampaignApi* | [**getApi202110ExternalRetailerPagesByRetailerId**](docs/CampaignApi.md#getApi202110ExternalRetailerPagesByRetailerId) | **GET** /2024-10/retail-media/retailers/{retailerId}/pages | +*CampaignApi* | [**getApi202204ExternalCategorieByCategoryId**](docs/CampaignApi.md#getApi202204ExternalCategorieByCategoryId) | **GET** /2024-10/retail-media/categories/{categoryId} | +*CampaignApi* | [**getApi202204ExternalCategories**](docs/CampaignApi.md#getApi202204ExternalCategories) | **GET** /2024-10/retail-media/categories | +*CampaignApi* | [**getApi202207ExternalRetailerByRetailerIdTemplatestemplateId**](docs/CampaignApi.md#getApi202207ExternalRetailerByRetailerIdTemplatestemplateId) | **GET** /2024-10/retail-media/retailers/{retailer-id}/templates/{template-id} | +*CampaignApi* | [**getApi202207ExternalRetailerTemplatesByRetailerId**](docs/CampaignApi.md#getApi202207ExternalRetailerTemplatesByRetailerId) | **GET** /2024-10/retail-media/retailers/{retailer-id}/templates | +*CampaignApi* | [**getApi202301ExternalAccountCampaignsByAccountId**](docs/CampaignApi.md#getApi202301ExternalAccountCampaignsByAccountId) | **GET** /2024-10/retail-media/accounts/{account-id}/campaigns | +*CampaignApi* | [**getApi202301ExternalCampaignByCampaignId**](docs/CampaignApi.md#getApi202301ExternalCampaignByCampaignId) | **GET** /2024-10/retail-media/campaigns/{campaignId} | +*CampaignApi* | [**getApiV1ExternalAccountBrandsByAccountId**](docs/CampaignApi.md#getApiV1ExternalAccountBrandsByAccountId) | **GET** /2024-10/retail-media/accounts/{accountId}/brands | +*CampaignApi* | [**getApiV1ExternalAccountRetailersByAccountId**](docs/CampaignApi.md#getApiV1ExternalAccountRetailersByAccountId) | **GET** /2024-10/retail-media/accounts/{accountId}/retailers | +*CampaignApi* | [**getApiV1ExternalCatalogOutputByCatalogId**](docs/CampaignApi.md#getApiV1ExternalCatalogOutputByCatalogId) | **GET** /2024-10/retail-media/catalogs/{catalogId}/output | +*CampaignApi* | [**getApiV1ExternalCatalogStatusByCatalogId**](docs/CampaignApi.md#getApiV1ExternalCatalogStatusByCatalogId) | **GET** /2024-10/retail-media/catalogs/{catalogId}/status | +*CampaignApi* | [**getApiV2ExternalAccountByAccountIdCreativescreativeId**](docs/CampaignApi.md#getApiV2ExternalAccountByAccountIdCreativescreativeId) | **GET** /2024-10/retail-media/accounts/{account-id}/creatives/{creative-id} | +*CampaignApi* | [**getApiV2ExternalAccountLineItemsByAccountId**](docs/CampaignApi.md#getApiV2ExternalAccountLineItemsByAccountId) | **GET** /2024-10/retail-media/accounts/{account-id}/line-items | +*CampaignApi* | [**getApiV2ExternalAuctionLineItemByLineItemId**](docs/CampaignApi.md#getApiV2ExternalAuctionLineItemByLineItemId) | **GET** /2024-10/retail-media/auction-line-items/{line-item-id} | +*CampaignApi* | [**getApiV2ExternalCampaignAuctionLineItemsByCampaignId**](docs/CampaignApi.md#getApiV2ExternalCampaignAuctionLineItemsByCampaignId) | **GET** /2024-10/retail-media/campaigns/{campaign-id}/auction-line-items | +*CampaignApi* | [**getApiV2ExternalCampaignPreferredLineItemsByCampaignId**](docs/CampaignApi.md#getApiV2ExternalCampaignPreferredLineItemsByCampaignId) | **GET** /2024-10/retail-media/campaigns/{campaign-id}/preferred-line-items | +*CampaignApi* | [**getApiV2ExternalLineItemBidMultipliersByLineItemId**](docs/CampaignApi.md#getApiV2ExternalLineItemBidMultipliersByLineItemId) | **GET** /2024-10/retail-media/line-items/{line-item-id}/bid-multipliers | +*CampaignApi* | [**getApiV2ExternalLineItemByLineItemId**](docs/CampaignApi.md#getApiV2ExternalLineItemByLineItemId) | **GET** /2024-10/retail-media/line-items/{line-item-id} | +*CampaignApi* | [**getApiV2ExternalPreferredLineItemByLineItemId**](docs/CampaignApi.md#getApiV2ExternalPreferredLineItemByLineItemId) | **GET** /2024-10/retail-media/preferred-line-items/{line-item-id} | +*CampaignApi* | [**getCampaignBudgetOverrides**](docs/CampaignApi.md#getCampaignBudgetOverrides) | **GET** /2024-10/retail-media/campaigns/{campaignId}/campaign-budget-overrides | +*CampaignApi* | [**getLineItemBudgetOverrides**](docs/CampaignApi.md#getLineItemBudgetOverrides) | **GET** /2024-10/retail-media/line-items/{lineItemId}/line-item-budget-overrides | +*CampaignApi* | [**pausePromotedProducts**](docs/CampaignApi.md#pausePromotedProducts) | **POST** /2024-10/retail-media/line-items/{line-item-id}/products/pause | +*CampaignApi* | [**postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId**](docs/CampaignApi.md#postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId) | **POST** /2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append | +*CampaignApi* | [**postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId**](docs/CampaignApi.md#postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId) | **POST** /2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete | +*CampaignApi* | [**postApi202110ExternalBalanceCampaignsAppendByBalanceId**](docs/CampaignApi.md#postApi202110ExternalBalanceCampaignsAppendByBalanceId) | **POST** /2024-10/retail-media/balances/{balance-id}/campaigns/append | +*CampaignApi* | [**postApi202110ExternalBalanceCampaignsDeleteByBalanceId**](docs/CampaignApi.md#postApi202110ExternalBalanceCampaignsDeleteByBalanceId) | **POST** /2024-10/retail-media/balances/{balance-id}/campaigns/delete | +*CampaignApi* | [**postApi202110ExternalCampaignPreferredLineItemsByCampaignId**](docs/CampaignApi.md#postApi202110ExternalCampaignPreferredLineItemsByCampaignId) | **POST** /2024-10/retail-media/campaigns/{campaign-id}/preferred-line-items | +*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append | +*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete | +*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append | +*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete | +*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append | +*CampaignApi* | [**postApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId**](docs/CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete | +*CampaignApi* | [**postApi202210ExternalAccountCreativesByAccountId**](docs/CampaignApi.md#postApi202210ExternalAccountCreativesByAccountId) | **POST** /2024-10/retail-media/accounts/{account-id}/creatives | +*CampaignApi* | [**postApi202301ExternalAccountCampaignsByAccountId**](docs/CampaignApi.md#postApi202301ExternalAccountCampaignsByAccountId) | **POST** /2024-10/retail-media/accounts/{account-id}/campaigns | +*CampaignApi* | [**postApiV1ExternalAccountCatalogsByAccountId**](docs/CampaignApi.md#postApiV1ExternalAccountCatalogsByAccountId) | **POST** /2024-10/retail-media/accounts/{accountId}/catalogs | +*CampaignApi* | [**postApiV2ExternalAccountCreativesSearchByAccountId**](docs/CampaignApi.md#postApiV2ExternalAccountCreativesSearchByAccountId) | **POST** /2024-10/retail-media/accounts/{account-id}/creatives/search | +*CampaignApi* | [**postApiV2ExternalCampaignAuctionLineItemsByCampaignId**](docs/CampaignApi.md#postApiV2ExternalCampaignAuctionLineItemsByCampaignId) | **POST** /2024-10/retail-media/campaigns/{campaign-id}/auction-line-items | +*CampaignApi* | [**putApi202110ExternalPreferredLineItemByLineItemId**](docs/CampaignApi.md#putApi202110ExternalPreferredLineItemByLineItemId) | **PUT** /2024-10/retail-media/preferred-line-items/{line-item-id} | +*CampaignApi* | [**putApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId**](docs/CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId) | **PUT** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | +*CampaignApi* | [**putApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId**](docs/CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId) | **PUT** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences | +*CampaignApi* | [**putApi202110ExternalPreferredLineItemTargetingStoresByLineItemId**](docs/CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingStoresByLineItemId) | **PUT** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores | +*CampaignApi* | [**putApi202210ExternalAccountByAccountIdCreativescreativeId**](docs/CampaignApi.md#putApi202210ExternalAccountByAccountIdCreativescreativeId) | **PUT** /2024-10/retail-media/accounts/{account-id}/creatives/{creative-id} | +*CampaignApi* | [**putApi202301ExternalCampaignByCampaignId**](docs/CampaignApi.md#putApi202301ExternalCampaignByCampaignId) | **PUT** /2024-10/retail-media/campaigns/{campaignId} | +*CampaignApi* | [**putApiV2ExternalAuctionLineItemByLineItemId**](docs/CampaignApi.md#putApiV2ExternalAuctionLineItemByLineItemId) | **PUT** /2024-10/retail-media/auction-line-items/{line-item-id} | +*CampaignApi* | [**putApiV2ExternalLineItemBidMultipliersByLineItemId**](docs/CampaignApi.md#putApiV2ExternalLineItemBidMultipliersByLineItemId) | **PUT** /2024-10/retail-media/line-items/{line-item-id}/bid-multipliers | +*CampaignApi* | [**setKeywordBids**](docs/CampaignApi.md#setKeywordBids) | **POST** /2024-10/retail-media/line-items/{id}/keywords/set-bid | +*CampaignApi* | [**submitProposal**](docs/CampaignApi.md#submitProposal) | **POST** /2024-10/retail-media/preferred-deal-line-items/{id}/proposal/submit | +*CampaignApi* | [**unpausePromotedProducts**](docs/CampaignApi.md#unpausePromotedProducts) | **POST** /2024-10/retail-media/line-items/{line-item-id}/products/unpause | +*CampaignApi* | [**updateCampaignBudgetOverrides**](docs/CampaignApi.md#updateCampaignBudgetOverrides) | **PUT** /2024-10/retail-media/campaigns/{campaignId}/campaign-budget-overrides | +*CampaignApi* | [**updateLineItemBudgetOverrides**](docs/CampaignApi.md#updateLineItemBudgetOverrides) | **PUT** /2024-10/retail-media/line-items/{lineItemId}/line-item-budget-overrides | +*GatewayApi* | [**getCurrentApplication**](docs/GatewayApi.md#getCurrentApplication) | **GET** /2024-10/retail-media/me | + + +## Documentation for Models + + - [AddFundsToBalanceV2](docs/AddFundsToBalanceV2.md) + - [AddFundsToBalanceV2Request](docs/AddFundsToBalanceV2Request.md) + - [AddRemoveKeywordModel](docs/AddRemoveKeywordModel.md) + - [AddRemoveKeywordsModel](docs/AddRemoveKeywordsModel.md) + - [AddRemoveKeywordsModelRequest](docs/AddRemoveKeywordsModelRequest.md) + - [AddRemoveKeywordsModelResource](docs/AddRemoveKeywordsModelResource.md) + - [AddToBasketIdsUpdateModel202110Request](docs/AddToBasketIdsUpdateModel202110Request.md) + - [AddToBasketTarget202110Request](docs/AddToBasketTarget202110Request.md) + - [AddToBasketTarget202110Response](docs/AddToBasketTarget202110Response.md) + - [ApplicationSummaryModel](docs/ApplicationSummaryModel.md) + - [ApplicationSummaryModelResource](docs/ApplicationSummaryModelResource.md) + - [ApplicationSummaryModelResponse](docs/ApplicationSummaryModelResponse.md) + - [ApprovalStatusModel](docs/ApprovalStatusModel.md) + - [Asset](docs/Asset.md) + - [AssetResource](docs/AssetResource.md) + - [AssetResponse](docs/AssetResponse.md) + - [AsyncCampaignsReport](docs/AsyncCampaignsReport.md) + - [AsyncCampaignsReportRequest](docs/AsyncCampaignsReportRequest.md) + - [AsyncCampaignsReportResource](docs/AsyncCampaignsReportResource.md) + - [AsyncLineItemsReport](docs/AsyncLineItemsReport.md) + - [AsyncLineItemsReportRequest](docs/AsyncLineItemsReportRequest.md) + - [AsyncLineItemsReportResource](docs/AsyncLineItemsReportResource.md) + - [AsyncReportResponse](docs/AsyncReportResponse.md) + - [AsyncRevenueReport](docs/AsyncRevenueReport.md) + - [AsyncRevenueReportRequest](docs/AsyncRevenueReportRequest.md) + - [AsyncRevenueReportResource](docs/AsyncRevenueReportResource.md) + - [AuctionLineItemCreateModelRequest](docs/AuctionLineItemCreateModelRequest.md) + - [AuctionLineItemPagedListResponse](docs/AuctionLineItemPagedListResponse.md) + - [AuctionLineItemResponse](docs/AuctionLineItemResponse.md) + - [AuctionLineItemUpdateModelRequest](docs/AuctionLineItemUpdateModelRequest.md) + - [AudienceError](docs/AudienceError.md) + - [AudienceIdsUpdateModel202110Request](docs/AudienceIdsUpdateModel202110Request.md) + - [AudienceTarget202110Request](docs/AudienceTarget202110Request.md) + - [AudienceTarget202110Response](docs/AudienceTarget202110Response.md) + - [AudienceWarning](docs/AudienceWarning.md) + - [BalanceCampaign202110ListRequest](docs/BalanceCampaign202110ListRequest.md) + - [BalanceCampaign202110PagedListResponse](docs/BalanceCampaign202110PagedListResponse.md) + - [BalanceHistoryChangeDataCaptureV1](docs/BalanceHistoryChangeDataCaptureV1.md) + - [BalanceResponseV2](docs/BalanceResponseV2.md) + - [BalanceResponseV2Response](docs/BalanceResponseV2Response.md) + - [CampaignAttributesV202301](docs/CampaignAttributesV202301.md) + - [CampaignBudgetOverrides](docs/CampaignBudgetOverrides.md) + - [CampaignDailyBudgetOverride](docs/CampaignDailyBudgetOverride.md) + - [CampaignMonthlyBudgetOverride](docs/CampaignMonthlyBudgetOverride.md) + - [CampaignV202301](docs/CampaignV202301.md) + - [Category202204](docs/Category202204.md) + - [Category202204ListResponse](docs/Category202204ListResponse.md) + - [ChangeDatesOfBalanceV2](docs/ChangeDatesOfBalanceV2.md) + - [ChangeDatesOfBalanceV2Request](docs/ChangeDatesOfBalanceV2Request.md) + - [ChangeDetailsV1](docs/ChangeDetailsV1.md) + - [ChoiceOption](docs/ChoiceOption.md) + - [ChoiceVariableSpecification](docs/ChoiceVariableSpecification.md) + - [ChoiceVariableValue](docs/ChoiceVariableValue.md) + - [ColorVariableValue](docs/ColorVariableValue.md) + - [CommonError](docs/CommonError.md) + - [CommonLineItemPagedListResponse](docs/CommonLineItemPagedListResponse.md) + - [CommonLineItemResponse](docs/CommonLineItemResponse.md) + - [CommonProblem](docs/CommonProblem.md) + - [CommonWarning](docs/CommonWarning.md) + - [CreateBalanceV2](docs/CreateBalanceV2.md) + - [CreateBalanceV2Request](docs/CreateBalanceV2Request.md) + - [Creative202110](docs/Creative202110.md) + - [Creative202110ListResponse](docs/Creative202110ListResponse.md) + - [Creative202210](docs/Creative202210.md) + - [Creative202210Response](docs/Creative202210Response.md) + - [CreativeCreateModel202207](docs/CreativeCreateModel202207.md) + - [CreativeUpdateModel202207](docs/CreativeUpdateModel202207.md) + - [CreativeV2ListResponse](docs/CreativeV2ListResponse.md) + - [CreativeV2Response](docs/CreativeV2Response.md) + - [DailyLineItemBudgetOverride](docs/DailyLineItemBudgetOverride.md) + - [EditableCampaignAttributesV202301](docs/EditableCampaignAttributesV202301.md) + - [ErrorCodeResponse](docs/ErrorCodeResponse.md) + - [ExternalAccount](docs/ExternalAccount.md) + - [ExternalAddToBasketIdsUpdateModel202110](docs/ExternalAddToBasketIdsUpdateModel202110.md) + - [ExternalAddToBasketTarget202110](docs/ExternalAddToBasketTarget202110.md) + - [ExternalAuctionLineItem](docs/ExternalAuctionLineItem.md) + - [ExternalAuctionLineItemCreateModel](docs/ExternalAuctionLineItemCreateModel.md) + - [ExternalAuctionLineItemUpdateModel](docs/ExternalAuctionLineItemUpdateModel.md) + - [ExternalAudienceIdsUpdateModel202110](docs/ExternalAudienceIdsUpdateModel202110.md) + - [ExternalAudienceTarget202110](docs/ExternalAudienceTarget202110.md) + - [ExternalBrand](docs/ExternalBrand.md) + - [ExternalCatalogRequest](docs/ExternalCatalogRequest.md) + - [ExternalCatalogStatus](docs/ExternalCatalogStatus.md) + - [ExternalChoiceVariableValue](docs/ExternalChoiceVariableValue.md) + - [ExternalColorVariableValue](docs/ExternalColorVariableValue.md) + - [ExternalCommonLineItem](docs/ExternalCommonLineItem.md) + - [ExternalCreativeV2](docs/ExternalCreativeV2.md) + - [ExternalFilesVariableValue](docs/ExternalFilesVariableValue.md) + - [ExternalHyperlinkVariableValue](docs/ExternalHyperlinkVariableValue.md) + - [ExternalKeywordTarget202110](docs/ExternalKeywordTarget202110.md) + - [ExternalLineItemBidMultipliersV2](docs/ExternalLineItemBidMultipliersV2.md) + - [ExternalLineItemCappingV2](docs/ExternalLineItemCappingV2.md) + - [ExternalLineItemPageCategoryV2](docs/ExternalLineItemPageCategoryV2.md) + - [ExternalLineItemPageV2](docs/ExternalLineItemPageV2.md) + - [ExternalPageTypeEnvironment](docs/ExternalPageTypeEnvironment.md) + - [ExternalPreferredLineItemCreateModelV2](docs/ExternalPreferredLineItemCreateModelV2.md) + - [ExternalPreferredLineItemUpdateModelV2](docs/ExternalPreferredLineItemUpdateModelV2.md) + - [ExternalPreferredLineItemV2](docs/ExternalPreferredLineItemV2.md) + - [ExternalRetailer](docs/ExternalRetailer.md) + - [ExternalRetailerPages202110](docs/ExternalRetailerPages202110.md) + - [ExternalStoreIdsUpdateModel202110](docs/ExternalStoreIdsUpdateModel202110.md) + - [ExternalStoreTarget202110](docs/ExternalStoreTarget202110.md) + - [ExternalTemplateVariableValue](docs/ExternalTemplateVariableValue.md) + - [ExternalTextVariableValue](docs/ExternalTextVariableValue.md) + - [ExternalVideoVariableValue](docs/ExternalVideoVariableValue.md) + - [FilesVariableValue](docs/FilesVariableValue.md) + - [FilesVariablesSpecification](docs/FilesVariablesSpecification.md) + - [HyperlinkVariableValue](docs/HyperlinkVariableValue.md) + - [InputKeywordsModel](docs/InputKeywordsModel.md) + - [InputResourceOfAuctionLineItemCreateModel](docs/InputResourceOfAuctionLineItemCreateModel.md) + - [InputResourceOfPreferredLineItemCreateModelV2](docs/InputResourceOfPreferredLineItemCreateModelV2.md) + - [JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301](docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md) + - [JsonApiBodyWithIdOfInt64AndAccountAndAccount](docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md) + - [JsonApiBodyWithIdOfInt64AndBrandAndBrand](docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md) + - [JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301](docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md) + - [JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus](docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md) + - [JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2](docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.md) + - [JsonApiBodyWithIdOfInt64AndRetailerAndRetailer](docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md) + - [JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301](docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md) + - [JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest](docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md) + - [JsonApiPageResponseOfAccount](docs/JsonApiPageResponseOfAccount.md) + - [JsonApiPageResponseOfBrand](docs/JsonApiPageResponseOfBrand.md) + - [JsonApiPageResponseOfCampaignV202301](docs/JsonApiPageResponseOfCampaignV202301.md) + - [JsonApiPageResponseOfRetailer](docs/JsonApiPageResponseOfRetailer.md) + - [JsonApiRequestOfCatalogRequest](docs/JsonApiRequestOfCatalogRequest.md) + - [JsonApiSingleResponseOfCampaignV202301](docs/JsonApiSingleResponseOfCampaignV202301.md) + - [JsonApiSingleResponseOfCatalogStatus](docs/JsonApiSingleResponseOfCatalogStatus.md) + - [JsonApiSingleResponseOfLineItemBidMultipliersV2](docs/JsonApiSingleResponseOfLineItemBidMultipliersV2.md) + - [KeywordDataModel](docs/KeywordDataModel.md) + - [KeywordTarget202110Request](docs/KeywordTarget202110Request.md) + - [KeywordTarget202110Response](docs/KeywordTarget202110Response.md) + - [KeywordsModel](docs/KeywordsModel.md) + - [KeywordsModelResource](docs/KeywordsModelResource.md) + - [KeywordsModelResponse](docs/KeywordsModelResponse.md) + - [LineItemBidMultipliersV2Request](docs/LineItemBidMultipliersV2Request.md) + - [LineItemBidMultipliersV2Response](docs/LineItemBidMultipliersV2Response.md) + - [LineItemBudgetOverrides](docs/LineItemBudgetOverrides.md) + - [LineItemProductStatus](docs/LineItemProductStatus.md) + - [MatchTypeModel](docs/MatchTypeModel.md) + - [Metadata](docs/Metadata.md) + - [MonthlyLineItemBudegetOverride](docs/MonthlyLineItemBudegetOverride.md) + - [NegotiationStateModel](docs/NegotiationStateModel.md) + - [NillableString](docs/NillableString.md) + - [PageMetadata](docs/PageMetadata.md) + - [PageOfBalanceHistoryChangeDataCaptureV1](docs/PageOfBalanceHistoryChangeDataCaptureV1.md) + - [PageTypeEnvironment](docs/PageTypeEnvironment.md) + - [PagedResourceCollectionOutcomeOfBalanceResponseV2](docs/PagedResourceCollectionOutcomeOfBalanceResponseV2.md) + - [PostCampaignV202301](docs/PostCampaignV202301.md) + - [PreferredLineItemCreateModelV2Request](docs/PreferredLineItemCreateModelV2Request.md) + - [PreferredLineItemUpdateModelV2Request](docs/PreferredLineItemUpdateModelV2Request.md) + - [PreferredLineItemV2PagedListResponse](docs/PreferredLineItemV2PagedListResponse.md) + - [PreferredLineItemV2Response](docs/PreferredLineItemV2Response.md) + - [ProblemDetails](docs/ProblemDetails.md) + - [ProductMetadata](docs/ProductMetadata.md) + - [ProductResourceOutcome](docs/ProductResourceOutcome.md) + - [PromotedProduct](docs/PromotedProduct.md) + - [PromotedProductResource](docs/PromotedProductResource.md) + - [PromotedProductResourceCollectionInput](docs/PromotedProductResourceCollectionInput.md) + - [PromotedProductResourceCollectionOutcome](docs/PromotedProductResourceCollectionOutcome.md) + - [ProposalStatusModel](docs/ProposalStatusModel.md) + - [ProposalStatusModelResource](docs/ProposalStatusModelResource.md) + - [ProposalStatusModelResponse](docs/ProposalStatusModelResponse.md) + - [PutCampaignV202301](docs/PutCampaignV202301.md) + - [ReportOutcome](docs/ReportOutcome.md) + - [ResourceOfAddFundsToBalanceV2](docs/ResourceOfAddFundsToBalanceV2.md) + - [ResourceOfAuctionLineItem](docs/ResourceOfAuctionLineItem.md) + - [ResourceOfAuctionLineItemUpdateModel](docs/ResourceOfAuctionLineItemUpdateModel.md) + - [ResourceOfBalanceCampaign202110](docs/ResourceOfBalanceCampaign202110.md) + - [ResourceOfBalanceResponseV2](docs/ResourceOfBalanceResponseV2.md) + - [ResourceOfCategory202204](docs/ResourceOfCategory202204.md) + - [ResourceOfChangeDatesOfBalanceV2](docs/ResourceOfChangeDatesOfBalanceV2.md) + - [ResourceOfCommonLineItem](docs/ResourceOfCommonLineItem.md) + - [ResourceOfCreateBalanceV2](docs/ResourceOfCreateBalanceV2.md) + - [ResourceOfCreative202110](docs/ResourceOfCreative202110.md) + - [ResourceOfCreative202210](docs/ResourceOfCreative202210.md) + - [ResourceOfCreativeV2](docs/ResourceOfCreativeV2.md) + - [ResourceOfLineItemBidMultipliersV2](docs/ResourceOfLineItemBidMultipliersV2.md) + - [ResourceOfPreferredLineItemUpdateModelV2](docs/ResourceOfPreferredLineItemUpdateModelV2.md) + - [ResourceOfPreferredLineItemV2](docs/ResourceOfPreferredLineItemV2.md) + - [ResourceOfRetailMediaAccount](docs/ResourceOfRetailMediaAccount.md) + - [ResourceOfTemplate](docs/ResourceOfTemplate.md) + - [ResourceOfUpdateBalanceModelV2](docs/ResourceOfUpdateBalanceModelV2.md) + - [ResourceOutcome](docs/ResourceOutcome.md) + - [ResourceOutcomeOfRetailMediaAccount](docs/ResourceOutcomeOfRetailMediaAccount.md) + - [RetailMediaAccount](docs/RetailMediaAccount.md) + - [RetailMediaBrandAccountCreation](docs/RetailMediaBrandAccountCreation.md) + - [RetailMediaBrands](docs/RetailMediaBrands.md) + - [RetailMediaContactlistAmendment](docs/RetailMediaContactlistAmendment.md) + - [RetailMediaContactlistAmendmentAttributes](docs/RetailMediaContactlistAmendmentAttributes.md) + - [RetailMediaContactlistAmendmentRequest](docs/RetailMediaContactlistAmendmentRequest.md) + - [RetailMediaContactlistOperation](docs/RetailMediaContactlistOperation.md) + - [RetailMediaContactlistOperationResponseAttributes](docs/RetailMediaContactlistOperationResponseAttributes.md) + - [RetailMediaContactlistOperationResponseAttributesAttributes](docs/RetailMediaContactlistOperationResponseAttributesAttributes.md) + - [RetailMediaSeller](docs/RetailMediaSeller.md) + - [RetailMediaSellerAccountCreation](docs/RetailMediaSellerAccountCreation.md) + - [ReviewStateModel](docs/ReviewStateModel.md) + - [RmAlgebraNodeV1](docs/RmAlgebraNodeV1.md) + - [RmAudienceEntityV1](docs/RmAudienceEntityV1.md) + - [RmAudienceEntityV1Resource](docs/RmAudienceEntityV1Resource.md) + - [RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse](docs/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md) + - [RmAudienceSearchEntityV1](docs/RmAudienceSearchEntityV1.md) + - [RmAudienceSearchEntityV1Resource](docs/RmAudienceSearchEntityV1Resource.md) + - [RmAudienceSearchInputV1](docs/RmAudienceSearchInputV1.md) + - [RmAudienceSearchMetadataV1](docs/RmAudienceSearchMetadataV1.md) + - [RmAudienceSegmentBulkCreateInputV1](docs/RmAudienceSegmentBulkCreateInputV1.md) + - [RmAudienceSegmentBulkDeleteInputV1](docs/RmAudienceSegmentBulkDeleteInputV1.md) + - [RmAudienceSegmentBulkUpdateInputV1](docs/RmAudienceSegmentBulkUpdateInputV1.md) + - [RmAudienceSegmentCreateEntityV1](docs/RmAudienceSegmentCreateEntityV1.md) + - [RmAudienceSegmentCreateEntityV1Resource](docs/RmAudienceSegmentCreateEntityV1Resource.md) + - [RmAudienceSegmentDeleteEntityV1Resource](docs/RmAudienceSegmentDeleteEntityV1Resource.md) + - [RmAudienceSegmentEntityV1](docs/RmAudienceSegmentEntityV1.md) + - [RmAudienceSegmentEntityV1ListResponse](docs/RmAudienceSegmentEntityV1ListResponse.md) + - [RmAudienceSegmentEntityV1Resource](docs/RmAudienceSegmentEntityV1Resource.md) + - [RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse](docs/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.md) + - [RmAudienceSegmentIdEntityV1ListResponse](docs/RmAudienceSegmentIdEntityV1ListResponse.md) + - [RmAudienceSegmentIdEntityV1Resource](docs/RmAudienceSegmentIdEntityV1Resource.md) + - [RmAudienceSegmentSearchEntityV1](docs/RmAudienceSegmentSearchEntityV1.md) + - [RmAudienceSegmentSearchEntityV1Resource](docs/RmAudienceSegmentSearchEntityV1Resource.md) + - [RmAudienceSegmentSearchInputV1](docs/RmAudienceSegmentSearchInputV1.md) + - [RmAudienceSegmentSearchMetadataV1](docs/RmAudienceSegmentSearchMetadataV1.md) + - [RmAudienceSegmentUpdateEntityV1](docs/RmAudienceSegmentUpdateEntityV1.md) + - [RmAudienceSegmentUpdateEntityV1Resource](docs/RmAudienceSegmentUpdateEntityV1Resource.md) + - [RmContactListCreateV1](docs/RmContactListCreateV1.md) + - [RmContactListStatisticsEntityV1](docs/RmContactListStatisticsEntityV1.md) + - [RmContactListStatisticsEntityV1Resource](docs/RmContactListStatisticsEntityV1Resource.md) + - [RmContactListStatisticsEntityV1Response](docs/RmContactListStatisticsEntityV1Response.md) + - [RmContactListV1](docs/RmContactListV1.md) + - [RmEventsV1](docs/RmEventsV1.md) + - [RmcaCommonProblem](docs/RmcaCommonProblem.md) + - [Section](docs/Section.md) + - [SetBidModel](docs/SetBidModel.md) + - [SetBidsModel](docs/SetBidsModel.md) + - [SetBidsModelRequest](docs/SetBidsModelRequest.md) + - [SetBidsModelResource](docs/SetBidsModelResource.md) + - [StatusResponse](docs/StatusResponse.md) + - [StatusResponseResource](docs/StatusResponseResource.md) + - [StoreIdsUpdateModel202110Request](docs/StoreIdsUpdateModel202110Request.md) + - [StoreTarget202110Request](docs/StoreTarget202110Request.md) + - [StoreTarget202110Response](docs/StoreTarget202110Response.md) + - [Template](docs/Template.md) + - [TemplateListResponse](docs/TemplateListResponse.md) + - [TemplateResponse](docs/TemplateResponse.md) + - [TemplateVariable](docs/TemplateVariable.md) + - [TemplateVariableValue](docs/TemplateVariableValue.md) + - [TextVariableSpecification](docs/TextVariableSpecification.md) + - [TextVariableValue](docs/TextVariableValue.md) + - [UpdateBalanceModelV2](docs/UpdateBalanceModelV2.md) + - [UpdateBalanceModelV2Request](docs/UpdateBalanceModelV2Request.md) + - [ValueResourceCollectionInputOfRetailMediaSeller](docs/ValueResourceCollectionInputOfRetailMediaSeller.md) + - [ValueResourceCollectionOutcomeOfRetailMediaSeller](docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md) + - [ValueResourceInputOfCampaignBudgetOverrides](docs/ValueResourceInputOfCampaignBudgetOverrides.md) + - [ValueResourceInputOfLineItemBudgetOverrides](docs/ValueResourceInputOfLineItemBudgetOverrides.md) + - [ValueResourceInputOfRetailMediaBrandAccountCreation](docs/ValueResourceInputOfRetailMediaBrandAccountCreation.md) + - [ValueResourceInputOfRetailMediaBrands](docs/ValueResourceInputOfRetailMediaBrands.md) + - [ValueResourceInputOfRetailMediaSellerAccountCreation](docs/ValueResourceInputOfRetailMediaSellerAccountCreation.md) + - [ValueResourceOfCampaignBudgetOverrides](docs/ValueResourceOfCampaignBudgetOverrides.md) + - [ValueResourceOfLineItemBudgetOverrides](docs/ValueResourceOfLineItemBudgetOverrides.md) + - [ValueResourceOfRetailMediaBrandAccountCreation](docs/ValueResourceOfRetailMediaBrandAccountCreation.md) + - [ValueResourceOfRetailMediaBrands](docs/ValueResourceOfRetailMediaBrands.md) + - [ValueResourceOfRetailMediaSeller](docs/ValueResourceOfRetailMediaSeller.md) + - [ValueResourceOfRetailMediaSellerAccountCreation](docs/ValueResourceOfRetailMediaSellerAccountCreation.md) + - [ValueResourceOutcomeOfCampaignBudgetOverrides](docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md) + - [ValueResourceOutcomeOfLineItemBudgetOverrides](docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md) + - [ValueTypeResourceOfAddToBasketIdsUpdateModel202110](docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md) + - [ValueTypeResourceOfAddToBasketTarget202110](docs/ValueTypeResourceOfAddToBasketTarget202110.md) + - [ValueTypeResourceOfAudienceIdsUpdateModel202110](docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md) + - [ValueTypeResourceOfAudienceTarget202110](docs/ValueTypeResourceOfAudienceTarget202110.md) + - [ValueTypeResourceOfKeywordTarget202110](docs/ValueTypeResourceOfKeywordTarget202110.md) + - [ValueTypeResourceOfStoreIdsUpdateModel202110](docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md) + - [ValueTypeResourceOfStoreTarget202110](docs/ValueTypeResourceOfStoreTarget202110.md) + + +## Recommendation + +It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues. + +## Disclaimer + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/sdks/retailmedia_2023-07/api/openapi.yaml b/sdks/retailmedia_2024-10/api/openapi.yaml similarity index 66% rename from sdks/retailmedia_2023-07/api/openapi.yaml rename to sdks/retailmedia_2024-10/api/openapi.yaml index be2ced43..d33a1abc 100644 --- a/sdks/retailmedia_2023-07/api/openapi.yaml +++ b/sdks/retailmedia_2024-10/api/openapi.yaml @@ -2,13 +2,125 @@ openapi: 3.0.1 info: description: Criteo API - RetailMedia title: Criteo API - version: 2023-07 + version: 2024-10 servers: - url: https://api.criteo.com security: - oauth: [] paths: - /2023-07/retail-media/me: + /2024-10/retail-media/audience-segments/{audience-segment-id}/contact-list/add-remove: + post: + description: "Add/remove identifiers to or from a retail-media contact list\ + \ audience-segment, with external audience segment id." + operationId: updateContactListIdentifiers + parameters: + - description: "The id of the contact list audience-segment to amend, we only\ + \ accept external Id here" + explode: false + in: path + name: audience-segment-id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RetailMediaContactlistAmendmentRequest' + required: true + x-bodyName: body + responses: + "200": + content: + application/json: + example: + data: + type: AddRemoveContactlistResult + attributes: + contactListId: 568708742535471104 + operation: add + requestDate: 2018-12-10T10:00:50.0000000+00:00 + identifierType: madid + nbValidIdentifiers: 7343 + nbInvalidIdentifiers: 13 + sampleInvalidIdentifiers: + - InvalidIdentifier + errors: + - traceId: 667ac683ac797284.667ac683ac797284<:667ac683ac797284 + type: availability + code: internal-error + instance: "" + title: Internal error + warnings: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: deprecation + code: deprecated-field + instance: /audiences/314195 + title: '''nbValidIds'' is deprecated' + detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers' + schema: + $ref: '#/components/schemas/RetailMediaContactlistOperation' + description: Summary of created request + "403": + content: + application/json: + example: + errors: + - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9 + type: validation + code: audience-invalid + instance: /audience/314159 + title: Audience is invalid + detail: "Audience is not found, please choose a valid audience" + warnings: [] + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Forbidden + tags: + - Audience + x-content-type: application/json + x-accepts: application/json + /2024-10/retail-media/audience-segments/{audience-segment-id}/contact-list/clear: + post: + description: "Delete all identifiers from a retail-media contact list audience-segment,\ + \ with external audience segment id." + operationId: DeleteContactListIdentifiers + parameters: + - description: "The id of the contact list audience-segment to amend, we only\ + \ accept external Id here" + explode: false + in: path + name: audience-segment-id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "204": + content: + application/json: {} + description: The Contact List identifiers were deleted + "403": + content: + application/json: + example: + errors: + - traceId: 667ac683ac797284.667ac683ac797284<:667ac683ac797284 + type: availability + code: internal-error + instance: "" + title: Internal error + warnings: [] + schema: + $ref: '#/components/schemas/ErrorCodeResponse' + description: Forbidden + tags: + - Audience + x-accepts: application/json + /2024-10/retail-media/me: get: description: Get information about the currently logged application operationId: GetCurrentApplication @@ -26,7 +138,7 @@ paths: tags: - Gateway x-accepts: application/json - /2023-07/retail-media/accounts: + /2024-10/retail-media/accounts: get: description: Gets page of account objects that the current user can access operationId: AccountsApi_GetApiV1ExternalAccounts @@ -82,7 +194,7 @@ paths: tags: - Accounts x-accepts: application/json - /2023-07/retail-media/accounts/{accountId}/brands: + /2024-10/retail-media/accounts/{accountId}/brands: get: description: Gets page of retailer objects that are associated with the given account @@ -148,7 +260,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/accounts/{accountId}/retailers: + /2024-10/retail-media/accounts/{accountId}/retailers: get: description: Gets page of retailer objects that are associated with the given account @@ -214,7 +326,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/assets: + /2024-10/retail-media/assets: post: description: Creates an asset operationId: CreateAsset @@ -240,66 +352,51 @@ paths: - Campaign x-content-type: multipart/form-data x-accepts: application/json - /2023-07/retail-media/accounts/{accountId}/audiences: - get: - description: Get a page of Audiences. (deprecated Public API) - operationId: LegacyGetAudienceV1 + /2024-10/retail-media/accounts/{account-id}/audience-segments: + patch: + description: "Updates the properties of all segments with a valid configuration,\ + \ and returns the full segments. For those that cannot be updated, one or\ + \ multiple errors are returned." + operationId: bulkUpdateAudienceSegments parameters: - - description: ID of the account to which this audience belongs. + - description: Account id explode: false in: path - name: accountId + name: account-id required: true schema: - format: int64 - type: integer + type: string style: simple - - description: "Limits results to the entity IDs specified; parameter key is\ - \ repeated, eg. limitToId=1&limitToId=2" - explode: true - in: query - name: limitToId - required: false - schema: - items: - format: int32 - type: integer - type: array - style: form - - description: Specifies the maximum number of entities returned in a single - page; defaults to 25 entities per page. - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - - description: Returns the specified page of results given a pageSize; pages - are 0-indexed. - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentBulkUpdateInputV1' + application/json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentBulkUpdateInputV1' + text/json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentBulkUpdateInputV1' + application/*+json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentBulkUpdateInputV1' + description: Segment Update request + required: true + x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1ListResponse' + $ref: '#/components/schemas/RmAudienceSegmentEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1ListResponse' + $ref: '#/components/schemas/RmAudienceSegmentEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1ListResponse' - description: A page of audiences for the supplied account or shared by related - retailers. + $ref: '#/components/schemas/RmAudienceSegmentEntityV1ListResponse' + description: Success or partial success "400": content: text/plain: {} @@ -320,57 +417,118 @@ paths: description: The API client is not authorized to access this resource. tags: - Audience + x-content-type: application/json-patch+json x-accepts: application/json + /2024-10/retail-media/accounts/{account-id}/audience-segments/create: post: - deprecated: true - description: Create an Audience (deprecated Public API) - operationId: LegacyCreateAudienceV1 + description: "Creates all segments with a valid configuration, and returns the\ + \ full segments. For those that cannot be created, one or multiple errors\ + \ are returned." + operationId: bulkCreateAudienceSegments parameters: - - description: ID of the account to which this audience belongs. + - description: Account Id explode: false in: path - name: accountId + name: account-id required: true schema: - format: int64 - type: integer + type: string style: simple requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateInputEntityV1' + $ref: '#/components/schemas/RmAudienceSegmentBulkCreateInputV1' application/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateInputEntityV1' + $ref: '#/components/schemas/RmAudienceSegmentBulkCreateInputV1' text/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateInputEntityV1' + $ref: '#/components/schemas/RmAudienceSegmentBulkCreateInputV1' application/*+json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateInputEntityV1' - description: Audience creation request. + $ref: '#/components/schemas/RmAudienceSegmentBulkCreateInputV1' + description: Segment creation parameter required: true - x-bodyName: body + x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV1Response' + $ref: '#/components/schemas/RmAudienceSegmentEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV1Response' + $ref: '#/components/schemas/RmAudienceSegmentEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV1Response' - description: Success - "201": + $ref: '#/components/schemas/RmAudienceSegmentEntityV1ListResponse' + description: Success or partial success + "400": + content: + text/plain: {} + application/json: {} + text/json: {} + description: Bad request + "401": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The API client is not properly authenticated. + "403": content: text/plain: {} application/json: {} text/json: {} - description: The audience that was just created. + description: The API client is not authorized to access this resource. + tags: + - Audience + x-content-type: application/json-patch+json + x-accepts: application/json + /2024-10/retail-media/accounts/{account-id}/audience-segments/delete: + post: + description: Delete the segments associated to the given audience IDs. + operationId: bulkDeleteAudienceSegments + parameters: + - description: Account id + explode: false + in: path + name: account-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentBulkDeleteInputV1' + application/json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentBulkDeleteInputV1' + text/json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentBulkDeleteInputV1' + application/*+json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentBulkDeleteInputV1' + description: Segment delete request. + required: true + x-bodyName: request + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/RmAudienceSegmentIdEntityV1ListResponse' + application/json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentIdEntityV1ListResponse' + text/json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentIdEntityV1ListResponse' + description: Success or partial success "400": content: text/plain: {} @@ -393,66 +551,129 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/retail-media/v2/accounts/{accountId}/audiences: - get: - description: Get a page of Audiences. (deprecated Public API) - operationId: LegacyGetAudienceV2 + /2024-10/retail-media/accounts/{account-id}/audience-segments/search: + post: + description: "Returns a list of segments that match the provided filters. If\ + \ present, the filters are AND'ed together when applied." + operationId: searchAudienceSegments parameters: - - description: ID of the account to which this audience belongs. + - description: Account Id explode: false in: path - name: accountId + name: account-id required: true schema: - format: int64 - type: integer + type: string style: simple - - description: "Limits results to the entity IDs specified; parameter key is\ - \ repeated, eg. limitToId=1&limitToId=2" - explode: true - in: query - name: limitToId - required: false - schema: - items: - format: int32 - type: integer - type: array - style: form - - description: Specifies the maximum number of entities returned in a single - page; defaults to 25 entities per page. + - description: The number of elements to be returned. The default is 50 and + the maximum is 100. explode: true in: query - name: pageSize + name: limit required: false schema: + default: 50 format: int32 + maximum: 100 + minimum: 0 type: integer style: form - - description: Returns the specified page of results given a pageSize; pages - are 0-indexed. + - description: The (zero-based) offset into the collection. The default is 0. explode: true in: query - name: pageIndex + name: offset required: false schema: + default: 0 format: int32 type: integer style: form + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentSearchInputV1' + application/json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentSearchInputV1' + text/json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentSearchInputV1' + application/*+json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentSearchInputV1' + description: Segment search filters. + required: true + x-bodyName: request + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse' + application/json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse' + text/json: + schema: + $ref: '#/components/schemas/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse' + description: Success or partial success + "400": + content: + text/plain: {} + application/json: {} + text/json: {} + description: Bad request + "401": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The API client is not properly authenticated. + "403": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The API client is not authorized to access this resource. + tags: + - Audience + x-content-type: application/json-patch+json + x-accepts: application/json + /2024-10/retail-media/accounts/{account-id}/audience-segments/{audience-segment-id}/contact-list: + get: + description: Returns the statistics of a contact list segment. + operationId: getAudienceSegmentContactListStatistics + parameters: + - description: Account Id + explode: false + in: path + name: account-id + required: true + schema: + type: string + style: simple + - description: Segment Id. + explode: false + in: path + name: audience-segment-id + required: true + schema: + type: string + style: simple responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV2ListResponse' + $ref: '#/components/schemas/RmContactListStatisticsEntityV1Response' application/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV2ListResponse' + $ref: '#/components/schemas/RmContactListStatisticsEntityV1Response' text/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV2ListResponse' - description: A page of audiences for the supplied account or shared by related - retailers. + $ref: '#/components/schemas/RmContactListStatisticsEntityV1Response' + description: Success or partial success "400": content: text/plain: {} @@ -474,56 +695,73 @@ paths: tags: - Audience x-accepts: application/json + /2024-10/retail-media/accounts/{account-id}/audiences/search: post: - deprecated: true - description: Create an Audience (deprecated Public API) - operationId: LegacyUpdateAudienceV2 + description: "Returns a list of audiences that match the provided filters. If\ + \ present, the filters are AND'ed together when applied." + operationId: searchAudiences parameters: - - description: ID of the account to which this audience belongs. + - description: Account Id explode: false in: path - name: accountId + name: account-id required: true schema: - format: int64 - type: integer + type: string style: simple + - description: The number of elements to be returned. The default is 50 and + the maximum is 100. + explode: true + in: query + name: limit + required: false + schema: + default: 50 + format: int32 + maximum: 100 + minimum: 0 + type: integer + style: form + - description: The (zero-based) offset into the collection. The default is 0. + explode: true + in: query + name: offset + required: false + schema: + default: 0 + format: int32 + type: integer + style: form requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateInputEntityV2' + $ref: '#/components/schemas/RmAudienceSearchInputV1' application/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateInputEntityV2' + $ref: '#/components/schemas/RmAudienceSearchInputV1' text/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateInputEntityV2' + $ref: '#/components/schemas/RmAudienceSearchInputV1' application/*+json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateInputEntityV2' - description: Audience creation request. + $ref: '#/components/schemas/RmAudienceSearchInputV1' + description: Audience search filters. required: true - x-bodyName: body + x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV2Response' + $ref: '#/components/schemas/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse' application/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV2Response' + $ref: '#/components/schemas/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse' text/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV2Response' - description: Success - "201": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The audience that was just created. + $ref: '#/components/schemas/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse' + description: Success or partial success "400": content: text/plain: {} @@ -546,7 +784,7 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/retail-media/line-items/{id}/keywords: + /2024-10/retail-media/line-items/{id}/keywords: get: description: Fetch keywords associated with the specified line item operationId: FetchKeywords @@ -575,7 +813,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/line-items/{id}/keywords/add-remove: + /2024-10/retail-media/line-items/{id}/keywords/add-remove: post: description: Add or Remove keywords from the line item in bulk operationId: AddRemoveKeywords @@ -610,7 +848,7 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/line-items/{id}/keywords/set-bid: + /2024-10/retail-media/line-items/{id}/keywords/set-bid: post: description: Set bid overrides for associated keywords to the given line item in bulk @@ -646,7 +884,218 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-deal-line-items/{id}/proposal: + /2024-10/retail-media/line-items/{line-item-id}/products: + get: + description: Retrieve a page of promoted products for a line item + operationId: FetchPromotedProducts + parameters: + - description: ID of the line item. + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + - description: Offset of the first item to fetch. Defaults to zero. + explode: true + in: query + name: offset + required: false + schema: + format: int32 + type: integer + style: form + - description: Maximum page size to fetch. Defaults to 500. + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: "A comma separated list of attribute names from the response\ + \ model to compute and return.\r\n Valid values are `status`\ + \ and `bidOverride` in any order. Defaults to `status`." + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProductResourceCollectionOutcome' + description: Promoted products associated with the line item + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductResourceOutcome' + description: Invalid external line item ID + tags: + - Campaign + x-accepts: application/json + /2024-10/retail-media/line-items/{line-item-id}/products/append: + post: + description: Append a collection of promoted products to a line item + operationId: AppendPromotedProducts + parameters: + - description: ID of the line item + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProductResourceCollectionInput' + description: "Request body whose {data} contains an array of promoted products." + responses: + "204": + description: Promoted products appended to the line item + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductResourceOutcome' + description: Invalid request body + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductResourceOutcome' + description: Invalid external line item ID + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2024-10/retail-media/line-items/{line-item-id}/products/delete: + post: + description: Remove a collection of promoted products from a line item + operationId: DeletePromotedProducts + parameters: + - description: ID of the line item + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProductResourceCollectionInput' + description: "Request body whose {data} contains an array of promoted products." + responses: + "204": + description: Promoted products removed from the line item + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductResourceOutcome' + description: Invalid request body + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductResourceOutcome' + description: Invalid external line item ID + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2024-10/retail-media/line-items/{line-item-id}/products/pause: + post: + description: Pause a collection of promoted products associated with a line + item + operationId: PausePromotedProducts + parameters: + - description: ID of the line item + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProductResourceCollectionInput' + description: "Request body whose {data} contains an array of promoted products." + responses: + "204": + description: Promoted products paused + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductResourceOutcome' + description: Invalid request body + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductResourceOutcome' + description: Invalid external line item ID + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2024-10/retail-media/line-items/{line-item-id}/products/unpause: + post: + description: Un-pause a collection of promoted products associated with a line + item + operationId: UnpausePromotedProducts + parameters: + - description: ID of the line item + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProductResourceCollectionInput' + description: "Request body whose {data} contains an array of promoted products." + responses: + "204": + description: Promoted products un-paused + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductResourceOutcome' + description: Invalid request body + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductResourceOutcome' + description: Invalid external line item ID + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2024-10/retail-media/preferred-deal-line-items/{id}/proposal: get: description: "Includes the state of the proposal, the status of the booking\ \ and approval, as well as any comments explaining why it might have been\ @@ -683,7 +1132,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/preferred-deal-line-items/{id}/proposal/submit: + /2024-10/retail-media/preferred-deal-line-items/{id}/proposal/submit: post: description: Only the components of the Line Item that are in a valid state will be reviewed. @@ -719,7 +1168,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/accounts/{account-id}/creatives: + /2024-10/retail-media/accounts/{account-id}/creatives: get: description: Get account creatives operationId: CreativesApi_GetApi202110ExternalAccountCreativesByAccountId @@ -775,10 +1224,10 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/accounts/{account-id}/creatives/search: + /2024-10/retail-media/accounts/{account-id}/creatives/search: post: description: Get account creatives - operationId: CreativesApi_PostApi202210ExternalAccountCreativesSearchByAccountId + operationId: PostApiV2ExternalAccountCreativesSearchByAccountId parameters: - description: External account id to retrieve creatives for explode: false @@ -803,17 +1252,23 @@ paths: responses: "200": content: + text/plain: + schema: + $ref: '#/components/schemas/CreativeV2ListResponse' application/json: schema: - $ref: '#/components/schemas/Creative202210ListResponse' + $ref: '#/components/schemas/CreativeV2ListResponse' + text/json: + schema: + $ref: '#/components/schemas/CreativeV2ListResponse' description: Creatives found tags: - Campaign x-accepts: application/json - /2023-07/retail-media/accounts/{account-id}/creatives/{creative-id}: + /2024-10/retail-media/accounts/{account-id}/creatives/{creative-id}: get: description: Get the specified creative - operationId: "CreativesApi_GetApi202210ExternalAccountByAccountId}Creatives{creativeId" + operationId: "GetApiV2ExternalAccountByAccountId}Creatives{creativeId" parameters: - description: External account id to retrieve creatives for explode: false @@ -836,9 +1291,15 @@ paths: responses: "200": content: + text/plain: + schema: + $ref: '#/components/schemas/CreativeV2Response' application/json: schema: - $ref: '#/components/schemas/Creative202210Response' + $ref: '#/components/schemas/CreativeV2Response' + text/json: + schema: + $ref: '#/components/schemas/CreativeV2Response' description: Creatives found tags: - Campaign @@ -888,7 +1349,7 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/accounts/{accountId}/catalogs: + /2024-10/retail-media/accounts/{accountId}/catalogs: post: description: Create a request for a Catalog available to the indicated account. operationId: CatalogApi_PostApiV1ExternalAccountCatalogsByAccountId @@ -920,7 +1381,7 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/catalogs/{catalogId}/output: + /2024-10/retail-media/catalogs/{catalogId}/output: get: description: "Output the indicated catalog. Catalogs are only available for\ \ retrieval when their associated status request\r\nis at a Success status.\r\ @@ -957,7 +1418,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/catalogs/{catalogId}/status: + /2024-10/retail-media/catalogs/{catalogId}/status: get: description: Check the status of a catalog request. operationId: CatalogApi_GetApiV1ExternalCatalogStatusByCatalogId @@ -981,7 +1442,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/categories: + /2024-10/retail-media/categories: get: description: Endpoint to search categories by text and retailer. operationId: CategorySearchApi_GetApi202204ExternalCategories @@ -1043,7 +1504,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/categories/{categoryId}: + /2024-10/retail-media/categories/{categoryId}: get: description: Endpoint to search for a specific category by categoryId. operationId: CategorySearchApi_GetApi202204ExternalCategorieByCategoryId @@ -1076,7 +1537,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/retailers/{retailer-id}/templates: + /2024-10/retail-media/retailers/{retailer-id}/templates: get: description: Get retailer creative templates operationId: CreativesApi_GetApi202207ExternalRetailerTemplatesByRetailerId @@ -1101,7 +1562,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/retailers/{retailer-id}/templates/{template-id}: + /2024-10/retail-media/retailers/{retailer-id}/templates/{template-id}: get: description: Gets the template for the specified retailer id and template id operationId: "CreativesApi_GetApi202207ExternalRetailerByRetailerId}Templates{templateId" @@ -1136,7 +1597,7 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/retailers/{retailerId}/pages: + /2024-10/retail-media/retailers/{retailerId}/pages: get: description: Get the page types available for the given retailer operationId: RetailerApi_GetApi202110ExternalRetailerPagesByRetailerId @@ -1161,9 +1622,11 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/reports/campaigns: + /2024-10/retail-media/reports/campaigns: post: - description: Return an asynchronous Campaigns Report + description: |- + Return an asynchronous Campaigns Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncCampaignsReport requestBody: content: @@ -1222,9 +1685,11 @@ paths: - Analytics x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/retail-media/reports/line-items: + /2024-10/retail-media/reports/line-items: post: - description: Returns an asynchronous Line Items Report + description: |- + Returns an asynchronous Line Items Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncLineItemsReport requestBody: content: @@ -1283,7 +1748,70 @@ paths: - Analytics x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/retail-media/reports/{reportId}/output: + /2024-10/retail-media/reports/revenue: + post: + description: |- + Returns an asynchronous Revenue Report + This endpoint is subject to specific rate limits. + operationId: GenerateAsyncRevenueReport + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/AsyncRevenueReportRequest' + application/json: + schema: + $ref: '#/components/schemas/AsyncRevenueReportRequest' + text/json: + schema: + $ref: '#/components/schemas/AsyncRevenueReportRequest' + application/*+json: + schema: + $ref: '#/components/schemas/AsyncRevenueReportRequest' + required: true + x-bodyName: request + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/AsyncReportResponse' + application/json: + schema: + $ref: '#/components/schemas/AsyncReportResponse' + text/json: + schema: + $ref: '#/components/schemas/AsyncReportResponse' + description: Success + "400": + content: + text/plain: + schema: + $ref: '#/components/schemas/ReportOutcome' + application/json: + schema: + $ref: '#/components/schemas/ReportOutcome' + text/json: + schema: + $ref: '#/components/schemas/ReportOutcome' + description: Bad Request + "403": + content: + text/plain: + schema: + $ref: '#/components/schemas/ReportOutcome' + application/json: + schema: + $ref: '#/components/schemas/ReportOutcome' + text/json: + schema: + $ref: '#/components/schemas/ReportOutcome' + description: Forbidden + tags: + - Analytics + x-content-type: application/json-patch+json + x-accepts: application/json + /2024-10/retail-media/reports/{reportId}/output: get: description: Returns the output of an async report operationId: GetAsyncExportOutput @@ -1336,7 +1864,7 @@ paths: tags: - Analytics x-accepts: application/json - /2023-07/retail-media/reports/{reportId}/status: + /2024-10/retail-media/reports/{reportId}/status: get: description: Returns the status of an async report operationId: GetAsyncExportStatus @@ -1389,430 +1917,402 @@ paths: tags: - Analytics x-accepts: application/json - /2023-07/retail-media/accounts/{account-id}/balances: - get: - description: Gets page of balance objects for the given account id - operationId: BalancesApi_GetApi202110ExternalAccountBalancesByAccountId + /2024-10/retail-media/account-management/accounts/{accountId}/brands/add: + post: + description: Add brands to an account + operationId: AddBrands parameters: - - description: The account to get balances for + - description: the account id to update explode: false in: path - name: account-id + name: accountId required: true schema: type: string style: simple - x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrands' + application/json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrands' + text/json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrands' + application/*+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrands' + description: brands to associate to account + x-bodyName: brands + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ValueResourceOfRetailMediaBrands' + description: Success + tags: + - Accounts + x-content-type: application/json-patch+json + x-accepts: application/json + /2024-10/retail-media/account-management/accounts/{accountId}/brands/remove: + post: + description: Remove a brand from an account + operationId: RemoveBrands + parameters: + - description: The account id to update + explode: false + in: path + name: accountId + required: true schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false + type: string + style: simple + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrands' + application/json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrands' + text/json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrands' + application/*+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrands' + description: Brands to remove from account + x-bodyName: brands responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Balance202110PagedListResponse' + $ref: '#/components/schemas/ValueResourceOfRetailMediaBrands' description: Success tags: - - Balance + - Accounts + x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/retail-media/accounts/{account-id}/campaigns: - get: - description: "Get all the editable and creatable campaign attributes including\ - \ all types of budgets for each campaigns in relation to the account id, limited\ - \ by the campaign ids." - operationId: Campaigns_GetApi202301ExternalAccountCampaignsByAccountId + /2024-10/retail-media/account-management/accounts/{accountId}/create-brand-account: + post: + description: Creates a new child Demand Brand Account for the provided parent + private market account + operationId: CreatePrivateMarketDemandBrandAccount parameters: - - description: The account to request the campaign for. + - description: Account Id for the parent private market account explode: false in: path - name: account-id + name: accountId required: true schema: type: string style: simple - x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - default: 0 - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - default: 25 - format: int32 - type: integer - style: form - x-nullable: false + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrandAccountCreation' + application/json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrandAccountCreation' + text/json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrandAccountCreation' + application/*+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaBrandAccountCreation' + description: Initial creation and configuration options for the new account + x-bodyName: accountDetails responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfCampaignV202301' + $ref: '#/components/schemas/ResourceOutcomeOfRetailMediaAccount' description: Success tags: - - Campaign + - Accounts + x-content-type: application/json-patch+json x-accepts: application/json + /2024-10/retail-media/account-management/accounts/{accountId}/create-seller-account: post: - description: Create a campaign and assign budgets for the given account id with - creatable campaign attributes given in request body constrained by business - validation. The validation error includes details and source of errors. Pacing - can be adjusted and affected by the status of the campaign and the days left - on the campaign if auto daily pacing is enabled. - operationId: Campaigns_PostApi202301ExternalAccountCampaignsByAccountId + description: Creates a new child Demand Seller Account for the provided parent + private market account + operationId: CreatePrivateMarketDemandSellerAccount parameters: - - description: The account to request the campaign for. + - description: Account Id for the parent private market account explode: false in: path - name: account-id + name: accountId required: true schema: type: string style: simple - x-nullable: false requestBody: content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaSellerAccountCreation' application/json: schema: - $ref: '#/components/schemas/PostCampaignV202301' - description: Creatable campaign attributes - x-nullable: false - x-bodyName: campaign + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaSellerAccountCreation' + text/json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaSellerAccountCreation' + application/*+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfRetailMediaSellerAccountCreation' + description: Initial creation and configuration options for the new account + x-bodyName: accountDetails responses: "201": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' + $ref: '#/components/schemas/ResourceOutcomeOfRetailMediaAccount' description: Success tags: - - Campaign - x-content-type: application/json + - Accounts + x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/retail-media/accounts/{account-id}/line-items: - get: - description: Gets page of line item objects for the given account id - operationId: GetApiV2ExternalAccountLineItemsByAccountId + /2024-10/retail-media/account-management/accounts/{accountId}/sellers: + put: + description: replace the sellers assoiated with an account + operationId: UpdateSellers parameters: - - description: The given account id + - description: the account id to update explode: false in: path - name: account-id + name: accountId required: true schema: type: string style: simple - x-nullable: false - - description: The campaign ids that you would like to limit your result set - to - explode: true - in: query - name: limitToCampaignId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The campaign types that you would like to limit your result set - to - explode: true - in: query - name: limitToType - required: false + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/ValueResourceCollectionInputOfRetailMediaSeller' + application/json: + schema: + $ref: '#/components/schemas/ValueResourceCollectionInputOfRetailMediaSeller' + text/json: + schema: + $ref: '#/components/schemas/ValueResourceCollectionInputOfRetailMediaSeller' + application/*+json: + schema: + $ref: '#/components/schemas/ValueResourceCollectionInputOfRetailMediaSeller' + description: sellers to associate + x-bodyName: sellers + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ValueResourceCollectionOutcomeOfRetailMediaSeller' + description: Success + tags: + - Accounts + x-content-type: application/json-patch+json + x-accepts: application/json + /2024-10/retail-media/balances/{balanceId}/history: + get: + description: Gets the balance's historical change data. + operationId: GetBalanceHistory + parameters: + - description: Balance id. + explode: false + in: path + name: balanceId + required: true schema: - enum: - - Unknown - - Auction - - Preferred type: string - style: form - x-nullable: true - - description: The ids that you would like to limit your result set to + style: simple + - description: The (zero-based) starting offset in the collection. explode: true in: query - name: limitToId + name: offset required: false schema: - items: - type: string - type: array + default: 0 + format: int32 + maximum: 2147483647 + minimum: 0 + type: integer style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size + - description: The number of elements to be returned. explode: true in: query - name: pageIndex + name: limit required: false schema: + default: 25 format: int32 + maximum: 100 + minimum: 1 type: integer style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request + - description: Comma separated change types string that will be queried. explode: true in: query - name: pageSize + name: limitToChangeTypes required: false schema: - format: int32 - type: integer + type: string style: form - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CommonLineItemPagedListResponse' + $ref: '#/components/schemas/PageOfBalanceHistoryChangeDataCaptureV1' description: Success tags: - - Campaign + - Balance x-accepts: application/json - /2023-07/retail-media/auction-line-items/{line-item-id}: + /2024-10/retail-media/campaigns/{campaignId}/campaign-budget-overrides: get: - description: Gets the auction line item for the given line item id - operationId: GetApiV2ExternalAuctionLineItemByLineItemId + description: Get current campaign budget overrides by given external campaign + id. + operationId: GetCampaignBudgetOverrides parameters: - - description: The given line item id + - description: External campaign id. explode: false in: path - name: line-item-id + name: campaignId required: true schema: - type: string + format: int64 + type: integer style: simple - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemResponse' + $ref: '#/components/schemas/ValueResourceOutcomeOfCampaignBudgetOverrides' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request tags: - Campaign x-accepts: application/json put: - description: Updates the auction line item for the given line item id - operationId: PutApiV2ExternalAuctionLineItemByLineItemId + description: Update campaign budget overrides by given external campaign id + and new campaign budget overrides settings. + operationId: UpdateCampaignBudgetOverrides parameters: - - description: The given line item id + - description: External campaign id. explode: false in: path - name: line-item-id + name: campaignId required: true schema: - type: string + format: int64 + type: integer style: simple - x-nullable: false requestBody: content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfCampaignBudgetOverrides' application/json: schema: - $ref: '#/components/schemas/AuctionLineItemUpdateModelRequest' - description: The line item settings to create a line item with - x-nullable: false - x-bodyName: lineItem + $ref: '#/components/schemas/ValueResourceInputOfCampaignBudgetOverrides' + text/json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfCampaignBudgetOverrides' + application/*+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfCampaignBudgetOverrides' + description: New campaign budget overrides settings value resource input. + x-bodyName: campaignBudgetOverridesInput responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemResponse' + $ref: '#/components/schemas/ValueResourceOutcomeOfCampaignBudgetOverrides' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request tags: - Campaign - x-content-type: application/json + x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords: + /2024-10/retail-media/line-items/{lineItemId}/line-item-budget-overrides: get: - description: This endpoint gets the keyword target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId + description: Gets a collection of monthly and daily budget overrides for the + provided line item. + operationId: GetLineItemBudgetOverrides parameters: - - description: The line item to interact with + - description: The line item id to get budget overrides for. explode: false in: path - name: line-item-id + name: lineItemId required: true schema: type: string style: simple - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/KeywordTarget202110Response' + $ref: '#/components/schemas/ValueResourceOutcomeOfLineItemBudgetOverrides' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/KeywordTarget202110Response' - description: Bad Request tags: - Campaign x-accepts: application/json - /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append: - post: - description: This endpoint appends one or more keywords to targeting on the - specified line item. The resulting state of the keyword target is returned. - operationId: TargetingApi_PostApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId + put: + description: Update line item budget overrides by given external line item id + and new line item budget overrides settings. + operationId: UpdateLineItemBudgetOverrides parameters: - - description: The line item to interact with + - description: Line item external id. explode: false in: path - name: line-item-id + name: lineItemId required: true schema: type: string style: simple - x-nullable: false requestBody: content: - application/json: + application/json-patch+json: schema: - $ref: '#/components/schemas/KeywordTarget202110Request' - description: "" - x-nullable: false - x-bodyName: keywordsToAppend - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/KeywordTarget202110Response' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/KeywordTarget202110Response' - description: Bad Request - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete: - post: - description: This endpoint removes one or more keywords from targeting on the - specified line item. The resulting state of the keyword target is returned. - operationId: TargetingApi_PostApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId - parameters: - - description: The line item to interact with - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: + $ref: '#/components/schemas/ValueResourceInputOfLineItemBudgetOverrides' application/json: schema: - $ref: '#/components/schemas/KeywordTarget202110Request' - description: "" - x-nullable: false - x-bodyName: keywordsToRemove + $ref: '#/components/schemas/ValueResourceInputOfLineItemBudgetOverrides' + text/json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfLineItemBudgetOverrides' + application/*+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfLineItemBudgetOverrides' + description: New line item budget overrides settings value resource input. + x-bodyName: lineItemBudgetOverridesInput responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/KeywordTarget202110Response' + $ref: '#/components/schemas/ValueResourceOutcomeOfLineItemBudgetOverrides' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/KeywordTarget202110Response' - description: Bad Request tags: - Campaign - x-content-type: application/json + x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/retail-media/balances/{balance-id}/campaigns: + /2024-10/retail-media/accounts/{account-id}/balances: get: - description: Gets page of campaigns for the given balanceId - operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId + description: Gets page of balance objects for the given account id + operationId: GetApiV2ExternalAccountBalancesByAccountId parameters: - - description: The balance to get campaigns from + - description: The account to get balances for explode: false in: path - name: balance-id + name: account-id required: true schema: type: string @@ -1836,6 +2336,7 @@ paths: name: pageIndex required: false schema: + default: 0 format: int32 type: integer style: form @@ -1847,6 +2348,7 @@ paths: name: pageSize required: false schema: + default: 25 format: int32 type: integer style: form @@ -1854,19 +2356,112 @@ paths: responses: "200": content: + text/plain: + schema: + $ref: '#/components/schemas/PagedResourceCollectionOutcomeOfBalanceResponseV2' application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/PagedResourceCollectionOutcomeOfBalanceResponseV2' + text/json: + schema: + $ref: '#/components/schemas/PagedResourceCollectionOutcomeOfBalanceResponseV2' description: Success tags: - Balance x-accepts: application/json - /2023-07/retail-media/balances/{balance-id}/campaigns/append: post: - description: appends one or more campaigns to the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId + description: Create balance for the given account id + operationId: PostApiV2ExternalAccountBalancesByAccountId parameters: - - description: The balance to add campaigns from + - description: The account to create balances for + explode: false + in: path + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateBalanceV2Request' + description: An object that represents the available options to set when creating + a Retail Media Balance + required: true + x-nullable: false + x-bodyName: createBalance + responses: + "201": + content: + text/plain: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' + application/json: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' + text/json: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' + description: Success + tags: + - Balance + x-content-type: application/json + x-accepts: application/json + /2024-10/retail-media/accounts/{account-id}/balances/{balance-id}: + get: + description: Get a balance for the given account id and balance id + operationId: "GetApiV2ExternalAccountByAccountId}Balances{balanceId" + parameters: + - description: The account of the balance + explode: false + in: path + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: The balance id + explode: false + in: path + name: balance-id + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' + application/json: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' + text/json: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' + description: Success + tags: + - Balance + x-accepts: application/json + patch: + description: Modify a balance for the given account id + operationId: "PatchApiV2ExternalAccountByAccountId}Balances{balanceId" + parameters: + - description: The account of the balance + explode: false + in: path + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: The balance to change the dates explode: false in: path name: balance-id @@ -1879,27 +2474,43 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/UpdateBalanceModelV2Request' + description: An object that represents the available options to modify a balance. + required: true x-nullable: false - x-bodyName: campaigns + x-bodyName: updateBalanceModel responses: "200": content: + text/plain: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/BalanceResponseV2Response' + text/json: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' description: Success tags: - - Campaign + - Balance x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/balances/{balance-id}/campaigns/delete: + /2024-10/retail-media/accounts/{account-id}/balances/{balance-id}/add-funds: post: - description: Removes one or more campaigns on the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId + description: Add funds to a balance for the given account id + operationId: "PostApiV2ExternalAccountAddFundsByAccountId}Balances{balanceId" parameters: - - description: The balance to remove campaigns from + - description: The account of the balance + explode: false + in: path + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: The balance to add funds to explode: false in: path name: balance-id @@ -1912,30 +2523,90 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/AddFundsToBalanceV2Request' + description: An object that represents the available options of adding funds + to a balance. + required: true x-nullable: false - x-bodyName: campaigns + x-bodyName: addFundsToBalance responses: "200": content: + text/plain: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/BalanceResponseV2Response' + text/json: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' description: Success tags: - - Campaign + - Balance + x-content-type: application/json + x-accepts: application/json + /2024-10/retail-media/accounts/{account-id}/balances/{balance-id}/change-dates: + post: + description: Change dates of a balance for the given account id + operationId: "PostApiV2ExternalAccountChangeDatesByAccountId}Balances{balanceId" + parameters: + - description: The account of the balance + explode: false + in: path + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: The balance to change the dates + explode: false + in: path + name: balance-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ChangeDatesOfBalanceV2Request' + description: An object that represents the available options to modify schedule + of a balance. + required: true + x-nullable: false + x-bodyName: changeDatesOfBalance + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' + application/json: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' + text/json: + schema: + $ref: '#/components/schemas/BalanceResponseV2Response' + description: Success + tags: + - Balance x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/campaigns/{campaign-id}/auction-line-items: + /2024-10/retail-media/accounts/{account-id}/campaigns: get: - description: Gets page of auction line item objects for the given campaign id - operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId + description: "Get all the editable and creatable campaign attributes including\ + \ all types of budgets for each campaigns in relation to the account id, limited\ + \ by the campaign ids." + operationId: Campaigns_GetApi202301ExternalAccountCampaignsByAccountId parameters: - - description: The given campaign id + - description: The account to request the campaign for. explode: false in: path - name: campaign-id + name: account-id required: true schema: type: string @@ -1959,6 +2630,7 @@ paths: name: pageIndex required: false schema: + default: 0 format: int32 type: integer style: form @@ -1970,6 +2642,7 @@ paths: name: pageSize required: false schema: + default: 25 format: int32 type: integer style: form @@ -1979,25 +2652,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' + $ref: '#/components/schemas/JsonApiPageResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' - description: Bad Request tags: - Campaign x-accepts: application/json post: - description: Creates new auction line item with the specified settings - operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId + description: Create a campaign and assign budgets for the given account id with + creatable campaign attributes given in request body constrained by business + validation. The validation error includes details and source of errors. Pacing + can be adjusted and affected by the status of the campaign and the days left + on the campaign if auto daily pacing is enabled. + operationId: Campaigns_PostApi202301ExternalAccountCampaignsByAccountId parameters: - - description: The given campaign id + - description: The account to request the campaign for. explode: false in: path - name: campaign-id + name: account-id required: true schema: type: string @@ -2007,42 +2678,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' - description: The line item settings to create a line item with + $ref: '#/components/schemas/PostCampaignV202301' + description: Creatable campaign attributes x-nullable: false - x-bodyName: lineItem + x-bodyName: campaign responses: "201": content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemResponse' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items: + /2024-10/retail-media/accounts/{account-id}/line-items: get: - description: Gets page of preferred line item objects for the given campaign - id - operationId: LineItemsApi_GetApi202110ExternalCampaignPreferredLineItemsByCampaignId + description: Gets page of line item objects for the given account id + operationId: GetApiV2ExternalAccountLineItemsByAccountId parameters: - - description: The given campaign id + - description: The given account id explode: false in: path - name: campaign-id + name: account-id required: true schema: type: string style: simple x-nullable: false + - description: The campaign ids that you would like to limit your result set + to + explode: true + in: query + name: limitToCampaignId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The campaign types that you would like to limit your result set + to + explode: true + in: query + name: limitToType + required: false + schema: + enum: + - Unknown + - Auction + - Preferred + type: string + style: form + x-nullable: true - description: The ids that you would like to limit your result set to explode: true in: query @@ -2081,92 +2771,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' + $ref: '#/components/schemas/CommonLineItemPagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' - description: Bad Request tags: - Campaign x-accepts: application/json - post: - description: Creates a new preferred line item with the specified settings - operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId + /2024-10/retail-media/auction-line-items/{line-item-id}: + get: + description: Gets the auction line item for the given line item id + operationId: GetApiV2ExternalAuctionLineItemByLineItemId parameters: - - description: The given campaign id + - description: The given line item id explode: false in: path - name: campaign-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PreferredLineItemCreateModel202110Request' - description: The line item settings to create a line item with - x-nullable: false - x-bodyName: lineItem responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Bad Request tags: - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-07/retail-media/campaigns/{campaignId}: - get: - description: Get all the editable and creatable campaign attributes including - all types of budgets given the campaign id - operationId: Campaigns_GetApi202301ExternalCampaignByCampaignId - parameters: - - description: Campaign Id of the campaign detail - explode: false - in: path - name: campaignId - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' - description: Success - tags: - - Campaign x-accepts: application/json put: - description: Edit a campaign for the given campaign id with a given editable - attributes. This will return updated creatable and editable attributes of - the campaign as the result of the operation. Pacing can be adjusted and affected - by the status of the campaign and the days left on the campaign if auto daily - pacing is enabled. - operationId: Campaigns_PutApi202301ExternalCampaignByCampaignId + description: Updates the auction line item for the given line item id + operationId: PutApiV2ExternalAuctionLineItemByLineItemId parameters: - - description: Campaign Id of the updating campaign + - description: The given line item id explode: false in: path - name: campaignId + name: line-item-id required: true schema: type: string @@ -2176,27 +2823,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PutCampaignV202301' - description: Editable campaign attributes + $ref: '#/components/schemas/AuctionLineItemUpdateModelRequest' + description: The line item settings to create a line item with x-nullable: false - x-bodyName: campaign + x-bodyName: lineItem responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemResponse' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}: + /2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords: get: - description: Gets the line item for the given line item id - operationId: GetApiV2ExternalLineItemByLineItemId + description: This endpoint gets the keyword target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId parameters: - - description: The given line item id + - description: The line item to interact with explode: false in: path name: line-item-id @@ -2210,17 +2863,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CommonLineItemResponse' + $ref: '#/components/schemas/KeywordTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/KeywordTarget202110Response' + description: Bad Request tags: - Campaign x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}/bid-multipliers: - get: - description: Get bid multipliers by line item - operationId: LineItems_GetApi202301ExternalLineItemBidMultipliersByLineItemId + /2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append: + post: + description: This endpoint appends one or more keywords to targeting on the + specified line item. The resulting state of the keyword target is returned. + operationId: TargetingApi_PostApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId parameters: - - description: Long external id of the associated line item + - description: The line item to interact with explode: false in: path name: line-item-id @@ -2228,27 +2888,39 @@ paths: schema: type: string style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/KeywordTarget202110Request' + description: "" + x-nullable: false + x-bodyName: keywordsToAppend responses: "200": content: - text/plain: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' - text/json: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + $ref: '#/components/schemas/KeywordTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/KeywordTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - put: - description: Replace bid multipliers on a line item - operationId: LineItems_PutApi202301ExternalLineItemBidMultipliersByLineItemId + /2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete: + post: + description: This endpoint removes one or more keywords from targeting on the + specified line item. The resulting state of the keyword target is returned. + operationId: TargetingApi_PostApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId parameters: - - description: Long external id of the associated line item + - description: The line item to interact with explode: false in: path name: line-item-id @@ -2256,40 +2928,41 @@ paths: schema: type: string style: simple + x-nullable: false requestBody: content: application/json: schema: - $ref: '#/components/schemas/LineItemBidMultipliersRequest' + $ref: '#/components/schemas/KeywordTarget202110Request' + description: "" x-nullable: false - x-bodyName: request + x-bodyName: keywordsToRemove responses: "200": content: - text/plain: - schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' application/json: schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' - text/json: - schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' + $ref: '#/components/schemas/KeywordTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/KeywordTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}/products: + /2024-10/retail-media/balances/{balance-id}/campaigns: get: - description: This endpoint gets the promoted products on the specified line - item. - operationId: PromotedProductsApi_GetApi202110ExternalLineItemProductsByLineItemId + description: Gets page of campaigns for the given balanceId + operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId parameters: - - description: The line item to interact with + - description: The balance to get campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -2333,21 +3006,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success tags: - - Campaign + - Balance x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}/products/append: + /2024-10/retail-media/balances/{balance-id}/campaigns/append: post: - description: This endpoint appends one or more products to promote on the specified - line item. The resulting state of the line item is returned. - operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsAppendByLineItemId + description: appends one or more campaigns to the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId parameters: - - description: The line item to interact with + - description: The balance to add campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -2357,31 +3029,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: the products to append to this line item + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: promotedProductsToAppend + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}/products/delete: + /2024-10/retail-media/balances/{balance-id}/campaigns/delete: post: - description: This endpoint removes one or more products from promotion on the - specified line item. The resulting state of the line item is returned. - operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsDeleteByLineItemId + description: Removes one or more campaigns on the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId parameters: - - description: The line item to interact with + - description: The balance to remove campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -2391,61 +3062,92 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: "" + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: promotedProductsToRemove + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}/products/pause: - post: - description: This endpoint pauses one or more promoted products on a specified - line item. - operationId: PromotedProducts_PostApi202110ExternalLineItemProductsPauseByLineItemId + /2024-10/retail-media/campaigns/{campaign-id}/auction-line-items: + get: + description: Gets page of auction line item objects for the given campaign id + operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with. + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: The products from which their IDs will be used to pause. + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form x-nullable: false - x-bodyName: promotedProductsToPause - responses: - "200": - description: Success - tags: + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' + description: Bad Request + tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}/products/unpause: post: - description: This endpoint unpauses one or more promoted products on a specified - line item. - operationId: PromotedProducts_PostApi202110ExternalLineItemProductsUnpauseByLineItemId + description: Creates new auction line item with the specified settings + operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with. + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string @@ -2455,55 +3157,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: The products from which their IDs will be used to unpause. + $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' + description: The line item settings to create a line item with x-nullable: false - x-bodyName: promotedProductsToUnpause + x-bodyName: lineItem responses: - "200": + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemResponse' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}: + /2024-10/retail-media/campaigns/{campaign-id}/preferred-line-items: get: - description: Gets the preferred line item for the given line item id - operationId: LineItemsApi_GetApi202110ExternalPreferredLineItemByLineItemId + description: Gets page of preferred line item objects for the given campaign + id + operationId: GetApiV2ExternalCampaignPreferredLineItemsByCampaignId parameters: - - description: The given line item id + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/PreferredLineItemV2PagedListResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/PreferredLineItemV2PagedListResponse' description: Bad Request tags: - Campaign x-accepts: application/json - put: - description: Updates the preferred line item for the given line item id - operationId: LineItemsApi_PutApi202110ExternalPreferredLineItemByLineItemId + post: + description: Creates a new preferred line item with the specified settings + operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId parameters: - - description: The given line item id + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string @@ -2513,37 +3259,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItemUpdateModel202110Request' + $ref: '#/components/schemas/PreferredLineItemCreateModelV2Request' description: The line item settings to create a line item with + required: true x-nullable: false x-bodyName: lineItem responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/PreferredLineItemV2Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/PreferredLineItemV2Response' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: + /2024-10/retail-media/campaigns/{campaignId}: get: - description: This endpoint gets the add to basket target on the specified line - item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + description: Get all the editable and creatable campaign attributes including + all types of budgets given the campaign id + operationId: Campaigns_GetApi202301ExternalCampaignByCampaignId parameters: - - description: The line item to interact with + - description: Campaign Id of the campaign detail explode: false in: path - name: line-item-id + name: campaignId required: true schema: type: string @@ -2554,26 +3301,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' - description: Bad Request tags: - Campaign x-accepts: application/json put: - description: This endpoint sets the scope of the add to basket target on the - specified line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + description: Edit a campaign for the given campaign id with a given editable + attributes. This will return updated creatable and editable attributes of + the campaign as the result of the operation. Pacing can be adjusted and affected + by the status of the campaign and the days left on the campaign if auto daily + pacing is enabled. + operationId: Campaigns_PutApi202301ExternalCampaignByCampaignId parameters: - - description: The line item to interact with + - description: Campaign Id of the updating campaign explode: false in: path - name: line-item-id + name: campaignId required: true schema: type: string @@ -2583,35 +3327,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Request' - description: The add to basket target to set the scope for + $ref: '#/components/schemas/PutCampaignV202301' + description: Editable campaign attributes x-nullable: false - x-bodyName: addToBasketTarget + x-bodyName: campaign responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: - post: - description: This endpoint appends one or more add to basket ids to targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId + /2024-10/retail-media/line-items/{line-item-id}: + get: + description: Gets the line item for the given line item id + operationId: GetApiV2ExternalLineItemByLineItemId parameters: - - description: The line item to interact with + - description: The given line item id explode: false in: path name: line-item-id @@ -2620,39 +3356,51 @@ paths: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to append to the target - x-nullable: false - x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/CommonLineItemResponse' description: Success - "400": + tags: + - Campaign + x-accepts: application/json + /2024-10/retail-media/line-items/{line-item-id}/bid-multipliers: + get: + description: Fetch all bid multipliers for a given line item + operationId: GetApiV2ExternalLineItemBidMultipliersByLineItemId + parameters: + - description: External LineItemId for bid multiplier retrieval + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": content: + text/plain: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliersV2' application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' - description: Bad Request + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliersV2' + text/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliersV2' + description: BidMultipliers Found tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: - post: - description: This endpoint removes one or more add to basket ids from targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId + put: + description: Updates the bid multipliers for a given line item + operationId: PutApiV2ExternalLineItemBidMultipliersByLineItemId parameters: - - description: The line item to interact with + - description: External LineItemId for bid multiplier retrieval explode: false in: path name: line-item-id @@ -2665,33 +3413,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to remove from the target - x-nullable: false - x-bodyName: idsToRemove + $ref: '#/components/schemas/LineItemBidMultipliersV2Request' + description: New Bid Multipliers to be set + x-bodyName: request responses: "200": content: - application/json: + text/plain: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' - description: Success - "400": - content: + $ref: '#/components/schemas/LineItemBidMultipliersV2Response' application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' - description: Bad Request + $ref: '#/components/schemas/LineItemBidMultipliersV2Response' + text/json: + schema: + $ref: '#/components/schemas/LineItemBidMultipliersV2Response' + description: BidMultipliers Updated tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: + /2024-10/retail-media/preferred-line-items/{line-item-id}: get: - description: This endpoint gets the audience target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + description: Gets the preferred line item for the given line item id + operationId: GetApiV2ExternalPreferredLineItemByLineItemId parameters: - - description: The line item to interact with + - description: The given line item id explode: false in: path name: line-item-id @@ -2705,23 +3452,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/PreferredLineItemV2Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/PreferredLineItemV2Response' description: Bad Request tags: - Campaign x-accepts: application/json put: - description: This endpoint sets the scope of the audience target on the specified - line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + description: Updates the preferred line item for the given line item id + operationId: LineItemsApi_PutApi202110ExternalPreferredLineItemByLineItemId parameters: - - description: The line item to interact with + - description: The given line item id explode: false in: path name: line-item-id @@ -2734,32 +3480,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Request' - description: The audience target to set the scope for + $ref: '#/components/schemas/PreferredLineItemUpdateModelV2Request' + description: The line item settings to create a line item with + required: true x-nullable: false - x-bodyName: audienceTarget + x-bodyName: lineItem responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/PreferredLineItemV2Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/PreferredLineItemV2Response' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: - post: - description: This endpoint appends one or more audiences ids to targeting on - the specified line item. The resulting state of the audience target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId + /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: + get: + description: This endpoint gets the add to basket target on the specified line + item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId parameters: - description: The line item to interact with explode: false @@ -2770,11 +3517,232 @@ paths: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request + tags: + - Campaign + x-accepts: application/json + put: + description: This endpoint sets the scope of the add to basket target on the + specified line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Request' + description: The add to basket target to set the scope for + x-nullable: false + x-bodyName: addToBasketTarget + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: + post: + description: This endpoint appends one or more add to basket ids to targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to append to the target + x-nullable: false + x-bodyName: idsToAppend + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: + post: + description: This endpoint removes one or more add to basket ids from targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to remove from the target + x-nullable: false + x-bodyName: idsToRemove + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: + get: + description: This endpoint gets the audience target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request + tags: + - Campaign + x-accepts: application/json + put: + description: This endpoint sets the scope of the audience target on the specified + line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Request' + description: The audience target to set the scope for + x-nullable: false + x-bodyName: audienceTarget + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: + post: + description: This endpoint appends one or more audiences ids to targeting on + the specified line item. The resulting state of the audience target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' description: Audience ids to append to the target x-nullable: false x-bodyName: idsToAppend @@ -2795,7 +3763,7 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: + /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: post: description: This endpoint removes one or more audiences ids from targeting on the specified line item. The resulting state of the audience target is @@ -2836,7 +3804,7 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores: + /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores: get: description: This endpoint gets the store target on the specified line item. operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingStoresByLineItemId @@ -2905,7 +3873,7 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: + /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: post: description: This endpoint appends one or more store ids to targeting on the specified line item. The resulting state of the store target is returned. @@ -2945,7 +3913,7 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: + /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: post: description: This endpoint removes one or more store ids from targeting on the specified line item. The resulting state of the store target is returned. @@ -2987,66 +3955,347 @@ paths: x-accepts: application/json components: schemas: - ApplicationSummaryModelResponse: - description: A top-level object that encapsulates a Criteo API response for - a single value + RetailMediaContactlistOperation: + description: Operation on Retail Media contact list example: data: attributes: - organizationId: 6 - name: name - description: description - criteoService: criteoService - applicationId: 0 - type: type + nbValidIdentifiers: 1 + nbInvalidIdentifiers: 6 + sampleInvalidIdentifiers: + - sampleInvalidIdentifiers + - sampleInvalidIdentifiers + contactListId: 0 + requestDate: 2000-01-23T04:56:07.000+00:00 + identifierType: identifierType + operation: operation + type: AddRemoveContactlistResult warnings: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown + source: "{}" + stackTrace: + - stackTrace + - stackTrace + type: access-control title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown + source: "{}" + stackTrace: + - stackTrace + - stackTrace + type: access-control title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown + source: "{}" + stackTrace: + - stackTrace + - stackTrace + type: access-control title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown + source: "{}" + stackTrace: + - stackTrace + - stackTrace + type: access-control title: title properties: data: - $ref: '#/components/schemas/ApplicationSummaryModelResource' + $ref: '#/components/schemas/RetailMediaContactlistOperationResponseAttributes' + errors: + items: + $ref: '#/components/schemas/AudienceError' + type: array warnings: items: - $ref: '#/components/schemas/CommonProblem' + $ref: '#/components/schemas/AudienceWarning' + type: array + required: + - data + - errors + - warnings + type: object + ErrorCodeResponse: + description: Definition of the error code + properties: + errors: + items: + $ref: '#/components/schemas/AudienceError' + type: array + warnings: + items: + $ref: '#/components/schemas/AudienceWarning' + nullable: true + type: array + required: + - errors + type: object + RetailMediaContactlistAmendmentRequest: + description: Request of Retail Media contactlist + example: + data: + attributes: + identifiers: + - identifiers + - identifiers + identifierType: Email + operation: add + type: AddRemoveContactlist + properties: + data: + $ref: '#/components/schemas/RetailMediaContactlistAmendment' + required: + - data + type: object + RetailMediaContactlistOperationResponseAttributes: + description: Response data of Retail Media contact list operation + example: + attributes: + nbValidIdentifiers: 1 + nbInvalidIdentifiers: 6 + sampleInvalidIdentifiers: + - sampleInvalidIdentifiers + - sampleInvalidIdentifiers + contactListId: 0 + requestDate: 2000-01-23T04:56:07.000+00:00 + identifierType: identifierType + operation: operation + type: AddRemoveContactlistResult + properties: + type: + description: the name of the entity type + example: AddRemoveContactlistResult + type: string + attributes: + $ref: '#/components/schemas/RetailMediaContactlistOperationResponseAttributes_attributes' + required: + - attributes + - type + type: object + AudienceError: + description: Definition of an audience error + example: + traceId: traceId + code: code + instance: instance + detail: detail + source: "{}" + stackTrace: + - stackTrace + - stackTrace + type: access-control + title: title + properties: + traceId: + description: (REQUIRED) The Correlation ID provided by the Gateway. It is + also a unique identifier for this particular occurrence of the problem. + nullable: true + type: string + type: + description: (REQUIRED) The classification of the error + enum: + - access-control + - authentication + - authorization + - availability + - deprecation + - quota + - validation + type: string + code: + description: "(REQUIRED) A machine-readable unique error code, expressed\ + \ as a string value. The format used must be kebab-case." + type: string + instance: + description: (REQUIRED) A URI reference that identifies the specific occurrence + of the problem + type: string + title: + description: "(RECOMMENDED) A short, human-readable summary of the problem\ + \ type" + nullable: true + type: string + detail: + description: (RECOMMENDED) A human-readable explanation specific to this + occurrence of the problem + nullable: true + type: string + source: + description: (OPTIONAL) A machine-readable structure to reference to the + exact location(s) causing the error(s) + nullable: true + type: object + stackTrace: + description: (NEVER IN PRODUCTION) A human-readable stacktrace produced + by the implementation technology + items: + type: string + nullable: true + type: array + required: + - code + - instance + - type + type: object + AudienceWarning: + description: Definition of the warning + example: + traceId: traceId + code: code + instance: instance + detail: detail + source: "{}" + stackTrace: + - stackTrace + - stackTrace + type: access-control + title: title + properties: + traceId: + description: (REQUIRED) The Correlation ID provided by the Gateway. It is + also a unique identifier for this particular occurrence of the problem. + nullable: true + type: string + type: + description: (REQUIRED) The classification of the error + enum: + - access-control + - authentication + - authorization + - availability + - deprecation + - quota + - validation + type: string + code: + description: "(REQUIRED) A machine-readable unique error code, expressed\ + \ as a string value. The format used must be kebab-case." + type: string + instance: + description: (REQUIRED) A URI reference that identifies the specific occurrence + of the problem + type: string + title: + description: "(RECOMMENDED) A short, human-readable summary of the problem\ + \ type" + nullable: true + type: string + detail: + description: (REQUIRED) A human-readable explanation specific to this occurrence + of the problem + type: string + source: + description: (OPTIONAL) A machine-readable structure to reference to the + exact location(s) causing the error(s) + nullable: true + type: object + stackTrace: + description: (NEVER IN PRODUCTION) A human-readable stacktrace produced + by the implementation technology + items: + type: string + nullable: true + type: array + required: + - code + - detail + - instance + - type + type: object + RetailMediaContactlistAmendment: + description: Request data of retail media contact list amendment + example: + attributes: + identifiers: + - identifiers + - identifiers + identifierType: Email + operation: add + type: AddRemoveContactlist + properties: + type: + description: User List + example: AddRemoveContactlist + nullable: true + type: string + attributes: + $ref: '#/components/schemas/RetailMediaContactlistAmendment_attributes' + required: + - attributes + type: object + ApplicationSummaryModelResponse: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + data: + attributes: + organizationId: 6 + name: name + description: description + criteoService: criteoService + applicationId: 0 + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/ApplicationSummaryModelResource' + warnings: + items: + $ref: '#/components/schemas/CommonProblem' nullable: true readOnly: true type: array @@ -3184,6 +4433,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3197,6 +4447,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3608,6 +4859,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3684,6 +4936,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -3731,6 +4984,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - countries - currency @@ -3890,42 +5147,68 @@ components: required: - fileExtension type: object - RmLegacyAudienceGetEntityV1ListResponse: + RmAudienceSegmentEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for - several entities and metadata + several entities example: data: - attributes: - customerListDetails: - size: size - isShared: true + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + contactList: + isReadOnly: true + sharingStatus: Unknown + identifierType: Unknown + channels: + - Unknown + - Unknown name: name + description: description retailerId: retailerId - userBehaviorDetails: - targetIds: - - targetIds - - targetIds - targetType: brand - userType: viewer - lookbackWindow: P7D + type: Unknown + createdById: createdById + events: + categoryIds: + - categoryIds + - categoryIds + minPrice: 0.8008281904610115 + maxPrice: 6.027456183070403 + shopperActivity: Unknown + lookbackDays: Unknown + brandIds: + - brandIds + - brandIds + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id - audienceType: customerList type: type - attributes: - customerListDetails: - size: size - isShared: true + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + contactList: + isReadOnly: true + sharingStatus: Unknown + identifierType: Unknown + channels: + - Unknown + - Unknown name: name + description: description retailerId: retailerId - userBehaviorDetails: - targetIds: - - targetIds - - targetIds - targetType: brand - userType: viewer - lookbackWindow: P7D + type: Unknown + createdById: createdById + events: + categoryIds: + - categoryIds + - categoryIds + minPrice: 0.8008281904610115 + maxPrice: 6.027456183070403 + shopperActivity: Unknown + lookbackDays: Unknown + brandIds: + - brandIds + - brandIds + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id - audienceType: customerList type: type warnings: - traceId: traceId @@ -3972,7 +5255,7 @@ components: properties: data: items: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1Resource' + $ref: '#/components/schemas/RmAudienceSegmentEntityV1Resource' nullable: true type: array warnings: @@ -3988,22 +5271,15 @@ components: readOnly: true type: array type: object - RmLegacyAudienceCreateEntityV1Response: + RmAudienceSegmentIdEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for - a single entity + several entities example: data: - attributes: - categoryIds: - - 6 - - 6 - name: name - userType: viewer - retailerId: 1 - brandIds: - - 0 - - 0 - lookbackWindow: P7D + - attributes: "{}" + id: id + type: type + - attributes: "{}" id: id type: type warnings: @@ -4050,7 +5326,10 @@ components: title: title properties: data: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV1Resource' + items: + $ref: '#/components/schemas/RmAudienceSegmentIdEntityV1Resource' + nullable: true + type: array warnings: items: $ref: '#/components/schemas/CommonProblem' @@ -4064,73 +5343,73 @@ components: readOnly: true type: array type: object - RmLegacyAudienceGetEntityV2ListResponse: + RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse: description: A top-level object that encapsulates a Criteo API response for - several entities + several entities and metadata example: data: - attributes: - customerListDetails: - size: size - isShared: true + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + contactList: + isReadOnly: true + sharingStatus: Unknown + identifierType: Unknown + channels: + - Unknown + - Unknown name: name + description: description retailerId: retailerId - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D + type: Unknown + createdById: createdById + events: + categoryIds: + - categoryIds + - categoryIds + minPrice: 0.8008281904610115 + maxPrice: 6.027456183070403 + shopperActivity: Unknown + lookbackDays: Unknown + brandIds: + - brandIds + - brandIds + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - attributes: - customerListDetails: - size: size - isShared: true + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + contactList: + isReadOnly: true + sharingStatus: Unknown + identifierType: Unknown + channels: + - Unknown + - Unknown name: name + description: description retailerId: retailerId - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D + type: Unknown + createdById: createdById + events: + categoryIds: + - categoryIds + - categoryIds + minPrice: 0.8008281904610115 + maxPrice: 6.027456183070403 + shopperActivity: Unknown + lookbackDays: Unknown + brandIds: + - brandIds + - brandIds + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type + meta: + totalItems: 0 + offset: 1 + limit: 6 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -4174,9 +5453,11 @@ components: type: unknown title: title properties: + meta: + $ref: '#/components/schemas/RmAudienceSegmentSearchMetadataV1' data: items: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV2Resource' + $ref: '#/components/schemas/RmAudienceSegmentEntityV1Resource' nullable: true type: array warnings: @@ -4192,35 +5473,128 @@ components: readOnly: true type: array type: object - RmLegacyAudienceCreateEntityV2Response: + RmContactListStatisticsEntityV1Response: description: A top-level object that encapsulates a Criteo API response for a single entity example: data: attributes: + numberOfIdentifiers: 0 + matchRate: 1.4658129805029452 + numberOfMatches: 6 + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/RmContactListStatisticsEntityV1Resource' + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + type: object + RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse: + description: A top-level object that encapsulates a Criteo API response for + several entities and metadata + example: + data: + - attributes: + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + channels: + - Unknown + - Unknown name: name - retailerId: 0 - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 6 - - 6 - brandIds: - - 1 - - 1 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 6 - - 6 - brandIds: - - 1 - - 1 - lookbackWindow: P7D + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + retailerId: retailerId + createdById: createdById + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + channels: + - Unknown + - Unknown + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + retailerId: retailerId + createdById: createdById + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type + meta: + totalItems: 0 + offset: 1 + limit: 6 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -4264,8 +5638,13 @@ components: type: unknown title: title properties: + meta: + $ref: '#/components/schemas/RmAudienceSearchMetadataV1' data: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV2Resource' + items: + $ref: '#/components/schemas/RmAudienceEntityV1Resource' + nullable: true + type: array warnings: items: $ref: '#/components/schemas/CommonProblem' @@ -4279,113 +5658,216 @@ components: readOnly: true type: array type: object - RmLegacyAudienceCreateInputEntityV1: - description: Input to create audience. + RmAudienceSegmentBulkUpdateInputV1: + description: A top-level object that encapsulates a Criteo API request for several + entities. example: data: - attributes: - categoryIds: - - 6 - - 6 + - attributes: + contactList: "{}" name: name - userType: viewer - retailerId: 1 - brandIds: - - 0 - - 0 - lookbackWindow: P7D + description: + value: value + id: id + type: type + - attributes: + contactList: "{}" + name: name + description: + value: value id: id type: type properties: data: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV1Resource' + items: + $ref: '#/components/schemas/RmAudienceSegmentUpdateEntityV1Resource' + nullable: true + type: array type: object - RmLegacyAudienceCreateInputEntityV2: - description: Input to create audience. + RmAudienceSegmentBulkCreateInputV1: + description: A top-level object that encapsulates a Criteo API request for several + values. example: data: - attributes: + - attributes: + contactList: + identifierType: Email name: name - retailerId: 0 - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 6 - - 6 - brandIds: - - 1 - - 1 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 6 - - 6 - brandIds: - - 1 - - 1 - lookbackWindow: P7D + description: description + retailerId: retailerId + type: type + - attributes: + contactList: + identifierType: Email + name: name + description: description + retailerId: retailerId + type: type + properties: + data: + items: + $ref: '#/components/schemas/RmAudienceSegmentCreateEntityV1Resource' + nullable: true + type: array + type: object + RmAudienceSegmentBulkDeleteInputV1: + description: A top-level object that encapsulates a Criteo API request for several + entities. + example: + data: + - attributes: "{}" + id: id + type: type + - attributes: "{}" id: id type: type properties: data: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV2Resource' + items: + $ref: '#/components/schemas/RmAudienceSegmentDeleteEntityV1Resource' + nullable: true + type: array + type: object + RmAudienceSegmentSearchInputV1: + description: A top-level object that encapsulates a Criteo API request for a + single value. + example: + data: + attributes: + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + retailerIds: + - retailerIds + - retailerIds + audienceSegmentTypes: + - Unknown + - Unknown + type: type + properties: + data: + $ref: '#/components/schemas/RmAudienceSegmentSearchEntityV1Resource' + type: object + RmAudienceSearchInputV1: + description: A top-level object that encapsulates a Criteo API request for a + single value. + example: + data: + attributes: + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + retailerIds: + - retailerIds + - retailerIds + audienceIds: + - audienceIds + - audienceIds + type: type + properties: + data: + $ref: '#/components/schemas/RmAudienceSearchEntityV1Resource' type: object - RmLegacyAudienceGetEntityV1Resource: + RmAudienceSegmentEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - customerListDetails: - size: size - isShared: true + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + contactList: + isReadOnly: true + sharingStatus: Unknown + identifierType: Unknown + channels: + - Unknown + - Unknown name: name + description: description retailerId: retailerId - userBehaviorDetails: - targetIds: - - targetIds - - targetIds - targetType: brand - userType: viewer - lookbackWindow: P7D + type: Unknown + createdById: createdById + events: + categoryIds: + - categoryIds + - categoryIds + minPrice: 0.8008281904610115 + maxPrice: 6.027456183070403 + shopperActivity: Unknown + lookbackDays: Unknown + brandIds: + - brandIds + - brandIds + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id - audienceType: customerList type: type properties: attributes: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1' + $ref: '#/components/schemas/RmAudienceSegmentEntityV1' id: + description: Id of the entity nullable: true type: string - audienceType: - enum: - - customerList - - userBehavior + type: + nullable: true + type: string + type: object + RmAudienceSegmentIdEntityV1Resource: + description: A class that represents a domain entity exposed by an API + example: + attributes: "{}" + id: id + type: type + properties: + attributes: + description: Audience Segment entity only with its ID + type: object + x-criteo-canonical: + infoType: entity + name: RetailMediaAudienceSegment + version: v1 + id: + description: Id of the entity nullable: true type: string type: nullable: true type: string type: object - RmLegacyAudienceCreateEntityV1Resource: + RmAudienceSegmentSearchMetadataV1: + description: Metadata for the audience segment search response. + example: + totalItems: 0 + offset: 1 + limit: 6 + properties: + totalItems: + description: Total number of items + format: int32 + nullable: true + type: integer + limit: + description: Max item of the current page + format: int32 + nullable: true + type: integer + offset: + description: Number of item to skip + format: int32 + nullable: true + type: integer + type: object + RmContactListStatisticsEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - categoryIds: - - 6 - - 6 - name: name - userType: viewer - retailerId: 1 - brandIds: - - 0 - - 0 - lookbackWindow: P7D + numberOfIdentifiers: 0 + matchRate: 1.4658129805029452 + numberOfMatches: 6 id: id type: type properties: attributes: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV1' + $ref: '#/components/schemas/RmContactListStatisticsEntityV1' id: description: Id of the entity nullable: true @@ -4394,43 +5876,57 @@ components: nullable: true type: string type: object - RmLegacyAudienceGetEntityV2Resource: + RmAudienceSearchMetadataV1: + description: Metadata for the audience search response. + example: + totalItems: 0 + offset: 1 + limit: 6 + properties: + totalItems: + description: Total number of items + format: int32 + nullable: true + type: integer + limit: + description: Max item of the current page + format: int32 + nullable: true + type: integer + offset: + description: Number of item to skip + format: int32 + nullable: true + type: integer + type: object + RmAudienceEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - customerListDetails: - size: size - isShared: true + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + channels: + - Unknown + - Unknown name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId retailerId: retailerId - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D + createdById: createdById + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type properties: attributes: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV2' + $ref: '#/components/schemas/RmAudienceEntityV1' id: description: Id of the entity nullable: true @@ -4439,36 +5935,19 @@ components: nullable: true type: string type: object - RmLegacyAudienceCreateEntityV2Resource: + RmAudienceSegmentUpdateEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: + contactList: "{}" name: name - retailerId: 0 - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 6 - - 6 - brandIds: - - 1 - - 1 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 6 - - 6 - brandIds: - - 1 - - 1 - lookbackWindow: P7D + description: + value: value id: id type: type properties: attributes: - $ref: '#/components/schemas/RmLegacyAudienceCreateEntityV2' + $ref: '#/components/schemas/RmAudienceSegmentUpdateEntityV1' id: description: Id of the entity nullable: true @@ -4477,441 +5956,555 @@ components: nullable: true type: string type: object - RmLegacyAudienceGetEntityV1: - description: Audience definition of people of interest for a marketer. + RmAudienceSegmentCreateEntityV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value example: - customerListDetails: - size: size - isShared: true - name: name - retailerId: retailerId - userBehaviorDetails: - targetIds: - - targetIds - - targetIds - targetType: brand - userType: viewer - lookbackWindow: P7D + attributes: + contactList: + identifierType: Email + name: name + description: description + retailerId: retailerId + type: type properties: - name: - description: Name of the audience - type: string - retailerId: - description: ID of the retailer associated with this audience + type: + nullable: true type: string - userBehaviorDetails: - $ref: '#/components/schemas/RmLegacySegmentUserBehaviorV1' - customerListDetails: - $ref: '#/components/schemas/RmLegacySegmentCustomerList' - required: - - name - - retailerId + attributes: + $ref: '#/components/schemas/RmAudienceSegmentCreateEntityV1' type: object - x-criteo-canonical: - infoType: entity - name: RetailMediaAudienceSummary - version: v1 - RmLegacyAudienceCreateEntityV1: - description: Audience definition + RmAudienceSegmentDeleteEntityV1Resource: + description: A class that represents a domain entity exposed by an API example: - categoryIds: - - 6 - - 6 - name: name - userType: viewer - retailerId: 1 - brandIds: - - 0 - - 0 - lookbackWindow: P7D + attributes: "{}" + id: id + type: type properties: - userType: - description: Type of the user - enum: - - viewer - - buyer - - addToCarter + attributes: + description: Segment to delete + type: object + x-criteo-canonical: + infoType: entity + name: RetailMediaAudienceSegment + version: v1 + id: + description: Id of the entity + nullable: true + type: string + type: + nullable: true + type: string + type: object + RmAudienceSegmentSearchEntityV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + retailerIds: + - retailerIds + - retailerIds + audienceSegmentTypes: + - Unknown + - Unknown + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/RmAudienceSegmentSearchEntityV1' + type: object + RmAudienceSearchEntityV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + retailerIds: + - retailerIds + - retailerIds + audienceIds: + - audienceIds + - audienceIds + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/RmAudienceSearchEntityV1' + type: object + RmAudienceSegmentEntityV1: + description: Set of rules that defines specific people to target. + example: + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + contactList: + isReadOnly: true + sharingStatus: Unknown + identifierType: Unknown + channels: + - Unknown + - Unknown + name: name + description: description + retailerId: retailerId + type: Unknown + createdById: createdById + events: + categoryIds: + - categoryIds + - categoryIds + minPrice: 0.8008281904610115 + maxPrice: 6.027456183070403 + shopperActivity: Unknown + lookbackDays: Unknown + brandIds: + - brandIds + - brandIds + updatedAt: 2000-01-23T04:56:07.000+00:00 + properties: + accountId: + description: Account associated to the segment + nullable: true + type: string + name: + description: Name of the segment + nullable: true + type: string + description: + description: Description of the segment + nullable: true + type: string + retailerId: + description: Retailer associated to the segment + nullable: true type: string - lookbackWindow: - description: Length of lookback window + type: + description: Type of segment (read-only) enum: - - P7D - - P14D - - P30D - - P45D - - P60D - - P90D - - P120D - - P150D - - P180D + - Unknown + - ContactList + - Events + nullable: true type: string - brandIds: - description: The brands to target - items: - format: int64 - type: integer + createdAt: + description: ISO-8601 timestamp in UTC of segment creation (read-only) + format: date-time nullable: true - type: array - uniqueItems: true - categoryIds: - description: The categories to target + type: string + updatedAt: + description: ISO-8601 timestamp in UTC of segment update (read-only) + format: date-time + nullable: true + type: string + createdById: + description: User that created the segment + nullable: true + type: string + contactList: + $ref: '#/components/schemas/RmContactListV1' + events: + $ref: '#/components/schemas/RmEventsV1' + channels: + description: Channels associated to the segment (read-only) items: - format: int32 - type: integer + enum: + - Unknown + - Onsite + - Offsite + type: string nullable: true type: array - uniqueItems: true - retailerId: - description: ID of the retailer associated with this audience - format: int64 + type: object + x-criteo-canonical: + infoType: entity + name: RetailMediaAudienceSegment + version: v1 + RmAudienceSegmentIdEntityV1: + description: Audience Segment entity only with its ID + type: object + x-criteo-canonical: + infoType: entity + name: RetailMediaAudienceSegment + version: v1 + RmContactListStatisticsEntityV1: + description: Contact list statistics. + example: + numberOfIdentifiers: 0 + matchRate: 1.4658129805029452 + numberOfMatches: 6 + properties: + numberOfIdentifiers: + description: Number of identifiers in the contact list. + format: int32 + nullable: true type: integer - name: - description: Name of the audience - type: string - required: - - lookbackWindow - - name - - retailerId - - userType + numberOfMatches: + description: Number of matched identifiers in the contact list. + format: int32 + nullable: true + type: integer + matchRate: + description: "Percentage of matched identifiers in the contact list.\r\n\ + Can differ from matches/identifiers depending on the contact list type." + format: double + nullable: true + type: number type: object x-criteo-canonical: infoType: entity - name: RetailMediaAudience + name: ContactListStatistics version: v1 - RmLegacyAudienceGetEntityV2: - description: Audience definition of people of interest for a marketer + RmAudienceEntityV1: + description: Audience of people of interest for a marketer. example: - customerListDetails: - size: size - isShared: true + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + channels: + - Unknown + - Unknown name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId retailerId: retailerId - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D + createdById: createdById + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - retailerId: - description: ID of the retailer associated with this audience + accountId: + description: Account associated to the audience + nullable: true type: string - userBehaviorDetails: - $ref: '#/components/schemas/RmLegacyAudienceUserBehaviorDetailsV2' - customerListDetails: - $ref: '#/components/schemas/RmLegacySegmentCustomerList' name: description: Name of the audience + nullable: true type: string - required: - - name - - retailerId + description: + description: Description of the audience + nullable: true + type: string + retailerId: + description: Retailer associated to the audience + nullable: true + type: string + createdById: + description: User that created the audience + nullable: true + type: string + createdAt: + description: ISO-8601 timestamp in UTC of audience creation (read-only) + format: date-time + nullable: true + type: string + updatedAt: + description: ISO-8601 timestamp in UTC of audience update (read-only) + format: date-time + nullable: true + type: string + channels: + description: Channels associated to the audience (read-only) + items: + enum: + - Unknown + - Onsite + - Offsite + type: string + nullable: true + type: array + algebra: + $ref: '#/components/schemas/RmAlgebraNodeV1' type: object x-criteo-canonical: infoType: entity name: RetailMediaAudience version: v1 - RmLegacyAudienceCreateEntityV2: - description: Audience definition + RmAudienceSegmentUpdateEntityV1: + description: Set of rules that defines specific people to target. example: + contactList: "{}" name: name - retailerId: 0 - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 6 - - 6 - brandIds: - - 1 - - 1 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 6 - - 6 - brandIds: - - 1 - - 1 - lookbackWindow: P7D + description: + value: value properties: - retailerId: - description: ID of the retailer associated with this audience - format: int64 - type: integer - userBehaviorDetails: - $ref: '#/components/schemas/RmLegacyAudienceUserBehaviorCreateV2' name: - description: Name of the audience + description: Name of the segment + nullable: true type: string - required: - - name - - retailerId - - userBehaviorDetails + description: + $ref: '#/components/schemas/NillableString' + contactList: + description: Settings to update the contact list of the segment + type: object type: object x-criteo-canonical: infoType: entity - name: RetailMediaAudience + name: RetailMediaAudienceSegment version: v1 - RmLegacySegmentUserBehaviorV1: - description: Audience definition of people based on what they visited - example: - targetIds: - - targetIds - - targetIds - targetType: brand - userType: viewer - lookbackWindow: P7D - properties: - userType: - description: Type of shopper activity used to generate the audience. - enum: - - viewer - - buyer - - addToCarter + RmAudienceSegmentCreateEntityV1: + description: Set of rules that defines specific people to target. + example: + contactList: + identifierType: Email + name: name + description: description + retailerId: retailerId + properties: + name: + description: Name of the segment type: string - lookbackWindow: - description: Length of lookback window - enum: - - P7D - - P14D - - P30D - - P45D - - P60D - - P90D - - P120D - - P150D - - P180D - type: string - targetType: - description: Type of target - enum: - - brand - - category + description: + description: Description of the segment nullable: true type: string - targetIds: - description: The categories to target - items: - type: string - nullable: true - type: array - uniqueItems: true - required: - - lookbackWindow - - userType - type: object - RmLegacySegmentCustomerList: - description: Audience definition of people based on a customer list - example: - size: size - isShared: true - properties: - size: - description: Number of users in the customer list audience. + retailerId: + description: Retailer associated to the segment type: string - isShared: - description: Indicate if the audience is shared. - type: boolean - required: - - isShared - - size - type: object - RmLegacyAudienceUserBehaviorDetailsV2: - description: User Behavior Details. - example: - inclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - properties: - inclusiveSegment: - $ref: '#/components/schemas/RmLegacySegmentUserBehaviorV2' - exclusiveSegment: - $ref: '#/components/schemas/RmLegacySegmentUserBehaviorV2' + contactList: + $ref: '#/components/schemas/RmContactListCreateV1' required: - - inclusiveSegment + - name + - retailerId type: object - RmLegacyAudienceUserBehaviorCreateV2: - description: User Behavior to include and optionally exclude. - example: - inclusiveSegment: - userAction: buy - categoryIds: - - 6 - - 6 - brandIds: - - 1 - - 1 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 6 - - 6 - brandIds: - - 1 - - 1 - lookbackWindow: P7D - properties: - inclusiveSegment: - $ref: '#/components/schemas/RmLegacySegmentUserBehaviorCreateV2' - exclusiveSegment: - $ref: '#/components/schemas/RmLegacySegmentUserBehaviorCreateV2' - required: - - inclusiveSegment + RmAudienceSegmentDeleteEntityV1: + description: Segment to delete type: object - RmLegacySegmentUserBehaviorV2: - description: Audience definition of people based on what they visited + x-criteo-canonical: + infoType: entity + name: RetailMediaAudienceSegment + version: v1 + RmAudienceSegmentSearchEntityV1: + description: "Available filters to perform a search on audience segments. If\ + \ present, the filters are AND'ed together when applied." example: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + retailerIds: + - retailerIds + - retailerIds + audienceSegmentTypes: + - Unknown + - Unknown properties: - userAction: - description: Type of shopper activity used to generate the audience. - enum: - - buy - - view - - addToCart - type: string - lookbackWindow: - description: Length of lookback window - enum: - - P7D - - P14D - - P30D - - P45D - - P60D - - P90D - - P120D - - P150D - - P180D - type: string - categoryIds: - description: The categories to target + audienceSegmentIds: + description: List of segment ids items: - format: int32 - type: integer + type: string nullable: true type: array - uniqueItems: true - brandIds: - description: The brands to target + retailerIds: + description: List of retailer ids items: - format: int64 - type: integer + type: string nullable: true type: array - uniqueItems: true - minPrice: - description: The min price of targeted skus. - format: double - nullable: true - type: number - maxPrice: - description: The max price of targeted skus. - format: double + audienceSegmentTypes: + description: List of segment types + items: + enum: + - Unknown + - ContactList + - Events + type: string nullable: true - type: number - required: - - lookbackWindow - - userAction + type: array type: object - RmLegacySegmentUserBehaviorCreateV2: - description: User Behavior Details. + RmAudienceSearchEntityV1: + description: "Available filters to perform a search on audiences. If present,\ + \ the filters are AND'ed together when applied." example: - userAction: buy - categoryIds: - - 6 - - 6 - brandIds: - - 1 - - 1 - lookbackWindow: P7D - properties: - userAction: - description: Type of shopper activity used to generate the audience. + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + retailerIds: + - retailerIds + - retailerIds + audienceIds: + - audienceIds + - audienceIds + properties: + audienceIds: + description: List of audience ids + items: + type: string + nullable: true + type: array + retailerIds: + description: List of retailer ids + items: + type: string + nullable: true + type: array + audienceSegmentIds: + description: List of segment ids (linked to the result audiences) + items: + type: string + nullable: true + type: array + type: object + RmContactListV1: + description: Settings to target users with your contact lists. + example: + isReadOnly: true + sharingStatus: Unknown + identifierType: Unknown + properties: + isReadOnly: + description: Is the segment read-only + nullable: true + type: boolean + identifierType: + description: Indicates contact list identifier's type + enum: + - Unknown + - Email + - UserIdentifier + - IdentityLink + - CustomerId + nullable: true + type: string + sharingStatus: + description: Indicates if the contact list is shared with other accounts + enum: + - Unknown + - NotShared + - SharedWithAll + - SharedWithDemandAccounts + nullable: true + type: string + type: object + RmEventsV1: + description: Settings to target users based on their behavior + example: + categoryIds: + - categoryIds + - categoryIds + minPrice: 0.8008281904610115 + maxPrice: 6.027456183070403 + shopperActivity: Unknown + lookbackDays: Unknown + brandIds: + - brandIds + - brandIds + properties: + shopperActivity: + description: Reach people who performed specific action enum: - - buy - - view - - addToCart + - Unknown + - View + - Buy + - AddToCart + nullable: true type: string - lookbackWindow: - description: Length of lookback window + lookbackDays: + description: The number of days to look back enum: - - P7D - - P14D - - P30D - - P45D - - P60D - - P90D - - P120D - - P150D - - P180D + - Unknown + - Last7Days + - Last14Days + - Last30Days + - Last45Days + - Last60Days + - Last90Days + - Last120Days + - Last150Days + - Last180Days + nullable: true type: string categoryIds: - description: The categories to target + description: The list of category ids items: - format: int32 - type: integer + type: string nullable: true type: array - uniqueItems: true brandIds: - description: The brands to target + description: The list of brand ids items: - format: int64 - type: integer + type: string nullable: true type: array - uniqueItems: true - required: - - lookbackWindow - - userAction + minPrice: + description: Minimum price of the products + format: double + nullable: true + type: number + maxPrice: + description: Maximum price of the products + format: double + nullable: true + type: number + type: object + RmAlgebraNodeV1: + description: Node in the audience algebra definition. + example: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + properties: + and: + items: + $ref: '#/components/schemas/RmAlgebraNodeV1' + nullable: true + type: array + or: + items: + $ref: '#/components/schemas/RmAlgebraNodeV1' + nullable: true + type: array + not: + $ref: '#/components/schemas/RmAlgebraNodeV1' + audienceSegmentId: + nullable: true + type: string + type: object + NillableString: + description: Placeholder object for string value for which "null" is a valid + business value + example: + value: value + properties: + value: + description: The string's value. If missing or null the string's value is + set to "null" + nullable: true + type: string + type: object + RmContactListUpdateV1: + description: Settings to update the contact list of the segment + type: object + RmContactListCreateV1: + description: Settings to target users with your contact lists. + example: + identifierType: Email + properties: + identifierType: + description: Indicates contact list type + enum: + - Email + - UserIdentifier + - IdentityLink + - CustomerId + nullable: true + type: string type: object KeywordsModelResponse: additionalProperties: false @@ -5059,6 +6652,106 @@ components: readOnly: true type: array type: object + PromotedProductResourceCollectionOutcome: + additionalProperties: false + description: Outcome object containing promoted products. + example: + metadata: + offset: 0 + limit: 6 + count: 1 + responseCount: 5 + data: + - attributes: + bidOverride: 5.637376656633329 + id: id + status: null + id: id + type: type + - attributes: + bidOverride: 5.637376656633329 + id: id + status: null + id: id + type: type + warnings: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + status: 0 + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + status: 0 + errors: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + status: 0 + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + status: 0 + properties: + errors: + items: + $ref: '#/components/schemas/RmcaCommonProblem' + nullable: true + readOnly: true + type: array + warnings: + items: + $ref: '#/components/schemas/RmcaCommonProblem' + nullable: true + readOnly: true + type: array + metadata: + $ref: '#/components/schemas/ProductMetadata' + data: + items: + $ref: '#/components/schemas/PromotedProductResource' + nullable: true + type: array + type: object + ProductResourceOutcome: + additionalProperties: false + description: Outcome object containing errors and warnings. + properties: + errors: + items: + $ref: '#/components/schemas/RmcaCommonProblem' + nullable: true + type: array + warnings: + items: + $ref: '#/components/schemas/RmcaCommonProblem' + nullable: true + type: array + type: object ProposalStatusModelResponse: additionalProperties: false description: Response object containing the state of a proposal in the context @@ -5169,6 +6862,31 @@ components: data: $ref: '#/components/schemas/SetBidsModelResource' type: object + PromotedProductResourceCollectionInput: + additionalProperties: false + description: "Request object containing promoted products to be appended, deleted,\ + \ paused or unpaused." + example: + data: + - attributes: + bidOverride: 5.637376656633329 + id: id + status: null + id: id + type: type + - attributes: + bidOverride: 5.637376656633329 + id: id + status: null + id: id + type: type + properties: + data: + items: + $ref: '#/components/schemas/PromotedProductResource' + nullable: true + type: array + type: object KeywordsModelResource: additionalProperties: false description: Resource object containing keywords associated with a line item. @@ -5271,6 +6989,56 @@ components: nullable: true type: integer type: object + ProductMetadata: + additionalProperties: false + description: Metadata about the response. Used for pagination. + example: + offset: 0 + limit: 6 + count: 1 + responseCount: 5 + properties: + offset: + description: Zero based offset of the first item in the response. + format: int32 + nullable: true + type: integer + limit: + description: Maximum number of items in the response. + format: int32 + nullable: true + type: integer + count: + description: Total number of items available. + format: int32 + nullable: true + type: integer + responseCount: + description: Number of items in the response. + format: int32 + nullable: true + type: integer + type: object + PromotedProductResource: + additionalProperties: false + description: Resource object containing a promoted product. + example: + attributes: + bidOverride: 5.637376656633329 + id: id + status: null + id: id + type: type + properties: + id: + nullable: true + type: string + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/PromotedProduct' + type: object ProposalStatusModelResource: additionalProperties: false description: Resource object containing the state of a proposal in the context @@ -5378,6 +7146,27 @@ components: nullable: true type: array type: object + PromotedProduct: + additionalProperties: false + description: A promoted product. + example: + bidOverride: 5.637376656633329 + id: id + status: null + properties: + id: + description: A retailer defined SKU ID for the promoted product. + nullable: true + type: string + bidOverride: + description: The bid override for the promoted product for this line item. + Ignored unless adding a product. + format: decimal + nullable: true + type: number + status: + $ref: '#/components/schemas/LineItemProductStatus' + type: object ProposalStatusModel: additionalProperties: false description: The state of a proposal in the context of a line item. @@ -5481,6 +7270,13 @@ components: nullable: true type: string type: object + LineItemProductStatus: + description: The status of a promoted product in the context of the line item. + enum: + - Unknown + - Active + - Paused + type: string NegotiationStateModel: description: The state of a negotiation in the context of a line item. enum: @@ -5787,8 +7583,9 @@ components: x-nullable: false type: object x-nullable: false - Creative202210ListResponse: - description: Data model for a list of response resources + CreativeV2ListResponse: + description: A top-level object that encapsulates a Criteo API response for + several entities example: data: - attributes: @@ -5808,6 +7605,11 @@ components: - chosenOptions hyperlinkVariableValue: url: url + videoVariableValue: + duration: duration + width: 5 + url: url + height: 2 id: id - colorVariableValue: color: color @@ -5823,17 +7625,22 @@ components: - chosenOptions hyperlinkVariableValue: url: url + videoVariableValue: + duration: duration + width: 5 + url: url + height: 2 id: id templateName: templateName associatedLineItemIds: - associatedLineItemIds - associatedLineItemIds environments: - - pageType: Search + - pageType: Unknown environments: - Web - Web - - pageType: Search + - pageType: Unknown environments: - Web - Web @@ -5863,6 +7670,11 @@ components: - chosenOptions hyperlinkVariableValue: url: url + videoVariableValue: + duration: duration + width: 5 + url: url + height: 2 id: id - colorVariableValue: color: color @@ -5878,17 +7690,22 @@ components: - chosenOptions hyperlinkVariableValue: url: url + videoVariableValue: + duration: duration + width: 5 + url: url + height: 2 id: id templateName: templateName associatedLineItemIds: - associatedLineItemIds - associatedLineItemIds environments: - - pageType: Search + - pageType: Unknown environments: - Web - Web - - pageType: Search + - pageType: Unknown environments: - Web - Web @@ -5946,24 +7763,153 @@ components: properties: data: items: - $ref: '#/components/schemas/ResourceOfCreative202210' + $ref: '#/components/schemas/ResourceOfCreativeV2' + nullable: true type: array - x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array - x-nullable: false errors: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array - x-nullable: false type: object - x-nullable: false - JsonApiSingleResponseOfCatalogStatus: + x-nullable: true + CreativeV2Response: + description: A top-level object that encapsulates a Criteo API response for + a single entity + example: + data: + attributes: + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + videoVariableValue: + duration: duration + width: 5 + url: url + height: 2 + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + videoVariableValue: + duration: duration + width: 5 + url: url + height: 2 + id: id + templateName: templateName + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + environments: + - pageType: Unknown + environments: + - Web + - Web + - pageType: Unknown + environments: + - Web + - Web + brandId: 0 + creativeFormatType: Unknown + name: name + retailerId: 6 + templateId: 1 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/ResourceOfCreativeV2' + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + type: object + x-nullable: true + JsonApiSingleResponseOfCatalogStatus: description: A JSON:API wrapper class to add one JSON:API within a data property example: @@ -6950,6 +8896,87 @@ components: type: string type: object x-nullable: false + ResourceOfCreativeV2: + description: A class that represents a domain entity exposed by an API + example: + attributes: + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + videoVariableValue: + duration: duration + width: 5 + url: url + height: 2 + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + videoVariableValue: + duration: duration + width: 5 + url: url + height: 2 + id: id + templateName: templateName + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + environments: + - pageType: Unknown + environments: + - Web + - Web + - pageType: Unknown + environments: + - Web + - Web + brandId: 0 + creativeFormatType: Unknown + name: name + retailerId: 6 + templateId: 1 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/ExternalCreativeV2' + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + type: object + x-nullable: true JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" @@ -7382,24 +9409,168 @@ components: - templateVariableValues type: object x-nullable: false - ExternalCatalogStatus: - description: The status of an asynchronous request to generate a catalog + ExternalCreativeV2: + description: A creative entity example: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + videoVariableValue: + duration: duration + width: 5 + url: url + height: 2 + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + videoVariableValue: + duration: duration + width: 5 + url: url + height: 2 + id: id + templateName: templateName + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + environments: + - pageType: Unknown + environments: + - Web + - Web + - pageType: Unknown + environments: + - Web + - Web + brandId: 0 + creativeFormatType: Unknown + name: name + retailerId: 6 + templateId: 1 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: + name: + description: Name + type: string status: - description: An enumeration of the status of the catalog. + description: Creative Status enum: - - unknown - - pending - - success - - failure + - Ready + - InUse + - Archived + - Deleted + type: string + brandId: + description: Brand Id + format: int64 + type: integer + retailerId: + description: Retailer Id + format: int32 + type: integer + templateId: + description: Template Id + format: int32 + type: integer + templateName: + description: Template Name + type: string + formatId: + description: Format Id + format: int32 + type: integer + associatedLineItemIds: + description: Associated Line Item Ids + items: + type: string + type: array + updatedAt: + description: Updated at time + format: date-time + type: string + creativeFormatType: + description: Creative format type + enum: + - Unknown + - FlagShip + - Showcase + - SponsoredProducts + - Butterfly + - BundleBoost + - IAB + - Custom + - DisplayPanel + - DigitalShelfTalker + type: string + environments: + description: "Environment type (e.g. mobile, web, app)" + items: + $ref: '#/components/schemas/ExternalPageTypeEnvironment' + type: array + templateVariableValues: + description: The template chosen values + items: + $ref: '#/components/schemas/ExternalTemplateVariableValue' + type: array + required: + - associatedLineItemIds + - brandId + - creativeFormatType + - environments + - formatId + - name + - retailerId + - status + - templateId + - templateName + - templateVariableValues + - updatedAt + type: object + x-nullable: false + ExternalCatalogStatus: + description: The status of an asynchronous request to generate a catalog + example: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + properties: + status: + description: An enumeration of the status of the catalog. + enum: + - unknown + - pending + - success + - failure - expired type: string x-nullable: false @@ -7790,6 +9961,92 @@ components: x-nullable: false type: object x-nullable: false + ExternalPageTypeEnvironment: + description: The PageType-Environment Tuples for creatives + example: + pageType: Unknown + environments: + - Web + - Web + properties: + pageType: + description: Creative PageType + enum: + - Unknown + - Search + - Home + - Browse + - Checkout + - Category + - ProductDetail + - Confirmation + - Merchandising + - Deals + - Favorites + - SearchBar + - CategoryMenu + nullable: true + type: string + environments: + description: List of environments per PageType + items: + description: "Creative format, defining where the creative can be served" + enum: + - Web + - Mobile + - App + - Lockout + - Mixed + - iOS + - Android + type: string + nullable: true + type: array + type: object + x-nullable: false + ExternalTemplateVariableValue: + description: A value for a variable in a creative template. + example: + colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + videoVariableValue: + duration: duration + width: 5 + url: url + height: 2 + id: id + properties: + id: + description: The id of the template variable the value is applied to + type: string + textVariableValue: + $ref: '#/components/schemas/ExternalTextVariableValue' + choiceVariableValue: + $ref: '#/components/schemas/ExternalChoiceVariableValue' + colorVariableValue: + $ref: '#/components/schemas/ExternalColorVariableValue' + filesVariableValue: + $ref: '#/components/schemas/ExternalFilesVariableValue' + hyperlinkVariableValue: + $ref: '#/components/schemas/ExternalHyperlinkVariableValue' + videoVariableValue: + $ref: '#/components/schemas/ExternalVideoVariableValue' + required: + - id + type: object + x-nullable: false Section: description: Section object that hold template variables example: @@ -7845,8 +10102,9 @@ components: maxBytes: 2 properties: title: + nullable: true type: string - x-nullable: false + x-nullable: true templateVariables: items: $ref: '#/components/schemas/TemplateVariable' @@ -7854,7 +10112,106 @@ components: x-nullable: false required: - templateVariables - - title + type: object + x-nullable: false + ExternalTextVariableValue: + description: A value of a template text variable + example: + text: text + properties: + text: + description: The displayed text + nullable: true + type: string + type: object + x-nullable: true + ExternalChoiceVariableValue: + description: A value of a template choice variable (among different accepted + options) + example: + chosenOptions: + - chosenOptions + - chosenOptions + properties: + chosenOptions: + description: The chosen options + items: + type: string + type: array + required: + - chosenOptions + type: object + x-nullable: false + ExternalColorVariableValue: + description: A value of a template color variable + example: + color: color + properties: + color: + description: The displayed color (HEX format) + nullable: true + pattern: "^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$" + type: string + type: object + x-nullable: true + ExternalFilesVariableValue: + description: "A value of a template file variable (one or several files), like\ + \ images in a creative" + example: + assetIds: + - assetIds + - assetIds + properties: + assetIds: + description: The assets representing the images to be displayed + items: + type: string + minItems: 1 + type: array + required: + - assetIds + type: object + x-nullable: false + ExternalHyperlinkVariableValue: + description: A value of a template hyperlink variable + example: + url: url + properties: + url: + description: The url to redirect to + nullable: true + type: string + type: object + x-nullable: true + ExternalVideoVariableValue: + description: A value of a template video variable + example: + duration: duration + width: 5 + url: url + height: 2 + properties: + url: + description: The vast video url + minLength: 1 + type: string + width: + description: The video's width + format: int32 + type: integer + height: + description: The video's height + format: int32 + type: integer + duration: + description: The video's duration + minLength: 1 + type: string + required: + - duration + - height + - url + - width type: object x-nullable: false TemplateVariable: @@ -8183,6 +10540,45 @@ components: data: $ref: '#/components/schemas/AsyncLineItemsReportResource' type: object + AsyncRevenueReportRequest: + description: A top-level object that encapsulates a Criteo API request for a + single value + example: + data: + attributes: + advertiserTypes: + - retailer + - retailer + campaignType: all + clickAttributionWindow: none + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: UTC + soldBy: directSold + revenueType: auction + skuRelations: + - sameSku + - sameSku + format: json + salesChannel: all + reportType: advertiser + viewAttributionWindow: none + ids: + - ids + - ids + buyType: auction + id: id + metrics: + - numberOfCampaigns + - numberOfCampaigns + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date + type: type + properties: + data: + $ref: '#/components/schemas/AsyncRevenueReportResource' + type: object StatusResponseResource: description: A class that represents a domain entity exposed by an API example: @@ -8271,7 +10667,48 @@ components: attributes: $ref: '#/components/schemas/AsyncLineItemsReport' type: object - StatusResponse: + AsyncRevenueReportResource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + advertiserTypes: + - retailer + - retailer + campaignType: all + clickAttributionWindow: none + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: UTC + soldBy: directSold + revenueType: auction + skuRelations: + - sameSku + - sameSku + format: json + salesChannel: all + reportType: advertiser + viewAttributionWindow: none + ids: + - ids + - ids + buyType: auction + id: id + metrics: + - numberOfCampaigns + - numberOfCampaigns + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/AsyncRevenueReport' + type: object + StatusResponse: description: Status of an async report request example: fileSizeBytes: 6 @@ -8652,24 +11089,1428 @@ components: nullable: true type: array startDate: - description: Start date + description: Start date + format: date-time + type: string + endDate: + description: End date + format: date-time + type: string + timezone: + default: UTC + description: "Time zone : see criteo developer portal for supported time\ + \ zones" + nullable: true + type: string + required: + - endDate + - startDate + type: object + AsyncRevenueReport: + description: Async Revenue report body request + example: + advertiserTypes: + - retailer + - retailer + campaignType: all + clickAttributionWindow: none + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: UTC + soldBy: directSold + revenueType: auction + skuRelations: + - sameSku + - sameSku + format: json + salesChannel: all + reportType: advertiser + viewAttributionWindow: none + ids: + - ids + - ids + buyType: auction + id: id + metrics: + - numberOfCampaigns + - numberOfCampaigns + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date + properties: + ids: + description: Supply account ids to report on + items: + type: string + nullable: true + type: array + id: + description: Supply account id to report on + nullable: true + type: string + reportType: + description: Type of report + enum: + - advertiser + - environment + - pageType + - productCategory + - brand + nullable: true + type: string + revenueType: + description: Type of revenue + enum: + - auction + - preferred + nullable: true + type: string + soldBy: + description: "Filter on the seller: Indirect Sold, Direct Sold or Private\ + \ Market" + enum: + - directSold + - indirectSold + - privateMarket + nullable: true + type: string + buyType: + description: "Filter on buy type: Auction, Preferred Deals or Sponsorship" + enum: + - auction + - preferredDeals + - sponsorship + nullable: true + type: string + advertiserTypes: + description: "Filter on the type of advertiser: retailer, brand, seller" + items: + enum: + - retailer + - brand + - seller + type: string + nullable: true + type: array + skuRelations: + description: "Filter on sku relations: Same SKU, Same Parent SKU, Same Category,\ + \ Same Brand or Same Seller" + items: + enum: + - sameSku + - sameParentSku + - sameCategory + - sameBrand + - sameSeller + type: string + nullable: true + type: array + format: + description: Format of the output + enum: + - json + - json-compact + - json-newline + - csv + nullable: true + type: string + campaignType: + default: all + description: "Filter the type of campaigns to report on: sponsoredProducts\ + \ or onSiteDisplays" + enum: + - all + - sponsoredProducts + - onSiteDisplays + nullable: true + type: string + salesChannel: + default: all + description: "Filter on specific sales channel: offline or online" + enum: + - all + - offline + - online + nullable: true + type: string + clickAttributionWindow: + default: none + description: Click attribution window + enum: + - none + - 7D + - 14D + - 30D + nullable: true + type: string + viewAttributionWindow: + default: none + description: View attribution window + enum: + - none + - 1D + - 7D + - 14D + - 30D + nullable: true + type: string + dimensions: + description: List of dimensions to report on + items: + enum: + - date + - hour + - parentAccount + - accountId + - accountName + - accountTypeName + - advertiserType + - campaignId + - campaignName + - campaignTypeName + - campaignStartDate + - campaignEndDate + - lineItemId + - lineItemName + - lineItemStartDate + - lineItemEndDate + - lineItemStatus + - retailerId + - retailerName + - brandId + - brandName + - placementId + - placementName + - pageTypeName + - environment + - pageCategory + - advProductId + - advProductName + - advProductGtin + - advProductMpn + - buyType + - soldBy + - saleChannel + - attributionSettings + - activityType + - keyword + - skuRelation + - retailerCategoryId + - retailerCategoryName + - taxonomyBreadcrumb + - taxonomy1Id + - taxonomy1Name + - taxonomy2Id + - taxonomy2Name + - taxonomy3Id + - taxonomy3Name + - taxonomy4Id + - taxonomy4Name + - taxonomy5Id + - taxonomy5Name + - taxonomy6Id + - taxonomy6Name + - taxonomy7Id + - taxonomy7Name + type: string + nullable: true + type: array + metrics: + description: List of metrics to report on + items: + enum: + - numberOfCampaigns + - numberOfLineItems + - numberOfSkus + - skuPrice + - pageViews + - impressions + - productClicks + - placementClicks + - clicks + - sales + - units + - transactions + - assistedSales + - assistedUnits + - revenue + - openAuctionRevenue + - preferredDealsRevenue + - ctr + - cr + - cpc + - cpm + - roas + - workingMedia + - netRevenue + - videoViews + - videosStarted + - videosPlayedTo25 + - videosPlayedTo50 + - videosPlayedTo75 + - videosPlayedTo100 + - videoPlayingRate + - videoCompletionRate + - uniqueVisitors + - frequency + type: string + nullable: true + type: array + startDate: + description: Start date + format: date-time + type: string + endDate: + description: End date + format: date-time + type: string + timezone: + default: UTC + description: "Time zone : see criteo developer portal for supported time\ + \ zones" + nullable: true + type: string + required: + - endDate + - startDate + type: object + ValueResourceOfRetailMediaBrands: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. + example: + attributes: + brandIds: + - 0 + - 0 + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/RetailMediaBrands' + type: object + ResourceOutcomeOfRetailMediaAccount: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single entity. + example: + data: + attributes: + companyName: companyName + parentAccountLabel: parentAccountLabel + name: name + onBehalfCompanyName: onBehalfCompanyName + countryIds: + - countryIds + - countryIds + timeZone: timeZone + subType: Unknown + type: Unknown + currencyId: currencyId + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/ResourceOfRetailMediaAccount' + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + type: object + ValueResourceCollectionOutcomeOfRetailMediaSeller: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + several values. + example: + data: + - attributes: + sellerId: sellerId + retailerId: 0 + type: type + - attributes: + sellerId: sellerId + retailerId: 0 + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + items: + $ref: '#/components/schemas/ValueResourceOfRetailMediaSeller' + nullable: true + type: array + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + type: object + PageOfBalanceHistoryChangeDataCaptureV1: + additionalProperties: false + description: A wrapper class to return a single page of items with metadata. + example: + data: + - dateOfModification: 2000-01-23T04:56:07.000+00:00 + modifiedByUser: modifiedByUser + changeType: BalanceCreated + memo: memo + changeDetails: + changeValue: changeValue + previousValue: previousValue + currentValue: currentValue + - dateOfModification: 2000-01-23T04:56:07.000+00:00 + modifiedByUser: modifiedByUser + changeType: BalanceCreated + memo: memo + changeDetails: + changeValue: changeValue + previousValue: previousValue + currentValue: currentValue + meta: + offset: 6 + count: 0 + limit: 1 + properties: + meta: + $ref: '#/components/schemas/Metadata' + data: + items: + $ref: '#/components/schemas/BalanceHistoryChangeDataCaptureV1' + type: array + required: + - data + - meta + type: object + ValueResourceOutcomeOfCampaignBudgetOverrides: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. + example: + data: + attributes: + monthlyBudgetOverrides: + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + dailyBudgetOverrides: + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/ValueResourceOfCampaignBudgetOverrides' + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + type: object + ValueResourceOutcomeOfLineItemBudgetOverrides: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. + example: + data: + attributes: + monthlyLineItemBudgetOverrides: + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + dailyLineItemBudgetOverrides: + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/ValueResourceOfLineItemBudgetOverrides' + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + type: object + ValueResourceInputOfRetailMediaBrands: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API request for a + single value. + example: + data: + attributes: + brandIds: + - 0 + - 0 + type: type + properties: + data: + $ref: '#/components/schemas/ValueResourceOfRetailMediaBrands' + type: object + ValueResourceInputOfRetailMediaBrandAccountCreation: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API request for a + single value. + example: + data: + attributes: + brands: + - 0 + - 0 + companyName: companyName + name: name + onBehalfCompanyName: onBehalfCompanyName + type: type + properties: + data: + $ref: '#/components/schemas/ValueResourceOfRetailMediaBrandAccountCreation' + type: object + ValueResourceInputOfRetailMediaSellerAccountCreation: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API request for a + single value. + example: + data: + attributes: + companyName: companyName + name: name + onBehalfCompanyName: onBehalfCompanyName + sellers: + - sellerId: sellerId + retailerId: 0 + - sellerId: sellerId + retailerId: 0 + type: type + properties: + data: + $ref: '#/components/schemas/ValueResourceOfRetailMediaSellerAccountCreation' + type: object + ValueResourceCollectionInputOfRetailMediaSeller: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API request for several + values. + example: + data: + - attributes: + sellerId: sellerId + retailerId: 0 + type: type + - attributes: + sellerId: sellerId + retailerId: 0 + type: type + properties: + data: + items: + $ref: '#/components/schemas/ValueResourceOfRetailMediaSeller' + nullable: true + type: array + type: object + ValueResourceInputOfCampaignBudgetOverrides: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API request for a + single value. + example: + data: + attributes: + monthlyBudgetOverrides: + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + dailyBudgetOverrides: + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + type: type + properties: + data: + $ref: '#/components/schemas/ValueResourceOfCampaignBudgetOverrides' + type: object + ValueResourceInputOfLineItemBudgetOverrides: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API request for a + single value. + example: + data: + attributes: + monthlyLineItemBudgetOverrides: + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + dailyLineItemBudgetOverrides: + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + type: type + properties: + data: + $ref: '#/components/schemas/ValueResourceOfLineItemBudgetOverrides' + type: object + RetailMediaBrands: + additionalProperties: false + description: A collection of brand ids + example: + brandIds: + - 0 + - 0 + properties: + brandIds: + items: + format: int64 + type: integer + nullable: true + type: array + type: object + ResourceOfRetailMediaAccount: + additionalProperties: false + description: A class that represents a domain entity exposed by an API. + example: + attributes: + companyName: companyName + parentAccountLabel: parentAccountLabel + name: name + onBehalfCompanyName: onBehalfCompanyName + countryIds: + - countryIds + - countryIds + timeZone: timeZone + subType: Unknown + type: Unknown + currencyId: currencyId + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/RetailMediaAccount' + id: + description: Unique identifier of this resource. + nullable: true + type: string + type: + nullable: true + type: string + type: object + ValueResourceOfRetailMediaSeller: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. + example: + attributes: + sellerId: sellerId + retailerId: 0 + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/RetailMediaSeller' + type: object + Metadata: + additionalProperties: false + description: Metadata related to the current request. + example: + offset: 6 + count: 0 + limit: 1 + properties: + count: + format: int64 + nullable: true + type: integer + offset: + description: The (zero-based) starting offset in the collection. + format: int32 + type: integer + limit: + description: The number of elements to be returned. + format: int32 + type: integer + required: + - limit + - offset + type: object + BalanceHistoryChangeDataCaptureV1: + additionalProperties: false + description: Data model represents the data change capture of balance history. + example: + dateOfModification: 2000-01-23T04:56:07.000+00:00 + modifiedByUser: modifiedByUser + changeType: BalanceCreated + memo: memo + changeDetails: + changeValue: changeValue + previousValue: previousValue + currentValue: currentValue + properties: + dateOfModification: + description: Date when data change has occured. + format: date-time + type: string + modifiedByUser: + description: Username who modified the insertion order. + type: string + changeType: + description: Represent the type of change states of the history. + enum: + - BalanceCreated + - BalanceAdded + - BalanceRemoved + - BalanceUncapped + - BalanceCapped + - EndDate + - StartDate + - BalanceName + - PoNumber + - ValueAdd + - Unknown + type: string + changeDetails: + $ref: '#/components/schemas/ChangeDetailsV1' + memo: + description: Memo associate with the insertion order modification. + nullable: true + type: string + required: + - changeDetails + - changeType + - dateOfModification + - modifiedByUser + type: object + ValueResourceOfCampaignBudgetOverrides: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. + example: + attributes: + monthlyBudgetOverrides: + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + dailyBudgetOverrides: + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/CampaignBudgetOverrides' + type: object + ValueResourceOfLineItemBudgetOverrides: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. + example: + attributes: + monthlyLineItemBudgetOverrides: + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + dailyLineItemBudgetOverrides: + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/LineItemBudgetOverrides' + type: object + ValueResourceOfRetailMediaBrandAccountCreation: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. + example: + attributes: + brands: + - 0 + - 0 + companyName: companyName + name: name + onBehalfCompanyName: onBehalfCompanyName + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/RetailMediaBrandAccountCreation' + type: object + ValueResourceOfRetailMediaSellerAccountCreation: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. + example: + attributes: + companyName: companyName + name: name + onBehalfCompanyName: onBehalfCompanyName + sellers: + - sellerId: sellerId + retailerId: 0 + - sellerId: sellerId + retailerId: 0 + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/RetailMediaSellerAccountCreation' + type: object + RetailMediaAccount: + additionalProperties: false + description: The details for a newly created account + example: + companyName: companyName + parentAccountLabel: parentAccountLabel + name: name + onBehalfCompanyName: onBehalfCompanyName + countryIds: + - countryIds + - countryIds + timeZone: timeZone + subType: Unknown + type: Unknown + currencyId: currencyId + properties: + name: + description: account name + nullable: true + type: string + companyName: + description: Paying entity name of ads for the Digital Services Act + nullable: true + type: string + onBehalfCompanyName: + description: On behalf entity name of ads for the Digital Services Act + nullable: true + type: string + type: + description: Type for the account + enum: + - Unknown + - Supply + - Demand + nullable: true + type: string + subType: + description: subtype for the account + enum: + - Unknown + - Brand + - Seller + nullable: true + type: string + countryIds: + description: list of countries associated with the account + items: + type: string + nullable: true + type: array + currencyId: + description: the currency for the account + nullable: true + type: string + parentAccountLabel: + description: parent account label for the account + nullable: true + type: string + timeZone: + description: the timezone for the account + nullable: true + type: string + type: object + RetailMediaSeller: + additionalProperties: false + description: used to define the exact seller linked with an account + example: + sellerId: sellerId + retailerId: 0 + properties: + sellerId: + description: the seller id + nullable: true + type: string + retailerId: + description: the retailer id + format: int32 + nullable: true + type: integer + type: object + ChangeDetailsV1: + additionalProperties: false + description: Change details of a property of the balance. + example: + changeValue: changeValue + previousValue: previousValue + currentValue: currentValue + properties: + previousValue: + description: Previous value of a property of the insertion order. + nullable: true + type: string + currentValue: + description: Current value of a property of the insertion order. + nullable: true + type: string + changeValue: + description: Change detail of a property of the insertion order. + nullable: true + type: string + required: + - changeValue + - currentValue + - previousValue + type: object + CampaignBudgetOverrides: + additionalProperties: false + description: Campaign budget overrides including Monthly and Daily budget overrides. + example: + monthlyBudgetOverrides: + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + dailyBudgetOverrides: + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + properties: + monthlyBudgetOverrides: + description: "Campaign budget override monthly part, chronological order\ + \ restricted." + items: + $ref: '#/components/schemas/CampaignMonthlyBudgetOverride' + type: array + dailyBudgetOverrides: + description: "Campaign budget override daily part, chronological order restricted." + items: + $ref: '#/components/schemas/CampaignDailyBudgetOverride' + type: array + required: + - dailyBudgetOverrides + - monthlyBudgetOverrides + type: object + LineItemBudgetOverrides: + additionalProperties: false + description: Line item budget overrides including Monthly and Daily budget overrides. + example: + monthlyLineItemBudgetOverrides: + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + dailyLineItemBudgetOverrides: + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + properties: + monthlyLineItemBudgetOverrides: + description: "Line item budget override monthly part, chronological order\ + \ restricted." + items: + $ref: '#/components/schemas/MonthlyLineItemBudegetOverride' + type: array + dailyLineItemBudgetOverrides: + description: "Line item budget override daily part, chronological order\ + \ restricted." + items: + $ref: '#/components/schemas/DailyLineItemBudgetOverride' + type: array + required: + - dailyLineItemBudgetOverrides + - monthlyLineItemBudgetOverrides + type: object + RetailMediaBrandAccountCreation: + additionalProperties: false + description: the initial set up and configuration options for a new private + market demand brand account + example: + brands: + - 0 + - 0 + companyName: companyName + name: name + onBehalfCompanyName: onBehalfCompanyName + properties: + name: + description: "the name of the account, must be unique across all accounts" + nullable: true + type: string + companyName: + description: Paying entity name of ads for the Digital Services Act + nullable: true + type: string + onBehalfCompanyName: + description: On behalf entity name of ads for the Digital Services Act + nullable: true + type: string + brands: + description: list of brands to link to the new account + items: + format: int64 + type: integer + nullable: true + type: array + type: object + RetailMediaSellerAccountCreation: + additionalProperties: false + description: the initial set up and configuration options for a new private + market demand brand account + example: + companyName: companyName + name: name + onBehalfCompanyName: onBehalfCompanyName + sellers: + - sellerId: sellerId + retailerId: 0 + - sellerId: sellerId + retailerId: 0 + properties: + name: + description: "the name of the account, must be unique across all accounts" + nullable: true + type: string + companyName: + description: Paying entity name of ads for the Digital Services Act + nullable: true + type: string + onBehalfCompanyName: + description: On behalf entity name of ads for the Digital Services Act + nullable: true + type: string + sellers: + description: list of sellers to associate to the new account + items: + $ref: '#/components/schemas/RetailMediaSeller' + nullable: true + type: array + type: object + CampaignMonthlyBudgetOverride: + additionalProperties: false + description: Campaign monthly budget override. + example: + duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + properties: + startMonth: + description: "Monthly budget override start month, format \"yyyy-MM\". If\ + \ it is null, the StartMonth would be the following month of the last\ + \ item in the override sequence." + format: date-time + nullable: true + type: string + duration: + description: "The number of MONTHs that the override is active from StartMonth,\ + \ e.g. \"1M\". Must end with 'M' or 'm'." + type: string + maxMonthlySpend: + description: Monthly budget override maximum monthly spend amount. + format: double + type: number + status: + description: Monthly budget override computed status. + enum: + - Expired + - Active + - Upcoming + nullable: true + type: string + required: + - duration + - maxMonthlySpend + type: object + CampaignDailyBudgetOverride: + additionalProperties: false + description: Campaign daily budget override. + example: + duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + properties: + startDate: + description: "Daily budget override start date, format \"yyyy-MM-dd\". If\ + \ it is null, the StartDate would be the following date of the last item\ + \ in the override sequence." format: date-time + nullable: true type: string - endDate: - description: End date + duration: + description: "The number of DAYs that the override is active from StartDate,\ + \ e.g. \"1D\". Must end with 'D' or 'd'." + type: string + maxDailySpend: + description: Daily budget override maximum daily spend amount. + format: double + type: number + status: + description: Daily budget override computed status. + enum: + - Expired + - Active + - Upcoming + nullable: true + type: string + required: + - duration + - maxDailySpend + type: object + MonthlyLineItemBudegetOverride: + additionalProperties: false + description: The details for a monthly budget override + example: + duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + properties: + startMonth: + description: "Monthly budget override start month, format \"yyyy-MM\". If\ + \ it is null, the StartMonth would be the following month of the last\ + \ item in the override sequence." format: date-time + nullable: true type: string - timezone: - default: UTC - description: "Time zone : see criteo developer portal for supported time\ - \ zones" + duration: + description: "The number of MONTHs that the override is active from StartMonth,\ + \ e.g. \"1M\". Must end with 'M' or 'm'." + type: string + maxMonthlySpend: + description: Monthly budget override maximum monthly spend amount. + format: double + type: number + status: + description: Monthly budget override computed status. + enum: + - Expired + - Active + - Upcoming nullable: true type: string required: - - endDate - - startDate + - duration + - maxMonthlySpend + type: object + DailyLineItemBudgetOverride: + additionalProperties: false + description: The details for a daily budget override + example: + duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + properties: + startDate: + description: "Daily budget override start date, format \"yyyy-MM-dd\". If\ + \ it is null, the StartDate would be the following date of the last item\ + \ in the override sequence." + format: date-time + nullable: true + type: string + duration: + description: "The number of DAYs that the override is active from StartDate,\ + \ e.g. \"1D\". Must end with 'D' or 'd'." + type: string + maxDailySpend: + description: Daily budget override maximum daily spend amount. + format: double + nullable: true + type: number + status: + description: Daily budget override computed status. + enum: + - Expired + - Active + - Upcoming + nullable: true + type: string + required: + - duration type: object - Balance202110PagedListResponse: + PagedResourceCollectionOutcomeOfBalanceResponseV2: description: Data model for a paged list of response resources example: metadata: @@ -8681,30 +12522,34 @@ components: currentPageIndex: 1 data: - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 privateMarketBillingType: NotApplicable endDate: 2000-01-23 deposited: 0.8008281904610115 spent: 6.027456183070403 - name: name memo: memo - poNumber: poNumber + spendType: Onsite remaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + balanceType: unknown + name: name + poNumber: poNumber startDate: 2000-01-23 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 privateMarketBillingType: NotApplicable endDate: 2000-01-23 deposited: 0.8008281904610115 spent: 6.027456183070403 - name: name memo: memo - poNumber: poNumber + spendType: Onsite remaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + balanceType: unknown + name: name + poNumber: poNumber startDate: 2000-01-23 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 @@ -8757,23 +12602,103 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/ResourceOfBalance202110' + $ref: '#/components/schemas/ResourceOfBalanceResponseV2' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' readOnly: true type: array x-nullable: false errors: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' readOnly: true type: array x-nullable: false type: object - x-nullable: false + BalanceResponseV2Response: + description: A top-level object that encapsulates a Criteo API response for + a single entity + example: + data: + attributes: + privateMarketBillingType: NotApplicable + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + memo: memo + spendType: Onsite + remaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + balanceType: unknown + name: name + poNumber: poNumber + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/ResourceOfBalanceResponseV2' + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + readOnly: true + type: array + x-nullable: false + errors: + items: + $ref: '#/components/schemas/CommonProblem' + readOnly: true + type: array + x-nullable: false + type: object + x-nullable: true JsonApiPageResponseOfCampaignV202301: description: A wrapper class to return a single page of with metadata @@ -8794,6 +12719,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -8822,6 +12748,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -8916,6 +12843,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -9442,7 +13370,7 @@ components: x-nullable: false type: object x-nullable: false - PreferredLineItem202110PagedListResponse: + PreferredLineItemV2PagedListResponse: description: Data model for a paged list of response resources example: metadata: @@ -9466,7 +13394,7 @@ components: budgetSpent: 1.4658129805029452 name: name page: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -9495,7 +13423,7 @@ components: budgetSpent: 1.4658129805029452 name: name page: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -9558,25 +13486,26 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' + $ref: '#/components/schemas/ResourceOfPreferredLineItemV2' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' readOnly: true type: array x-nullable: false errors: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' readOnly: true type: array x-nullable: false type: object x-nullable: false - PreferredLineItem202110Response: - description: Data model for response resource + PreferredLineItemV2Response: + description: A top-level object that encapsulates a Criteo API response for + a single entity example: data: attributes: @@ -9592,7 +13521,7 @@ components: budgetSpent: 1.4658129805029452 name: name page: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -9652,16 +13581,16 @@ components: title: title properties: data: - $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' + $ref: '#/components/schemas/ResourceOfPreferredLineItemV2' warnings: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' readOnly: true type: array x-nullable: false errors: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' readOnly: true type: array x-nullable: false @@ -9675,93 +13604,20 @@ components: budgetRemaining: 1.4658129805029452 createdAt: 2000-01-23T04:56:07.000+00:00 endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/ResourceOfCommonLineItem' - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - type: object - x-nullable: false - JsonApiSingleResponseOfLineItemBidMultipliers: - description: Data model for the response of a line item bid multiplier - example: - data: - attributes: - search: 0.8008281904610115 - productDetail: 5.962133916683182 - deals: 7.061401241503109 - categories: 1.4658129805029452 - confirmation: 5.637376656633329 - merchandising: 2.3021358869347655 - checkout: 9.301444243932576 - homepage: 6.027456183070403 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type warnings: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9771,6 +13627,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9781,6 +13638,7 @@ components: title: title errors: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9790,6 +13648,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9800,39 +13659,42 @@ components: title: title properties: data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers' - errors: + $ref: '#/components/schemas/ResourceOfCommonLineItem' + warnings: items: - $ref: '#/components/schemas/CommonError' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - warnings: + errors: items: - $ref: '#/components/schemas/CommonWarning' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - required: - - data type: object x-nullable: false - LineItemBidMultipliersResponse: - description: Data model for response resource + JsonApiSingleResponseOfLineItemBidMultipliersV2: + description: A JSON:API wrapper class to add one JSON:API within a data property example: data: attributes: + favorites: 3.616076749251911 search: 0.8008281904610115 productDetail: 5.962133916683182 deals: 7.061401241503109 - categories: 1.4658129805029452 + searchBar: 2.027123023002322 + categoryMenu: 4.145608029883936 confirmation: 5.637376656633329 + category: 1.4658129805029452 merchandising: 2.3021358869347655 checkout: 9.301444243932576 - homepage: 6.027456183070403 + home: 6.027456183070403 id: id type: type warnings: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9842,7 +13704,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9853,7 +13714,6 @@ components: title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9863,7 +13723,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9874,38 +13733,38 @@ components: title: title properties: data: - $ref: '#/components/schemas/ResourceOfLineItemBidMultipliers' - warnings: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2' + errors: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonError' + nullable: true type: array - x-nullable: false - errors: + warnings: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonWarning' + nullable: true type: array - x-nullable: false + required: + - data type: object x-nullable: false - PromotedProduct202110PagedListResponse: - description: Data model for a paged list of response resources + LineItemBidMultipliersV2Response: + description: A top-level object that encapsulates a Criteo API response for + a single entity example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - bidOverride: 0.8008281904610115 - id: id - type: type - - attributes: - bidOverride: 0.8008281904610115 + attributes: + favorites: 3.616076749251911 + search: 0.8008281904610115 + productDetail: 5.962133916683182 + deals: 7.061401241503109 + searchBar: 2.027123023002322 + categoryMenu: 4.145608029883936 + confirmation: 5.637376656633329 + category: 1.4658129805029452 + merchandising: 2.3021358869347655 + checkout: 9.301444243932576 + home: 6.027456183070403 id: id type: type warnings: @@ -9951,27 +13810,22 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfPromotedProduct202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfLineItemBidMultipliersV2' warnings: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array - x-nullable: false errors: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array - x-nullable: false type: object - x-nullable: false + x-nullable: true AddToBasketTarget202110Response: description: Data model for a value type resource outcome example: @@ -10182,6 +14036,72 @@ components: x-nullable: false type: object x-nullable: false + CreateBalanceV2Request: + description: A top-level object that encapsulates a Criteo API request for a + single entity + example: + data: + attributes: + endDate: 2000-01-23 + deposited: 0.8008281904610115 + name: name + memo: memo + poNumber: poNumber + spendType: Onsite + startDate: 2000-01-23 + id: id + type: type + properties: + data: + $ref: '#/components/schemas/ResourceOfCreateBalanceV2' + type: object + UpdateBalanceModelV2Request: + description: A top-level object that encapsulates a Criteo API request for a + single entity + example: + data: + attributes: + endDate: endDate + name: name + memo: memo + poNumber: poNumber + startDate: startDate + id: id + type: type + properties: + data: + $ref: '#/components/schemas/ResourceOfUpdateBalanceModelV2' + type: object + AddFundsToBalanceV2Request: + description: A top-level object that encapsulates a Criteo API request for a + single entity + example: + data: + attributes: + deltaAmount: 0.8008281904610115 + memo: memo + poNumber: poNumber + id: id + type: type + properties: + data: + $ref: '#/components/schemas/ResourceOfAddFundsToBalanceV2' + type: object + ChangeDatesOfBalanceV2Request: + description: A top-level object that encapsulates a Criteo API request for a + single entity + example: + data: + attributes: + endDate: endDate + memo: memo + startDate: startDate + id: id + type: type + properties: + data: + $ref: '#/components/schemas/ResourceOfChangeDatesOfBalanceV2' + type: object PostCampaignV202301: description: An object that represents the available options to set when creating a Retail Media Campaign @@ -10194,6 +14114,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -10288,7 +14209,7 @@ components: $ref: '#/components/schemas/InputResourceOfAuctionLineItemCreateModel' type: object x-nullable: false - PreferredLineItemCreateModel202110Request: + PreferredLineItemCreateModelV2Request: description: Data model for a create input resource example: data: @@ -10300,7 +14221,7 @@ components: count: 0 type: unknown page: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -10317,7 +14238,7 @@ components: type: type properties: data: - $ref: '#/components/schemas/InputResourceOfPreferredLineItemCreateModel202110' + $ref: '#/components/schemas/InputResourceOfPreferredLineItemCreateModelV2' type: object x-nullable: false PutCampaignV202301: @@ -10328,9 +14249,10 @@ components: attributes: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -10345,47 +14267,31 @@ components: $ref: '#/components/schemas/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301' type: object x-nullable: false - LineItemBidMultipliersRequest: - description: Data model for an input resource + LineItemBidMultipliersV2Request: + description: A top-level object that encapsulates a Criteo API request for a + single entity example: data: attributes: + favorites: 3.616076749251911 search: 0.8008281904610115 productDetail: 5.962133916683182 deals: 7.061401241503109 - categories: 1.4658129805029452 + searchBar: 2.027123023002322 + categoryMenu: 4.145608029883936 confirmation: 5.637376656633329 + category: 1.4658129805029452 merchandising: 2.3021358869347655 checkout: 9.301444243932576 - homepage: 6.027456183070403 - id: id - type: type - properties: - data: - $ref: '#/components/schemas/ResourceOfLineItemBidMultipliers' - type: object - x-nullable: false - PromotedProduct202110ListRequest: - description: Data model for a list of input resources - example: - data: - - attributes: - bidOverride: 0.8008281904610115 - id: id - type: type - - attributes: - bidOverride: 0.8008281904610115 + home: 6.027456183070403 id: id type: type properties: data: - items: - $ref: '#/components/schemas/ResourceOfPromotedProduct202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfLineItemBidMultipliersV2' type: object - x-nullable: false - PreferredLineItemUpdateModel202110Request: + x-nullable: true + PreferredLineItemUpdateModelV2Request: description: Data model for an input resource example: data: @@ -10397,7 +14303,7 @@ components: count: 0 type: unknown page: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -10414,7 +14320,7 @@ components: type: type properties: data: - $ref: '#/components/schemas/ResourceOfPreferredLineItemUpdateModel202110' + $ref: '#/components/schemas/ResourceOfPreferredLineItemUpdateModelV2' type: object x-nullable: false AddToBasketTarget202110Request: @@ -10510,25 +14416,29 @@ components: $ref: '#/components/schemas/ValueTypeResourceOfStoreIdsUpdateModel202110' type: object x-nullable: false - ResourceOfBalance202110: - description: A class that represents an entity in a guild compliant way + ResourceOfBalanceResponseV2: + description: A class that represents a domain entity exposed by an API example: attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 privateMarketBillingType: NotApplicable endDate: 2000-01-23 deposited: 0.8008281904610115 spent: 6.027456183070403 - name: name memo: memo - poNumber: poNumber + spendType: Onsite remaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + balanceType: unknown + name: name + poNumber: poNumber startDate: 2000-01-23 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type properties: + attributes: + $ref: '#/components/schemas/BalanceResponseV2' id: description: Id of the entity nullable: true @@ -10537,10 +14447,7 @@ components: description: Canonical type name of the entity nullable: true type: string - attributes: - $ref: '#/components/schemas/ExternalBalance202110' type: object - x-nullable: false JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" @@ -10553,6 +14460,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -10691,7 +14599,7 @@ components: x-nullable: false type: object x-nullable: false - ResourceOfPreferredLineItem202110: + ResourceOfPreferredLineItemV2: description: Data model for a Resource example: attributes: @@ -10707,7 +14615,7 @@ components: budgetSpent: 1.4658129805029452 name: name page: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -10733,73 +14641,60 @@ components: nullable: true type: string attributes: - $ref: '#/components/schemas/ExternalPreferredLineItem202110' + $ref: '#/components/schemas/ExternalPreferredLineItemV2' type: object - x-nullable: false - JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers: - description: Response object for line item bid multiplier calls + x-nullable: true + JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: + favorites: 3.616076749251911 search: 0.8008281904610115 productDetail: 5.962133916683182 deals: 7.061401241503109 - categories: 1.4658129805029452 + searchBar: 2.027123023002322 + categoryMenu: 4.145608029883936 confirmation: 5.637376656633329 + category: 1.4658129805029452 merchandising: 2.3021358869347655 checkout: 9.301444243932576 - homepage: 6.027456183070403 + home: 6.027456183070403 id: id type: type properties: id: format: long-id type: string - x-nullable: false type: type: string - x-nullable: false attributes: - $ref: '#/components/schemas/LineItemBidMultipliers' + $ref: '#/components/schemas/ExternalLineItemBidMultipliersV2' required: - id - type type: object x-nullable: false - ResourceOfLineItemBidMultipliers: - description: Data model for a Resource + ResourceOfLineItemBidMultipliersV2: + description: A class that represents a domain entity exposed by an API example: attributes: + favorites: 3.616076749251911 search: 0.8008281904610115 productDetail: 5.962133916683182 deals: 7.061401241503109 - categories: 1.4658129805029452 + searchBar: 2.027123023002322 + categoryMenu: 4.145608029883936 confirmation: 5.637376656633329 + category: 1.4658129805029452 merchandising: 2.3021358869347655 checkout: 9.301444243932576 - homepage: 6.027456183070403 + home: 6.027456183070403 id: id type: type properties: attributes: - $ref: '#/components/schemas/LineItemBidMultipliers' - id: - description: Id of the entity - nullable: true - type: string - type: - description: Canonical type name of the entity - nullable: true - type: string - type: object - x-nullable: false - ResourceOfPromotedProduct202110: - description: Data model for a Resource - example: - attributes: - bidOverride: 0.8008281904610115 - id: id - type: type - properties: + $ref: '#/components/schemas/ExternalLineItemBidMultipliersV2' id: description: Id of the entity nullable: true @@ -10808,10 +14703,8 @@ components: description: Canonical type name of the entity nullable: true type: string - attributes: - $ref: '#/components/schemas/ExternalPromotedProduct202110' type: object - x-nullable: false + x-nullable: true ValueTypeResourceOfAddToBasketTarget202110: description: Data model for a value type resource example: @@ -10861,11 +14754,101 @@ components: properties: type: type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalStoreTarget202110' + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalStoreTarget202110' + type: object + x-nullable: false + ResourceOfCreateBalanceV2: + description: A class that represents a domain entity exposed by an API + example: + attributes: + endDate: 2000-01-23 + deposited: 0.8008281904610115 + name: name + memo: memo + poNumber: poNumber + spendType: Onsite + startDate: 2000-01-23 + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/CreateBalanceV2' + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + type: object + ResourceOfUpdateBalanceModelV2: + description: A class that represents a domain entity exposed by an API + example: + attributes: + endDate: endDate + name: name + memo: memo + poNumber: poNumber + startDate: startDate + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/UpdateBalanceModelV2' + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + type: object + ResourceOfAddFundsToBalanceV2: + description: A class that represents a domain entity exposed by an API + example: + attributes: + deltaAmount: 0.8008281904610115 + memo: memo + poNumber: poNumber + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/AddFundsToBalanceV2' + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + type: object + ResourceOfChangeDatesOfBalanceV2: + description: A class that represents a domain entity exposed by an API + example: + attributes: + endDate: endDate + memo: memo + startDate: startDate + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/ChangeDatesOfBalanceV2' + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string type: object - x-nullable: false JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301: description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" @@ -10877,6 +14860,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -10953,7 +14937,7 @@ components: $ref: '#/components/schemas/ExternalAuctionLineItemCreateModel' type: object x-nullable: false - InputResourceOfPreferredLineItemCreateModel202110: + InputResourceOfPreferredLineItemCreateModelV2: description: Data model for a Resource example: attributes: @@ -10964,7 +14948,7 @@ components: count: 0 type: unknown page: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -10984,7 +14968,7 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalPreferredLineItemCreateModel202110' + $ref: '#/components/schemas/ExternalPreferredLineItemCreateModelV2' type: object x-nullable: false JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301: @@ -10994,9 +14978,10 @@ components: attributes: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -11021,7 +15006,7 @@ components: - type type: object x-nullable: false - ResourceOfPreferredLineItemUpdateModel202110: + ResourceOfPreferredLineItemUpdateModelV2: description: Data model for a Resource example: attributes: @@ -11032,7 +15017,7 @@ components: count: 0 type: unknown page: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -11057,7 +15042,7 @@ components: nullable: true type: string attributes: - $ref: '#/components/schemas/ExternalPreferredLineItemUpdateModel202110' + $ref: '#/components/schemas/ExternalPreferredLineItemUpdateModelV2' type: object x-nullable: false ValueTypeResourceOfAddToBasketIdsUpdateModel202110: @@ -11111,61 +15096,70 @@ components: $ref: '#/components/schemas/ExternalStoreIdsUpdateModel202110' type: object x-nullable: false - ExternalBalance202110: + BalanceResponseV2: description: A Retail Media Balance used to determine the funds available for any or all campaigns in an account example: - createdAt: 2000-01-23T04:56:07.000+00:00 privateMarketBillingType: NotApplicable endDate: 2000-01-23 deposited: 0.8008281904610115 spent: 6.027456183070403 - name: name memo: memo - poNumber: poNumber + spendType: Onsite remaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + balanceType: unknown + name: name + poNumber: poNumber startDate: 2000-01-23 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 properties: name: + description: Name of the balance. type: string x-nullable: false poNumber: + description: Purchase Order number. + nullable: true type: string - x-nullable: false + x-nullable: true memo: + description: Memo. + nullable: true type: string - x-nullable: false + x-nullable: true deposited: + description: Amount of billable funds allotted to the balance. format: decimal nullable: true type: number x-nullable: true spent: + description: Amount of spent funds of the balance. format: decimal nullable: true type: number x-nullable: true remaining: + description: Amount of remaining funds of the balance. format: decimal nullable: true type: number x-nullable: true startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" + description: Start date of the balance in the format YYYY-MM-DD. format: date type: string x-nullable: false endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" + description: End date of the balance in the format YYYY-MM-DD. format: date nullable: true type: string x-nullable: true status: + description: Status of the balance. enum: - unknown - scheduled @@ -11174,15 +15168,33 @@ components: type: string x-nullable: false createdAt: + description: Creation time of the balance. format: date-time type: string x-nullable: false updatedAt: + description: Update time of the balance. format: date-time type: string x-nullable: false + balanceType: + description: Type of the balance. + enum: + - unknown + - capped + - uncapped + type: string + x-nullable: false + spendType: + description: Spend Type of the balance. + enum: + - Onsite + - Offsite + - OffsiteAwareness + type: string + x-nullable: false privateMarketBillingType: - description: Billing type for Private Market. + description: Billing type for Private Market of the balance. enum: - NotApplicable - BillByRetailer @@ -11191,19 +15203,12 @@ components: type: string x-nullable: false required: - - createdAt - - deposited - - memo + - balanceType - name - - poNumber - privateMarketBillingType - - remaining - - spent + - spendType - startDate - - status - - updatedAt type: object - x-nullable: false CampaignV202301: description: A Retail Media Campaign used to represent an advertiser's marketing objective @@ -11215,6 +15220,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -11360,6 +15366,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - accountId - budgetRemaining @@ -11616,7 +15626,7 @@ components: description: Campaigns related to the balance type: object x-nullable: false - ExternalPreferredLineItem202110: + ExternalPreferredLineItemV2: description: A Retail Media Preferred Line Item used to hold bid settings for one or many promoted products on a single retailer example: @@ -11632,7 +15642,7 @@ components: budgetSpent: 1.4658129805029452 name: name page: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -11663,6 +15673,7 @@ components: format: date type: string status: + description: Line Item Status Enum enum: - unknown - active @@ -11680,32 +15691,36 @@ components: - unknown - standard - accelerated + nullable: true type: string - x-nullable: false + x-nullable: true capping: - $ref: '#/components/schemas/ExternalLineItemCapping202110' + $ref: '#/components/schemas/ExternalLineItemCappingV2' page: - $ref: '#/components/schemas/ExternalLineItemPage202110' + $ref: '#/components/schemas/ExternalLineItemPageV2' targetRetailerId: format: long-id type: string x-nullable: false budget: - format: double + format: decimal + nullable: true type: number - x-nullable: false + x-nullable: true campaignId: format: long-id type: string x-nullable: false budgetSpent: - format: double + format: decimal + nullable: true type: number - x-nullable: false + x-nullable: true budgetRemaining: - format: double + format: decimal + nullable: true type: number - x-nullable: false + x-nullable: true createdAt: format: date-time type: string @@ -11715,82 +15730,94 @@ components: type: string x-nullable: false creativeId: + description: External creative Id format: long-id nullable: true type: string x-nullable: true required: - - budget - campaignId - createdAt - endDate - name - - pacing - - page - startDate - status - targetRetailerId - updatedAt type: object x-nullable: false - LineItemBidMultipliers: - description: Data model representing bid multipliers on a line item + ExternalLineItemBidMultipliersV2: + description: The Bid Multiplier Entity of a LineItem example: + favorites: 3.616076749251911 search: 0.8008281904610115 productDetail: 5.962133916683182 deals: 7.061401241503109 - categories: 1.4658129805029452 + searchBar: 2.027123023002322 + categoryMenu: 4.145608029883936 confirmation: 5.637376656633329 + category: 1.4658129805029452 merchandising: 2.3021358869347655 checkout: 9.301444243932576 - homepage: 6.027456183070403 + home: 6.027456183070403 properties: search: - format: double + description: Search Page Type Bid Multiplier + format: decimal + nullable: true type: number - x-nullable: false - homepage: - format: double + home: + description: Home Page Type Bid Multiplier + format: decimal + nullable: true type: number - x-nullable: false - categories: - format: double + category: + description: Categories Page Type Bid Multiplier + format: decimal + nullable: true type: number - x-nullable: false productDetail: - format: double + description: ProductDetail Page Type Bid Multiplier + format: decimal + nullable: true type: number - x-nullable: false confirmation: - format: double + description: Confirmation Page Type Bid Multiplier + format: decimal + nullable: true type: number - x-nullable: false merchandising: - format: double + description: Merchandising Page Type Bid Multiplier + format: decimal + nullable: true type: number - x-nullable: false deals: - format: double + description: Deals Page Type Bid Multiplier + format: decimal + nullable: true type: number - x-nullable: false checkout: - format: double + description: Checkout Page Type Bid Multiplier + format: decimal + nullable: true type: number - x-nullable: false - type: object - x-nullable: false - ExternalPromotedProduct202110: - description: identifies a promoted product - example: - bidOverride: 0.8008281904610115 - properties: - bidOverride: + favorites: + description: Favorites Page Type Bid Multiplier + format: decimal + nullable: true + type: number + searchBar: + description: SearchBar Page Type Bid Multiplier + format: decimal + nullable: true + type: number + categoryMenu: + description: CategoryMenu Page Type Bid Multiplier format: decimal nullable: true type: number - x-nullable: true type: object - x-nullable: false + x-nullable: true ExternalAddToBasketTarget202110: description: Identifies add to basket targeting for a line item example: @@ -11884,6 +15911,148 @@ components: - storeIds type: object x-nullable: false + CreateBalanceV2: + description: An object that represents the available options to set when creating + a Retail Media Balance + example: + endDate: 2000-01-23 + deposited: 0.8008281904610115 + name: name + memo: memo + poNumber: poNumber + spendType: Onsite + startDate: 2000-01-23 + properties: + name: + description: Name of the balance. + type: string + x-nullable: false + poNumber: + description: Purchase Order number. + nullable: true + type: string + x-nullable: true + deposited: + description: Amount of billable funds allotted to the balance. + format: decimal + nullable: true + type: number + startDate: + description: Start date of the balance in the format YYYY-MM-DD. + format: date + type: string + x-nullable: false + endDate: + description: End date of the balance in the format YYYY-MM-DD. + format: date + nullable: true + type: string + x-nullable: true + spendType: + description: Type of the balance spend. + enum: + - Onsite + - Offsite + - OffsiteAwareness + type: string + x-nullable: false + memo: + description: Memo + nullable: true + type: string + x-nullable: true + required: + - name + - spendType + - startDate + type: object + UpdateBalanceModelV2: + description: An object that represents the available options to set when updating + a Retail Media Balance. + example: + endDate: endDate + name: name + memo: memo + poNumber: poNumber + startDate: startDate + properties: + name: + description: Name of the balance. + nullable: true + type: string + x-nullable: true + poNumber: + description: Purchase Order number. + nullable: true + type: string + x-nullable: true + startDate: + description: Start date of the balance in the format YYYY-MM-DD. + nullable: true + type: string + x-nullable: true + endDate: + description: End date of the balance in the format YYYY-MM-DD. + nullable: true + type: string + x-nullable: true + memo: + description: Memo. + nullable: true + type: string + x-nullable: true + type: object + AddFundsToBalanceV2: + description: An object that represents the available options of adding funds + to a balance. + example: + deltaAmount: 0.8008281904610115 + memo: memo + poNumber: poNumber + properties: + deltaAmount: + description: Amount of billable funds to be added / decreased allotted to + the balance. + format: decimal + type: number + x-nullable: false + poNumber: + description: Purchase Order number. + nullable: true + type: string + x-nullable: true + memo: + description: Memo + nullable: true + type: string + x-nullable: true + required: + - deltaAmount + type: object + ChangeDatesOfBalanceV2: + description: An object that represents the available options to modify schedule + of a balance. + example: + endDate: endDate + memo: memo + startDate: startDate + properties: + startDate: + description: Start date of the balance in the format YYYY-MM-DD. + nullable: true + type: string + x-nullable: true + endDate: + description: End date of the balance in the format YYYY-MM-DD. + nullable: true + type: string + x-nullable: true + memo: + description: Memo. + nullable: true + type: string + x-nullable: true + type: object CampaignAttributesV202301: description: An object that represents the available options to set when creating a Retail Media Campaign @@ -11894,6 +16063,7 @@ components: drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds + onBehalfCompanyName: onBehalfCompanyName type: auction clickAttributionScope: unknown viewAttributionScope: unknown @@ -11994,6 +16164,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - endDate - isAutoDailyPacing @@ -12183,7 +16357,7 @@ components: - targetRetailerId type: object x-nullable: false - ExternalPreferredLineItemCreateModel202110: + ExternalPreferredLineItemCreateModelV2: description: Model used to create a preferred line item example: pacing: unknown @@ -12193,7 +16367,7 @@ components: count: 0 type: unknown page: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -12224,6 +16398,7 @@ components: format: date type: string status: + description: Line Item Status Enum enum: - unknown - active @@ -12237,6 +16412,7 @@ components: type: string x-nullable: false pacing: + description: Line Item Pacing Enum enum: - unknown - standard @@ -12244,9 +16420,9 @@ components: type: string x-nullable: false capping: - $ref: '#/components/schemas/ExternalLineItemCapping202110' + $ref: '#/components/schemas/ExternalLineItemCappingV2' page: - $ref: '#/components/schemas/ExternalLineItemPage202110' + $ref: '#/components/schemas/ExternalLineItemPageV2' targetRetailerId: format: long-id type: string @@ -12276,9 +16452,10 @@ components: example: clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 + companyName: companyName + onBehalfCompanyName: onBehalfCompanyName clickAttributionScope: unknown viewAttributionScope: unknown - companyName: companyName name: name viewAttributionWindow: None isAutoDailyPacing: true @@ -12360,6 +16537,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - clickAttributionWindow - endDate @@ -12369,7 +16550,7 @@ components: - viewAttributionWindow type: object x-nullable: false - ExternalPreferredLineItemUpdateModel202110: + ExternalPreferredLineItemUpdateModelV2: description: Model used to update a preferred line item example: pacing: accelerated @@ -12379,7 +16560,7 @@ components: count: 0 type: unknown page: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -12409,6 +16590,7 @@ components: format: date type: string status: + description: Line Item Status Enum enum: - unknown - active @@ -12430,9 +16612,9 @@ components: type: string x-nullable: false capping: - $ref: '#/components/schemas/ExternalLineItemCapping202110' + $ref: '#/components/schemas/ExternalLineItemCappingV2' page: - $ref: '#/components/schemas/ExternalLineItemPage202110' + $ref: '#/components/schemas/ExternalLineItemPageV2' budget: format: double type: number @@ -12511,13 +16693,14 @@ components: - storeIds type: object x-nullable: false - ExternalLineItemCapping202110: - description: Frequency capping for a preferred line item + ExternalLineItemCappingV2: + description: Frequency Capping for a Preferred Line Item example: count: 0 type: unknown properties: type: + description: Line Item Capping Type Enum enum: - unknown - day @@ -12533,10 +16716,10 @@ components: - type type: object x-nullable: false - ExternalLineItemPage202110: + ExternalLineItemPageV2: description: Page information for a preferred line item example: - pageType: search + pageType: unknown searchKeywords: - searchKeywords - searchKeywords @@ -12547,20 +16730,26 @@ components: categoryId: categoryId properties: pageType: + description: Page Type Enum enum: + - unknown - search - home + - browse - checkout - category - productDetail - confirmation - merchandising - deals + - favorites + - searchBar + - categoryMenu type: string x-nullable: false categories: items: - $ref: '#/components/schemas/ExternalLineItemPageCategory202110' + $ref: '#/components/schemas/ExternalLineItemPageCategoryV2' type: array x-nullable: false searchKeywords: @@ -12573,7 +16762,7 @@ components: - pageType type: object x-nullable: false - ExternalLineItemPageCategory202110: + ExternalLineItemPageCategoryV2: description: Category information for a preferred line item page example: includeChildren: true @@ -12598,6 +16787,90 @@ components: type: string required: - AssetFile + RetailMediaContactlistOperationResponseAttributes_attributes: + description: The attributes of Retaile Media contact list operation + example: + nbValidIdentifiers: 1 + nbInvalidIdentifiers: 6 + sampleInvalidIdentifiers: + - sampleInvalidIdentifiers + - sampleInvalidIdentifiers + contactListId: 0 + requestDate: 2000-01-23T04:56:07.000+00:00 + identifierType: identifierType + operation: operation + properties: + contactListId: + description: The affected user list id + format: int64 + type: integer + operation: + description: The action recorded + type: string + requestDate: + description: When the action was recorded + format: date-time + type: string + identifierType: + description: The schema specified for of the identifiers + nullable: true + type: string + nbInvalidIdentifiers: + description: How many identifiers were invalid for the specified schema + format: int32 + nullable: true + type: integer + nbValidIdentifiers: + description: How many identifiers were valid for the specified schema + format: int32 + nullable: true + type: integer + sampleInvalidIdentifiers: + description: A sample of invalid identifiers if there is some + items: + type: string + nullable: true + type: array + required: + - contactListId + - operation + - requestDate + type: object + RetailMediaContactlistAmendment_attributes: + description: Attributes of retail media contact list amendment + example: + identifiers: + - identifiers + - identifiers + identifierType: Email + operation: add + properties: + operation: + description: Whether to add or remove users + enum: + - add + - remove + type: string + identifierType: + description: What type of identifiers are used + enum: + - Email + - UserIdentifier + - IdentityLink + - Gum + - CustomerId + - PhoneNumber + nullable: true + type: string + identifiers: + description: "The users to add or remove, each in the schema specified" + items: + type: string + type: array + required: + - identifiers + - operation + type: object securitySchemes: oauth: flows: diff --git a/sdks/retailmedia_2023-07/build.gradle b/sdks/retailmedia_2024-10/build.gradle similarity index 97% rename from sdks/retailmedia_2023-07/build.gradle rename to sdks/retailmedia_2024-10/build.gradle index 17b212c2..8031358e 100644 --- a/sdks/retailmedia_2023-07/build.gradle +++ b/sdks/retailmedia_2024-10/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2023.07.0.240826' +version = '2024.10.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-retailmedia-sdk' - version '2023.07.0.240826' + version '2024.10.0.241029' from components.java artifact sourcesJar artifact javadocJar @@ -82,7 +82,7 @@ publishing { pom { packaging = 'jar' name = 'com.criteo:criteo-api-retailmedia-sdk' - description = 'JAVA SDK for Criteo API retailmedia for 2023_07 version' + description = 'JAVA SDK for Criteo API retailmedia for 2024_10 version' url = 'https://github.com/criteo/criteo-api-java-sdk' licenses { license { diff --git a/sdks/retailmedia_2024-10/docs/AccountsApi.md b/sdks/retailmedia_2024-10/docs/AccountsApi.md new file mode 100644 index 00000000..1422a8bb --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/AccountsApi.md @@ -0,0 +1,562 @@ +# AccountsApi + +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addBrands**](AccountsApi.md#addBrands) | **POST** /2024-10/retail-media/account-management/accounts/{accountId}/brands/add | | +| [**createPrivateMarketDemandBrandAccount**](AccountsApi.md#createPrivateMarketDemandBrandAccount) | **POST** /2024-10/retail-media/account-management/accounts/{accountId}/create-brand-account | | +| [**createPrivateMarketDemandSellerAccount**](AccountsApi.md#createPrivateMarketDemandSellerAccount) | **POST** /2024-10/retail-media/account-management/accounts/{accountId}/create-seller-account | | +| [**getApiV1ExternalAccounts**](AccountsApi.md#getApiV1ExternalAccounts) | **GET** /2024-10/retail-media/accounts | | +| [**removeBrands**](AccountsApi.md#removeBrands) | **POST** /2024-10/retail-media/account-management/accounts/{accountId}/brands/remove | | +| [**updateSellers**](AccountsApi.md#updateSellers) | **PUT** /2024-10/retail-media/account-management/accounts/{accountId}/sellers | | + + + +## addBrands + +> ValueResourceOfRetailMediaBrands addBrands(accountId, valueResourceInputOfRetailMediaBrands) + + + +Add brands to an account + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AccountsApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AccountsApi apiInstance = new AccountsApi(defaultClient); + String accountId = "accountId_example"; // String | the account id to update + ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands = new ValueResourceInputOfRetailMediaBrands(); // ValueResourceInputOfRetailMediaBrands | brands to associate to account + try { + ValueResourceOfRetailMediaBrands result = apiInstance.addBrands(accountId, valueResourceInputOfRetailMediaBrands); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountsApi#addBrands"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| the account id to update | | +| **valueResourceInputOfRetailMediaBrands** | [**ValueResourceInputOfRetailMediaBrands**](ValueResourceInputOfRetailMediaBrands.md)| brands to associate to account | [optional] | + +### Return type + +[**ValueResourceOfRetailMediaBrands**](ValueResourceOfRetailMediaBrands.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + +## createPrivateMarketDemandBrandAccount + +> ResourceOutcomeOfRetailMediaAccount createPrivateMarketDemandBrandAccount(accountId, valueResourceInputOfRetailMediaBrandAccountCreation) + + + +Creates a new child Demand Brand Account for the provided parent private market account + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AccountsApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AccountsApi apiInstance = new AccountsApi(defaultClient); + String accountId = "accountId_example"; // String | Account Id for the parent private market account + ValueResourceInputOfRetailMediaBrandAccountCreation valueResourceInputOfRetailMediaBrandAccountCreation = new ValueResourceInputOfRetailMediaBrandAccountCreation(); // ValueResourceInputOfRetailMediaBrandAccountCreation | Initial creation and configuration options for the new account + try { + ResourceOutcomeOfRetailMediaAccount result = apiInstance.createPrivateMarketDemandBrandAccount(accountId, valueResourceInputOfRetailMediaBrandAccountCreation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountsApi#createPrivateMarketDemandBrandAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| Account Id for the parent private market account | | +| **valueResourceInputOfRetailMediaBrandAccountCreation** | [**ValueResourceInputOfRetailMediaBrandAccountCreation**](ValueResourceInputOfRetailMediaBrandAccountCreation.md)| Initial creation and configuration options for the new account | [optional] | + +### Return type + +[**ResourceOutcomeOfRetailMediaAccount**](ResourceOutcomeOfRetailMediaAccount.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Success | - | + + +## createPrivateMarketDemandSellerAccount + +> ResourceOutcomeOfRetailMediaAccount createPrivateMarketDemandSellerAccount(accountId, valueResourceInputOfRetailMediaSellerAccountCreation) + + + +Creates a new child Demand Seller Account for the provided parent private market account + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AccountsApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AccountsApi apiInstance = new AccountsApi(defaultClient); + String accountId = "accountId_example"; // String | Account Id for the parent private market account + ValueResourceInputOfRetailMediaSellerAccountCreation valueResourceInputOfRetailMediaSellerAccountCreation = new ValueResourceInputOfRetailMediaSellerAccountCreation(); // ValueResourceInputOfRetailMediaSellerAccountCreation | Initial creation and configuration options for the new account + try { + ResourceOutcomeOfRetailMediaAccount result = apiInstance.createPrivateMarketDemandSellerAccount(accountId, valueResourceInputOfRetailMediaSellerAccountCreation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountsApi#createPrivateMarketDemandSellerAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| Account Id for the parent private market account | | +| **valueResourceInputOfRetailMediaSellerAccountCreation** | [**ValueResourceInputOfRetailMediaSellerAccountCreation**](ValueResourceInputOfRetailMediaSellerAccountCreation.md)| Initial creation and configuration options for the new account | [optional] | + +### Return type + +[**ResourceOutcomeOfRetailMediaAccount**](ResourceOutcomeOfRetailMediaAccount.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Success | - | + + +## getApiV1ExternalAccounts + +> JsonApiPageResponseOfAccount getApiV1ExternalAccounts(limitToId, pageIndex, pageSize) + + + +Gets page of account objects that the current user can access + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AccountsApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AccountsApi apiInstance = new AccountsApi(defaultClient); + List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to + Integer pageIndex = 0; // Integer | The 0 indexed page index you would like to receive given the page size + Integer pageSize = 25; // Integer | The maximum number of items you would like to receive in this request + try { + JsonApiPageResponseOfAccount result = apiInstance.getApiV1ExternalAccounts(limitToId, pageIndex, pageSize); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountsApi#getApiV1ExternalAccounts"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | +| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] [default to 0] | +| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] [default to 25] | + +### Return type + +[**JsonApiPageResponseOfAccount**](JsonApiPageResponseOfAccount.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + +## removeBrands + +> ValueResourceOfRetailMediaBrands removeBrands(accountId, valueResourceInputOfRetailMediaBrands) + + + +Remove a brand from an account + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AccountsApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AccountsApi apiInstance = new AccountsApi(defaultClient); + String accountId = "accountId_example"; // String | The account id to update + ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands = new ValueResourceInputOfRetailMediaBrands(); // ValueResourceInputOfRetailMediaBrands | Brands to remove from account + try { + ValueResourceOfRetailMediaBrands result = apiInstance.removeBrands(accountId, valueResourceInputOfRetailMediaBrands); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountsApi#removeBrands"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| The account id to update | | +| **valueResourceInputOfRetailMediaBrands** | [**ValueResourceInputOfRetailMediaBrands**](ValueResourceInputOfRetailMediaBrands.md)| Brands to remove from account | [optional] | + +### Return type + +[**ValueResourceOfRetailMediaBrands**](ValueResourceOfRetailMediaBrands.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + +## updateSellers + +> ValueResourceCollectionOutcomeOfRetailMediaSeller updateSellers(accountId, valueResourceCollectionInputOfRetailMediaSeller) + + + +replace the sellers assoiated with an account + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AccountsApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AccountsApi apiInstance = new AccountsApi(defaultClient); + String accountId = "accountId_example"; // String | the account id to update + ValueResourceCollectionInputOfRetailMediaSeller valueResourceCollectionInputOfRetailMediaSeller = new ValueResourceCollectionInputOfRetailMediaSeller(); // ValueResourceCollectionInputOfRetailMediaSeller | sellers to associate + try { + ValueResourceCollectionOutcomeOfRetailMediaSeller result = apiInstance.updateSellers(accountId, valueResourceCollectionInputOfRetailMediaSeller); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountsApi#updateSellers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| the account id to update | | +| **valueResourceCollectionInputOfRetailMediaSeller** | [**ValueResourceCollectionInputOfRetailMediaSeller**](ValueResourceCollectionInputOfRetailMediaSeller.md)| sellers to associate | [optional] | + +### Return type + +[**ValueResourceCollectionOutcomeOfRetailMediaSeller**](ValueResourceCollectionOutcomeOfRetailMediaSeller.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + diff --git a/sdks/retailmedia_2024-10/docs/AddFundsToBalanceV2.md b/sdks/retailmedia_2024-10/docs/AddFundsToBalanceV2.md new file mode 100644 index 00000000..ab5e0f6b --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/AddFundsToBalanceV2.md @@ -0,0 +1,16 @@ + + +# AddFundsToBalanceV2 + +An object that represents the available options of adding funds to a balance. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**deltaAmount** | **BigDecimal** | Amount of billable funds to be added / decreased allotted to the balance. | | +|**poNumber** | **String** | Purchase Order number. | [optional] | +|**memo** | **String** | Memo | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/AddFundsToBalanceV2Request.md b/sdks/retailmedia_2024-10/docs/AddFundsToBalanceV2Request.md new file mode 100644 index 00000000..339b1397 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/AddFundsToBalanceV2Request.md @@ -0,0 +1,14 @@ + + +# AddFundsToBalanceV2Request + +A top-level object that encapsulates a Criteo API request for a single entity + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ResourceOfAddFundsToBalanceV2**](ResourceOfAddFundsToBalanceV2.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/AddRemoveKeywordModel.md b/sdks/retailmedia_2024-10/docs/AddRemoveKeywordModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AddRemoveKeywordModel.md rename to sdks/retailmedia_2024-10/docs/AddRemoveKeywordModel.md diff --git a/sdks/retailmedia_2023-07/docs/AddRemoveKeywordsModel.md b/sdks/retailmedia_2024-10/docs/AddRemoveKeywordsModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AddRemoveKeywordsModel.md rename to sdks/retailmedia_2024-10/docs/AddRemoveKeywordsModel.md diff --git a/sdks/retailmedia_2023-07/docs/AddRemoveKeywordsModelRequest.md b/sdks/retailmedia_2024-10/docs/AddRemoveKeywordsModelRequest.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AddRemoveKeywordsModelRequest.md rename to sdks/retailmedia_2024-10/docs/AddRemoveKeywordsModelRequest.md diff --git a/sdks/retailmedia_2023-07/docs/AddRemoveKeywordsModelResource.md b/sdks/retailmedia_2024-10/docs/AddRemoveKeywordsModelResource.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AddRemoveKeywordsModelResource.md rename to sdks/retailmedia_2024-10/docs/AddRemoveKeywordsModelResource.md diff --git a/sdks/retailmedia_2023-07/docs/AddToBasketIdsUpdateModel202110Request.md b/sdks/retailmedia_2024-10/docs/AddToBasketIdsUpdateModel202110Request.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AddToBasketIdsUpdateModel202110Request.md rename to sdks/retailmedia_2024-10/docs/AddToBasketIdsUpdateModel202110Request.md diff --git a/sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Request.md b/sdks/retailmedia_2024-10/docs/AddToBasketTarget202110Request.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Request.md rename to sdks/retailmedia_2024-10/docs/AddToBasketTarget202110Request.md diff --git a/sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Response.md b/sdks/retailmedia_2024-10/docs/AddToBasketTarget202110Response.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Response.md rename to sdks/retailmedia_2024-10/docs/AddToBasketTarget202110Response.md diff --git a/sdks/retailmedia_2023-07/docs/AnalyticsApi.md b/sdks/retailmedia_2024-10/docs/AnalyticsApi.md similarity index 66% rename from sdks/retailmedia_2023-07/docs/AnalyticsApi.md rename to sdks/retailmedia_2024-10/docs/AnalyticsApi.md index aef0ed31..3922766d 100644 --- a/sdks/retailmedia_2023-07/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2024-10/docs/AnalyticsApi.md @@ -1,13 +1,14 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**generateAsyncCampaignsReport**](AnalyticsApi.md#generateAsyncCampaignsReport) | **POST** /2023-07/retail-media/reports/campaigns | | -| [**generateAsyncLineItemsReport**](AnalyticsApi.md#generateAsyncLineItemsReport) | **POST** /2023-07/retail-media/reports/line-items | | -| [**getAsyncExportOutput**](AnalyticsApi.md#getAsyncExportOutput) | **GET** /2023-07/retail-media/reports/{reportId}/output | | -| [**getAsyncExportStatus**](AnalyticsApi.md#getAsyncExportStatus) | **GET** /2023-07/retail-media/reports/{reportId}/status | | +| [**generateAsyncCampaignsReport**](AnalyticsApi.md#generateAsyncCampaignsReport) | **POST** /2024-10/retail-media/reports/campaigns | | +| [**generateAsyncLineItemsReport**](AnalyticsApi.md#generateAsyncLineItemsReport) | **POST** /2024-10/retail-media/reports/line-items | | +| [**generateAsyncRevenueReport**](AnalyticsApi.md#generateAsyncRevenueReport) | **POST** /2024-10/retail-media/reports/revenue | | +| [**getAsyncExportOutput**](AnalyticsApi.md#getAsyncExportOutput) | **GET** /2024-10/retail-media/reports/{reportId}/output | | +| [**getAsyncExportStatus**](AnalyticsApi.md#getAsyncExportStatus) | **GET** /2024-10/retail-media/reports/{reportId}/status | | @@ -17,20 +18,20 @@ All URIs are relative to *https://api.criteo.com* -Return an asynchronous Campaigns Report +Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.AnalyticsApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AnalyticsApi; public class Example { public static void main(String[] args) { @@ -108,20 +109,20 @@ public class Example { -Returns an asynchronous Line Items Report +Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.AnalyticsApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AnalyticsApi; public class Example { public static void main(String[] args) { @@ -193,6 +194,97 @@ public class Example { | **403** | Forbidden | - | +## generateAsyncRevenueReport + +> AsyncReportResponse generateAsyncRevenueReport(asyncRevenueReportRequest) + + + +Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AnalyticsApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); + AsyncRevenueReportRequest asyncRevenueReportRequest = new AsyncRevenueReportRequest(); // AsyncRevenueReportRequest | + try { + AsyncReportResponse result = apiInstance.generateAsyncRevenueReport(asyncRevenueReportRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AnalyticsApi#generateAsyncRevenueReport"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **asyncRevenueReportRequest** | [**AsyncRevenueReportRequest**](AsyncRevenueReportRequest.md)| | | + +### Return type + +[**AsyncReportResponse**](AsyncReportResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | +| **400** | Bad Request | - | +| **403** | Forbidden | - | + + ## getAsyncExportOutput > String getAsyncExportOutput(reportId) @@ -204,15 +296,15 @@ Returns the output of an async report ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.AnalyticsApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AnalyticsApi; public class Example { public static void main(String[] args) { @@ -295,15 +387,15 @@ Returns the status of an async report ### Example ```java -package com.criteo.api.retailmedia.v2023_07; - -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.AnalyticsApi; +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AnalyticsApi; public class Example { public static void main(String[] args) { diff --git a/sdks/retailmedia_2023-07/docs/ApplicationSummaryModel.md b/sdks/retailmedia_2024-10/docs/ApplicationSummaryModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ApplicationSummaryModel.md rename to sdks/retailmedia_2024-10/docs/ApplicationSummaryModel.md diff --git a/sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResource.md b/sdks/retailmedia_2024-10/docs/ApplicationSummaryModelResource.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResource.md rename to sdks/retailmedia_2024-10/docs/ApplicationSummaryModelResource.md diff --git a/sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResponse.md b/sdks/retailmedia_2024-10/docs/ApplicationSummaryModelResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResponse.md rename to sdks/retailmedia_2024-10/docs/ApplicationSummaryModelResponse.md diff --git a/sdks/retailmedia_2023-07/docs/ApprovalStatusModel.md b/sdks/retailmedia_2024-10/docs/ApprovalStatusModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ApprovalStatusModel.md rename to sdks/retailmedia_2024-10/docs/ApprovalStatusModel.md diff --git a/sdks/retailmedia_2023-07/docs/Asset.md b/sdks/retailmedia_2024-10/docs/Asset.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/Asset.md rename to sdks/retailmedia_2024-10/docs/Asset.md diff --git a/sdks/retailmedia_2023-07/docs/AssetResource.md b/sdks/retailmedia_2024-10/docs/AssetResource.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AssetResource.md rename to sdks/retailmedia_2024-10/docs/AssetResource.md diff --git a/sdks/retailmedia_2023-07/docs/AssetResponse.md b/sdks/retailmedia_2024-10/docs/AssetResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AssetResponse.md rename to sdks/retailmedia_2024-10/docs/AssetResponse.md diff --git a/sdks/retailmedia_2023-07/docs/AsyncCampaignsReport.md b/sdks/retailmedia_2024-10/docs/AsyncCampaignsReport.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AsyncCampaignsReport.md rename to sdks/retailmedia_2024-10/docs/AsyncCampaignsReport.md diff --git a/sdks/retailmedia_2023-07/docs/AsyncCampaignsReportRequest.md b/sdks/retailmedia_2024-10/docs/AsyncCampaignsReportRequest.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AsyncCampaignsReportRequest.md rename to sdks/retailmedia_2024-10/docs/AsyncCampaignsReportRequest.md diff --git a/sdks/retailmedia_2023-07/docs/AsyncCampaignsReportResource.md b/sdks/retailmedia_2024-10/docs/AsyncCampaignsReportResource.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AsyncCampaignsReportResource.md rename to sdks/retailmedia_2024-10/docs/AsyncCampaignsReportResource.md diff --git a/sdks/retailmedia_2023-07/docs/AsyncLineItemsReport.md b/sdks/retailmedia_2024-10/docs/AsyncLineItemsReport.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AsyncLineItemsReport.md rename to sdks/retailmedia_2024-10/docs/AsyncLineItemsReport.md diff --git a/sdks/retailmedia_2023-07/docs/AsyncLineItemsReportRequest.md b/sdks/retailmedia_2024-10/docs/AsyncLineItemsReportRequest.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AsyncLineItemsReportRequest.md rename to sdks/retailmedia_2024-10/docs/AsyncLineItemsReportRequest.md diff --git a/sdks/retailmedia_2023-07/docs/AsyncLineItemsReportResource.md b/sdks/retailmedia_2024-10/docs/AsyncLineItemsReportResource.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AsyncLineItemsReportResource.md rename to sdks/retailmedia_2024-10/docs/AsyncLineItemsReportResource.md diff --git a/sdks/retailmedia_2023-07/docs/AsyncReportResponse.md b/sdks/retailmedia_2024-10/docs/AsyncReportResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AsyncReportResponse.md rename to sdks/retailmedia_2024-10/docs/AsyncReportResponse.md diff --git a/sdks/retailmedia_2024-10/docs/AsyncRevenueReport.md b/sdks/retailmedia_2024-10/docs/AsyncRevenueReport.md new file mode 100644 index 00000000..16ae32dc --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/AsyncRevenueReport.md @@ -0,0 +1,250 @@ + + +# AsyncRevenueReport + +Async Revenue report body request + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ids** | **List<String>** | Supply account ids to report on | [optional] | +|**id** | **String** | Supply account id to report on | [optional] | +|**reportType** | [**ReportTypeEnum**](#ReportTypeEnum) | Type of report | [optional] | +|**revenueType** | [**RevenueTypeEnum**](#RevenueTypeEnum) | Type of revenue | [optional] | +|**soldBy** | [**SoldByEnum**](#SoldByEnum) | Filter on the seller: Indirect Sold, Direct Sold or Private Market | [optional] | +|**buyType** | [**BuyTypeEnum**](#BuyTypeEnum) | Filter on buy type: Auction, Preferred Deals or Sponsorship | [optional] | +|**advertiserTypes** | [**List<AdvertiserTypesEnum>**](#List<AdvertiserTypesEnum>) | Filter on the type of advertiser: retailer, brand, seller | [optional] | +|**skuRelations** | [**List<SkuRelationsEnum>**](#List<SkuRelationsEnum>) | Filter on sku relations: Same SKU, Same Parent SKU, Same Category, Same Brand or Same Seller | [optional] | +|**format** | [**FormatEnum**](#FormatEnum) | Format of the output | [optional] | +|**campaignType** | [**CampaignTypeEnum**](#CampaignTypeEnum) | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] | +|**salesChannel** | [**SalesChannelEnum**](#SalesChannelEnum) | Filter on specific sales channel: offline or online | [optional] | +|**clickAttributionWindow** | [**ClickAttributionWindowEnum**](#ClickAttributionWindowEnum) | Click attribution window | [optional] | +|**viewAttributionWindow** | [**ViewAttributionWindowEnum**](#ViewAttributionWindowEnum) | View attribution window | [optional] | +|**dimensions** | [**List<DimensionsEnum>**](#List<DimensionsEnum>) | List of dimensions to report on | [optional] | +|**metrics** | [**List<MetricsEnum>**](#List<MetricsEnum>) | List of metrics to report on | [optional] | +|**startDate** | **OffsetDateTime** | Start date | | +|**endDate** | **OffsetDateTime** | End date | | +|**timezone** | **String** | Time zone : see criteo developer portal for supported time zones | [optional] | + + + +## Enum: ReportTypeEnum + +| Name | Value | +|---- | -----| +| ADVERTISER | "advertiser" | +| ENVIRONMENT | "environment" | +| PAGETYPE | "pageType" | +| PRODUCTCATEGORY | "productCategory" | +| BRAND | "brand" | + + + +## Enum: RevenueTypeEnum + +| Name | Value | +|---- | -----| +| AUCTION | "auction" | +| PREFERRED | "preferred" | + + + +## Enum: SoldByEnum + +| Name | Value | +|---- | -----| +| DIRECTSOLD | "directSold" | +| INDIRECTSOLD | "indirectSold" | +| PRIVATEMARKET | "privateMarket" | + + + +## Enum: BuyTypeEnum + +| Name | Value | +|---- | -----| +| AUCTION | "auction" | +| PREFERREDDEALS | "preferredDeals" | +| SPONSORSHIP | "sponsorship" | + + + +## Enum: List<AdvertiserTypesEnum> + +| Name | Value | +|---- | -----| +| RETAILER | "retailer" | +| BRAND | "brand" | +| SELLER | "seller" | + + + +## Enum: List<SkuRelationsEnum> + +| Name | Value | +|---- | -----| +| SAMESKU | "sameSku" | +| SAMEPARENTSKU | "sameParentSku" | +| SAMECATEGORY | "sameCategory" | +| SAMEBRAND | "sameBrand" | +| SAMESELLER | "sameSeller" | + + + +## Enum: FormatEnum + +| Name | Value | +|---- | -----| +| JSON | "json" | +| JSON_COMPACT | "json-compact" | +| JSON_NEWLINE | "json-newline" | +| CSV | "csv" | + + + +## Enum: CampaignTypeEnum + +| Name | Value | +|---- | -----| +| ALL | "all" | +| SPONSOREDPRODUCTS | "sponsoredProducts" | +| ONSITEDISPLAYS | "onSiteDisplays" | + + + +## Enum: SalesChannelEnum + +| Name | Value | +|---- | -----| +| ALL | "all" | +| OFFLINE | "offline" | +| ONLINE | "online" | + + + +## Enum: ClickAttributionWindowEnum + +| Name | Value | +|---- | -----| +| NONE | "none" | +| _7D | "7D" | +| _14D | "14D" | +| _30D | "30D" | + + + +## Enum: ViewAttributionWindowEnum + +| Name | Value | +|---- | -----| +| NONE | "none" | +| _1D | "1D" | +| _7D | "7D" | +| _14D | "14D" | +| _30D | "30D" | + + + +## Enum: List<DimensionsEnum> + +| Name | Value | +|---- | -----| +| DATE | "date" | +| HOUR | "hour" | +| PARENTACCOUNT | "parentAccount" | +| ACCOUNTID | "accountId" | +| ACCOUNTNAME | "accountName" | +| ACCOUNTTYPENAME | "accountTypeName" | +| ADVERTISERTYPE | "advertiserType" | +| CAMPAIGNID | "campaignId" | +| CAMPAIGNNAME | "campaignName" | +| CAMPAIGNTYPENAME | "campaignTypeName" | +| CAMPAIGNSTARTDATE | "campaignStartDate" | +| CAMPAIGNENDDATE | "campaignEndDate" | +| LINEITEMID | "lineItemId" | +| LINEITEMNAME | "lineItemName" | +| LINEITEMSTARTDATE | "lineItemStartDate" | +| LINEITEMENDDATE | "lineItemEndDate" | +| LINEITEMSTATUS | "lineItemStatus" | +| RETAILERID | "retailerId" | +| RETAILERNAME | "retailerName" | +| BRANDID | "brandId" | +| BRANDNAME | "brandName" | +| PLACEMENTID | "placementId" | +| PLACEMENTNAME | "placementName" | +| PAGETYPENAME | "pageTypeName" | +| ENVIRONMENT | "environment" | +| PAGECATEGORY | "pageCategory" | +| ADVPRODUCTID | "advProductId" | +| ADVPRODUCTNAME | "advProductName" | +| ADVPRODUCTGTIN | "advProductGtin" | +| ADVPRODUCTMPN | "advProductMpn" | +| BUYTYPE | "buyType" | +| SOLDBY | "soldBy" | +| SALECHANNEL | "saleChannel" | +| ATTRIBUTIONSETTINGS | "attributionSettings" | +| ACTIVITYTYPE | "activityType" | +| KEYWORD | "keyword" | +| SKURELATION | "skuRelation" | +| RETAILERCATEGORYID | "retailerCategoryId" | +| RETAILERCATEGORYNAME | "retailerCategoryName" | +| TAXONOMYBREADCRUMB | "taxonomyBreadcrumb" | +| TAXONOMY1ID | "taxonomy1Id" | +| TAXONOMY1NAME | "taxonomy1Name" | +| TAXONOMY2ID | "taxonomy2Id" | +| TAXONOMY2NAME | "taxonomy2Name" | +| TAXONOMY3ID | "taxonomy3Id" | +| TAXONOMY3NAME | "taxonomy3Name" | +| TAXONOMY4ID | "taxonomy4Id" | +| TAXONOMY4NAME | "taxonomy4Name" | +| TAXONOMY5ID | "taxonomy5Id" | +| TAXONOMY5NAME | "taxonomy5Name" | +| TAXONOMY6ID | "taxonomy6Id" | +| TAXONOMY6NAME | "taxonomy6Name" | +| TAXONOMY7ID | "taxonomy7Id" | +| TAXONOMY7NAME | "taxonomy7Name" | + + + +## Enum: List<MetricsEnum> + +| Name | Value | +|---- | -----| +| NUMBEROFCAMPAIGNS | "numberOfCampaigns" | +| NUMBEROFLINEITEMS | "numberOfLineItems" | +| NUMBEROFSKUS | "numberOfSkus" | +| SKUPRICE | "skuPrice" | +| PAGEVIEWS | "pageViews" | +| IMPRESSIONS | "impressions" | +| PRODUCTCLICKS | "productClicks" | +| PLACEMENTCLICKS | "placementClicks" | +| CLICKS | "clicks" | +| SALES | "sales" | +| UNITS | "units" | +| TRANSACTIONS | "transactions" | +| ASSISTEDSALES | "assistedSales" | +| ASSISTEDUNITS | "assistedUnits" | +| REVENUE | "revenue" | +| OPENAUCTIONREVENUE | "openAuctionRevenue" | +| PREFERREDDEALSREVENUE | "preferredDealsRevenue" | +| CTR | "ctr" | +| CR | "cr" | +| CPC | "cpc" | +| CPM | "cpm" | +| ROAS | "roas" | +| WORKINGMEDIA | "workingMedia" | +| NETREVENUE | "netRevenue" | +| VIDEOVIEWS | "videoViews" | +| VIDEOSSTARTED | "videosStarted" | +| VIDEOSPLAYEDTO25 | "videosPlayedTo25" | +| VIDEOSPLAYEDTO50 | "videosPlayedTo50" | +| VIDEOSPLAYEDTO75 | "videosPlayedTo75" | +| VIDEOSPLAYEDTO100 | "videosPlayedTo100" | +| VIDEOPLAYINGRATE | "videoPlayingRate" | +| VIDEOCOMPLETIONRATE | "videoCompletionRate" | +| UNIQUEVISITORS | "uniqueVisitors" | +| FREQUENCY | "frequency" | + + + diff --git a/sdks/retailmedia_2024-10/docs/AsyncRevenueReportRequest.md b/sdks/retailmedia_2024-10/docs/AsyncRevenueReportRequest.md new file mode 100644 index 00000000..0a1085ca --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/AsyncRevenueReportRequest.md @@ -0,0 +1,14 @@ + + +# AsyncRevenueReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**AsyncRevenueReportResource**](AsyncRevenueReportResource.md) | | [optional] | + + + diff --git a/sdks/marketingsolutions_preview/docs/SetUserProfileModelResource.md b/sdks/retailmedia_2024-10/docs/AsyncRevenueReportResource.md similarity index 67% rename from sdks/marketingsolutions_preview/docs/SetUserProfileModelResource.md rename to sdks/retailmedia_2024-10/docs/AsyncRevenueReportResource.md index 821113cf..b3e1f24f 100644 --- a/sdks/marketingsolutions_preview/docs/SetUserProfileModelResource.md +++ b/sdks/retailmedia_2024-10/docs/AsyncRevenueReportResource.md @@ -1,6 +1,6 @@ -# SetUserProfileModelResource +# AsyncRevenueReportResource A top-level object that encapsulates a Criteo API response for a single value @@ -9,7 +9,7 @@ A top-level object that encapsulates a Criteo API response for a single value | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**type** | **String** | | [optional] | -|**attributes** | [**SetUserProfileModel**](SetUserProfileModel.md) | | [optional] | +|**attributes** | [**AsyncRevenueReport**](AsyncRevenueReport.md) | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/AuctionLineItemCreateModelRequest.md b/sdks/retailmedia_2024-10/docs/AuctionLineItemCreateModelRequest.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AuctionLineItemCreateModelRequest.md rename to sdks/retailmedia_2024-10/docs/AuctionLineItemCreateModelRequest.md diff --git a/sdks/retailmedia_2023-07/docs/AuctionLineItemPagedListResponse.md b/sdks/retailmedia_2024-10/docs/AuctionLineItemPagedListResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AuctionLineItemPagedListResponse.md rename to sdks/retailmedia_2024-10/docs/AuctionLineItemPagedListResponse.md diff --git a/sdks/retailmedia_2023-07/docs/AuctionLineItemResponse.md b/sdks/retailmedia_2024-10/docs/AuctionLineItemResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AuctionLineItemResponse.md rename to sdks/retailmedia_2024-10/docs/AuctionLineItemResponse.md diff --git a/sdks/retailmedia_2023-07/docs/AuctionLineItemUpdateModelRequest.md b/sdks/retailmedia_2024-10/docs/AuctionLineItemUpdateModelRequest.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AuctionLineItemUpdateModelRequest.md rename to sdks/retailmedia_2024-10/docs/AuctionLineItemUpdateModelRequest.md diff --git a/sdks/retailmedia_2024-10/docs/AudienceApi.md b/sdks/retailmedia_2024-10/docs/AudienceApi.md new file mode 100644 index 00000000..b6b0385e --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/AudienceApi.md @@ -0,0 +1,769 @@ +# AudienceApi + +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**bulkCreateAudienceSegments**](AudienceApi.md#bulkCreateAudienceSegments) | **POST** /2024-10/retail-media/accounts/{account-id}/audience-segments/create | | +| [**bulkDeleteAudienceSegments**](AudienceApi.md#bulkDeleteAudienceSegments) | **POST** /2024-10/retail-media/accounts/{account-id}/audience-segments/delete | | +| [**bulkUpdateAudienceSegments**](AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /2024-10/retail-media/accounts/{account-id}/audience-segments | | +| [**deleteContactListIdentifiers**](AudienceApi.md#deleteContactListIdentifiers) | **POST** /2024-10/retail-media/audience-segments/{audience-segment-id}/contact-list/clear | | +| [**getAudienceSegmentContactListStatistics**](AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /2024-10/retail-media/accounts/{account-id}/audience-segments/{audience-segment-id}/contact-list | | +| [**searchAudienceSegments**](AudienceApi.md#searchAudienceSegments) | **POST** /2024-10/retail-media/accounts/{account-id}/audience-segments/search | | +| [**searchAudiences**](AudienceApi.md#searchAudiences) | **POST** /2024-10/retail-media/accounts/{account-id}/audiences/search | | +| [**updateContactListIdentifiers**](AudienceApi.md#updateContactListIdentifiers) | **POST** /2024-10/retail-media/audience-segments/{audience-segment-id}/contact-list/add-remove | | + + + +## bulkCreateAudienceSegments + +> RmAudienceSegmentEntityV1ListResponse bulkCreateAudienceSegments(accountId, rmAudienceSegmentBulkCreateInputV1) + + + +Creates all segments with a valid configuration, and returns the full segments. For those that cannot be created, one or multiple errors are returned. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + String accountId = "accountId_example"; // String | Account Id + RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1 = new RmAudienceSegmentBulkCreateInputV1(); // RmAudienceSegmentBulkCreateInputV1 | Segment creation parameter + try { + RmAudienceSegmentEntityV1ListResponse result = apiInstance.bulkCreateAudienceSegments(accountId, rmAudienceSegmentBulkCreateInputV1); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#bulkCreateAudienceSegments"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| Account Id | | +| **rmAudienceSegmentBulkCreateInputV1** | [**RmAudienceSegmentBulkCreateInputV1**](RmAudienceSegmentBulkCreateInputV1.md)| Segment creation parameter | | + +### Return type + +[**RmAudienceSegmentEntityV1ListResponse**](RmAudienceSegmentEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success or partial success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | + + +## bulkDeleteAudienceSegments + +> RmAudienceSegmentIdEntityV1ListResponse bulkDeleteAudienceSegments(accountId, rmAudienceSegmentBulkDeleteInputV1) + + + +Delete the segments associated to the given audience IDs. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + String accountId = "accountId_example"; // String | Account id + RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1 = new RmAudienceSegmentBulkDeleteInputV1(); // RmAudienceSegmentBulkDeleteInputV1 | Segment delete request. + try { + RmAudienceSegmentIdEntityV1ListResponse result = apiInstance.bulkDeleteAudienceSegments(accountId, rmAudienceSegmentBulkDeleteInputV1); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#bulkDeleteAudienceSegments"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| Account id | | +| **rmAudienceSegmentBulkDeleteInputV1** | [**RmAudienceSegmentBulkDeleteInputV1**](RmAudienceSegmentBulkDeleteInputV1.md)| Segment delete request. | | + +### Return type + +[**RmAudienceSegmentIdEntityV1ListResponse**](RmAudienceSegmentIdEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success or partial success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | + + +## bulkUpdateAudienceSegments + +> RmAudienceSegmentEntityV1ListResponse bulkUpdateAudienceSegments(accountId, rmAudienceSegmentBulkUpdateInputV1) + + + +Updates the properties of all segments with a valid configuration, and returns the full segments. For those that cannot be updated, one or multiple errors are returned. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + String accountId = "accountId_example"; // String | Account id + RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1 = new RmAudienceSegmentBulkUpdateInputV1(); // RmAudienceSegmentBulkUpdateInputV1 | Segment Update request + try { + RmAudienceSegmentEntityV1ListResponse result = apiInstance.bulkUpdateAudienceSegments(accountId, rmAudienceSegmentBulkUpdateInputV1); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#bulkUpdateAudienceSegments"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| Account id | | +| **rmAudienceSegmentBulkUpdateInputV1** | [**RmAudienceSegmentBulkUpdateInputV1**](RmAudienceSegmentBulkUpdateInputV1.md)| Segment Update request | | + +### Return type + +[**RmAudienceSegmentEntityV1ListResponse**](RmAudienceSegmentEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success or partial success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | + + +## deleteContactListIdentifiers + +> deleteContactListIdentifiers(audienceSegmentId) + + + +Delete all identifiers from a retail-media contact list audience-segment, with external audience segment id. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + Long audienceSegmentId = 56L; // Long | The id of the contact list audience-segment to amend, we only accept external Id here + try { + apiInstance.deleteContactListIdentifiers(audienceSegmentId); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#deleteContactListIdentifiers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **audienceSegmentId** | **Long**| The id of the contact list audience-segment to amend, we only accept external Id here | | + +### Return type + +null (empty response body) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | The Contact List identifiers were deleted | - | +| **403** | Forbidden | - | + + +## getAudienceSegmentContactListStatistics + +> RmContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(accountId, audienceSegmentId) + + + +Returns the statistics of a contact list segment. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + String accountId = "accountId_example"; // String | Account Id + String audienceSegmentId = "audienceSegmentId_example"; // String | Segment Id. + try { + RmContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(accountId, audienceSegmentId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| Account Id | | +| **audienceSegmentId** | **String**| Segment Id. | | + +### Return type + +[**RmContactListStatisticsEntityV1Response**](RmContactListStatisticsEntityV1Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success or partial success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | + + +## searchAudienceSegments + +> RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(accountId, rmAudienceSegmentSearchInputV1, limit, offset) + + + +Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + String accountId = "accountId_example"; // String | Account Id + RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1 = new RmAudienceSegmentSearchInputV1(); // RmAudienceSegmentSearchInputV1 | Segment search filters. + Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. + Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. + try { + RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(accountId, rmAudienceSegmentSearchInputV1, limit, offset); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| Account Id | | +| **rmAudienceSegmentSearchInputV1** | [**RmAudienceSegmentSearchInputV1**](RmAudienceSegmentSearchInputV1.md)| Segment search filters. | | +| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | +| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | + +### Return type + +[**RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse**](RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success or partial success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | + + +## searchAudiences + +> RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse searchAudiences(accountId, rmAudienceSearchInputV1, limit, offset) + + + +Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + String accountId = "accountId_example"; // String | Account Id + RmAudienceSearchInputV1 rmAudienceSearchInputV1 = new RmAudienceSearchInputV1(); // RmAudienceSearchInputV1 | Audience search filters. + Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. + Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. + try { + RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(accountId, rmAudienceSearchInputV1, limit, offset); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#searchAudiences"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| Account Id | | +| **rmAudienceSearchInputV1** | [**RmAudienceSearchInputV1**](RmAudienceSearchInputV1.md)| Audience search filters. | | +| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | +| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | + +### Return type + +[**RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse**](RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success or partial success | - | +| **400** | Bad request | - | +| **401** | The API client is not properly authenticated. | - | +| **403** | The API client is not authorized to access this resource. | - | + + +## updateContactListIdentifiers + +> RetailMediaContactlistOperation updateContactListIdentifiers(audienceSegmentId, retailMediaContactlistAmendmentRequest) + + + +Add/remove identifiers to or from a retail-media contact list audience-segment, with external audience segment id. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.AudienceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AudienceApi apiInstance = new AudienceApi(defaultClient); + Long audienceSegmentId = 56L; // Long | The id of the contact list audience-segment to amend, we only accept external Id here + RetailMediaContactlistAmendmentRequest retailMediaContactlistAmendmentRequest = new RetailMediaContactlistAmendmentRequest(); // RetailMediaContactlistAmendmentRequest | + try { + RetailMediaContactlistOperation result = apiInstance.updateContactListIdentifiers(audienceSegmentId, retailMediaContactlistAmendmentRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AudienceApi#updateContactListIdentifiers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **audienceSegmentId** | **Long**| The id of the contact list audience-segment to amend, we only accept external Id here | | +| **retailMediaContactlistAmendmentRequest** | [**RetailMediaContactlistAmendmentRequest**](RetailMediaContactlistAmendmentRequest.md)| | | + +### Return type + +[**RetailMediaContactlistOperation**](RetailMediaContactlistOperation.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Summary of created request | - | +| **403** | Forbidden | - | + diff --git a/sdks/retailmedia_2024-10/docs/AudienceError.md b/sdks/retailmedia_2024-10/docs/AudienceError.md new file mode 100644 index 00000000..22ebcc5f --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/AudienceError.md @@ -0,0 +1,35 @@ + + +# AudienceError + +Definition of an audience error + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**traceId** | **String** | (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | (REQUIRED) The classification of the error | | +|**code** | **String** | (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kebab-case. | | +|**instance** | **String** | (REQUIRED) A URI reference that identifies the specific occurrence of the problem | | +|**title** | **String** | (RECOMMENDED) A short, human-readable summary of the problem type | [optional] | +|**detail** | **String** | (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem | [optional] | +|**source** | **Object** | (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] | +|**stackTrace** | **List<String>** | (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| ACCESS_CONTROL | "access-control" | +| AUTHENTICATION | "authentication" | +| AUTHORIZATION | "authorization" | +| AVAILABILITY | "availability" | +| DEPRECATION | "deprecation" | +| QUOTA | "quota" | +| VALIDATION | "validation" | + + + diff --git a/sdks/retailmedia_2023-07/docs/AudienceIdsUpdateModel202110Request.md b/sdks/retailmedia_2024-10/docs/AudienceIdsUpdateModel202110Request.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AudienceIdsUpdateModel202110Request.md rename to sdks/retailmedia_2024-10/docs/AudienceIdsUpdateModel202110Request.md diff --git a/sdks/retailmedia_2023-07/docs/AudienceTarget202110Request.md b/sdks/retailmedia_2024-10/docs/AudienceTarget202110Request.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AudienceTarget202110Request.md rename to sdks/retailmedia_2024-10/docs/AudienceTarget202110Request.md diff --git a/sdks/retailmedia_2023-07/docs/AudienceTarget202110Response.md b/sdks/retailmedia_2024-10/docs/AudienceTarget202110Response.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/AudienceTarget202110Response.md rename to sdks/retailmedia_2024-10/docs/AudienceTarget202110Response.md diff --git a/sdks/retailmedia_2024-10/docs/AudienceWarning.md b/sdks/retailmedia_2024-10/docs/AudienceWarning.md new file mode 100644 index 00000000..598140c0 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/AudienceWarning.md @@ -0,0 +1,35 @@ + + +# AudienceWarning + +Definition of the warning + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**traceId** | **String** | (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | (REQUIRED) The classification of the error | | +|**code** | **String** | (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kebab-case. | | +|**instance** | **String** | (REQUIRED) A URI reference that identifies the specific occurrence of the problem | | +|**title** | **String** | (RECOMMENDED) A short, human-readable summary of the problem type | [optional] | +|**detail** | **String** | (REQUIRED) A human-readable explanation specific to this occurrence of the problem | | +|**source** | **Object** | (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] | +|**stackTrace** | **List<String>** | (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| ACCESS_CONTROL | "access-control" | +| AUTHENTICATION | "authentication" | +| AUTHORIZATION | "authorization" | +| AVAILABILITY | "availability" | +| DEPRECATION | "deprecation" | +| QUOTA | "quota" | +| VALIDATION | "validation" | + + + diff --git a/sdks/retailmedia_2024-10/docs/BalanceApi.md b/sdks/retailmedia_2024-10/docs/BalanceApi.md new file mode 100644 index 00000000..d0e1fdbd --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/BalanceApi.md @@ -0,0 +1,762 @@ +# BalanceApi + +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getApi202110ExternalBalanceCampaignsByBalanceId**](BalanceApi.md#getApi202110ExternalBalanceCampaignsByBalanceId) | **GET** /2024-10/retail-media/balances/{balance-id}/campaigns | | +| [**getApiV2ExternalAccountBalancesByAccountId**](BalanceApi.md#getApiV2ExternalAccountBalancesByAccountId) | **GET** /2024-10/retail-media/accounts/{account-id}/balances | | +| [**getApiV2ExternalAccountByAccountIdBalancesbalanceId**](BalanceApi.md#getApiV2ExternalAccountByAccountIdBalancesbalanceId) | **GET** /2024-10/retail-media/accounts/{account-id}/balances/{balance-id} | | +| [**getBalanceHistory**](BalanceApi.md#getBalanceHistory) | **GET** /2024-10/retail-media/balances/{balanceId}/history | | +| [**patchApiV2ExternalAccountByAccountIdBalancesbalanceId**](BalanceApi.md#patchApiV2ExternalAccountByAccountIdBalancesbalanceId) | **PATCH** /2024-10/retail-media/accounts/{account-id}/balances/{balance-id} | | +| [**postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId**](BalanceApi.md#postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId) | **POST** /2024-10/retail-media/accounts/{account-id}/balances/{balance-id}/add-funds | | +| [**postApiV2ExternalAccountBalancesByAccountId**](BalanceApi.md#postApiV2ExternalAccountBalancesByAccountId) | **POST** /2024-10/retail-media/accounts/{account-id}/balances | | +| [**postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId**](BalanceApi.md#postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId) | **POST** /2024-10/retail-media/accounts/{account-id}/balances/{balance-id}/change-dates | | + + + +## getApi202110ExternalBalanceCampaignsByBalanceId + +> BalanceCampaign202110PagedListResponse getApi202110ExternalBalanceCampaignsByBalanceId(balanceId, limitToId, pageIndex, pageSize) + + + +Gets page of campaigns for the given balanceId + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.BalanceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + BalanceApi apiInstance = new BalanceApi(defaultClient); + String balanceId = "balanceId_example"; // String | The balance to get campaigns from + List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to + Integer pageIndex = 56; // Integer | The 0 indexed page index you would like to receive given the page size + Integer pageSize = 56; // Integer | The maximum number of items you would like to receive in this request + try { + BalanceCampaign202110PagedListResponse result = apiInstance.getApi202110ExternalBalanceCampaignsByBalanceId(balanceId, limitToId, pageIndex, pageSize); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BalanceApi#getApi202110ExternalBalanceCampaignsByBalanceId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **balanceId** | **String**| The balance to get campaigns from | | +| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | +| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] | +| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] | + +### Return type + +[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + +## getApiV2ExternalAccountBalancesByAccountId + +> PagedResourceCollectionOutcomeOfBalanceResponseV2 getApiV2ExternalAccountBalancesByAccountId(accountId, limitToId, pageIndex, pageSize) + + + +Gets page of balance objects for the given account id + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.BalanceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + BalanceApi apiInstance = new BalanceApi(defaultClient); + String accountId = "accountId_example"; // String | The account to get balances for + List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to + Integer pageIndex = 0; // Integer | The 0 indexed page index you would like to receive given the page size + Integer pageSize = 25; // Integer | The maximum number of items you would like to receive in this request + try { + PagedResourceCollectionOutcomeOfBalanceResponseV2 result = apiInstance.getApiV2ExternalAccountBalancesByAccountId(accountId, limitToId, pageIndex, pageSize); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BalanceApi#getApiV2ExternalAccountBalancesByAccountId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| The account to get balances for | | +| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | +| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] [default to 0] | +| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] [default to 25] | + +### Return type + +[**PagedResourceCollectionOutcomeOfBalanceResponseV2**](PagedResourceCollectionOutcomeOfBalanceResponseV2.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + +## getApiV2ExternalAccountByAccountIdBalancesbalanceId + +> BalanceResponseV2Response getApiV2ExternalAccountByAccountIdBalancesbalanceId(accountId, balanceId) + + + +Get a balance for the given account id and balance id + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.BalanceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + BalanceApi apiInstance = new BalanceApi(defaultClient); + String accountId = "accountId_example"; // String | The account of the balance + String balanceId = "balanceId_example"; // String | The balance id + try { + BalanceResponseV2Response result = apiInstance.getApiV2ExternalAccountByAccountIdBalancesbalanceId(accountId, balanceId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BalanceApi#getApiV2ExternalAccountByAccountIdBalancesbalanceId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| The account of the balance | | +| **balanceId** | **String**| The balance id | | + +### Return type + +[**BalanceResponseV2Response**](BalanceResponseV2Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + +## getBalanceHistory + +> PageOfBalanceHistoryChangeDataCaptureV1 getBalanceHistory(balanceId, offset, limit, limitToChangeTypes) + + + +Gets the balance's historical change data. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.BalanceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + BalanceApi apiInstance = new BalanceApi(defaultClient); + String balanceId = "balanceId_example"; // String | Balance id. + Integer offset = 0; // Integer | The (zero-based) starting offset in the collection. + Integer limit = 25; // Integer | The number of elements to be returned. + String limitToChangeTypes = "limitToChangeTypes_example"; // String | Comma separated change types string that will be queried. + try { + PageOfBalanceHistoryChangeDataCaptureV1 result = apiInstance.getBalanceHistory(balanceId, offset, limit, limitToChangeTypes); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BalanceApi#getBalanceHistory"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **balanceId** | **String**| Balance id. | | +| **offset** | **Integer**| The (zero-based) starting offset in the collection. | [optional] [default to 0] | +| **limit** | **Integer**| The number of elements to be returned. | [optional] [default to 25] | +| **limitToChangeTypes** | **String**| Comma separated change types string that will be queried. | [optional] | + +### Return type + +[**PageOfBalanceHistoryChangeDataCaptureV1**](PageOfBalanceHistoryChangeDataCaptureV1.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + +## patchApiV2ExternalAccountByAccountIdBalancesbalanceId + +> BalanceResponseV2Response patchApiV2ExternalAccountByAccountIdBalancesbalanceId(accountId, balanceId, updateBalanceModelV2Request) + + + +Modify a balance for the given account id + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.BalanceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + BalanceApi apiInstance = new BalanceApi(defaultClient); + String accountId = "accountId_example"; // String | The account of the balance + String balanceId = "balanceId_example"; // String | The balance to change the dates + UpdateBalanceModelV2Request updateBalanceModelV2Request = new UpdateBalanceModelV2Request(); // UpdateBalanceModelV2Request | An object that represents the available options to modify a balance. + try { + BalanceResponseV2Response result = apiInstance.patchApiV2ExternalAccountByAccountIdBalancesbalanceId(accountId, balanceId, updateBalanceModelV2Request); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BalanceApi#patchApiV2ExternalAccountByAccountIdBalancesbalanceId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| The account of the balance | | +| **balanceId** | **String**| The balance to change the dates | | +| **updateBalanceModelV2Request** | [**UpdateBalanceModelV2Request**](UpdateBalanceModelV2Request.md)| An object that represents the available options to modify a balance. | | + +### Return type + +[**BalanceResponseV2Response**](BalanceResponseV2Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + +## postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId + +> BalanceResponseV2Response postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId(accountId, balanceId, addFundsToBalanceV2Request) + + + +Add funds to a balance for the given account id + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.BalanceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + BalanceApi apiInstance = new BalanceApi(defaultClient); + String accountId = "accountId_example"; // String | The account of the balance + String balanceId = "balanceId_example"; // String | The balance to add funds to + AddFundsToBalanceV2Request addFundsToBalanceV2Request = new AddFundsToBalanceV2Request(); // AddFundsToBalanceV2Request | An object that represents the available options of adding funds to a balance. + try { + BalanceResponseV2Response result = apiInstance.postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId(accountId, balanceId, addFundsToBalanceV2Request); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BalanceApi#postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| The account of the balance | | +| **balanceId** | **String**| The balance to add funds to | | +| **addFundsToBalanceV2Request** | [**AddFundsToBalanceV2Request**](AddFundsToBalanceV2Request.md)| An object that represents the available options of adding funds to a balance. | | + +### Return type + +[**BalanceResponseV2Response**](BalanceResponseV2Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + +## postApiV2ExternalAccountBalancesByAccountId + +> BalanceResponseV2Response postApiV2ExternalAccountBalancesByAccountId(accountId, createBalanceV2Request) + + + +Create balance for the given account id + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.BalanceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + BalanceApi apiInstance = new BalanceApi(defaultClient); + String accountId = "accountId_example"; // String | The account to create balances for + CreateBalanceV2Request createBalanceV2Request = new CreateBalanceV2Request(); // CreateBalanceV2Request | An object that represents the available options to set when creating a Retail Media Balance + try { + BalanceResponseV2Response result = apiInstance.postApiV2ExternalAccountBalancesByAccountId(accountId, createBalanceV2Request); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BalanceApi#postApiV2ExternalAccountBalancesByAccountId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| The account to create balances for | | +| **createBalanceV2Request** | [**CreateBalanceV2Request**](CreateBalanceV2Request.md)| An object that represents the available options to set when creating a Retail Media Balance | | + +### Return type + +[**BalanceResponseV2Response**](BalanceResponseV2Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Success | - | + + +## postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId + +> BalanceResponseV2Response postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId(accountId, balanceId, changeDatesOfBalanceV2Request) + + + +Change dates of a balance for the given account id + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.BalanceApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + BalanceApi apiInstance = new BalanceApi(defaultClient); + String accountId = "accountId_example"; // String | The account of the balance + String balanceId = "balanceId_example"; // String | The balance to change the dates + ChangeDatesOfBalanceV2Request changeDatesOfBalanceV2Request = new ChangeDatesOfBalanceV2Request(); // ChangeDatesOfBalanceV2Request | An object that represents the available options to modify schedule of a balance. + try { + BalanceResponseV2Response result = apiInstance.postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId(accountId, balanceId, changeDatesOfBalanceV2Request); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BalanceApi#postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| The account of the balance | | +| **balanceId** | **String**| The balance to change the dates | | +| **changeDatesOfBalanceV2Request** | [**ChangeDatesOfBalanceV2Request**](ChangeDatesOfBalanceV2Request.md)| An object that represents the available options to modify schedule of a balance. | | + +### Return type + +[**BalanceResponseV2Response**](BalanceResponseV2Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + diff --git a/sdks/retailmedia_2023-07/docs/BalanceCampaign202110ListRequest.md b/sdks/retailmedia_2024-10/docs/BalanceCampaign202110ListRequest.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/BalanceCampaign202110ListRequest.md rename to sdks/retailmedia_2024-10/docs/BalanceCampaign202110ListRequest.md diff --git a/sdks/retailmedia_2023-07/docs/BalanceCampaign202110PagedListResponse.md b/sdks/retailmedia_2024-10/docs/BalanceCampaign202110PagedListResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/BalanceCampaign202110PagedListResponse.md rename to sdks/retailmedia_2024-10/docs/BalanceCampaign202110PagedListResponse.md diff --git a/sdks/retailmedia_2024-10/docs/BalanceHistoryChangeDataCaptureV1.md b/sdks/retailmedia_2024-10/docs/BalanceHistoryChangeDataCaptureV1.md new file mode 100644 index 00000000..1221b676 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/BalanceHistoryChangeDataCaptureV1.md @@ -0,0 +1,36 @@ + + +# BalanceHistoryChangeDataCaptureV1 + +Data model represents the data change capture of balance history. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**dateOfModification** | **OffsetDateTime** | Date when data change has occured. | | +|**modifiedByUser** | **String** | Username who modified the insertion order. | | +|**changeType** | [**ChangeTypeEnum**](#ChangeTypeEnum) | Represent the type of change states of the history. | | +|**changeDetails** | [**ChangeDetailsV1**](ChangeDetailsV1.md) | | | +|**memo** | **String** | Memo associate with the insertion order modification. | [optional] | + + + +## Enum: ChangeTypeEnum + +| Name | Value | +|---- | -----| +| BALANCECREATED | "BalanceCreated" | +| BALANCEADDED | "BalanceAdded" | +| BALANCEREMOVED | "BalanceRemoved" | +| BALANCEUNCAPPED | "BalanceUncapped" | +| BALANCECAPPED | "BalanceCapped" | +| ENDDATE | "EndDate" | +| STARTDATE | "StartDate" | +| BALANCENAME | "BalanceName" | +| PONUMBER | "PoNumber" | +| VALUEADD | "ValueAdd" | +| UNKNOWN | "Unknown" | + + + diff --git a/sdks/retailmedia_2024-10/docs/BalanceResponseV2.md b/sdks/retailmedia_2024-10/docs/BalanceResponseV2.md new file mode 100644 index 00000000..f65a54f2 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/BalanceResponseV2.md @@ -0,0 +1,69 @@ + + +# BalanceResponseV2 + +A Retail Media Balance used to determine the funds available for any or all campaigns in an account + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name of the balance. | | +|**poNumber** | **String** | Purchase Order number. | [optional] | +|**memo** | **String** | Memo. | [optional] | +|**deposited** | **BigDecimal** | Amount of billable funds allotted to the balance. | [optional] | +|**spent** | **BigDecimal** | Amount of spent funds of the balance. | [optional] | +|**remaining** | **BigDecimal** | Amount of remaining funds of the balance. | [optional] | +|**startDate** | **LocalDate** | Start date of the balance in the format YYYY-MM-DD. | | +|**endDate** | **LocalDate** | End date of the balance in the format YYYY-MM-DD. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Status of the balance. | [optional] | +|**createdAt** | **OffsetDateTime** | Creation time of the balance. | [optional] | +|**updatedAt** | **OffsetDateTime** | Update time of the balance. | [optional] | +|**balanceType** | [**BalanceTypeEnum**](#BalanceTypeEnum) | Type of the balance. | | +|**spendType** | [**SpendTypeEnum**](#SpendTypeEnum) | Spend Type of the balance. | | +|**privateMarketBillingType** | [**PrivateMarketBillingTypeEnum**](#PrivateMarketBillingTypeEnum) | Billing type for Private Market of the balance. | | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "unknown" | +| SCHEDULED | "scheduled" | +| ACTIVE | "active" | +| ENDED | "ended" | + + + +## Enum: BalanceTypeEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "unknown" | +| CAPPED | "capped" | +| UNCAPPED | "uncapped" | + + + +## Enum: SpendTypeEnum + +| Name | Value | +|---- | -----| +| ONSITE | "Onsite" | +| OFFSITE | "Offsite" | +| OFFSITEAWARENESS | "OffsiteAwareness" | + + + +## Enum: PrivateMarketBillingTypeEnum + +| Name | Value | +|---- | -----| +| NOTAPPLICABLE | "NotApplicable" | +| BILLBYRETAILER | "BillByRetailer" | +| BILLBYCRITEO | "BillByCriteo" | +| UNKNOWN | "Unknown" | + + + diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV1Response.md b/sdks/retailmedia_2024-10/docs/BalanceResponseV2Response.md similarity index 71% rename from sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV1Response.md rename to sdks/retailmedia_2024-10/docs/BalanceResponseV2Response.md index f4ceb05f..e12925d3 100644 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV1Response.md +++ b/sdks/retailmedia_2024-10/docs/BalanceResponseV2Response.md @@ -1,6 +1,6 @@ -# RmLegacyAudienceCreateEntityV1Response +# BalanceResponseV2Response A top-level object that encapsulates a Criteo API response for a single entity @@ -8,7 +8,7 @@ A top-level object that encapsulates a Criteo API response for a single entity | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**RmLegacyAudienceCreateEntityV1Resource**](RmLegacyAudienceCreateEntityV1Resource.md) | | [optional] | +|**data** | [**ResourceOfBalanceResponseV2**](ResourceOfBalanceResponseV2.md) | | [optional] | |**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | |**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | diff --git a/sdks/retailmedia_2023-07/docs/CampaignApi.md b/sdks/retailmedia_2024-10/docs/CampaignApi.md similarity index 77% rename from sdks/retailmedia_2023-07/docs/CampaignApi.md rename to sdks/retailmedia_2024-10/docs/CampaignApi.md index 53260a05..65b3951b 100644 --- a/sdks/retailmedia_2023-07/docs/CampaignApi.md +++ b/sdks/retailmedia_2024-10/docs/CampaignApi.md @@ -1,68 +1,72 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**addRemoveKeywords**](CampaignApi.md#addRemoveKeywords) | **POST** /2023-07/retail-media/line-items/{id}/keywords/add-remove | | -| [**createAsset**](CampaignApi.md#createAsset) | **POST** /2023-07/retail-media/assets | | -| [**fetchKeywords**](CampaignApi.md#fetchKeywords) | **GET** /2023-07/retail-media/line-items/{id}/keywords | | -| [**fetchProposal**](CampaignApi.md#fetchProposal) | **GET** /2023-07/retail-media/preferred-deal-line-items/{id}/proposal | | -| [**getApi202110ExternalAccountCreativesByAccountId**](CampaignApi.md#getApi202110ExternalAccountCreativesByAccountId) | **GET** /2023-07/retail-media/accounts/{account-id}/creatives | | -| [**getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId**](CampaignApi.md#getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId) | **GET** /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords | | -| [**getApi202110ExternalCampaignPreferredLineItemsByCampaignId**](CampaignApi.md#getApi202110ExternalCampaignPreferredLineItemsByCampaignId) | **GET** /2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items | | -| [**getApi202110ExternalLineItemProductsByLineItemId**](CampaignApi.md#getApi202110ExternalLineItemProductsByLineItemId) | **GET** /2023-07/retail-media/line-items/{line-item-id}/products | | -| [**getApi202110ExternalPreferredLineItemByLineItemId**](CampaignApi.md#getApi202110ExternalPreferredLineItemByLineItemId) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id} | | -| [**getApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId**](CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | | -| [**getApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId**](CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences | | -| [**getApi202110ExternalPreferredLineItemTargetingStoresByLineItemId**](CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingStoresByLineItemId) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores | | -| [**getApi202110ExternalRetailerPagesByRetailerId**](CampaignApi.md#getApi202110ExternalRetailerPagesByRetailerId) | **GET** /2023-07/retail-media/retailers/{retailerId}/pages | | -| [**getApi202204ExternalCategorieByCategoryId**](CampaignApi.md#getApi202204ExternalCategorieByCategoryId) | **GET** /2023-07/retail-media/categories/{categoryId} | | -| [**getApi202204ExternalCategories**](CampaignApi.md#getApi202204ExternalCategories) | **GET** /2023-07/retail-media/categories | | -| [**getApi202207ExternalRetailerByRetailerIdTemplatestemplateId**](CampaignApi.md#getApi202207ExternalRetailerByRetailerIdTemplatestemplateId) | **GET** /2023-07/retail-media/retailers/{retailer-id}/templates/{template-id} | | -| [**getApi202207ExternalRetailerTemplatesByRetailerId**](CampaignApi.md#getApi202207ExternalRetailerTemplatesByRetailerId) | **GET** /2023-07/retail-media/retailers/{retailer-id}/templates | | -| [**getApi202210ExternalAccountByAccountIdCreativescreativeId**](CampaignApi.md#getApi202210ExternalAccountByAccountIdCreativescreativeId) | **GET** /2023-07/retail-media/accounts/{account-id}/creatives/{creative-id} | | -| [**getApi202301ExternalAccountCampaignsByAccountId**](CampaignApi.md#getApi202301ExternalAccountCampaignsByAccountId) | **GET** /2023-07/retail-media/accounts/{account-id}/campaigns | | -| [**getApi202301ExternalCampaignByCampaignId**](CampaignApi.md#getApi202301ExternalCampaignByCampaignId) | **GET** /2023-07/retail-media/campaigns/{campaignId} | | -| [**getApi202301ExternalLineItemBidMultipliersByLineItemId**](CampaignApi.md#getApi202301ExternalLineItemBidMultipliersByLineItemId) | **GET** /2023-07/retail-media/line-items/{line-item-id}/bid-multipliers | | -| [**getApiV1ExternalAccountBrandsByAccountId**](CampaignApi.md#getApiV1ExternalAccountBrandsByAccountId) | **GET** /2023-07/retail-media/accounts/{accountId}/brands | | -| [**getApiV1ExternalAccountRetailersByAccountId**](CampaignApi.md#getApiV1ExternalAccountRetailersByAccountId) | **GET** /2023-07/retail-media/accounts/{accountId}/retailers | | -| [**getApiV1ExternalCatalogOutputByCatalogId**](CampaignApi.md#getApiV1ExternalCatalogOutputByCatalogId) | **GET** /2023-07/retail-media/catalogs/{catalogId}/output | | -| [**getApiV1ExternalCatalogStatusByCatalogId**](CampaignApi.md#getApiV1ExternalCatalogStatusByCatalogId) | **GET** /2023-07/retail-media/catalogs/{catalogId}/status | | -| [**getApiV2ExternalAccountLineItemsByAccountId**](CampaignApi.md#getApiV2ExternalAccountLineItemsByAccountId) | **GET** /2023-07/retail-media/accounts/{account-id}/line-items | | -| [**getApiV2ExternalAuctionLineItemByLineItemId**](CampaignApi.md#getApiV2ExternalAuctionLineItemByLineItemId) | **GET** /2023-07/retail-media/auction-line-items/{line-item-id} | | -| [**getApiV2ExternalCampaignAuctionLineItemsByCampaignId**](CampaignApi.md#getApiV2ExternalCampaignAuctionLineItemsByCampaignId) | **GET** /2023-07/retail-media/campaigns/{campaign-id}/auction-line-items | | -| [**getApiV2ExternalLineItemByLineItemId**](CampaignApi.md#getApiV2ExternalLineItemByLineItemId) | **GET** /2023-07/retail-media/line-items/{line-item-id} | | -| [**postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId**](CampaignApi.md#postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId) | **POST** /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append | | -| [**postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId**](CampaignApi.md#postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId) | **POST** /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete | | -| [**postApi202110ExternalBalanceCampaignsAppendByBalanceId**](CampaignApi.md#postApi202110ExternalBalanceCampaignsAppendByBalanceId) | **POST** /2023-07/retail-media/balances/{balance-id}/campaigns/append | | -| [**postApi202110ExternalBalanceCampaignsDeleteByBalanceId**](CampaignApi.md#postApi202110ExternalBalanceCampaignsDeleteByBalanceId) | **POST** /2023-07/retail-media/balances/{balance-id}/campaigns/delete | | -| [**postApi202110ExternalCampaignPreferredLineItemsByCampaignId**](CampaignApi.md#postApi202110ExternalCampaignPreferredLineItemsByCampaignId) | **POST** /2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items | | -| [**postApi202110ExternalLineItemProductsAppendByLineItemId**](CampaignApi.md#postApi202110ExternalLineItemProductsAppendByLineItemId) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/append | | -| [**postApi202110ExternalLineItemProductsDeleteByLineItemId**](CampaignApi.md#postApi202110ExternalLineItemProductsDeleteByLineItemId) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/delete | | -| [**postApi202110ExternalLineItemProductsPauseByLineItemId**](CampaignApi.md#postApi202110ExternalLineItemProductsPauseByLineItemId) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/pause | | -| [**postApi202110ExternalLineItemProductsUnpauseByLineItemId**](CampaignApi.md#postApi202110ExternalLineItemProductsUnpauseByLineItemId) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/unpause | | -| [**postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append | | -| [**postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete | | -| [**postApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append | | -| [**postApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete | | -| [**postApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append | | -| [**postApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete | | -| [**postApi202210ExternalAccountCreativesByAccountId**](CampaignApi.md#postApi202210ExternalAccountCreativesByAccountId) | **POST** /2023-07/retail-media/accounts/{account-id}/creatives | | -| [**postApi202210ExternalAccountCreativesSearchByAccountId**](CampaignApi.md#postApi202210ExternalAccountCreativesSearchByAccountId) | **POST** /2023-07/retail-media/accounts/{account-id}/creatives/search | | -| [**postApi202301ExternalAccountCampaignsByAccountId**](CampaignApi.md#postApi202301ExternalAccountCampaignsByAccountId) | **POST** /2023-07/retail-media/accounts/{account-id}/campaigns | | -| [**postApiV1ExternalAccountCatalogsByAccountId**](CampaignApi.md#postApiV1ExternalAccountCatalogsByAccountId) | **POST** /2023-07/retail-media/accounts/{accountId}/catalogs | | -| [**postApiV2ExternalCampaignAuctionLineItemsByCampaignId**](CampaignApi.md#postApiV2ExternalCampaignAuctionLineItemsByCampaignId) | **POST** /2023-07/retail-media/campaigns/{campaign-id}/auction-line-items | | -| [**putApi202110ExternalPreferredLineItemByLineItemId**](CampaignApi.md#putApi202110ExternalPreferredLineItemByLineItemId) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id} | | -| [**putApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId**](CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | | -| [**putApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId**](CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences | | -| [**putApi202110ExternalPreferredLineItemTargetingStoresByLineItemId**](CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingStoresByLineItemId) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores | | -| [**putApi202210ExternalAccountByAccountIdCreativescreativeId**](CampaignApi.md#putApi202210ExternalAccountByAccountIdCreativescreativeId) | **PUT** /2023-07/retail-media/accounts/{account-id}/creatives/{creative-id} | | -| [**putApi202301ExternalCampaignByCampaignId**](CampaignApi.md#putApi202301ExternalCampaignByCampaignId) | **PUT** /2023-07/retail-media/campaigns/{campaignId} | | -| [**putApi202301ExternalLineItemBidMultipliersByLineItemId**](CampaignApi.md#putApi202301ExternalLineItemBidMultipliersByLineItemId) | **PUT** /2023-07/retail-media/line-items/{line-item-id}/bid-multipliers | | -| [**putApiV2ExternalAuctionLineItemByLineItemId**](CampaignApi.md#putApiV2ExternalAuctionLineItemByLineItemId) | **PUT** /2023-07/retail-media/auction-line-items/{line-item-id} | | -| [**setKeywordBids**](CampaignApi.md#setKeywordBids) | **POST** /2023-07/retail-media/line-items/{id}/keywords/set-bid | | -| [**submitProposal**](CampaignApi.md#submitProposal) | **POST** /2023-07/retail-media/preferred-deal-line-items/{id}/proposal/submit | | +| [**addRemoveKeywords**](CampaignApi.md#addRemoveKeywords) | **POST** /2024-10/retail-media/line-items/{id}/keywords/add-remove | | +| [**appendPromotedProducts**](CampaignApi.md#appendPromotedProducts) | **POST** /2024-10/retail-media/line-items/{line-item-id}/products/append | | +| [**createAsset**](CampaignApi.md#createAsset) | **POST** /2024-10/retail-media/assets | | +| [**deletePromotedProducts**](CampaignApi.md#deletePromotedProducts) | **POST** /2024-10/retail-media/line-items/{line-item-id}/products/delete | | +| [**fetchKeywords**](CampaignApi.md#fetchKeywords) | **GET** /2024-10/retail-media/line-items/{id}/keywords | | +| [**fetchPromotedProducts**](CampaignApi.md#fetchPromotedProducts) | **GET** /2024-10/retail-media/line-items/{line-item-id}/products | | +| [**fetchProposal**](CampaignApi.md#fetchProposal) | **GET** /2024-10/retail-media/preferred-deal-line-items/{id}/proposal | | +| [**getApi202110ExternalAccountCreativesByAccountId**](CampaignApi.md#getApi202110ExternalAccountCreativesByAccountId) | **GET** /2024-10/retail-media/accounts/{account-id}/creatives | | +| [**getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId**](CampaignApi.md#getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId) | **GET** /2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords | | +| [**getApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId**](CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId) | **GET** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | | +| [**getApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId**](CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId) | **GET** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences | | +| [**getApi202110ExternalPreferredLineItemTargetingStoresByLineItemId**](CampaignApi.md#getApi202110ExternalPreferredLineItemTargetingStoresByLineItemId) | **GET** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores | | +| [**getApi202110ExternalRetailerPagesByRetailerId**](CampaignApi.md#getApi202110ExternalRetailerPagesByRetailerId) | **GET** /2024-10/retail-media/retailers/{retailerId}/pages | | +| [**getApi202204ExternalCategorieByCategoryId**](CampaignApi.md#getApi202204ExternalCategorieByCategoryId) | **GET** /2024-10/retail-media/categories/{categoryId} | | +| [**getApi202204ExternalCategories**](CampaignApi.md#getApi202204ExternalCategories) | **GET** /2024-10/retail-media/categories | | +| [**getApi202207ExternalRetailerByRetailerIdTemplatestemplateId**](CampaignApi.md#getApi202207ExternalRetailerByRetailerIdTemplatestemplateId) | **GET** /2024-10/retail-media/retailers/{retailer-id}/templates/{template-id} | | +| [**getApi202207ExternalRetailerTemplatesByRetailerId**](CampaignApi.md#getApi202207ExternalRetailerTemplatesByRetailerId) | **GET** /2024-10/retail-media/retailers/{retailer-id}/templates | | +| [**getApi202301ExternalAccountCampaignsByAccountId**](CampaignApi.md#getApi202301ExternalAccountCampaignsByAccountId) | **GET** /2024-10/retail-media/accounts/{account-id}/campaigns | | +| [**getApi202301ExternalCampaignByCampaignId**](CampaignApi.md#getApi202301ExternalCampaignByCampaignId) | **GET** /2024-10/retail-media/campaigns/{campaignId} | | +| [**getApiV1ExternalAccountBrandsByAccountId**](CampaignApi.md#getApiV1ExternalAccountBrandsByAccountId) | **GET** /2024-10/retail-media/accounts/{accountId}/brands | | +| [**getApiV1ExternalAccountRetailersByAccountId**](CampaignApi.md#getApiV1ExternalAccountRetailersByAccountId) | **GET** /2024-10/retail-media/accounts/{accountId}/retailers | | +| [**getApiV1ExternalCatalogOutputByCatalogId**](CampaignApi.md#getApiV1ExternalCatalogOutputByCatalogId) | **GET** /2024-10/retail-media/catalogs/{catalogId}/output | | +| [**getApiV1ExternalCatalogStatusByCatalogId**](CampaignApi.md#getApiV1ExternalCatalogStatusByCatalogId) | **GET** /2024-10/retail-media/catalogs/{catalogId}/status | | +| [**getApiV2ExternalAccountByAccountIdCreativescreativeId**](CampaignApi.md#getApiV2ExternalAccountByAccountIdCreativescreativeId) | **GET** /2024-10/retail-media/accounts/{account-id}/creatives/{creative-id} | | +| [**getApiV2ExternalAccountLineItemsByAccountId**](CampaignApi.md#getApiV2ExternalAccountLineItemsByAccountId) | **GET** /2024-10/retail-media/accounts/{account-id}/line-items | | +| [**getApiV2ExternalAuctionLineItemByLineItemId**](CampaignApi.md#getApiV2ExternalAuctionLineItemByLineItemId) | **GET** /2024-10/retail-media/auction-line-items/{line-item-id} | | +| [**getApiV2ExternalCampaignAuctionLineItemsByCampaignId**](CampaignApi.md#getApiV2ExternalCampaignAuctionLineItemsByCampaignId) | **GET** /2024-10/retail-media/campaigns/{campaign-id}/auction-line-items | | +| [**getApiV2ExternalCampaignPreferredLineItemsByCampaignId**](CampaignApi.md#getApiV2ExternalCampaignPreferredLineItemsByCampaignId) | **GET** /2024-10/retail-media/campaigns/{campaign-id}/preferred-line-items | | +| [**getApiV2ExternalLineItemBidMultipliersByLineItemId**](CampaignApi.md#getApiV2ExternalLineItemBidMultipliersByLineItemId) | **GET** /2024-10/retail-media/line-items/{line-item-id}/bid-multipliers | | +| [**getApiV2ExternalLineItemByLineItemId**](CampaignApi.md#getApiV2ExternalLineItemByLineItemId) | **GET** /2024-10/retail-media/line-items/{line-item-id} | | +| [**getApiV2ExternalPreferredLineItemByLineItemId**](CampaignApi.md#getApiV2ExternalPreferredLineItemByLineItemId) | **GET** /2024-10/retail-media/preferred-line-items/{line-item-id} | | +| [**getCampaignBudgetOverrides**](CampaignApi.md#getCampaignBudgetOverrides) | **GET** /2024-10/retail-media/campaigns/{campaignId}/campaign-budget-overrides | | +| [**getLineItemBudgetOverrides**](CampaignApi.md#getLineItemBudgetOverrides) | **GET** /2024-10/retail-media/line-items/{lineItemId}/line-item-budget-overrides | | +| [**pausePromotedProducts**](CampaignApi.md#pausePromotedProducts) | **POST** /2024-10/retail-media/line-items/{line-item-id}/products/pause | | +| [**postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId**](CampaignApi.md#postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId) | **POST** /2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append | | +| [**postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId**](CampaignApi.md#postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId) | **POST** /2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete | | +| [**postApi202110ExternalBalanceCampaignsAppendByBalanceId**](CampaignApi.md#postApi202110ExternalBalanceCampaignsAppendByBalanceId) | **POST** /2024-10/retail-media/balances/{balance-id}/campaigns/append | | +| [**postApi202110ExternalBalanceCampaignsDeleteByBalanceId**](CampaignApi.md#postApi202110ExternalBalanceCampaignsDeleteByBalanceId) | **POST** /2024-10/retail-media/balances/{balance-id}/campaigns/delete | | +| [**postApi202110ExternalCampaignPreferredLineItemsByCampaignId**](CampaignApi.md#postApi202110ExternalCampaignPreferredLineItemsByCampaignId) | **POST** /2024-10/retail-media/campaigns/{campaign-id}/preferred-line-items | | +| [**postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append | | +| [**postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete | | +| [**postApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append | | +| [**postApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete | | +| [**postApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append | | +| [**postApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId**](CampaignApi.md#postApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId) | **POST** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete | | +| [**postApi202210ExternalAccountCreativesByAccountId**](CampaignApi.md#postApi202210ExternalAccountCreativesByAccountId) | **POST** /2024-10/retail-media/accounts/{account-id}/creatives | | +| [**postApi202301ExternalAccountCampaignsByAccountId**](CampaignApi.md#postApi202301ExternalAccountCampaignsByAccountId) | **POST** /2024-10/retail-media/accounts/{account-id}/campaigns | | +| [**postApiV1ExternalAccountCatalogsByAccountId**](CampaignApi.md#postApiV1ExternalAccountCatalogsByAccountId) | **POST** /2024-10/retail-media/accounts/{accountId}/catalogs | | +| [**postApiV2ExternalAccountCreativesSearchByAccountId**](CampaignApi.md#postApiV2ExternalAccountCreativesSearchByAccountId) | **POST** /2024-10/retail-media/accounts/{account-id}/creatives/search | | +| [**postApiV2ExternalCampaignAuctionLineItemsByCampaignId**](CampaignApi.md#postApiV2ExternalCampaignAuctionLineItemsByCampaignId) | **POST** /2024-10/retail-media/campaigns/{campaign-id}/auction-line-items | | +| [**putApi202110ExternalPreferredLineItemByLineItemId**](CampaignApi.md#putApi202110ExternalPreferredLineItemByLineItemId) | **PUT** /2024-10/retail-media/preferred-line-items/{line-item-id} | | +| [**putApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId**](CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId) | **PUT** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | | +| [**putApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId**](CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId) | **PUT** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences | | +| [**putApi202110ExternalPreferredLineItemTargetingStoresByLineItemId**](CampaignApi.md#putApi202110ExternalPreferredLineItemTargetingStoresByLineItemId) | **PUT** /2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores | | +| [**putApi202210ExternalAccountByAccountIdCreativescreativeId**](CampaignApi.md#putApi202210ExternalAccountByAccountIdCreativescreativeId) | **PUT** /2024-10/retail-media/accounts/{account-id}/creatives/{creative-id} | | +| [**putApi202301ExternalCampaignByCampaignId**](CampaignApi.md#putApi202301ExternalCampaignByCampaignId) | **PUT** /2024-10/retail-media/campaigns/{campaignId} | | +| [**putApiV2ExternalAuctionLineItemByLineItemId**](CampaignApi.md#putApiV2ExternalAuctionLineItemByLineItemId) | **PUT** /2024-10/retail-media/auction-line-items/{line-item-id} | | +| [**putApiV2ExternalLineItemBidMultipliersByLineItemId**](CampaignApi.md#putApiV2ExternalLineItemBidMultipliersByLineItemId) | **PUT** /2024-10/retail-media/line-items/{line-item-id}/bid-multipliers | | +| [**setKeywordBids**](CampaignApi.md#setKeywordBids) | **POST** /2024-10/retail-media/line-items/{id}/keywords/set-bid | | +| [**submitProposal**](CampaignApi.md#submitProposal) | **POST** /2024-10/retail-media/preferred-deal-line-items/{id}/proposal/submit | | +| [**unpausePromotedProducts**](CampaignApi.md#unpausePromotedProducts) | **POST** /2024-10/retail-media/line-items/{line-item-id}/products/unpause | | +| [**updateCampaignBudgetOverrides**](CampaignApi.md#updateCampaignBudgetOverrides) | **PUT** /2024-10/retail-media/campaigns/{campaignId}/campaign-budget-overrides | | +| [**updateLineItemBudgetOverrides**](CampaignApi.md#updateLineItemBudgetOverrides) | **PUT** /2024-10/retail-media/line-items/{lineItemId}/line-item-budget-overrides | | @@ -77,15 +81,15 @@ Add or Remove keywords from the line item in bulk ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -158,26 +162,26 @@ public class Example { | **400** | Bad Request | - | -## createAsset +## appendPromotedProducts -> AssetResponse createAsset(assetFile) +> appendPromotedProducts(lineItemId, promotedProductResourceCollectionInput) -Creates an asset +Append a collection of promoted products to a line item ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -205,12 +209,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - File assetFile = new File("/path/to/file"); // File | The asset binary content + String lineItemId = "lineItemId_example"; // String | ID of the line item + PromotedProductResourceCollectionInput promotedProductResourceCollectionInput = new PromotedProductResourceCollectionInput(); // PromotedProductResourceCollectionInput | Request body whose {data} contains an array of promoted products. try { - AssetResponse result = apiInstance.createAsset(assetFile); - System.out.println(result); + apiInstance.appendPromotedProducts(lineItemId, promotedProductResourceCollectionInput); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#createAsset"); + System.err.println("Exception when calling CampaignApi#appendPromotedProducts"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -225,11 +229,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **assetFile** | **File**| The asset binary content | | +| **lineItemId** | **String**| ID of the line item | | +| **promotedProductResourceCollectionInput** | [**PromotedProductResourceCollectionInput**](PromotedProductResourceCollectionInput.md)| Request body whose {data} contains an array of promoted products. | [optional] | ### Return type -[**AssetResponse**](AssetResponse.md) +null (empty response body) ### Authorization @@ -237,36 +242,38 @@ public class Example { ### HTTP request headers -- **Content-Type**: multipart/form-data -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: application/json +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Success | - | +| **204** | Promoted products appended to the line item | - | +| **400** | Invalid request body | - | +| **403** | Invalid external line item ID | - | -## fetchKeywords +## createAsset -> KeywordsModelResponse fetchKeywords(id) +> AssetResponse createAsset(assetFile) -Fetch keywords associated with the specified line item +Creates an asset ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -294,12 +301,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String id = "id_example"; // String | ID of the line item + File assetFile = new File("/path/to/file"); // File | The asset binary content try { - KeywordsModelResponse result = apiInstance.fetchKeywords(id); + AssetResponse result = apiInstance.createAsset(assetFile); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#fetchKeywords"); + System.err.println("Exception when calling CampaignApi#createAsset"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -314,11 +321,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **id** | **String**| ID of the line item | | +| **assetFile** | **File**| The asset binary content | | ### Return type -[**KeywordsModelResponse**](KeywordsModelResponse.md) +[**AssetResponse**](AssetResponse.md) ### Authorization @@ -326,37 +333,36 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json +- **Content-Type**: multipart/form-data +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | -| **400** | Bad Request | - | +| **201** | Success | - | -## fetchProposal +## deletePromotedProducts -> ProposalStatusModelResponse fetchProposal(id) +> deletePromotedProducts(lineItemId, promotedProductResourceCollectionInput) -Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. +Remove a collection of promoted products from a line item ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -384,12 +390,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String id = "id_example"; // String | ID of the line item + String lineItemId = "lineItemId_example"; // String | ID of the line item + PromotedProductResourceCollectionInput promotedProductResourceCollectionInput = new PromotedProductResourceCollectionInput(); // PromotedProductResourceCollectionInput | Request body whose {data} contains an array of promoted products. try { - ProposalStatusModelResponse result = apiInstance.fetchProposal(id); - System.out.println(result); + apiInstance.deletePromotedProducts(lineItemId, promotedProductResourceCollectionInput); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#fetchProposal"); + System.err.println("Exception when calling CampaignApi#deletePromotedProducts"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -404,11 +410,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **id** | **String**| ID of the line item | | +| **lineItemId** | **String**| ID of the line item | | +| **promotedProductResourceCollectionInput** | [**PromotedProductResourceCollectionInput**](PromotedProductResourceCollectionInput.md)| Request body whose {data} contains an array of promoted products. | [optional] | ### Return type -[**ProposalStatusModelResponse**](ProposalStatusModelResponse.md) +null (empty response body) ### Authorization @@ -416,38 +423,38 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | -| **400** | Bad Request | - | -| **403** | Forbidden | - | +| **204** | Promoted products removed from the line item | - | +| **400** | Invalid request body | - | +| **403** | Invalid external line item ID | - | -## getApi202110ExternalAccountCreativesByAccountId +## fetchKeywords -> Creative202110ListResponse getApi202110ExternalAccountCreativesByAccountId(accountId) +> KeywordsModelResponse fetchKeywords(id) -Get account creatives +Fetch keywords associated with the specified line item ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -475,12 +482,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String accountId = "accountId_example"; // String | External account id to retrieve creatives for + String id = "id_example"; // String | ID of the line item try { - Creative202110ListResponse result = apiInstance.getApi202110ExternalAccountCreativesByAccountId(accountId); + KeywordsModelResponse result = apiInstance.fetchKeywords(id); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApi202110ExternalAccountCreativesByAccountId"); + System.err.println("Exception when calling CampaignApi#fetchKeywords"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -495,11 +502,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| External account id to retrieve creatives for | | +| **id** | **String**| ID of the line item | | ### Return type -[**Creative202110ListResponse**](Creative202110ListResponse.md) +[**KeywordsModelResponse**](KeywordsModelResponse.md) ### Authorization @@ -514,29 +521,30 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Creatives found | - | +| **200** | Success | - | +| **400** | Bad Request | - | -## getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId +## fetchPromotedProducts -> KeywordTarget202110Response getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId(lineItemId) +> PromotedProductResourceCollectionOutcome fetchPromotedProducts(lineItemId, offset, limit, fields) -This endpoint gets the keyword target on the specified line item. +Retrieve a page of promoted products for a line item ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -564,12 +572,15 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The line item to interact with + String lineItemId = "lineItemId_example"; // String | ID of the line item. + Integer offset = 56; // Integer | Offset of the first item to fetch. Defaults to zero. + Integer limit = 56; // Integer | Maximum page size to fetch. Defaults to 500. + String fields = "fields_example"; // String | A comma separated list of attribute names from the response model to compute and return. Valid values are `status` and `bidOverride` in any order. Defaults to `status`. try { - KeywordTarget202110Response result = apiInstance.getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId(lineItemId); + PromotedProductResourceCollectionOutcome result = apiInstance.fetchPromotedProducts(lineItemId, offset, limit, fields); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId"); + System.err.println("Exception when calling CampaignApi#fetchPromotedProducts"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -584,11 +595,14 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The line item to interact with | | +| **lineItemId** | **String**| ID of the line item. | | +| **offset** | **Integer**| Offset of the first item to fetch. Defaults to zero. | [optional] | +| **limit** | **Integer**| Maximum page size to fetch. Defaults to 500. | [optional] | +| **fields** | **String**| A comma separated list of attribute names from the response model to compute and return. Valid values are `status` and `bidOverride` in any order. Defaults to `status`. | [optional] | ### Return type -[**KeywordTarget202110Response**](KeywordTarget202110Response.md) +[**PromotedProductResourceCollectionOutcome**](PromotedProductResourceCollectionOutcome.md) ### Authorization @@ -603,30 +617,30 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | -| **400** | Bad Request | - | +| **200** | Promoted products associated with the line item | - | +| **403** | Invalid external line item ID | - | -## getApi202110ExternalCampaignPreferredLineItemsByCampaignId +## fetchProposal -> PreferredLineItem202110PagedListResponse getApi202110ExternalCampaignPreferredLineItemsByCampaignId(campaignId, limitToId, pageIndex, pageSize) +> ProposalStatusModelResponse fetchProposal(id) -Gets page of preferred line item objects for the given campaign id +Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -654,15 +668,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String campaignId = "campaignId_example"; // String | The given campaign id - List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to - Integer pageIndex = 56; // Integer | The 0 indexed page index you would like to receive given the page size - Integer pageSize = 56; // Integer | The maximum number of items you would like to receive in this request + String id = "id_example"; // String | ID of the line item try { - PreferredLineItem202110PagedListResponse result = apiInstance.getApi202110ExternalCampaignPreferredLineItemsByCampaignId(campaignId, limitToId, pageIndex, pageSize); + ProposalStatusModelResponse result = apiInstance.fetchProposal(id); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApi202110ExternalCampaignPreferredLineItemsByCampaignId"); + System.err.println("Exception when calling CampaignApi#fetchProposal"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -677,14 +688,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **campaignId** | **String**| The given campaign id | | -| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | -| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] | -| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] | +| **id** | **String**| ID of the line item | | ### Return type -[**PreferredLineItem202110PagedListResponse**](PreferredLineItem202110PagedListResponse.md) +[**ProposalStatusModelResponse**](ProposalStatusModelResponse.md) ### Authorization @@ -701,28 +709,29 @@ public class Example { |-------------|-------------|------------------| | **200** | Success | - | | **400** | Bad Request | - | +| **403** | Forbidden | - | -## getApi202110ExternalLineItemProductsByLineItemId +## getApi202110ExternalAccountCreativesByAccountId -> PromotedProduct202110PagedListResponse getApi202110ExternalLineItemProductsByLineItemId(lineItemId, limitToId, pageIndex, pageSize) +> Creative202110ListResponse getApi202110ExternalAccountCreativesByAccountId(accountId) -This endpoint gets the promoted products on the specified line item. +Get account creatives ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -750,15 +759,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The line item to interact with - List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to - Integer pageIndex = 56; // Integer | The 0 indexed page index you would like to receive given the page size - Integer pageSize = 56; // Integer | The maximum number of items you would like to receive in this request + String accountId = "accountId_example"; // String | External account id to retrieve creatives for try { - PromotedProduct202110PagedListResponse result = apiInstance.getApi202110ExternalLineItemProductsByLineItemId(lineItemId, limitToId, pageIndex, pageSize); + Creative202110ListResponse result = apiInstance.getApi202110ExternalAccountCreativesByAccountId(accountId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApi202110ExternalLineItemProductsByLineItemId"); + System.err.println("Exception when calling CampaignApi#getApi202110ExternalAccountCreativesByAccountId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -773,14 +779,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The line item to interact with | | -| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | -| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] | -| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] | +| **accountId** | **String**| External account id to retrieve creatives for | | ### Return type -[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) +[**Creative202110ListResponse**](Creative202110ListResponse.md) ### Authorization @@ -795,29 +798,29 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | Creatives found | - | -## getApi202110ExternalPreferredLineItemByLineItemId +## getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId -> PreferredLineItem202110Response getApi202110ExternalPreferredLineItemByLineItemId(lineItemId) +> KeywordTarget202110Response getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId(lineItemId) -Gets the preferred line item for the given line item id +This endpoint gets the keyword target on the specified line item. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -845,12 +848,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The given line item id + String lineItemId = "lineItemId_example"; // String | The line item to interact with try { - PreferredLineItem202110Response result = apiInstance.getApi202110ExternalPreferredLineItemByLineItemId(lineItemId); + KeywordTarget202110Response result = apiInstance.getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId(lineItemId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApi202110ExternalPreferredLineItemByLineItemId"); + System.err.println("Exception when calling CampaignApi#getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -865,11 +868,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The given line item id | | +| **lineItemId** | **String**| The line item to interact with | | ### Return type -[**PreferredLineItem202110Response**](PreferredLineItem202110Response.md) +[**KeywordTarget202110Response**](KeywordTarget202110Response.md) ### Authorization @@ -899,15 +902,15 @@ This endpoint gets the add to basket target on the specified line item. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -989,15 +992,15 @@ This endpoint gets the audience target on the specified line item. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1079,15 +1082,15 @@ This endpoint gets the store target on the specified line item. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1169,15 +1172,15 @@ Get the page types available for the given retailer ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1258,15 +1261,15 @@ Endpoint to search for a specific category by categoryId. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1349,15 +1352,15 @@ Endpoint to search categories by text and retailer. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1444,15 +1447,15 @@ Gets the template for the specified retailer id and template id ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1535,15 +1538,15 @@ Get retailer creative templates ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1613,26 +1616,26 @@ public class Example { | **200** | Templates found | - | -## getApi202210ExternalAccountByAccountIdCreativescreativeId +## getApi202301ExternalAccountCampaignsByAccountId -> Creative202210Response getApi202210ExternalAccountByAccountIdCreativescreativeId(accountId, creativeId) +> JsonApiPageResponseOfCampaignV202301 getApi202301ExternalAccountCampaignsByAccountId(accountId, limitToId, pageIndex, pageSize) -Get the specified creative +Get all the editable and creatable campaign attributes including all types of budgets for each campaigns in relation to the account id, limited by the campaign ids. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1660,13 +1663,15 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String accountId = "accountId_example"; // String | External account id to retrieve creatives for - String creativeId = "creativeId_example"; // String | Creative to get + String accountId = "accountId_example"; // String | The account to request the campaign for. + List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to + Integer pageIndex = 0; // Integer | The 0 indexed page index you would like to receive given the page size + Integer pageSize = 25; // Integer | The maximum number of items you would like to receive in this request try { - Creative202210Response result = apiInstance.getApi202210ExternalAccountByAccountIdCreativescreativeId(accountId, creativeId); + JsonApiPageResponseOfCampaignV202301 result = apiInstance.getApi202301ExternalAccountCampaignsByAccountId(accountId, limitToId, pageIndex, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApi202210ExternalAccountByAccountIdCreativescreativeId"); + System.err.println("Exception when calling CampaignApi#getApi202301ExternalAccountCampaignsByAccountId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1681,12 +1686,14 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| External account id to retrieve creatives for | | -| **creativeId** | **String**| Creative to get | | +| **accountId** | **String**| The account to request the campaign for. | | +| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | +| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] [default to 0] | +| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] [default to 25] | ### Return type -[**Creative202210Response**](Creative202210Response.md) +[**JsonApiPageResponseOfCampaignV202301**](JsonApiPageResponseOfCampaignV202301.md) ### Authorization @@ -1701,29 +1708,29 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Creatives found | - | +| **200** | Success | - | -## getApi202301ExternalAccountCampaignsByAccountId +## getApi202301ExternalCampaignByCampaignId -> JsonApiPageResponseOfCampaignV202301 getApi202301ExternalAccountCampaignsByAccountId(accountId, limitToId, pageIndex, pageSize) +> JsonApiSingleResponseOfCampaignV202301 getApi202301ExternalCampaignByCampaignId(campaignId) -Get all the editable and creatable campaign attributes including all types of budgets for each campaigns in relation to the account id, limited by the campaign ids. +Get all the editable and creatable campaign attributes including all types of budgets given the campaign id ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1751,15 +1758,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String accountId = "accountId_example"; // String | The account to request the campaign for. - List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to - Integer pageIndex = 0; // Integer | The 0 indexed page index you would like to receive given the page size - Integer pageSize = 25; // Integer | The maximum number of items you would like to receive in this request + String campaignId = "campaignId_example"; // String | Campaign Id of the campaign detail try { - JsonApiPageResponseOfCampaignV202301 result = apiInstance.getApi202301ExternalAccountCampaignsByAccountId(accountId, limitToId, pageIndex, pageSize); + JsonApiSingleResponseOfCampaignV202301 result = apiInstance.getApi202301ExternalCampaignByCampaignId(campaignId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApi202301ExternalAccountCampaignsByAccountId"); + System.err.println("Exception when calling CampaignApi#getApi202301ExternalCampaignByCampaignId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1774,14 +1778,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| The account to request the campaign for. | | -| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | -| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] [default to 0] | -| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] [default to 25] | +| **campaignId** | **String**| Campaign Id of the campaign detail | | ### Return type -[**JsonApiPageResponseOfCampaignV202301**](JsonApiPageResponseOfCampaignV202301.md) +[**JsonApiSingleResponseOfCampaignV202301**](JsonApiSingleResponseOfCampaignV202301.md) ### Authorization @@ -1799,26 +1800,26 @@ public class Example { | **200** | Success | - | -## getApi202301ExternalCampaignByCampaignId +## getApiV1ExternalAccountBrandsByAccountId -> JsonApiSingleResponseOfCampaignV202301 getApi202301ExternalCampaignByCampaignId(campaignId) +> JsonApiPageResponseOfBrand getApiV1ExternalAccountBrandsByAccountId(accountId, limitToId, pageIndex, pageSize) -Get all the editable and creatable campaign attributes including all types of budgets given the campaign id +Gets page of retailer objects that are associated with the given account ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1846,12 +1847,15 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String campaignId = "campaignId_example"; // String | Campaign Id of the campaign detail + String accountId = "accountId_example"; // String | The given account id + List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to + Integer pageIndex = 0; // Integer | The 0 indexed page index you would like to receive given the page size + Integer pageSize = 25; // Integer | The maximum number of items you would like to receive in this request try { - JsonApiSingleResponseOfCampaignV202301 result = apiInstance.getApi202301ExternalCampaignByCampaignId(campaignId); + JsonApiPageResponseOfBrand result = apiInstance.getApiV1ExternalAccountBrandsByAccountId(accountId, limitToId, pageIndex, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApi202301ExternalCampaignByCampaignId"); + System.err.println("Exception when calling CampaignApi#getApiV1ExternalAccountBrandsByAccountId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1866,11 +1870,14 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **campaignId** | **String**| Campaign Id of the campaign detail | | +| **accountId** | **String**| The given account id | | +| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | +| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] [default to 0] | +| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] [default to 25] | ### Return type -[**JsonApiSingleResponseOfCampaignV202301**](JsonApiSingleResponseOfCampaignV202301.md) +[**JsonApiPageResponseOfBrand**](JsonApiPageResponseOfBrand.md) ### Authorization @@ -1879,7 +1886,7 @@ public class Example { ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: text/plain, application/json, text/json ### HTTP response details @@ -1888,26 +1895,26 @@ public class Example { | **200** | Success | - | -## getApi202301ExternalLineItemBidMultipliersByLineItemId +## getApiV1ExternalAccountRetailersByAccountId -> JsonApiSingleResponseOfLineItemBidMultipliers getApi202301ExternalLineItemBidMultipliersByLineItemId(lineItemId) +> JsonApiPageResponseOfRetailer getApiV1ExternalAccountRetailersByAccountId(accountId, limitToId, pageIndex, pageSize) -Get bid multipliers by line item +Gets page of retailer objects that are associated with the given account ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -1935,12 +1942,15 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | Long external id of the associated line item + String accountId = "accountId_example"; // String | The given account id + List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to + Integer pageIndex = 0; // Integer | The 0 indexed page index you would like to receive given the page size + Integer pageSize = 25; // Integer | The maximum number of items you would like to receive in this request try { - JsonApiSingleResponseOfLineItemBidMultipliers result = apiInstance.getApi202301ExternalLineItemBidMultipliersByLineItemId(lineItemId); + JsonApiPageResponseOfRetailer result = apiInstance.getApiV1ExternalAccountRetailersByAccountId(accountId, limitToId, pageIndex, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApi202301ExternalLineItemBidMultipliersByLineItemId"); + System.err.println("Exception when calling CampaignApi#getApiV1ExternalAccountRetailersByAccountId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1955,11 +1965,14 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| Long external id of the associated line item | | +| **accountId** | **String**| The given account id | | +| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | +| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] [default to 0] | +| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] [default to 25] | ### Return type -[**JsonApiSingleResponseOfLineItemBidMultipliers**](JsonApiSingleResponseOfLineItemBidMultipliers.md) +[**JsonApiPageResponseOfRetailer**](JsonApiPageResponseOfRetailer.md) ### Authorization @@ -1977,26 +1990,26 @@ public class Example { | **200** | Success | - | -## getApiV1ExternalAccountBrandsByAccountId +## getApiV1ExternalCatalogOutputByCatalogId -> JsonApiPageResponseOfBrand getApiV1ExternalAccountBrandsByAccountId(accountId, limitToId, pageIndex, pageSize) +> File getApiV1ExternalCatalogOutputByCatalogId(catalogId) -Gets page of retailer objects that are associated with the given account +Output the indicated catalog. Catalogs are only available for retrieval when their associated status request is at a Success status. Produces application/x-json-stream of v2021_07 CatalogProduct json objects. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -2024,15 +2037,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String accountId = "accountId_example"; // String | The given account id - List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to - Integer pageIndex = 0; // Integer | The 0 indexed page index you would like to receive given the page size - Integer pageSize = 25; // Integer | The maximum number of items you would like to receive in this request + String catalogId = "catalogId_example"; // String | A catalog ID returned from an account catalog request. try { - JsonApiPageResponseOfBrand result = apiInstance.getApiV1ExternalAccountBrandsByAccountId(accountId, limitToId, pageIndex, pageSize); + File result = apiInstance.getApiV1ExternalCatalogOutputByCatalogId(catalogId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApiV1ExternalAccountBrandsByAccountId"); + System.err.println("Exception when calling CampaignApi#getApiV1ExternalCatalogOutputByCatalogId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2047,14 +2057,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| The given account id | | -| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | -| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] [default to 0] | -| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] [default to 25] | +| **catalogId** | **String**| A catalog ID returned from an account catalog request. | | ### Return type -[**JsonApiPageResponseOfBrand**](JsonApiPageResponseOfBrand.md) +[**File**](File.md) ### Authorization @@ -2063,35 +2070,36 @@ public class Example { ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: text/plain, application/json, text/json +- **Accept**: application/x-json-stream, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | Catalog download initiated. | - | +| **400** | The indicated catalog is not available for retrieval, wait for a success status. | - | -## getApiV1ExternalAccountRetailersByAccountId +## getApiV1ExternalCatalogStatusByCatalogId -> JsonApiPageResponseOfRetailer getApiV1ExternalAccountRetailersByAccountId(accountId, limitToId, pageIndex, pageSize) +> JsonApiSingleResponseOfCatalogStatus getApiV1ExternalCatalogStatusByCatalogId(catalogId) -Gets page of retailer objects that are associated with the given account +Check the status of a catalog request. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -2119,15 +2127,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String accountId = "accountId_example"; // String | The given account id - List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to - Integer pageIndex = 0; // Integer | The 0 indexed page index you would like to receive given the page size - Integer pageSize = 25; // Integer | The maximum number of items you would like to receive in this request + String catalogId = "catalogId_example"; // String | A catalog ID returned from an account catalog request. try { - JsonApiPageResponseOfRetailer result = apiInstance.getApiV1ExternalAccountRetailersByAccountId(accountId, limitToId, pageIndex, pageSize); + JsonApiSingleResponseOfCatalogStatus result = apiInstance.getApiV1ExternalCatalogStatusByCatalogId(catalogId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApiV1ExternalAccountRetailersByAccountId"); + System.err.println("Exception when calling CampaignApi#getApiV1ExternalCatalogStatusByCatalogId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2142,14 +2147,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| The given account id | | -| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | -| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] [default to 0] | -| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] [default to 25] | +| **catalogId** | **String**| A catalog ID returned from an account catalog request. | | ### Return type -[**JsonApiPageResponseOfRetailer**](JsonApiPageResponseOfRetailer.md) +[**JsonApiSingleResponseOfCatalogStatus**](JsonApiSingleResponseOfCatalogStatus.md) ### Authorization @@ -2158,35 +2160,35 @@ public class Example { ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: text/plain, application/json, text/json +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | Catalog request found. | - | -## getApiV1ExternalCatalogOutputByCatalogId +## getApiV2ExternalAccountByAccountIdCreativescreativeId -> File getApiV1ExternalCatalogOutputByCatalogId(catalogId) +> CreativeV2Response getApiV2ExternalAccountByAccountIdCreativescreativeId(accountId, creativeId) -Output the indicated catalog. Catalogs are only available for retrieval when their associated status request is at a Success status. Produces application/x-json-stream of v2021_07 CatalogProduct json objects. +Get the specified creative ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -2214,12 +2216,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String catalogId = "catalogId_example"; // String | A catalog ID returned from an account catalog request. + String accountId = "accountId_example"; // String | External account id to retrieve creatives for + String creativeId = "creativeId_example"; // String | Creative to get try { - File result = apiInstance.getApiV1ExternalCatalogOutputByCatalogId(catalogId); + CreativeV2Response result = apiInstance.getApiV2ExternalAccountByAccountIdCreativescreativeId(accountId, creativeId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApiV1ExternalCatalogOutputByCatalogId"); + System.err.println("Exception when calling CampaignApi#getApiV2ExternalAccountByAccountIdCreativescreativeId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2234,11 +2237,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **catalogId** | **String**| A catalog ID returned from an account catalog request. | | +| **accountId** | **String**| External account id to retrieve creatives for | | +| **creativeId** | **String**| Creative to get | | ### Return type -[**File**](File.md) +[**CreativeV2Response**](CreativeV2Response.md) ### Authorization @@ -2247,36 +2251,35 @@ public class Example { ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/x-json-stream, application/json +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Catalog download initiated. | - | -| **400** | The indicated catalog is not available for retrieval, wait for a success status. | - | +| **200** | Creatives found | - | -## getApiV1ExternalCatalogStatusByCatalogId +## getApiV2ExternalAccountLineItemsByAccountId -> JsonApiSingleResponseOfCatalogStatus getApiV1ExternalCatalogStatusByCatalogId(catalogId) +> CommonLineItemPagedListResponse getApiV2ExternalAccountLineItemsByAccountId(accountId, limitToCampaignId, limitToType, limitToId, pageIndex, pageSize) -Check the status of a catalog request. +Gets page of line item objects for the given account id ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -2304,12 +2307,17 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String catalogId = "catalogId_example"; // String | A catalog ID returned from an account catalog request. + String accountId = "accountId_example"; // String | The given account id + List limitToCampaignId = Arrays.asList(); // List | The campaign ids that you would like to limit your result set to + String limitToType = "Unknown"; // String | The campaign types that you would like to limit your result set to + List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to + Integer pageIndex = 56; // Integer | The 0 indexed page index you would like to receive given the page size + Integer pageSize = 56; // Integer | The maximum number of items you would like to receive in this request try { - JsonApiSingleResponseOfCatalogStatus result = apiInstance.getApiV1ExternalCatalogStatusByCatalogId(catalogId); + CommonLineItemPagedListResponse result = apiInstance.getApiV2ExternalAccountLineItemsByAccountId(accountId, limitToCampaignId, limitToType, limitToId, pageIndex, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApiV1ExternalCatalogStatusByCatalogId"); + System.err.println("Exception when calling CampaignApi#getApiV2ExternalAccountLineItemsByAccountId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2324,11 +2332,16 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **catalogId** | **String**| A catalog ID returned from an account catalog request. | | +| **accountId** | **String**| The given account id | | +| **limitToCampaignId** | [**List<String>**](String.md)| The campaign ids that you would like to limit your result set to | [optional] | +| **limitToType** | **String**| The campaign types that you would like to limit your result set to | [optional] [enum: Unknown, Auction, Preferred] | +| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | +| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] | +| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] | ### Return type -[**JsonApiSingleResponseOfCatalogStatus**](JsonApiSingleResponseOfCatalogStatus.md) +[**CommonLineItemPagedListResponse**](CommonLineItemPagedListResponse.md) ### Authorization @@ -2343,29 +2356,29 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Catalog request found. | - | +| **200** | Success | - | -## getApiV2ExternalAccountLineItemsByAccountId +## getApiV2ExternalAuctionLineItemByLineItemId -> CommonLineItemPagedListResponse getApiV2ExternalAccountLineItemsByAccountId(accountId, limitToCampaignId, limitToType, limitToId, pageIndex, pageSize) +> AuctionLineItemResponse getApiV2ExternalAuctionLineItemByLineItemId(lineItemId) -Gets page of line item objects for the given account id +Gets the auction line item for the given line item id ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -2393,17 +2406,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String accountId = "accountId_example"; // String | The given account id - List limitToCampaignId = Arrays.asList(); // List | The campaign ids that you would like to limit your result set to - String limitToType = "Unknown"; // String | The campaign types that you would like to limit your result set to - List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to - Integer pageIndex = 56; // Integer | The 0 indexed page index you would like to receive given the page size - Integer pageSize = 56; // Integer | The maximum number of items you would like to receive in this request + String lineItemId = "lineItemId_example"; // String | The given line item id try { - CommonLineItemPagedListResponse result = apiInstance.getApiV2ExternalAccountLineItemsByAccountId(accountId, limitToCampaignId, limitToType, limitToId, pageIndex, pageSize); + AuctionLineItemResponse result = apiInstance.getApiV2ExternalAuctionLineItemByLineItemId(lineItemId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApiV2ExternalAccountLineItemsByAccountId"); + System.err.println("Exception when calling CampaignApi#getApiV2ExternalAuctionLineItemByLineItemId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2418,16 +2426,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| The given account id | | -| **limitToCampaignId** | [**List<String>**](String.md)| The campaign ids that you would like to limit your result set to | [optional] | -| **limitToType** | **String**| The campaign types that you would like to limit your result set to | [optional] [enum: Unknown, Auction, Preferred] | -| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | -| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] | -| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] | +| **lineItemId** | **String**| The given line item id | | ### Return type -[**CommonLineItemPagedListResponse**](CommonLineItemPagedListResponse.md) +[**AuctionLineItemResponse**](AuctionLineItemResponse.md) ### Authorization @@ -2443,28 +2446,29 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | +| **400** | Bad Request | - | -## getApiV2ExternalAuctionLineItemByLineItemId +## getApiV2ExternalCampaignAuctionLineItemsByCampaignId -> AuctionLineItemResponse getApiV2ExternalAuctionLineItemByLineItemId(lineItemId) +> AuctionLineItemPagedListResponse getApiV2ExternalCampaignAuctionLineItemsByCampaignId(campaignId, limitToId, pageIndex, pageSize) -Gets the auction line item for the given line item id +Gets page of auction line item objects for the given campaign id ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -2492,12 +2496,15 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The given line item id + String campaignId = "campaignId_example"; // String | The given campaign id + List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to + Integer pageIndex = 56; // Integer | The 0 indexed page index you would like to receive given the page size + Integer pageSize = 56; // Integer | The maximum number of items you would like to receive in this request try { - AuctionLineItemResponse result = apiInstance.getApiV2ExternalAuctionLineItemByLineItemId(lineItemId); + AuctionLineItemPagedListResponse result = apiInstance.getApiV2ExternalCampaignAuctionLineItemsByCampaignId(campaignId, limitToId, pageIndex, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApiV2ExternalAuctionLineItemByLineItemId"); + System.err.println("Exception when calling CampaignApi#getApiV2ExternalCampaignAuctionLineItemsByCampaignId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2512,11 +2519,14 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The given line item id | | +| **campaignId** | **String**| The given campaign id | | +| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | +| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] | +| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] | ### Return type -[**AuctionLineItemResponse**](AuctionLineItemResponse.md) +[**AuctionLineItemPagedListResponse**](AuctionLineItemPagedListResponse.md) ### Authorization @@ -2535,26 +2545,26 @@ public class Example { | **400** | Bad Request | - | -## getApiV2ExternalCampaignAuctionLineItemsByCampaignId +## getApiV2ExternalCampaignPreferredLineItemsByCampaignId -> AuctionLineItemPagedListResponse getApiV2ExternalCampaignAuctionLineItemsByCampaignId(campaignId, limitToId, pageIndex, pageSize) +> PreferredLineItemV2PagedListResponse getApiV2ExternalCampaignPreferredLineItemsByCampaignId(campaignId, limitToId, pageIndex, pageSize) -Gets page of auction line item objects for the given campaign id +Gets page of preferred line item objects for the given campaign id ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -2587,10 +2597,10 @@ public class Example { Integer pageIndex = 56; // Integer | The 0 indexed page index you would like to receive given the page size Integer pageSize = 56; // Integer | The maximum number of items you would like to receive in this request try { - AuctionLineItemPagedListResponse result = apiInstance.getApiV2ExternalCampaignAuctionLineItemsByCampaignId(campaignId, limitToId, pageIndex, pageSize); + PreferredLineItemV2PagedListResponse result = apiInstance.getApiV2ExternalCampaignPreferredLineItemsByCampaignId(campaignId, limitToId, pageIndex, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApiV2ExternalCampaignAuctionLineItemsByCampaignId"); + System.err.println("Exception when calling CampaignApi#getApiV2ExternalCampaignPreferredLineItemsByCampaignId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2612,7 +2622,7 @@ public class Example { ### Return type -[**AuctionLineItemPagedListResponse**](AuctionLineItemPagedListResponse.md) +[**PreferredLineItemV2PagedListResponse**](PreferredLineItemV2PagedListResponse.md) ### Authorization @@ -2631,26 +2641,26 @@ public class Example { | **400** | Bad Request | - | -## getApiV2ExternalLineItemByLineItemId +## getApiV2ExternalLineItemBidMultipliersByLineItemId -> CommonLineItemResponse getApiV2ExternalLineItemByLineItemId(lineItemId) +> JsonApiSingleResponseOfLineItemBidMultipliersV2 getApiV2ExternalLineItemBidMultipliersByLineItemId(lineItemId) -Gets the line item for the given line item id +Fetch all bid multipliers for a given line item ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -2678,12 +2688,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The given line item id + String lineItemId = "lineItemId_example"; // String | External LineItemId for bid multiplier retrieval try { - CommonLineItemResponse result = apiInstance.getApiV2ExternalLineItemByLineItemId(lineItemId); + JsonApiSingleResponseOfLineItemBidMultipliersV2 result = apiInstance.getApiV2ExternalLineItemBidMultipliersByLineItemId(lineItemId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getApiV2ExternalLineItemByLineItemId"); + System.err.println("Exception when calling CampaignApi#getApiV2ExternalLineItemBidMultipliersByLineItemId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2698,11 +2708,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The given line item id | | +| **lineItemId** | **String**| External LineItemId for bid multiplier retrieval | | ### Return type -[**CommonLineItemResponse**](CommonLineItemResponse.md) +[**JsonApiSingleResponseOfLineItemBidMultipliersV2**](JsonApiSingleResponseOfLineItemBidMultipliersV2.md) ### Authorization @@ -2711,35 +2721,35 @@ public class Example { ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | BidMultipliers Found | - | -## postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId +## getApiV2ExternalLineItemByLineItemId -> KeywordTarget202110Response postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId(lineItemId, keywordTarget202110Request) +> CommonLineItemResponse getApiV2ExternalLineItemByLineItemId(lineItemId) -This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. +Gets the line item for the given line item id ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -2767,13 +2777,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The line item to interact with - KeywordTarget202110Request keywordTarget202110Request = new KeywordTarget202110Request(); // KeywordTarget202110Request | + String lineItemId = "lineItemId_example"; // String | The given line item id try { - KeywordTarget202110Response result = apiInstance.postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId(lineItemId, keywordTarget202110Request); + CommonLineItemResponse result = apiInstance.getApiV2ExternalLineItemByLineItemId(lineItemId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId"); + System.err.println("Exception when calling CampaignApi#getApiV2ExternalLineItemByLineItemId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2788,12 +2797,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The line item to interact with | | -| **keywordTarget202110Request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] | +| **lineItemId** | **String**| The given line item id | | ### Return type -[**KeywordTarget202110Response**](KeywordTarget202110Response.md) +[**CommonLineItemResponse**](CommonLineItemResponse.md) ### Authorization @@ -2801,7 +2809,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json @@ -2809,29 +2817,28 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | -| **400** | Bad Request | - | -## postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId +## getApiV2ExternalPreferredLineItemByLineItemId -> KeywordTarget202110Response postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId(lineItemId, keywordTarget202110Request) +> PreferredLineItemV2Response getApiV2ExternalPreferredLineItemByLineItemId(lineItemId) -This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. +Gets the preferred line item for the given line item id ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -2859,13 +2866,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The line item to interact with - KeywordTarget202110Request keywordTarget202110Request = new KeywordTarget202110Request(); // KeywordTarget202110Request | + String lineItemId = "lineItemId_example"; // String | The given line item id try { - KeywordTarget202110Response result = apiInstance.postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId(lineItemId, keywordTarget202110Request); + PreferredLineItemV2Response result = apiInstance.getApiV2ExternalPreferredLineItemByLineItemId(lineItemId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId"); + System.err.println("Exception when calling CampaignApi#getApiV2ExternalPreferredLineItemByLineItemId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2880,12 +2886,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The line item to interact with | | -| **keywordTarget202110Request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] | +| **lineItemId** | **String**| The given line item id | | ### Return type -[**KeywordTarget202110Response**](KeywordTarget202110Response.md) +[**PreferredLineItemV2Response**](PreferredLineItemV2Response.md) ### Authorization @@ -2893,7 +2898,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json @@ -2904,26 +2909,26 @@ public class Example { | **400** | Bad Request | - | -## postApi202110ExternalBalanceCampaignsAppendByBalanceId +## getCampaignBudgetOverrides -> BalanceCampaign202110PagedListResponse postApi202110ExternalBalanceCampaignsAppendByBalanceId(balanceId, balanceCampaign202110ListRequest) +> ValueResourceOutcomeOfCampaignBudgetOverrides getCampaignBudgetOverrides(campaignId) -appends one or more campaigns to the specified balance +Get current campaign budget overrides by given external campaign id. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -2951,13 +2956,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String balanceId = "balanceId_example"; // String | The balance to add campaigns from - BalanceCampaign202110ListRequest balanceCampaign202110ListRequest = new BalanceCampaign202110ListRequest(); // BalanceCampaign202110ListRequest | The campaigns to append + Long campaignId = 56L; // Long | External campaign id. try { - BalanceCampaign202110PagedListResponse result = apiInstance.postApi202110ExternalBalanceCampaignsAppendByBalanceId(balanceId, balanceCampaign202110ListRequest); + ValueResourceOutcomeOfCampaignBudgetOverrides result = apiInstance.getCampaignBudgetOverrides(campaignId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202110ExternalBalanceCampaignsAppendByBalanceId"); + System.err.println("Exception when calling CampaignApi#getCampaignBudgetOverrides"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2972,12 +2976,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **balanceId** | **String**| The balance to add campaigns from | | -| **balanceCampaign202110ListRequest** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] | +| **campaignId** | **Long**| External campaign id. | | ### Return type -[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) +[**ValueResourceOutcomeOfCampaignBudgetOverrides**](ValueResourceOutcomeOfCampaignBudgetOverrides.md) ### Authorization @@ -2985,7 +2988,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json @@ -2995,26 +2998,26 @@ public class Example { | **200** | Success | - | -## postApi202110ExternalBalanceCampaignsDeleteByBalanceId +## getLineItemBudgetOverrides -> BalanceCampaign202110PagedListResponse postApi202110ExternalBalanceCampaignsDeleteByBalanceId(balanceId, balanceCampaign202110ListRequest) +> ValueResourceOutcomeOfLineItemBudgetOverrides getLineItemBudgetOverrides(lineItemId) -Removes one or more campaigns on the specified balance +Gets a collection of monthly and daily budget overrides for the provided line item. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -3042,13 +3045,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String balanceId = "balanceId_example"; // String | The balance to remove campaigns from - BalanceCampaign202110ListRequest balanceCampaign202110ListRequest = new BalanceCampaign202110ListRequest(); // BalanceCampaign202110ListRequest | The campaigns to append + String lineItemId = "lineItemId_example"; // String | The line item id to get budget overrides for. try { - BalanceCampaign202110PagedListResponse result = apiInstance.postApi202110ExternalBalanceCampaignsDeleteByBalanceId(balanceId, balanceCampaign202110ListRequest); + ValueResourceOutcomeOfLineItemBudgetOverrides result = apiInstance.getLineItemBudgetOverrides(lineItemId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202110ExternalBalanceCampaignsDeleteByBalanceId"); + System.err.println("Exception when calling CampaignApi#getLineItemBudgetOverrides"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3063,12 +3065,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **balanceId** | **String**| The balance to remove campaigns from | | -| **balanceCampaign202110ListRequest** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] | +| **lineItemId** | **String**| The line item id to get budget overrides for. | | ### Return type -[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) +[**ValueResourceOutcomeOfLineItemBudgetOverrides**](ValueResourceOutcomeOfLineItemBudgetOverrides.md) ### Authorization @@ -3076,7 +3077,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json @@ -3086,26 +3087,26 @@ public class Example { | **200** | Success | - | -## postApi202110ExternalCampaignPreferredLineItemsByCampaignId +## pausePromotedProducts -> PreferredLineItem202110Response postApi202110ExternalCampaignPreferredLineItemsByCampaignId(campaignId, preferredLineItemCreateModel202110Request) +> pausePromotedProducts(lineItemId, promotedProductResourceCollectionInput) -Creates a new preferred line item with the specified settings +Pause a collection of promoted products associated with a line item ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -3133,13 +3134,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String campaignId = "campaignId_example"; // String | The given campaign id - PreferredLineItemCreateModel202110Request preferredLineItemCreateModel202110Request = new PreferredLineItemCreateModel202110Request(); // PreferredLineItemCreateModel202110Request | The line item settings to create a line item with + String lineItemId = "lineItemId_example"; // String | ID of the line item + PromotedProductResourceCollectionInput promotedProductResourceCollectionInput = new PromotedProductResourceCollectionInput(); // PromotedProductResourceCollectionInput | Request body whose {data} contains an array of promoted products. try { - PreferredLineItem202110Response result = apiInstance.postApi202110ExternalCampaignPreferredLineItemsByCampaignId(campaignId, preferredLineItemCreateModel202110Request); - System.out.println(result); + apiInstance.pausePromotedProducts(lineItemId, promotedProductResourceCollectionInput); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202110ExternalCampaignPreferredLineItemsByCampaignId"); + System.err.println("Exception when calling CampaignApi#pausePromotedProducts"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3154,12 +3154,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **campaignId** | **String**| The given campaign id | | -| **preferredLineItemCreateModel202110Request** | [**PreferredLineItemCreateModel202110Request**](PreferredLineItemCreateModel202110Request.md)| The line item settings to create a line item with | [optional] | +| **lineItemId** | **String**| ID of the line item | | +| **promotedProductResourceCollectionInput** | [**PromotedProductResourceCollectionInput**](PromotedProductResourceCollectionInput.md)| Request body whose {data} contains an array of promoted products. | [optional] | ### Return type -[**PreferredLineItem202110Response**](PreferredLineItem202110Response.md) +null (empty response body) ### Authorization @@ -3174,30 +3174,31 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Success | - | -| **400** | Bad Request | - | +| **204** | Promoted products paused | - | +| **400** | Invalid request body | - | +| **403** | Invalid external line item ID | - | -## postApi202110ExternalLineItemProductsAppendByLineItemId +## postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId -> PromotedProduct202110PagedListResponse postApi202110ExternalLineItemProductsAppendByLineItemId(lineItemId, promotedProduct202110ListRequest) +> KeywordTarget202110Response postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId(lineItemId, keywordTarget202110Request) -This endpoint appends one or more products to promote on the specified line item. The resulting state of the line item is returned. +This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -3226,12 +3227,12 @@ public class Example { CampaignApi apiInstance = new CampaignApi(defaultClient); String lineItemId = "lineItemId_example"; // String | The line item to interact with - PromotedProduct202110ListRequest promotedProduct202110ListRequest = new PromotedProduct202110ListRequest(); // PromotedProduct202110ListRequest | the products to append to this line item + KeywordTarget202110Request keywordTarget202110Request = new KeywordTarget202110Request(); // KeywordTarget202110Request | try { - PromotedProduct202110PagedListResponse result = apiInstance.postApi202110ExternalLineItemProductsAppendByLineItemId(lineItemId, promotedProduct202110ListRequest); + KeywordTarget202110Response result = apiInstance.postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId(lineItemId, keywordTarget202110Request); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202110ExternalLineItemProductsAppendByLineItemId"); + System.err.println("Exception when calling CampaignApi#postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3247,11 +3248,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **lineItemId** | **String**| The line item to interact with | | -| **promotedProduct202110ListRequest** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| the products to append to this line item | [optional] | +| **keywordTarget202110Request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] | ### Return type -[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) +[**KeywordTarget202110Response**](KeywordTarget202110Response.md) ### Authorization @@ -3267,28 +3268,29 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | +| **400** | Bad Request | - | -## postApi202110ExternalLineItemProductsDeleteByLineItemId +## postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId -> PromotedProduct202110PagedListResponse postApi202110ExternalLineItemProductsDeleteByLineItemId(lineItemId, promotedProduct202110ListRequest) +> KeywordTarget202110Response postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId(lineItemId, keywordTarget202110Request) -This endpoint removes one or more products from promotion on the specified line item. The resulting state of the line item is returned. +This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -3317,12 +3319,12 @@ public class Example { CampaignApi apiInstance = new CampaignApi(defaultClient); String lineItemId = "lineItemId_example"; // String | The line item to interact with - PromotedProduct202110ListRequest promotedProduct202110ListRequest = new PromotedProduct202110ListRequest(); // PromotedProduct202110ListRequest | + KeywordTarget202110Request keywordTarget202110Request = new KeywordTarget202110Request(); // KeywordTarget202110Request | try { - PromotedProduct202110PagedListResponse result = apiInstance.postApi202110ExternalLineItemProductsDeleteByLineItemId(lineItemId, promotedProduct202110ListRequest); + KeywordTarget202110Response result = apiInstance.postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId(lineItemId, keywordTarget202110Request); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202110ExternalLineItemProductsDeleteByLineItemId"); + System.err.println("Exception when calling CampaignApi#postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3338,11 +3340,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **lineItemId** | **String**| The line item to interact with | | -| **promotedProduct202110ListRequest** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| | [optional] | +| **keywordTarget202110Request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] | ### Return type -[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) +[**KeywordTarget202110Response**](KeywordTarget202110Response.md) ### Authorization @@ -3358,28 +3360,29 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | +| **400** | Bad Request | - | -## postApi202110ExternalLineItemProductsPauseByLineItemId +## postApi202110ExternalBalanceCampaignsAppendByBalanceId -> postApi202110ExternalLineItemProductsPauseByLineItemId(lineItemId, promotedProduct202110ListRequest) +> BalanceCampaign202110PagedListResponse postApi202110ExternalBalanceCampaignsAppendByBalanceId(balanceId, balanceCampaign202110ListRequest) -This endpoint pauses one or more promoted products on a specified line item. +appends one or more campaigns to the specified balance ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -3407,12 +3410,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The line item to interact with. - PromotedProduct202110ListRequest promotedProduct202110ListRequest = new PromotedProduct202110ListRequest(); // PromotedProduct202110ListRequest | The products from which their IDs will be used to pause. + String balanceId = "balanceId_example"; // String | The balance to add campaigns from + BalanceCampaign202110ListRequest balanceCampaign202110ListRequest = new BalanceCampaign202110ListRequest(); // BalanceCampaign202110ListRequest | The campaigns to append try { - apiInstance.postApi202110ExternalLineItemProductsPauseByLineItemId(lineItemId, promotedProduct202110ListRequest); + BalanceCampaign202110PagedListResponse result = apiInstance.postApi202110ExternalBalanceCampaignsAppendByBalanceId(balanceId, balanceCampaign202110ListRequest); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202110ExternalLineItemProductsPauseByLineItemId"); + System.err.println("Exception when calling CampaignApi#postApi202110ExternalBalanceCampaignsAppendByBalanceId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3427,12 +3431,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The line item to interact with. | | -| **promotedProduct202110ListRequest** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| The products from which their IDs will be used to pause. | [optional] | +| **balanceId** | **String**| The balance to add campaigns from | | +| **balanceCampaign202110ListRequest** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] | ### Return type -null (empty response body) +[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) ### Authorization @@ -3441,7 +3445,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/json ### HTTP response details @@ -3450,26 +3454,26 @@ null (empty response body) | **200** | Success | - | -## postApi202110ExternalLineItemProductsUnpauseByLineItemId +## postApi202110ExternalBalanceCampaignsDeleteByBalanceId -> postApi202110ExternalLineItemProductsUnpauseByLineItemId(lineItemId, promotedProduct202110ListRequest) +> BalanceCampaign202110PagedListResponse postApi202110ExternalBalanceCampaignsDeleteByBalanceId(balanceId, balanceCampaign202110ListRequest) -This endpoint unpauses one or more promoted products on a specified line item. +Removes one or more campaigns on the specified balance ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -3497,12 +3501,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The line item to interact with. - PromotedProduct202110ListRequest promotedProduct202110ListRequest = new PromotedProduct202110ListRequest(); // PromotedProduct202110ListRequest | The products from which their IDs will be used to unpause. + String balanceId = "balanceId_example"; // String | The balance to remove campaigns from + BalanceCampaign202110ListRequest balanceCampaign202110ListRequest = new BalanceCampaign202110ListRequest(); // BalanceCampaign202110ListRequest | The campaigns to append try { - apiInstance.postApi202110ExternalLineItemProductsUnpauseByLineItemId(lineItemId, promotedProduct202110ListRequest); + BalanceCampaign202110PagedListResponse result = apiInstance.postApi202110ExternalBalanceCampaignsDeleteByBalanceId(balanceId, balanceCampaign202110ListRequest); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202110ExternalLineItemProductsUnpauseByLineItemId"); + System.err.println("Exception when calling CampaignApi#postApi202110ExternalBalanceCampaignsDeleteByBalanceId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3517,12 +3522,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The line item to interact with. | | -| **promotedProduct202110ListRequest** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| The products from which their IDs will be used to unpause. | [optional] | +| **balanceId** | **String**| The balance to remove campaigns from | | +| **balanceCampaign202110ListRequest** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] | ### Return type -null (empty response body) +[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) ### Authorization @@ -3531,7 +3536,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/json ### HTTP response details @@ -3540,26 +3545,26 @@ null (empty response body) | **200** | Success | - | -## postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId +## postApi202110ExternalCampaignPreferredLineItemsByCampaignId -> AddToBasketTarget202110Response postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId(lineItemId, addToBasketIdsUpdateModel202110Request) +> PreferredLineItemV2Response postApi202110ExternalCampaignPreferredLineItemsByCampaignId(campaignId, preferredLineItemCreateModelV2Request) -This endpoint appends one or more add to basket ids to targeting on the specified line item. The resulting state of the add to basket target is returned. +Creates a new preferred line item with the specified settings ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -3587,13 +3592,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The line item to interact with - AddToBasketIdsUpdateModel202110Request addToBasketIdsUpdateModel202110Request = new AddToBasketIdsUpdateModel202110Request(); // AddToBasketIdsUpdateModel202110Request | Ids to append to the target + String campaignId = "campaignId_example"; // String | The given campaign id + PreferredLineItemCreateModelV2Request preferredLineItemCreateModelV2Request = new PreferredLineItemCreateModelV2Request(); // PreferredLineItemCreateModelV2Request | The line item settings to create a line item with try { - AddToBasketTarget202110Response result = apiInstance.postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId(lineItemId, addToBasketIdsUpdateModel202110Request); + PreferredLineItemV2Response result = apiInstance.postApi202110ExternalCampaignPreferredLineItemsByCampaignId(campaignId, preferredLineItemCreateModelV2Request); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId"); + System.err.println("Exception when calling CampaignApi#postApi202110ExternalCampaignPreferredLineItemsByCampaignId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3608,12 +3613,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The line item to interact with | | -| **addToBasketIdsUpdateModel202110Request** | [**AddToBasketIdsUpdateModel202110Request**](AddToBasketIdsUpdateModel202110Request.md)| Ids to append to the target | [optional] | +| **campaignId** | **String**| The given campaign id | | +| **preferredLineItemCreateModelV2Request** | [**PreferredLineItemCreateModelV2Request**](PreferredLineItemCreateModelV2Request.md)| The line item settings to create a line item with | | ### Return type -[**AddToBasketTarget202110Response**](AddToBasketTarget202110Response.md) +[**PreferredLineItemV2Response**](PreferredLineItemV2Response.md) ### Authorization @@ -3628,30 +3633,122 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **201** | Success | - | | **400** | Bad Request | - | -## postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId +## postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId -> AddToBasketTarget202110Response postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId(lineItemId, addToBasketIdsUpdateModel202110Request) +> AddToBasketTarget202110Response postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId(lineItemId, addToBasketIdsUpdateModel202110Request) -This endpoint removes one or more add to basket ids from targeting on the specified line item. The resulting state of the add to basket target is returned. +This endpoint appends one or more add to basket ids to targeting on the specified line item. The resulting state of the add to basket target is returned. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + CampaignApi apiInstance = new CampaignApi(defaultClient); + String lineItemId = "lineItemId_example"; // String | The line item to interact with + AddToBasketIdsUpdateModel202110Request addToBasketIdsUpdateModel202110Request = new AddToBasketIdsUpdateModel202110Request(); // AddToBasketIdsUpdateModel202110Request | Ids to append to the target + try { + AddToBasketTarget202110Response result = apiInstance.postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId(lineItemId, addToBasketIdsUpdateModel202110Request); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CampaignApi#postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **lineItemId** | **String**| The line item to interact with | | +| **addToBasketIdsUpdateModel202110Request** | [**AddToBasketIdsUpdateModel202110Request**](AddToBasketIdsUpdateModel202110Request.md)| Ids to append to the target | [optional] | + +### Return type + +[**AddToBasketTarget202110Response**](AddToBasketTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | +| **400** | Bad Request | - | + + +## postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId + +> AddToBasketTarget202110Response postApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId(lineItemId, addToBasketIdsUpdateModel202110Request) + + + +This endpoint removes one or more add to basket ids from targeting on the specified line item. The resulting state of the add to basket target is returned. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -3735,15 +3832,15 @@ This endpoint appends one or more audiences ids to targeting on the specified li ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -3827,15 +3924,15 @@ This endpoint removes one or more audiences ids from targeting on the specified ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -3919,15 +4016,15 @@ This endpoint appends one or more store ids to targeting on the specified line i ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -4011,15 +4108,15 @@ This endpoint removes one or more store ids from targeting on the specified line ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -4103,15 +4200,15 @@ Create a creative for an account ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -4183,26 +4280,26 @@ public class Example { | **201** | Creatives created | - | -## postApi202210ExternalAccountCreativesSearchByAccountId +## postApi202301ExternalAccountCampaignsByAccountId -> Creative202210ListResponse postApi202210ExternalAccountCreativesSearchByAccountId(accountId, creativeIds) +> JsonApiSingleResponseOfCampaignV202301 postApi202301ExternalAccountCampaignsByAccountId(accountId, postCampaignV202301) -Get account creatives +Create a campaign and assign budgets for the given account id with creatable campaign attributes given in request body constrained by business validation. The validation error includes details and source of errors. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -4230,13 +4327,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String accountId = "accountId_example"; // String | External account id to retrieve creatives for - List creativeIds = Arrays.asList(); // List | Creatives to filter by + String accountId = "accountId_example"; // String | The account to request the campaign for. + PostCampaignV202301 postCampaignV202301 = new PostCampaignV202301(); // PostCampaignV202301 | Creatable campaign attributes try { - Creative202210ListResponse result = apiInstance.postApi202210ExternalAccountCreativesSearchByAccountId(accountId, creativeIds); + JsonApiSingleResponseOfCampaignV202301 result = apiInstance.postApi202301ExternalAccountCampaignsByAccountId(accountId, postCampaignV202301); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202210ExternalAccountCreativesSearchByAccountId"); + System.err.println("Exception when calling CampaignApi#postApi202301ExternalAccountCampaignsByAccountId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4251,12 +4348,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| External account id to retrieve creatives for | | -| **creativeIds** | [**List<String>**](String.md)| Creatives to filter by | [optional] | +| **accountId** | **String**| The account to request the campaign for. | | +| **postCampaignV202301** | [**PostCampaignV202301**](PostCampaignV202301.md)| Creatable campaign attributes | [optional] | ### Return type -[**Creative202210ListResponse**](Creative202210ListResponse.md) +[**JsonApiSingleResponseOfCampaignV202301**](JsonApiSingleResponseOfCampaignV202301.md) ### Authorization @@ -4264,36 +4361,36 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Creatives found | - | +| **201** | Success | - | -## postApi202301ExternalAccountCampaignsByAccountId +## postApiV1ExternalAccountCatalogsByAccountId -> JsonApiSingleResponseOfCampaignV202301 postApi202301ExternalAccountCampaignsByAccountId(accountId, postCampaignV202301) +> JsonApiSingleResponseOfCatalogStatus postApiV1ExternalAccountCatalogsByAccountId(accountId, jsonApiRequestOfCatalogRequest) -Create a campaign and assign budgets for the given account id with creatable campaign attributes given in request body constrained by business validation. The validation error includes details and source of errors. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. +Create a request for a Catalog available to the indicated account. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -4321,13 +4418,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String accountId = "accountId_example"; // String | The account to request the campaign for. - PostCampaignV202301 postCampaignV202301 = new PostCampaignV202301(); // PostCampaignV202301 | Creatable campaign attributes + String accountId = "accountId_example"; // String | The account to request the catalog for. + JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest = new JsonApiRequestOfCatalogRequest(); // JsonApiRequestOfCatalogRequest | try { - JsonApiSingleResponseOfCampaignV202301 result = apiInstance.postApi202301ExternalAccountCampaignsByAccountId(accountId, postCampaignV202301); + JsonApiSingleResponseOfCatalogStatus result = apiInstance.postApiV1ExternalAccountCatalogsByAccountId(accountId, jsonApiRequestOfCatalogRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApi202301ExternalAccountCampaignsByAccountId"); + System.err.println("Exception when calling CampaignApi#postApiV1ExternalAccountCatalogsByAccountId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4342,12 +4439,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| The account to request the campaign for. | | -| **postCampaignV202301** | [**PostCampaignV202301**](PostCampaignV202301.md)| Creatable campaign attributes | [optional] | +| **accountId** | **String**| The account to request the catalog for. | | +| **jsonApiRequestOfCatalogRequest** | [**JsonApiRequestOfCatalogRequest**](JsonApiRequestOfCatalogRequest.md)| | [optional] | ### Return type -[**JsonApiSingleResponseOfCampaignV202301**](JsonApiSingleResponseOfCampaignV202301.md) +[**JsonApiSingleResponseOfCatalogStatus**](JsonApiSingleResponseOfCatalogStatus.md) ### Authorization @@ -4362,29 +4459,29 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Success | - | +| **200** | Catalog request successfully created | - | -## postApiV1ExternalAccountCatalogsByAccountId +## postApiV2ExternalAccountCreativesSearchByAccountId -> JsonApiSingleResponseOfCatalogStatus postApiV1ExternalAccountCatalogsByAccountId(accountId, jsonApiRequestOfCatalogRequest) +> CreativeV2ListResponse postApiV2ExternalAccountCreativesSearchByAccountId(accountId, creativeIds) -Create a request for a Catalog available to the indicated account. +Get account creatives ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -4412,13 +4509,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String accountId = "accountId_example"; // String | The account to request the catalog for. - JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest = new JsonApiRequestOfCatalogRequest(); // JsonApiRequestOfCatalogRequest | + String accountId = "accountId_example"; // String | External account id to retrieve creatives for + List creativeIds = Arrays.asList(); // List | Creatives to filter by try { - JsonApiSingleResponseOfCatalogStatus result = apiInstance.postApiV1ExternalAccountCatalogsByAccountId(accountId, jsonApiRequestOfCatalogRequest); + CreativeV2ListResponse result = apiInstance.postApiV2ExternalAccountCreativesSearchByAccountId(accountId, creativeIds); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#postApiV1ExternalAccountCatalogsByAccountId"); + System.err.println("Exception when calling CampaignApi#postApiV2ExternalAccountCreativesSearchByAccountId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -4433,12 +4530,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| The account to request the catalog for. | | -| **jsonApiRequestOfCatalogRequest** | [**JsonApiRequestOfCatalogRequest**](JsonApiRequestOfCatalogRequest.md)| | [optional] | +| **accountId** | **String**| External account id to retrieve creatives for | | +| **creativeIds** | [**List<String>**](String.md)| Creatives to filter by | [optional] | ### Return type -[**JsonApiSingleResponseOfCatalogStatus**](JsonApiSingleResponseOfCatalogStatus.md) +[**CreativeV2ListResponse**](CreativeV2ListResponse.md) ### Authorization @@ -4446,14 +4543,14 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json -- **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Catalog request successfully created | - | +| **200** | Creatives found | - | ## postApiV2ExternalCampaignAuctionLineItemsByCampaignId @@ -4467,15 +4564,15 @@ Creates new auction line item with the specified settings ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -4550,7 +4647,7 @@ public class Example { ## putApi202110ExternalPreferredLineItemByLineItemId -> PreferredLineItem202110Response putApi202110ExternalPreferredLineItemByLineItemId(lineItemId, preferredLineItemUpdateModel202110Request) +> PreferredLineItemV2Response putApi202110ExternalPreferredLineItemByLineItemId(lineItemId, preferredLineItemUpdateModelV2Request) @@ -4559,15 +4656,15 @@ Updates the preferred line item for the given line item id ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -4596,9 +4693,9 @@ public class Example { CampaignApi apiInstance = new CampaignApi(defaultClient); String lineItemId = "lineItemId_example"; // String | The given line item id - PreferredLineItemUpdateModel202110Request preferredLineItemUpdateModel202110Request = new PreferredLineItemUpdateModel202110Request(); // PreferredLineItemUpdateModel202110Request | The line item settings to create a line item with + PreferredLineItemUpdateModelV2Request preferredLineItemUpdateModelV2Request = new PreferredLineItemUpdateModelV2Request(); // PreferredLineItemUpdateModelV2Request | The line item settings to create a line item with try { - PreferredLineItem202110Response result = apiInstance.putApi202110ExternalPreferredLineItemByLineItemId(lineItemId, preferredLineItemUpdateModel202110Request); + PreferredLineItemV2Response result = apiInstance.putApi202110ExternalPreferredLineItemByLineItemId(lineItemId, preferredLineItemUpdateModelV2Request); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CampaignApi#putApi202110ExternalPreferredLineItemByLineItemId"); @@ -4617,11 +4714,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **lineItemId** | **String**| The given line item id | | -| **preferredLineItemUpdateModel202110Request** | [**PreferredLineItemUpdateModel202110Request**](PreferredLineItemUpdateModel202110Request.md)| The line item settings to create a line item with | [optional] | +| **preferredLineItemUpdateModelV2Request** | [**PreferredLineItemUpdateModelV2Request**](PreferredLineItemUpdateModelV2Request.md)| The line item settings to create a line item with | | ### Return type -[**PreferredLineItem202110Response**](PreferredLineItem202110Response.md) +[**PreferredLineItemV2Response**](PreferredLineItemV2Response.md) ### Authorization @@ -4651,15 +4748,15 @@ This endpoint sets the scope of the add to basket target on the specified line i ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -4743,15 +4840,15 @@ This endpoint sets the scope of the audience target on the specified line item. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -4835,15 +4932,15 @@ This endpoint sets the scope of the store target on the specified line item. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -4927,15 +5024,15 @@ Update a creative ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -5021,15 +5118,15 @@ Edit a campaign for the given campaign id with a given editable attributes. This ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -5101,26 +5198,26 @@ public class Example { | **200** | Success | - | -## putApi202301ExternalLineItemBidMultipliersByLineItemId +## putApiV2ExternalAuctionLineItemByLineItemId -> LineItemBidMultipliersResponse putApi202301ExternalLineItemBidMultipliersByLineItemId(lineItemId, lineItemBidMultipliersRequest) +> AuctionLineItemResponse putApiV2ExternalAuctionLineItemByLineItemId(lineItemId, auctionLineItemUpdateModelRequest) -Replace bid multipliers on a line item +Updates the auction line item for the given line item id ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -5148,13 +5245,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | Long external id of the associated line item - LineItemBidMultipliersRequest lineItemBidMultipliersRequest = new LineItemBidMultipliersRequest(); // LineItemBidMultipliersRequest | + String lineItemId = "lineItemId_example"; // String | The given line item id + AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest = new AuctionLineItemUpdateModelRequest(); // AuctionLineItemUpdateModelRequest | The line item settings to create a line item with try { - LineItemBidMultipliersResponse result = apiInstance.putApi202301ExternalLineItemBidMultipliersByLineItemId(lineItemId, lineItemBidMultipliersRequest); + AuctionLineItemResponse result = apiInstance.putApiV2ExternalAuctionLineItemByLineItemId(lineItemId, auctionLineItemUpdateModelRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#putApi202301ExternalLineItemBidMultipliersByLineItemId"); + System.err.println("Exception when calling CampaignApi#putApiV2ExternalAuctionLineItemByLineItemId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -5169,12 +5266,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| Long external id of the associated line item | | -| **lineItemBidMultipliersRequest** | [**LineItemBidMultipliersRequest**](LineItemBidMultipliersRequest.md)| | [optional] | +| **lineItemId** | **String**| The given line item id | | +| **auctionLineItemUpdateModelRequest** | [**AuctionLineItemUpdateModelRequest**](AuctionLineItemUpdateModelRequest.md)| The line item settings to create a line item with | [optional] | ### Return type -[**LineItemBidMultipliersResponse**](LineItemBidMultipliersResponse.md) +[**AuctionLineItemResponse**](AuctionLineItemResponse.md) ### Authorization @@ -5183,35 +5280,36 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json -- **Accept**: text/plain, application/json, text/json +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | - | +| **400** | Bad Request | - | -## putApiV2ExternalAuctionLineItemByLineItemId +## putApiV2ExternalLineItemBidMultipliersByLineItemId -> AuctionLineItemResponse putApiV2ExternalAuctionLineItemByLineItemId(lineItemId, auctionLineItemUpdateModelRequest) +> LineItemBidMultipliersV2Response putApiV2ExternalLineItemBidMultipliersByLineItemId(lineItemId, lineItemBidMultipliersV2Request) -Updates the auction line item for the given line item id +Updates the bid multipliers for a given line item ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -5239,13 +5337,13 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The given line item id - AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest = new AuctionLineItemUpdateModelRequest(); // AuctionLineItemUpdateModelRequest | The line item settings to create a line item with + String lineItemId = "lineItemId_example"; // String | External LineItemId for bid multiplier retrieval + LineItemBidMultipliersV2Request lineItemBidMultipliersV2Request = new LineItemBidMultipliersV2Request(); // LineItemBidMultipliersV2Request | New Bid Multipliers to be set try { - AuctionLineItemResponse result = apiInstance.putApiV2ExternalAuctionLineItemByLineItemId(lineItemId, auctionLineItemUpdateModelRequest); + LineItemBidMultipliersV2Response result = apiInstance.putApiV2ExternalLineItemBidMultipliersByLineItemId(lineItemId, lineItemBidMultipliersV2Request); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#putApiV2ExternalAuctionLineItemByLineItemId"); + System.err.println("Exception when calling CampaignApi#putApiV2ExternalLineItemBidMultipliersByLineItemId"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -5260,12 +5358,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The given line item id | | -| **auctionLineItemUpdateModelRequest** | [**AuctionLineItemUpdateModelRequest**](AuctionLineItemUpdateModelRequest.md)| The line item settings to create a line item with | [optional] | +| **lineItemId** | **String**| External LineItemId for bid multiplier retrieval | | +| **lineItemBidMultipliersV2Request** | [**LineItemBidMultipliersV2Request**](LineItemBidMultipliersV2Request.md)| New Bid Multipliers to be set | [optional] | ### Return type -[**AuctionLineItemResponse**](AuctionLineItemResponse.md) +[**LineItemBidMultipliersV2Response**](LineItemBidMultipliersV2Response.md) ### Authorization @@ -5274,14 +5372,13 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json -- **Accept**: application/json +- **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | -| **400** | Bad Request | - | +| **200** | BidMultipliers Updated | - | ## setKeywordBids @@ -5295,15 +5392,15 @@ Set bid overrides for associated keywords to the given line item in bulk ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -5387,15 +5484,15 @@ Only the components of the Line Item that are in a valid state will be reviewed. ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.CampaignApi; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; public class Example { public static void main(String[] args) { @@ -5466,3 +5563,277 @@ public class Example { | **400** | Bad Request | - | | **403** | Forbidden | - | + +## unpausePromotedProducts + +> unpausePromotedProducts(lineItemId, promotedProductResourceCollectionInput) + + + +Un-pause a collection of promoted products associated with a line item + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + CampaignApi apiInstance = new CampaignApi(defaultClient); + String lineItemId = "lineItemId_example"; // String | ID of the line item + PromotedProductResourceCollectionInput promotedProductResourceCollectionInput = new PromotedProductResourceCollectionInput(); // PromotedProductResourceCollectionInput | Request body whose {data} contains an array of promoted products. + try { + apiInstance.unpausePromotedProducts(lineItemId, promotedProductResourceCollectionInput); + } catch (ApiException e) { + System.err.println("Exception when calling CampaignApi#unpausePromotedProducts"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **lineItemId** | **String**| ID of the line item | | +| **promotedProductResourceCollectionInput** | [**PromotedProductResourceCollectionInput**](PromotedProductResourceCollectionInput.md)| Request body whose {data} contains an array of promoted products. | [optional] | + +### Return type + +null (empty response body) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Promoted products un-paused | - | +| **400** | Invalid request body | - | +| **403** | Invalid external line item ID | - | + + +## updateCampaignBudgetOverrides + +> ValueResourceOutcomeOfCampaignBudgetOverrides updateCampaignBudgetOverrides(campaignId, valueResourceInputOfCampaignBudgetOverrides) + + + +Update campaign budget overrides by given external campaign id and new campaign budget overrides settings. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + CampaignApi apiInstance = new CampaignApi(defaultClient); + Long campaignId = 56L; // Long | External campaign id. + ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides = new ValueResourceInputOfCampaignBudgetOverrides(); // ValueResourceInputOfCampaignBudgetOverrides | New campaign budget overrides settings value resource input. + try { + ValueResourceOutcomeOfCampaignBudgetOverrides result = apiInstance.updateCampaignBudgetOverrides(campaignId, valueResourceInputOfCampaignBudgetOverrides); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CampaignApi#updateCampaignBudgetOverrides"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **campaignId** | **Long**| External campaign id. | | +| **valueResourceInputOfCampaignBudgetOverrides** | [**ValueResourceInputOfCampaignBudgetOverrides**](ValueResourceInputOfCampaignBudgetOverrides.md)| New campaign budget overrides settings value resource input. | [optional] | + +### Return type + +[**ValueResourceOutcomeOfCampaignBudgetOverrides**](ValueResourceOutcomeOfCampaignBudgetOverrides.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Success | - | + + +## updateLineItemBudgetOverrides + +> ValueResourceOutcomeOfLineItemBudgetOverrides updateLineItemBudgetOverrides(lineItemId, valueResourceInputOfLineItemBudgetOverrides) + + + +Update line item budget overrides by given external line item id and new line item budget overrides settings. + +### Example + +```java +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.CampaignApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + CampaignApi apiInstance = new CampaignApi(defaultClient); + String lineItemId = "lineItemId_example"; // String | Line item external id. + ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides = new ValueResourceInputOfLineItemBudgetOverrides(); // ValueResourceInputOfLineItemBudgetOverrides | New line item budget overrides settings value resource input. + try { + ValueResourceOutcomeOfLineItemBudgetOverrides result = apiInstance.updateLineItemBudgetOverrides(lineItemId, valueResourceInputOfLineItemBudgetOverrides); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CampaignApi#updateLineItemBudgetOverrides"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **lineItemId** | **String**| Line item external id. | | +| **valueResourceInputOfLineItemBudgetOverrides** | [**ValueResourceInputOfLineItemBudgetOverrides**](ValueResourceInputOfLineItemBudgetOverrides.md)| New line item budget overrides settings value resource input. | [optional] | + +### Return type + +[**ValueResourceOutcomeOfLineItemBudgetOverrides**](ValueResourceOutcomeOfLineItemBudgetOverrides.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Success | - | + diff --git a/sdks/retailmedia_2023-07/docs/CampaignAttributesV202301.md b/sdks/retailmedia_2024-10/docs/CampaignAttributesV202301.md similarity index 97% rename from sdks/retailmedia_2023-07/docs/CampaignAttributesV202301.md rename to sdks/retailmedia_2024-10/docs/CampaignAttributesV202301.md index 5ab75c0d..0dce9412 100644 --- a/sdks/retailmedia_2023-07/docs/CampaignAttributesV202301.md +++ b/sdks/retailmedia_2024-10/docs/CampaignAttributesV202301.md @@ -22,6 +22,7 @@ An object that represents the available options to set when creating a Retail Me |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_preview/docs/CampaignBudgetOverrides.md b/sdks/retailmedia_2024-10/docs/CampaignBudgetOverrides.md similarity index 100% rename from sdks/retailmedia_preview/docs/CampaignBudgetOverrides.md rename to sdks/retailmedia_2024-10/docs/CampaignBudgetOverrides.md diff --git a/sdks/retailmedia_preview/docs/CampaignDailyBudgetOverride.md b/sdks/retailmedia_2024-10/docs/CampaignDailyBudgetOverride.md similarity index 100% rename from sdks/retailmedia_preview/docs/CampaignDailyBudgetOverride.md rename to sdks/retailmedia_2024-10/docs/CampaignDailyBudgetOverride.md diff --git a/sdks/retailmedia_preview/docs/CampaignMonthlyBudgetOverride.md b/sdks/retailmedia_2024-10/docs/CampaignMonthlyBudgetOverride.md similarity index 100% rename from sdks/retailmedia_preview/docs/CampaignMonthlyBudgetOverride.md rename to sdks/retailmedia_2024-10/docs/CampaignMonthlyBudgetOverride.md diff --git a/sdks/retailmedia_2023-07/docs/CampaignV202301.md b/sdks/retailmedia_2024-10/docs/CampaignV202301.md similarity index 98% rename from sdks/retailmedia_2023-07/docs/CampaignV202301.md rename to sdks/retailmedia_2024-10/docs/CampaignV202301.md index 91d388e6..c1b97116 100644 --- a/sdks/retailmedia_2023-07/docs/CampaignV202301.md +++ b/sdks/retailmedia_2024-10/docs/CampaignV202301.md @@ -29,6 +29,7 @@ A Retail Media Campaign used to represent an advertiser's marketing objective |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/Category202204.md b/sdks/retailmedia_2024-10/docs/Category202204.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/Category202204.md rename to sdks/retailmedia_2024-10/docs/Category202204.md diff --git a/sdks/retailmedia_2023-07/docs/Category202204ListResponse.md b/sdks/retailmedia_2024-10/docs/Category202204ListResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/Category202204ListResponse.md rename to sdks/retailmedia_2024-10/docs/Category202204ListResponse.md diff --git a/sdks/retailmedia_2024-10/docs/ChangeDatesOfBalanceV2.md b/sdks/retailmedia_2024-10/docs/ChangeDatesOfBalanceV2.md new file mode 100644 index 00000000..133b1bc6 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ChangeDatesOfBalanceV2.md @@ -0,0 +1,16 @@ + + +# ChangeDatesOfBalanceV2 + +An object that represents the available options to modify schedule of a balance. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startDate** | **String** | Start date of the balance in the format YYYY-MM-DD. | [optional] | +|**endDate** | **String** | End date of the balance in the format YYYY-MM-DD. | [optional] | +|**memo** | **String** | Memo. | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/ChangeDatesOfBalanceV2Request.md b/sdks/retailmedia_2024-10/docs/ChangeDatesOfBalanceV2Request.md new file mode 100644 index 00000000..ba11bbff --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ChangeDatesOfBalanceV2Request.md @@ -0,0 +1,14 @@ + + +# ChangeDatesOfBalanceV2Request + +A top-level object that encapsulates a Criteo API request for a single entity + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ResourceOfChangeDatesOfBalanceV2**](ResourceOfChangeDatesOfBalanceV2.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/ChangeDetailsV1.md b/sdks/retailmedia_2024-10/docs/ChangeDetailsV1.md new file mode 100644 index 00000000..14bb8a12 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ChangeDetailsV1.md @@ -0,0 +1,16 @@ + + +# ChangeDetailsV1 + +Change details of a property of the balance. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**previousValue** | **String** | Previous value of a property of the insertion order. | | +|**currentValue** | **String** | Current value of a property of the insertion order. | | +|**changeValue** | **String** | Change detail of a property of the insertion order. | | + + + diff --git a/sdks/retailmedia_2023-07/docs/ChoiceOption.md b/sdks/retailmedia_2024-10/docs/ChoiceOption.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ChoiceOption.md rename to sdks/retailmedia_2024-10/docs/ChoiceOption.md diff --git a/sdks/retailmedia_2023-07/docs/ChoiceVariableSpecification.md b/sdks/retailmedia_2024-10/docs/ChoiceVariableSpecification.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ChoiceVariableSpecification.md rename to sdks/retailmedia_2024-10/docs/ChoiceVariableSpecification.md diff --git a/sdks/retailmedia_2023-07/docs/ChoiceVariableValue.md b/sdks/retailmedia_2024-10/docs/ChoiceVariableValue.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ChoiceVariableValue.md rename to sdks/retailmedia_2024-10/docs/ChoiceVariableValue.md diff --git a/sdks/retailmedia_2023-07/docs/ColorVariableValue.md b/sdks/retailmedia_2024-10/docs/ColorVariableValue.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ColorVariableValue.md rename to sdks/retailmedia_2024-10/docs/ColorVariableValue.md diff --git a/sdks/retailmedia_2023-07/docs/CommonError.md b/sdks/retailmedia_2024-10/docs/CommonError.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/CommonError.md rename to sdks/retailmedia_2024-10/docs/CommonError.md diff --git a/sdks/retailmedia_2023-07/docs/CommonLineItemPagedListResponse.md b/sdks/retailmedia_2024-10/docs/CommonLineItemPagedListResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/CommonLineItemPagedListResponse.md rename to sdks/retailmedia_2024-10/docs/CommonLineItemPagedListResponse.md diff --git a/sdks/retailmedia_2023-07/docs/CommonLineItemResponse.md b/sdks/retailmedia_2024-10/docs/CommonLineItemResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/CommonLineItemResponse.md rename to sdks/retailmedia_2024-10/docs/CommonLineItemResponse.md diff --git a/sdks/retailmedia_2023-07/docs/CommonProblem.md b/sdks/retailmedia_2024-10/docs/CommonProblem.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/CommonProblem.md rename to sdks/retailmedia_2024-10/docs/CommonProblem.md diff --git a/sdks/retailmedia_2023-07/docs/CommonWarning.md b/sdks/retailmedia_2024-10/docs/CommonWarning.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/CommonWarning.md rename to sdks/retailmedia_2024-10/docs/CommonWarning.md diff --git a/sdks/retailmedia_2024-10/docs/CreateBalanceV2.md b/sdks/retailmedia_2024-10/docs/CreateBalanceV2.md new file mode 100644 index 00000000..7dba10e6 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/CreateBalanceV2.md @@ -0,0 +1,30 @@ + + +# CreateBalanceV2 + +An object that represents the available options to set when creating a Retail Media Balance + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name of the balance. | | +|**poNumber** | **String** | Purchase Order number. | [optional] | +|**deposited** | **BigDecimal** | Amount of billable funds allotted to the balance. | [optional] | +|**startDate** | **LocalDate** | Start date of the balance in the format YYYY-MM-DD. | | +|**endDate** | **LocalDate** | End date of the balance in the format YYYY-MM-DD. | [optional] | +|**spendType** | [**SpendTypeEnum**](#SpendTypeEnum) | Type of the balance spend. | | +|**memo** | **String** | Memo | [optional] | + + + +## Enum: SpendTypeEnum + +| Name | Value | +|---- | -----| +| ONSITE | "Onsite" | +| OFFSITE | "Offsite" | +| OFFSITEAWARENESS | "OffsiteAwareness" | + + + diff --git a/sdks/retailmedia_2024-10/docs/CreateBalanceV2Request.md b/sdks/retailmedia_2024-10/docs/CreateBalanceV2Request.md new file mode 100644 index 00000000..30da4273 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/CreateBalanceV2Request.md @@ -0,0 +1,14 @@ + + +# CreateBalanceV2Request + +A top-level object that encapsulates a Criteo API request for a single entity + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ResourceOfCreateBalanceV2**](ResourceOfCreateBalanceV2.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/Creative202110.md b/sdks/retailmedia_2024-10/docs/Creative202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/Creative202110.md rename to sdks/retailmedia_2024-10/docs/Creative202110.md diff --git a/sdks/retailmedia_2023-07/docs/Creative202110ListResponse.md b/sdks/retailmedia_2024-10/docs/Creative202110ListResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/Creative202110ListResponse.md rename to sdks/retailmedia_2024-10/docs/Creative202110ListResponse.md diff --git a/sdks/retailmedia_2023-07/docs/Creative202210.md b/sdks/retailmedia_2024-10/docs/Creative202210.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/Creative202210.md rename to sdks/retailmedia_2024-10/docs/Creative202210.md diff --git a/sdks/retailmedia_2023-07/docs/Creative202210Response.md b/sdks/retailmedia_2024-10/docs/Creative202210Response.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/Creative202210Response.md rename to sdks/retailmedia_2024-10/docs/Creative202210Response.md diff --git a/sdks/retailmedia_2023-07/docs/CreativeCreateModel202207.md b/sdks/retailmedia_2024-10/docs/CreativeCreateModel202207.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/CreativeCreateModel202207.md rename to sdks/retailmedia_2024-10/docs/CreativeCreateModel202207.md diff --git a/sdks/retailmedia_2023-07/docs/CreativeUpdateModel202207.md b/sdks/retailmedia_2024-10/docs/CreativeUpdateModel202207.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/CreativeUpdateModel202207.md rename to sdks/retailmedia_2024-10/docs/CreativeUpdateModel202207.md diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV2ListResponse.md b/sdks/retailmedia_2024-10/docs/CreativeV2ListResponse.md similarity index 70% rename from sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV2ListResponse.md rename to sdks/retailmedia_2024-10/docs/CreativeV2ListResponse.md index 4586ca41..4b80dde2 100644 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV2ListResponse.md +++ b/sdks/retailmedia_2024-10/docs/CreativeV2ListResponse.md @@ -1,6 +1,6 @@ -# RmLegacyAudienceGetEntityV2ListResponse +# CreativeV2ListResponse A top-level object that encapsulates a Criteo API response for several entities @@ -8,7 +8,7 @@ A top-level object that encapsulates a Criteo API response for several entities | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**List<RmLegacyAudienceGetEntityV2Resource>**](RmLegacyAudienceGetEntityV2Resource.md) | | [optional] | +|**data** | [**List<ResourceOfCreativeV2>**](ResourceOfCreativeV2.md) | | [optional] | |**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | |**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV2Response.md b/sdks/retailmedia_2024-10/docs/CreativeV2Response.md similarity index 71% rename from sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV2Response.md rename to sdks/retailmedia_2024-10/docs/CreativeV2Response.md index 5661c532..d1a9e636 100644 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV2Response.md +++ b/sdks/retailmedia_2024-10/docs/CreativeV2Response.md @@ -1,6 +1,6 @@ -# RmLegacyAudienceCreateEntityV2Response +# CreativeV2Response A top-level object that encapsulates a Criteo API response for a single entity @@ -8,7 +8,7 @@ A top-level object that encapsulates a Criteo API response for a single entity | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**RmLegacyAudienceCreateEntityV2Resource**](RmLegacyAudienceCreateEntityV2Resource.md) | | [optional] | +|**data** | [**ResourceOfCreativeV2**](ResourceOfCreativeV2.md) | | [optional] | |**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | |**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | diff --git a/sdks/retailmedia_preview/docs/DailyLineItemBudgetOverride.md b/sdks/retailmedia_2024-10/docs/DailyLineItemBudgetOverride.md similarity index 100% rename from sdks/retailmedia_preview/docs/DailyLineItemBudgetOverride.md rename to sdks/retailmedia_2024-10/docs/DailyLineItemBudgetOverride.md diff --git a/sdks/retailmedia_2023-07/docs/EditableCampaignAttributesV202301.md b/sdks/retailmedia_2024-10/docs/EditableCampaignAttributesV202301.md similarity index 97% rename from sdks/retailmedia_2023-07/docs/EditableCampaignAttributesV202301.md rename to sdks/retailmedia_2024-10/docs/EditableCampaignAttributesV202301.md index 79597de5..7be2a3d8 100644 --- a/sdks/retailmedia_2023-07/docs/EditableCampaignAttributesV202301.md +++ b/sdks/retailmedia_2024-10/docs/EditableCampaignAttributesV202301.md @@ -20,6 +20,7 @@ An object that represents the available options to set when editing a Retail Med |**clickAttributionScope** | [**ClickAttributionScopeEnum**](#ClickAttributionScopeEnum) | | [optional] | |**viewAttributionScope** | [**ViewAttributionScopeEnum**](#ViewAttributionScopeEnum) | | [optional] | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/marketingsolutions_2023-07/docs/GetAudiencesResponse.md b/sdks/retailmedia_2024-10/docs/ErrorCodeResponse.md similarity index 66% rename from sdks/marketingsolutions_2023-07/docs/GetAudiencesResponse.md rename to sdks/retailmedia_2024-10/docs/ErrorCodeResponse.md index 1a01857d..d0826d12 100644 --- a/sdks/marketingsolutions_2023-07/docs/GetAudiencesResponse.md +++ b/sdks/retailmedia_2024-10/docs/ErrorCodeResponse.md @@ -1,16 +1,15 @@ -# GetAudiencesResponse +# ErrorCodeResponse -Body of the GET audience operation +Definition of the error code ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**List<Audience>**](Audience.md) | | | |**errors** | [**List<AudienceError>**](AudienceError.md) | | | -|**warnings** | [**List<AudienceWarning>**](AudienceWarning.md) | | | +|**warnings** | [**List<AudienceWarning>**](AudienceWarning.md) | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/ExternalAccount.md b/sdks/retailmedia_2024-10/docs/ExternalAccount.md similarity index 93% rename from sdks/retailmedia_2023-07/docs/ExternalAccount.md rename to sdks/retailmedia_2024-10/docs/ExternalAccount.md index 6f37640d..10ac5d36 100644 --- a/sdks/retailmedia_2023-07/docs/ExternalAccount.md +++ b/sdks/retailmedia_2024-10/docs/ExternalAccount.md @@ -16,6 +16,7 @@ A Retail Media Account used to launch campaigns and line items |**parentAccountLabel** | **String** | | | |**timeZone** | **String** | | | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/ExternalAddToBasketIdsUpdateModel202110.md b/sdks/retailmedia_2024-10/docs/ExternalAddToBasketIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalAddToBasketIdsUpdateModel202110.md rename to sdks/retailmedia_2024-10/docs/ExternalAddToBasketIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalAddToBasketTarget202110.md b/sdks/retailmedia_2024-10/docs/ExternalAddToBasketTarget202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalAddToBasketTarget202110.md rename to sdks/retailmedia_2024-10/docs/ExternalAddToBasketTarget202110.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItem.md b/sdks/retailmedia_2024-10/docs/ExternalAuctionLineItem.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalAuctionLineItem.md rename to sdks/retailmedia_2024-10/docs/ExternalAuctionLineItem.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemCreateModel.md b/sdks/retailmedia_2024-10/docs/ExternalAuctionLineItemCreateModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemCreateModel.md rename to sdks/retailmedia_2024-10/docs/ExternalAuctionLineItemCreateModel.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemUpdateModel.md b/sdks/retailmedia_2024-10/docs/ExternalAuctionLineItemUpdateModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemUpdateModel.md rename to sdks/retailmedia_2024-10/docs/ExternalAuctionLineItemUpdateModel.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalAudienceIdsUpdateModel202110.md b/sdks/retailmedia_2024-10/docs/ExternalAudienceIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalAudienceIdsUpdateModel202110.md rename to sdks/retailmedia_2024-10/docs/ExternalAudienceIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalAudienceTarget202110.md b/sdks/retailmedia_2024-10/docs/ExternalAudienceTarget202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalAudienceTarget202110.md rename to sdks/retailmedia_2024-10/docs/ExternalAudienceTarget202110.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalBrand.md b/sdks/retailmedia_2024-10/docs/ExternalBrand.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalBrand.md rename to sdks/retailmedia_2024-10/docs/ExternalBrand.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalCatalogRequest.md b/sdks/retailmedia_2024-10/docs/ExternalCatalogRequest.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalCatalogRequest.md rename to sdks/retailmedia_2024-10/docs/ExternalCatalogRequest.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalCatalogStatus.md b/sdks/retailmedia_2024-10/docs/ExternalCatalogStatus.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalCatalogStatus.md rename to sdks/retailmedia_2024-10/docs/ExternalCatalogStatus.md diff --git a/sdks/retailmedia_2024-10/docs/ExternalChoiceVariableValue.md b/sdks/retailmedia_2024-10/docs/ExternalChoiceVariableValue.md new file mode 100644 index 00000000..89d4ed0f --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ExternalChoiceVariableValue.md @@ -0,0 +1,14 @@ + + +# ExternalChoiceVariableValue + +A value of a template choice variable (among different accepted options) + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**chosenOptions** | **List<String>** | The chosen options | | + + + diff --git a/sdks/retailmedia_2024-10/docs/ExternalColorVariableValue.md b/sdks/retailmedia_2024-10/docs/ExternalColorVariableValue.md new file mode 100644 index 00000000..1621d5d6 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ExternalColorVariableValue.md @@ -0,0 +1,14 @@ + + +# ExternalColorVariableValue + +A value of a template color variable + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**color** | **String** | The displayed color (HEX format) | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ExternalCommonLineItem.md b/sdks/retailmedia_2024-10/docs/ExternalCommonLineItem.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalCommonLineItem.md rename to sdks/retailmedia_2024-10/docs/ExternalCommonLineItem.md diff --git a/sdks/retailmedia_2024-10/docs/ExternalCreativeV2.md b/sdks/retailmedia_2024-10/docs/ExternalCreativeV2.md new file mode 100644 index 00000000..ae6f690b --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ExternalCreativeV2.md @@ -0,0 +1,53 @@ + + +# ExternalCreativeV2 + +A creative entity + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name | | +|**status** | [**StatusEnum**](#StatusEnum) | Creative Status | | +|**brandId** | **Long** | Brand Id | | +|**retailerId** | **Integer** | Retailer Id | | +|**templateId** | **Integer** | Template Id | | +|**templateName** | **String** | Template Name | | +|**formatId** | **Integer** | Format Id | | +|**associatedLineItemIds** | **List<String>** | Associated Line Item Ids | | +|**updatedAt** | **OffsetDateTime** | Updated at time | | +|**creativeFormatType** | [**CreativeFormatTypeEnum**](#CreativeFormatTypeEnum) | Creative format type | | +|**environments** | [**List<ExternalPageTypeEnvironment>**](ExternalPageTypeEnvironment.md) | Environment type (e.g. mobile, web, app) | | +|**templateVariableValues** | [**List<ExternalTemplateVariableValue>**](ExternalTemplateVariableValue.md) | The template chosen values | | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| READY | "Ready" | +| INUSE | "InUse" | +| ARCHIVED | "Archived" | +| DELETED | "Deleted" | + + + +## Enum: CreativeFormatTypeEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| FLAGSHIP | "FlagShip" | +| SHOWCASE | "Showcase" | +| SPONSOREDPRODUCTS | "SponsoredProducts" | +| BUTTERFLY | "Butterfly" | +| BUNDLEBOOST | "BundleBoost" | +| IAB | "IAB" | +| CUSTOM | "Custom" | +| DISPLAYPANEL | "DisplayPanel" | +| DIGITALSHELFTALKER | "DigitalShelfTalker" | + + + diff --git a/sdks/retailmedia_2024-10/docs/ExternalFilesVariableValue.md b/sdks/retailmedia_2024-10/docs/ExternalFilesVariableValue.md new file mode 100644 index 00000000..df71d24b --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ExternalFilesVariableValue.md @@ -0,0 +1,14 @@ + + +# ExternalFilesVariableValue + +A value of a template file variable (one or several files), like images in a creative + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**assetIds** | **List<String>** | The assets representing the images to be displayed | | + + + diff --git a/sdks/retailmedia_2024-10/docs/ExternalHyperlinkVariableValue.md b/sdks/retailmedia_2024-10/docs/ExternalHyperlinkVariableValue.md new file mode 100644 index 00000000..5d0898b4 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ExternalHyperlinkVariableValue.md @@ -0,0 +1,14 @@ + + +# ExternalHyperlinkVariableValue + +A value of a template hyperlink variable + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | The url to redirect to | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ExternalKeywordTarget202110.md b/sdks/retailmedia_2024-10/docs/ExternalKeywordTarget202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalKeywordTarget202110.md rename to sdks/retailmedia_2024-10/docs/ExternalKeywordTarget202110.md diff --git a/sdks/retailmedia_2024-10/docs/ExternalLineItemBidMultipliersV2.md b/sdks/retailmedia_2024-10/docs/ExternalLineItemBidMultipliersV2.md new file mode 100644 index 00000000..9319f122 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ExternalLineItemBidMultipliersV2.md @@ -0,0 +1,24 @@ + + +# ExternalLineItemBidMultipliersV2 + +The Bid Multiplier Entity of a LineItem + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**search** | **BigDecimal** | Search Page Type Bid Multiplier | [optional] | +|**home** | **BigDecimal** | Home Page Type Bid Multiplier | [optional] | +|**category** | **BigDecimal** | Categories Page Type Bid Multiplier | [optional] | +|**productDetail** | **BigDecimal** | ProductDetail Page Type Bid Multiplier | [optional] | +|**confirmation** | **BigDecimal** | Confirmation Page Type Bid Multiplier | [optional] | +|**merchandising** | **BigDecimal** | Merchandising Page Type Bid Multiplier | [optional] | +|**deals** | **BigDecimal** | Deals Page Type Bid Multiplier | [optional] | +|**checkout** | **BigDecimal** | Checkout Page Type Bid Multiplier | [optional] | +|**favorites** | **BigDecimal** | Favorites Page Type Bid Multiplier | [optional] | +|**searchBar** | **BigDecimal** | SearchBar Page Type Bid Multiplier | [optional] | +|**categoryMenu** | **BigDecimal** | CategoryMenu Page Type Bid Multiplier | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ExternalLineItemCapping202110.md b/sdks/retailmedia_2024-10/docs/ExternalLineItemCappingV2.md similarity index 67% rename from sdks/retailmedia_2023-07/docs/ExternalLineItemCapping202110.md rename to sdks/retailmedia_2024-10/docs/ExternalLineItemCappingV2.md index 7c81c6ba..05028564 100644 --- a/sdks/retailmedia_2023-07/docs/ExternalLineItemCapping202110.md +++ b/sdks/retailmedia_2024-10/docs/ExternalLineItemCappingV2.md @@ -1,14 +1,14 @@ -# ExternalLineItemCapping202110 +# ExternalLineItemCappingV2 -Frequency capping for a preferred line item +Frequency Capping for a Preferred Line Item ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | | | +|**type** | [**TypeEnum**](#TypeEnum) | Line Item Capping Type Enum | | |**count** | **Integer** | | | diff --git a/sdks/retailmedia_2023-07/docs/ExternalLineItemPageCategory202110.md b/sdks/retailmedia_2024-10/docs/ExternalLineItemPageCategoryV2.md similarity index 87% rename from sdks/retailmedia_2023-07/docs/ExternalLineItemPageCategory202110.md rename to sdks/retailmedia_2024-10/docs/ExternalLineItemPageCategoryV2.md index 55a93ff1..414e5be9 100644 --- a/sdks/retailmedia_2023-07/docs/ExternalLineItemPageCategory202110.md +++ b/sdks/retailmedia_2024-10/docs/ExternalLineItemPageCategoryV2.md @@ -1,6 +1,6 @@ -# ExternalLineItemPageCategory202110 +# ExternalLineItemPageCategoryV2 Category information for a preferred line item page diff --git a/sdks/retailmedia_2023-07/docs/ExternalLineItemPage202110.md b/sdks/retailmedia_2024-10/docs/ExternalLineItemPageV2.md similarity index 59% rename from sdks/retailmedia_2023-07/docs/ExternalLineItemPage202110.md rename to sdks/retailmedia_2024-10/docs/ExternalLineItemPageV2.md index 71442ef3..72228ca2 100644 --- a/sdks/retailmedia_2023-07/docs/ExternalLineItemPage202110.md +++ b/sdks/retailmedia_2024-10/docs/ExternalLineItemPageV2.md @@ -1,6 +1,6 @@ -# ExternalLineItemPage202110 +# ExternalLineItemPageV2 Page information for a preferred line item @@ -8,8 +8,8 @@ Page information for a preferred line item | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**pageType** | [**PageTypeEnum**](#PageTypeEnum) | | | -|**categories** | [**List<ExternalLineItemPageCategory202110>**](ExternalLineItemPageCategory202110.md) | | [optional] | +|**pageType** | [**PageTypeEnum**](#PageTypeEnum) | Page Type Enum | | +|**categories** | [**List<ExternalLineItemPageCategoryV2>**](ExternalLineItemPageCategoryV2.md) | | [optional] | |**searchKeywords** | **List<String>** | | [optional] | @@ -18,14 +18,19 @@ Page information for a preferred line item | Name | Value | |---- | -----| +| UNKNOWN | "unknown" | | SEARCH | "search" | | HOME | "home" | +| BROWSE | "browse" | | CHECKOUT | "checkout" | | CATEGORY | "category" | | PRODUCTDETAIL | "productDetail" | | CONFIRMATION | "confirmation" | | MERCHANDISING | "merchandising" | | DEALS | "deals" | +| FAVORITES | "favorites" | +| SEARCHBAR | "searchBar" | +| CATEGORYMENU | "categoryMenu" | diff --git a/sdks/retailmedia_2024-10/docs/ExternalPageTypeEnvironment.md b/sdks/retailmedia_2024-10/docs/ExternalPageTypeEnvironment.md new file mode 100644 index 00000000..37b1557d --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ExternalPageTypeEnvironment.md @@ -0,0 +1,49 @@ + + +# ExternalPageTypeEnvironment + +The PageType-Environment Tuples for creatives + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pageType** | [**PageTypeEnum**](#PageTypeEnum) | Creative PageType | [optional] | +|**environments** | [**List<EnvironmentsEnum>**](#List<EnvironmentsEnum>) | List of environments per PageType | [optional] | + + + +## Enum: PageTypeEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| SEARCH | "Search" | +| HOME | "Home" | +| BROWSE | "Browse" | +| CHECKOUT | "Checkout" | +| CATEGORY | "Category" | +| PRODUCTDETAIL | "ProductDetail" | +| CONFIRMATION | "Confirmation" | +| MERCHANDISING | "Merchandising" | +| DEALS | "Deals" | +| FAVORITES | "Favorites" | +| SEARCHBAR | "SearchBar" | +| CATEGORYMENU | "CategoryMenu" | + + + +## Enum: List<EnvironmentsEnum> + +| Name | Value | +|---- | -----| +| WEB | "Web" | +| MOBILE | "Mobile" | +| APP | "App" | +| LOCKOUT | "Lockout" | +| MIXED | "Mixed" | +| IOS | "iOS" | +| ANDROID | "Android" | + + + diff --git a/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemCreateModel202110.md b/sdks/retailmedia_2024-10/docs/ExternalPreferredLineItemCreateModelV2.md similarity index 74% rename from sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemCreateModel202110.md rename to sdks/retailmedia_2024-10/docs/ExternalPreferredLineItemCreateModelV2.md index ecb506ba..384d0515 100644 --- a/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemCreateModel202110.md +++ b/sdks/retailmedia_2024-10/docs/ExternalPreferredLineItemCreateModelV2.md @@ -1,6 +1,6 @@ -# ExternalPreferredLineItemCreateModel202110 +# ExternalPreferredLineItemCreateModelV2 Model used to create a preferred line item @@ -11,10 +11,10 @@ Model used to create a preferred line item |**name** | **String** | | | |**startDate** | **LocalDate** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | | |**endDate** | **LocalDate** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | | -|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | -|**pacing** | [**PacingEnum**](#PacingEnum) | | | -|**capping** | [**ExternalLineItemCapping202110**](ExternalLineItemCapping202110.md) | | [optional] | -|**page** | [**ExternalLineItemPage202110**](ExternalLineItemPage202110.md) | | | +|**status** | [**StatusEnum**](#StatusEnum) | Line Item Status Enum | [optional] | +|**pacing** | [**PacingEnum**](#PacingEnum) | Line Item Pacing Enum | | +|**capping** | [**ExternalLineItemCappingV2**](ExternalLineItemCappingV2.md) | | [optional] | +|**page** | [**ExternalLineItemPageV2**](ExternalLineItemPageV2.md) | | | |**targetRetailerId** | **String** | | | |**budget** | **Double** | | | |**creativeId** | **String** | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemUpdateModel202110.md b/sdks/retailmedia_2024-10/docs/ExternalPreferredLineItemUpdateModelV2.md similarity index 78% rename from sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemUpdateModel202110.md rename to sdks/retailmedia_2024-10/docs/ExternalPreferredLineItemUpdateModelV2.md index 56df8a73..ed05fb71 100644 --- a/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemUpdateModel202110.md +++ b/sdks/retailmedia_2024-10/docs/ExternalPreferredLineItemUpdateModelV2.md @@ -1,6 +1,6 @@ -# ExternalPreferredLineItemUpdateModel202110 +# ExternalPreferredLineItemUpdateModelV2 Model used to update a preferred line item @@ -11,10 +11,10 @@ Model used to update a preferred line item |**name** | **String** | | | |**startDate** | **LocalDate** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | | |**endDate** | **LocalDate** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | | -|**status** | [**StatusEnum**](#StatusEnum) | | | +|**status** | [**StatusEnum**](#StatusEnum) | Line Item Status Enum | | |**pacing** | [**PacingEnum**](#PacingEnum) | | [optional] | -|**capping** | [**ExternalLineItemCapping202110**](ExternalLineItemCapping202110.md) | | [optional] | -|**page** | [**ExternalLineItemPage202110**](ExternalLineItemPage202110.md) | | [optional] | +|**capping** | [**ExternalLineItemCappingV2**](ExternalLineItemCappingV2.md) | | [optional] | +|**page** | [**ExternalLineItemPageV2**](ExternalLineItemPageV2.md) | | [optional] | |**budget** | **Double** | | [optional] | |**creativeId** | **String** | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItem202110.md b/sdks/retailmedia_2024-10/docs/ExternalPreferredLineItemV2.md similarity index 67% rename from sdks/retailmedia_2023-07/docs/ExternalPreferredLineItem202110.md rename to sdks/retailmedia_2024-10/docs/ExternalPreferredLineItemV2.md index 570f4167..ec2edbb0 100644 --- a/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItem202110.md +++ b/sdks/retailmedia_2024-10/docs/ExternalPreferredLineItemV2.md @@ -1,6 +1,6 @@ -# ExternalPreferredLineItem202110 +# ExternalPreferredLineItemV2 A Retail Media Preferred Line Item used to hold bid settings for one or many promoted products on a single retailer @@ -11,18 +11,18 @@ A Retail Media Preferred Line Item used to hold bid settings for one or many pro |**name** | **String** | | | |**startDate** | **LocalDate** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | | |**endDate** | **LocalDate** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | | -|**status** | [**StatusEnum**](#StatusEnum) | | | -|**pacing** | [**PacingEnum**](#PacingEnum) | | | -|**capping** | [**ExternalLineItemCapping202110**](ExternalLineItemCapping202110.md) | | [optional] | -|**page** | [**ExternalLineItemPage202110**](ExternalLineItemPage202110.md) | | | +|**status** | [**StatusEnum**](#StatusEnum) | Line Item Status Enum | | +|**pacing** | [**PacingEnum**](#PacingEnum) | | [optional] | +|**capping** | [**ExternalLineItemCappingV2**](ExternalLineItemCappingV2.md) | | [optional] | +|**page** | [**ExternalLineItemPageV2**](ExternalLineItemPageV2.md) | | [optional] | |**targetRetailerId** | **String** | | | -|**budget** | **Double** | | | +|**budget** | **BigDecimal** | | [optional] | |**campaignId** | **String** | | | -|**budgetSpent** | **Double** | | [optional] | -|**budgetRemaining** | **Double** | | [optional] | +|**budgetSpent** | **BigDecimal** | | [optional] | +|**budgetRemaining** | **BigDecimal** | | [optional] | |**createdAt** | **OffsetDateTime** | | | |**updatedAt** | **OffsetDateTime** | | | -|**creativeId** | **String** | | [optional] | +|**creativeId** | **String** | External creative Id | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/ExternalRetailer.md b/sdks/retailmedia_2024-10/docs/ExternalRetailer.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalRetailer.md rename to sdks/retailmedia_2024-10/docs/ExternalRetailer.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalRetailerPages202110.md b/sdks/retailmedia_2024-10/docs/ExternalRetailerPages202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalRetailerPages202110.md rename to sdks/retailmedia_2024-10/docs/ExternalRetailerPages202110.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalStoreIdsUpdateModel202110.md b/sdks/retailmedia_2024-10/docs/ExternalStoreIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalStoreIdsUpdateModel202110.md rename to sdks/retailmedia_2024-10/docs/ExternalStoreIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2023-07/docs/ExternalStoreTarget202110.md b/sdks/retailmedia_2024-10/docs/ExternalStoreTarget202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ExternalStoreTarget202110.md rename to sdks/retailmedia_2024-10/docs/ExternalStoreTarget202110.md diff --git a/sdks/retailmedia_2024-10/docs/ExternalTemplateVariableValue.md b/sdks/retailmedia_2024-10/docs/ExternalTemplateVariableValue.md new file mode 100644 index 00000000..734c36d3 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ExternalTemplateVariableValue.md @@ -0,0 +1,20 @@ + + +# ExternalTemplateVariableValue + +A value for a variable in a creative template. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The id of the template variable the value is applied to | | +|**textVariableValue** | [**ExternalTextVariableValue**](ExternalTextVariableValue.md) | | [optional] | +|**choiceVariableValue** | [**ExternalChoiceVariableValue**](ExternalChoiceVariableValue.md) | | [optional] | +|**colorVariableValue** | [**ExternalColorVariableValue**](ExternalColorVariableValue.md) | | [optional] | +|**filesVariableValue** | [**ExternalFilesVariableValue**](ExternalFilesVariableValue.md) | | [optional] | +|**hyperlinkVariableValue** | [**ExternalHyperlinkVariableValue**](ExternalHyperlinkVariableValue.md) | | [optional] | +|**videoVariableValue** | [**ExternalVideoVariableValue**](ExternalVideoVariableValue.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/ExternalTextVariableValue.md b/sdks/retailmedia_2024-10/docs/ExternalTextVariableValue.md new file mode 100644 index 00000000..1d3b933c --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ExternalTextVariableValue.md @@ -0,0 +1,14 @@ + + +# ExternalTextVariableValue + +A value of a template text variable + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**text** | **String** | The displayed text | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/ExternalVideoVariableValue.md b/sdks/retailmedia_2024-10/docs/ExternalVideoVariableValue.md new file mode 100644 index 00000000..a3223f74 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ExternalVideoVariableValue.md @@ -0,0 +1,17 @@ + + +# ExternalVideoVariableValue + +A value of a template video variable + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | The vast video url | | +|**width** | **Integer** | The video's width | | +|**height** | **Integer** | The video's height | | +|**duration** | **String** | The video's duration | | + + + diff --git a/sdks/retailmedia_2023-07/docs/FilesVariableValue.md b/sdks/retailmedia_2024-10/docs/FilesVariableValue.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/FilesVariableValue.md rename to sdks/retailmedia_2024-10/docs/FilesVariableValue.md diff --git a/sdks/retailmedia_2023-07/docs/FilesVariablesSpecification.md b/sdks/retailmedia_2024-10/docs/FilesVariablesSpecification.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/FilesVariablesSpecification.md rename to sdks/retailmedia_2024-10/docs/FilesVariablesSpecification.md diff --git a/sdks/marketingsolutions_2023-07/docs/GatewayApi.md b/sdks/retailmedia_2024-10/docs/GatewayApi.md similarity index 81% rename from sdks/marketingsolutions_2023-07/docs/GatewayApi.md rename to sdks/retailmedia_2024-10/docs/GatewayApi.md index e44e918c..2f6e7d13 100644 --- a/sdks/marketingsolutions_2023-07/docs/GatewayApi.md +++ b/sdks/retailmedia_2024-10/docs/GatewayApi.md @@ -1,10 +1,10 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getCurrentApplication**](GatewayApi.md#getCurrentApplication) | **GET** /2023-07/marketing-solutions/me | | +| [**getCurrentApplication**](GatewayApi.md#getCurrentApplication) | **GET** /2024-10/retail-media/me | | @@ -19,15 +19,15 @@ Get information about the currently logged application ### Example ```java -package com.criteo.api.marketingsolutions.v2023_07; - -import com.criteo.api.marketingsolutions.v2023_07.ApiClient; -import com.criteo.api.marketingsolutions.v2023_07.ApiClientBuilder; -import com.criteo.api.marketingsolutions.v2023_07.ApiException; -import com.criteo.api.marketingsolutions.v2023_07.Configuration; -import com.criteo.api.marketingsolutions.v2023_07.auth.*; -import com.criteo.api.marketingsolutions.v2023_07.model.*; -import com.criteo.api.marketingsolutions.v2023_07.api.GatewayApi; +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.auth.*; +import com.criteo.api.retailmedia.v2024_10.model.*; +import com.criteo.api.retailmedia.v2024_10.api.GatewayApi; public class Example { public static void main(String[] args) { diff --git a/sdks/retailmedia_2023-07/docs/HyperlinkVariableValue.md b/sdks/retailmedia_2024-10/docs/HyperlinkVariableValue.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/HyperlinkVariableValue.md rename to sdks/retailmedia_2024-10/docs/HyperlinkVariableValue.md diff --git a/sdks/retailmedia_2023-07/docs/InputKeywordsModel.md b/sdks/retailmedia_2024-10/docs/InputKeywordsModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/InputKeywordsModel.md rename to sdks/retailmedia_2024-10/docs/InputKeywordsModel.md diff --git a/sdks/retailmedia_2023-07/docs/InputResourceOfAuctionLineItemCreateModel.md b/sdks/retailmedia_2024-10/docs/InputResourceOfAuctionLineItemCreateModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/InputResourceOfAuctionLineItemCreateModel.md rename to sdks/retailmedia_2024-10/docs/InputResourceOfAuctionLineItemCreateModel.md diff --git a/sdks/retailmedia_2023-07/docs/InputResourceOfPreferredLineItemCreateModel202110.md b/sdks/retailmedia_2024-10/docs/InputResourceOfPreferredLineItemCreateModelV2.md similarity index 50% rename from sdks/retailmedia_2023-07/docs/InputResourceOfPreferredLineItemCreateModel202110.md rename to sdks/retailmedia_2024-10/docs/InputResourceOfPreferredLineItemCreateModelV2.md index 4c6dda9b..f1c8cc9c 100644 --- a/sdks/retailmedia_2023-07/docs/InputResourceOfPreferredLineItemCreateModel202110.md +++ b/sdks/retailmedia_2024-10/docs/InputResourceOfPreferredLineItemCreateModelV2.md @@ -1,6 +1,6 @@ -# InputResourceOfPreferredLineItemCreateModel202110 +# InputResourceOfPreferredLineItemCreateModelV2 Data model for a Resource @@ -9,7 +9,7 @@ Data model for a Resource | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**type** | **String** | | [optional] | -|**attributes** | [**ExternalPreferredLineItemCreateModel202110**](ExternalPreferredLineItemCreateModel202110.md) | | [optional] | +|**attributes** | [**ExternalPreferredLineItemCreateModelV2**](ExternalPreferredLineItemCreateModelV2.md) | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md b/sdks/retailmedia_2024-10/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md rename to sdks/retailmedia_2024-10/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md b/sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md rename to sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md b/sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md rename to sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md b/sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md rename to sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md b/sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md rename to sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md diff --git a/sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.md b/sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.md new file mode 100644 index 00000000..4b7ed527 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.md @@ -0,0 +1,16 @@ + + +# JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 + +A JSON:API wrapper class to format a with external Id, Type, and Attributes properties + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | | +|**type** | **String** | | | +|**attributes** | [**ExternalLineItemBidMultipliersV2**](ExternalLineItemBidMultipliersV2.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md b/sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md rename to sdks/retailmedia_2024-10/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md b/sdks/retailmedia_2024-10/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md rename to sdks/retailmedia_2024-10/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md b/sdks/retailmedia_2024-10/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md rename to sdks/retailmedia_2024-10/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfAccount.md b/sdks/retailmedia_2024-10/docs/JsonApiPageResponseOfAccount.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfAccount.md rename to sdks/retailmedia_2024-10/docs/JsonApiPageResponseOfAccount.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfBrand.md b/sdks/retailmedia_2024-10/docs/JsonApiPageResponseOfBrand.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfBrand.md rename to sdks/retailmedia_2024-10/docs/JsonApiPageResponseOfBrand.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfCampaignV202301.md b/sdks/retailmedia_2024-10/docs/JsonApiPageResponseOfCampaignV202301.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfCampaignV202301.md rename to sdks/retailmedia_2024-10/docs/JsonApiPageResponseOfCampaignV202301.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfRetailer.md b/sdks/retailmedia_2024-10/docs/JsonApiPageResponseOfRetailer.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfRetailer.md rename to sdks/retailmedia_2024-10/docs/JsonApiPageResponseOfRetailer.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiRequestOfCatalogRequest.md b/sdks/retailmedia_2024-10/docs/JsonApiRequestOfCatalogRequest.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiRequestOfCatalogRequest.md rename to sdks/retailmedia_2024-10/docs/JsonApiRequestOfCatalogRequest.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCampaignV202301.md b/sdks/retailmedia_2024-10/docs/JsonApiSingleResponseOfCampaignV202301.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCampaignV202301.md rename to sdks/retailmedia_2024-10/docs/JsonApiSingleResponseOfCampaignV202301.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCatalogStatus.md b/sdks/retailmedia_2024-10/docs/JsonApiSingleResponseOfCatalogStatus.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCatalogStatus.md rename to sdks/retailmedia_2024-10/docs/JsonApiSingleResponseOfCatalogStatus.md diff --git a/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfLineItemBidMultipliers.md b/sdks/retailmedia_2024-10/docs/JsonApiSingleResponseOfLineItemBidMultipliersV2.md similarity index 56% rename from sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfLineItemBidMultipliers.md rename to sdks/retailmedia_2024-10/docs/JsonApiSingleResponseOfLineItemBidMultipliersV2.md index 433038e2..d3e32c73 100644 --- a/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfLineItemBidMultipliers.md +++ b/sdks/retailmedia_2024-10/docs/JsonApiSingleResponseOfLineItemBidMultipliersV2.md @@ -1,14 +1,14 @@ -# JsonApiSingleResponseOfLineItemBidMultipliers +# JsonApiSingleResponseOfLineItemBidMultipliersV2 -Data model for the response of a line item bid multiplier +A JSON:API wrapper class to add one JSON:API within a data property ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers**](JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md) | | | +|**data** | [**JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2**](JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.md) | | | |**errors** | [**List<CommonError>**](CommonError.md) | | [optional] | |**warnings** | [**List<CommonWarning>**](CommonWarning.md) | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/KeywordDataModel.md b/sdks/retailmedia_2024-10/docs/KeywordDataModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/KeywordDataModel.md rename to sdks/retailmedia_2024-10/docs/KeywordDataModel.md diff --git a/sdks/retailmedia_2023-07/docs/KeywordTarget202110Request.md b/sdks/retailmedia_2024-10/docs/KeywordTarget202110Request.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/KeywordTarget202110Request.md rename to sdks/retailmedia_2024-10/docs/KeywordTarget202110Request.md diff --git a/sdks/retailmedia_2023-07/docs/KeywordTarget202110Response.md b/sdks/retailmedia_2024-10/docs/KeywordTarget202110Response.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/KeywordTarget202110Response.md rename to sdks/retailmedia_2024-10/docs/KeywordTarget202110Response.md diff --git a/sdks/retailmedia_2023-07/docs/KeywordsModel.md b/sdks/retailmedia_2024-10/docs/KeywordsModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/KeywordsModel.md rename to sdks/retailmedia_2024-10/docs/KeywordsModel.md diff --git a/sdks/retailmedia_2023-07/docs/KeywordsModelResource.md b/sdks/retailmedia_2024-10/docs/KeywordsModelResource.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/KeywordsModelResource.md rename to sdks/retailmedia_2024-10/docs/KeywordsModelResource.md diff --git a/sdks/retailmedia_2023-07/docs/KeywordsModelResponse.md b/sdks/retailmedia_2024-10/docs/KeywordsModelResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/KeywordsModelResponse.md rename to sdks/retailmedia_2024-10/docs/KeywordsModelResponse.md diff --git a/sdks/retailmedia_2024-10/docs/LineItemBidMultipliersV2Request.md b/sdks/retailmedia_2024-10/docs/LineItemBidMultipliersV2Request.md new file mode 100644 index 00000000..bce507a9 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/LineItemBidMultipliersV2Request.md @@ -0,0 +1,14 @@ + + +# LineItemBidMultipliersV2Request + +A top-level object that encapsulates a Criteo API request for a single entity + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ResourceOfLineItemBidMultipliersV2**](ResourceOfLineItemBidMultipliersV2.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/LineItemBidMultipliersV2Response.md b/sdks/retailmedia_2024-10/docs/LineItemBidMultipliersV2Response.md new file mode 100644 index 00000000..75e20eaf --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/LineItemBidMultipliersV2Response.md @@ -0,0 +1,16 @@ + + +# LineItemBidMultipliersV2Response + +A top-level object that encapsulates a Criteo API response for a single entity + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ResourceOfLineItemBidMultipliersV2**](ResourceOfLineItemBidMultipliersV2.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_preview/docs/LineItemBudgetOverrides.md b/sdks/retailmedia_2024-10/docs/LineItemBudgetOverrides.md similarity index 100% rename from sdks/retailmedia_preview/docs/LineItemBudgetOverrides.md rename to sdks/retailmedia_2024-10/docs/LineItemBudgetOverrides.md diff --git a/sdks/retailmedia_2024-10/docs/LineItemProductStatus.md b/sdks/retailmedia_2024-10/docs/LineItemProductStatus.md new file mode 100644 index 00000000..fcfe44b2 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/LineItemProductStatus.md @@ -0,0 +1,15 @@ + + +# LineItemProductStatus + +## Enum + + +* `UNKNOWN` (value: `"Unknown"`) + +* `ACTIVE` (value: `"Active"`) + +* `PAUSED` (value: `"Paused"`) + + + diff --git a/sdks/retailmedia_2023-07/docs/MatchTypeModel.md b/sdks/retailmedia_2024-10/docs/MatchTypeModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/MatchTypeModel.md rename to sdks/retailmedia_2024-10/docs/MatchTypeModel.md diff --git a/sdks/retailmedia_2024-10/docs/Metadata.md b/sdks/retailmedia_2024-10/docs/Metadata.md new file mode 100644 index 00000000..9ba9b303 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/Metadata.md @@ -0,0 +1,16 @@ + + +# Metadata + +Metadata related to the current request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**count** | **Long** | | [optional] | +|**offset** | **Integer** | The (zero-based) starting offset in the collection. | | +|**limit** | **Integer** | The number of elements to be returned. | | + + + diff --git a/sdks/retailmedia_preview/docs/MonthlyLineItemBudegetOverride.md b/sdks/retailmedia_2024-10/docs/MonthlyLineItemBudegetOverride.md similarity index 100% rename from sdks/retailmedia_preview/docs/MonthlyLineItemBudegetOverride.md rename to sdks/retailmedia_2024-10/docs/MonthlyLineItemBudegetOverride.md diff --git a/sdks/retailmedia_2023-07/docs/NegotiationStateModel.md b/sdks/retailmedia_2024-10/docs/NegotiationStateModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/NegotiationStateModel.md rename to sdks/retailmedia_2024-10/docs/NegotiationStateModel.md diff --git a/sdks/retailmedia_2024-10/docs/NillableString.md b/sdks/retailmedia_2024-10/docs/NillableString.md new file mode 100644 index 00000000..3bff8f58 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/NillableString.md @@ -0,0 +1,14 @@ + + +# NillableString + +Placeholder object for string value for which \"null\" is a valid business value + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | **String** | The string's value. If missing or null the string's value is set to \"null\" | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/PageMetadata.md b/sdks/retailmedia_2024-10/docs/PageMetadata.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/PageMetadata.md rename to sdks/retailmedia_2024-10/docs/PageMetadata.md diff --git a/sdks/retailmedia_2024-10/docs/PageOfBalanceHistoryChangeDataCaptureV1.md b/sdks/retailmedia_2024-10/docs/PageOfBalanceHistoryChangeDataCaptureV1.md new file mode 100644 index 00000000..7cae5bde --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/PageOfBalanceHistoryChangeDataCaptureV1.md @@ -0,0 +1,15 @@ + + +# PageOfBalanceHistoryChangeDataCaptureV1 + +A wrapper class to return a single page of items with metadata. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**meta** | [**Metadata**](Metadata.md) | | | +|**data** | [**List<BalanceHistoryChangeDataCaptureV1>**](BalanceHistoryChangeDataCaptureV1.md) | | | + + + diff --git a/sdks/retailmedia_2023-07/docs/PageTypeEnvironment.md b/sdks/retailmedia_2024-10/docs/PageTypeEnvironment.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/PageTypeEnvironment.md rename to sdks/retailmedia_2024-10/docs/PageTypeEnvironment.md diff --git a/sdks/retailmedia_2024-10/docs/PagedResourceCollectionOutcomeOfBalanceResponseV2.md b/sdks/retailmedia_2024-10/docs/PagedResourceCollectionOutcomeOfBalanceResponseV2.md new file mode 100644 index 00000000..9b8afbd3 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/PagedResourceCollectionOutcomeOfBalanceResponseV2.md @@ -0,0 +1,17 @@ + + +# PagedResourceCollectionOutcomeOfBalanceResponseV2 + +Data model for a paged list of response resources + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] | +|**data** | [**List<ResourceOfBalanceResponseV2>**](ResourceOfBalanceResponseV2.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_2023-07/docs/PostCampaignV202301.md b/sdks/retailmedia_2024-10/docs/PostCampaignV202301.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/PostCampaignV202301.md rename to sdks/retailmedia_2024-10/docs/PostCampaignV202301.md diff --git a/sdks/retailmedia_2024-10/docs/PreferredLineItemCreateModelV2Request.md b/sdks/retailmedia_2024-10/docs/PreferredLineItemCreateModelV2Request.md new file mode 100644 index 00000000..d57afd07 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/PreferredLineItemCreateModelV2Request.md @@ -0,0 +1,14 @@ + + +# PreferredLineItemCreateModelV2Request + +Data model for a create input resource + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**InputResourceOfPreferredLineItemCreateModelV2**](InputResourceOfPreferredLineItemCreateModelV2.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/PreferredLineItemUpdateModelV2Request.md b/sdks/retailmedia_2024-10/docs/PreferredLineItemUpdateModelV2Request.md new file mode 100644 index 00000000..ecff5a08 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/PreferredLineItemUpdateModelV2Request.md @@ -0,0 +1,14 @@ + + +# PreferredLineItemUpdateModelV2Request + +Data model for an input resource + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ResourceOfPreferredLineItemUpdateModelV2**](ResourceOfPreferredLineItemUpdateModelV2.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/PreferredLineItemV2PagedListResponse.md b/sdks/retailmedia_2024-10/docs/PreferredLineItemV2PagedListResponse.md new file mode 100644 index 00000000..46749f98 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/PreferredLineItemV2PagedListResponse.md @@ -0,0 +1,17 @@ + + +# PreferredLineItemV2PagedListResponse + +Data model for a paged list of response resources + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] | +|**data** | [**List<ResourceOfPreferredLineItemV2>**](ResourceOfPreferredLineItemV2.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_2024-10/docs/PreferredLineItemV2Response.md b/sdks/retailmedia_2024-10/docs/PreferredLineItemV2Response.md new file mode 100644 index 00000000..e779f141 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/PreferredLineItemV2Response.md @@ -0,0 +1,16 @@ + + +# PreferredLineItemV2Response + +A top-level object that encapsulates a Criteo API response for a single entity + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ResourceOfPreferredLineItemV2**](ResourceOfPreferredLineItemV2.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ProblemDetails.md b/sdks/retailmedia_2024-10/docs/ProblemDetails.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ProblemDetails.md rename to sdks/retailmedia_2024-10/docs/ProblemDetails.md diff --git a/sdks/retailmedia_2024-10/docs/ProductMetadata.md b/sdks/retailmedia_2024-10/docs/ProductMetadata.md new file mode 100644 index 00000000..fe7a1406 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ProductMetadata.md @@ -0,0 +1,17 @@ + + +# ProductMetadata + +Metadata about the response. Used for pagination. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**offset** | **Integer** | Zero based offset of the first item in the response. | [optional] | +|**limit** | **Integer** | Maximum number of items in the response. | [optional] | +|**count** | **Integer** | Total number of items available. | [optional] | +|**responseCount** | **Integer** | Number of items in the response. | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/ProductResourceOutcome.md b/sdks/retailmedia_2024-10/docs/ProductResourceOutcome.md new file mode 100644 index 00000000..3ec92f12 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ProductResourceOutcome.md @@ -0,0 +1,15 @@ + + +# ProductResourceOutcome + +Outcome object containing errors and warnings. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**errors** | **List<RmcaCommonProblem>** | | [optional] | +|**warnings** | **List<RmcaCommonProblem>** | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/PromotedProduct.md b/sdks/retailmedia_2024-10/docs/PromotedProduct.md new file mode 100644 index 00000000..bab7a3e9 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/PromotedProduct.md @@ -0,0 +1,16 @@ + + +# PromotedProduct + +A promoted product. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | A retailer defined SKU ID for the promoted product. | [optional] | +|**bidOverride** | **BigDecimal** | The bid override for the promoted product for this line item. Ignored unless adding a product. | [optional] | +|**status** | **LineItemProductStatus** | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/PromotedProductResource.md b/sdks/retailmedia_2024-10/docs/PromotedProductResource.md new file mode 100644 index 00000000..aa9e24f3 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/PromotedProductResource.md @@ -0,0 +1,16 @@ + + +# PromotedProductResource + +Resource object containing a promoted product. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | [optional] | +|**type** | **String** | | [optional] | +|**attributes** | [**PromotedProduct**](PromotedProduct.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/PromotedProductResourceCollectionInput.md b/sdks/retailmedia_2024-10/docs/PromotedProductResourceCollectionInput.md new file mode 100644 index 00000000..7f76099b --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/PromotedProductResourceCollectionInput.md @@ -0,0 +1,14 @@ + + +# PromotedProductResourceCollectionInput + +Request object containing promoted products to be appended, deleted, paused or unpaused. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PromotedProductResource>**](PromotedProductResource.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/PromotedProductResourceCollectionOutcome.md b/sdks/retailmedia_2024-10/docs/PromotedProductResourceCollectionOutcome.md new file mode 100644 index 00000000..79a704e9 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/PromotedProductResourceCollectionOutcome.md @@ -0,0 +1,17 @@ + + +# PromotedProductResourceCollectionOutcome + +Outcome object containing promoted products. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**errors** | **List<RmcaCommonProblem>** | | [optional] [readonly] | +|**warnings** | **List<RmcaCommonProblem>** | | [optional] [readonly] | +|**metadata** | [**ProductMetadata**](ProductMetadata.md) | | [optional] | +|**data** | [**List<PromotedProductResource>**](PromotedProductResource.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ProposalStatusModel.md b/sdks/retailmedia_2024-10/docs/ProposalStatusModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ProposalStatusModel.md rename to sdks/retailmedia_2024-10/docs/ProposalStatusModel.md diff --git a/sdks/retailmedia_2023-07/docs/ProposalStatusModelResource.md b/sdks/retailmedia_2024-10/docs/ProposalStatusModelResource.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ProposalStatusModelResource.md rename to sdks/retailmedia_2024-10/docs/ProposalStatusModelResource.md diff --git a/sdks/retailmedia_2023-07/docs/ProposalStatusModelResponse.md b/sdks/retailmedia_2024-10/docs/ProposalStatusModelResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ProposalStatusModelResponse.md rename to sdks/retailmedia_2024-10/docs/ProposalStatusModelResponse.md diff --git a/sdks/retailmedia_2023-07/docs/PutCampaignV202301.md b/sdks/retailmedia_2024-10/docs/PutCampaignV202301.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/PutCampaignV202301.md rename to sdks/retailmedia_2024-10/docs/PutCampaignV202301.md diff --git a/sdks/retailmedia_2023-07/docs/ReportOutcome.md b/sdks/retailmedia_2024-10/docs/ReportOutcome.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ReportOutcome.md rename to sdks/retailmedia_2024-10/docs/ReportOutcome.md diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfBalance202110.md b/sdks/retailmedia_2024-10/docs/ResourceOfAddFundsToBalanceV2.md similarity index 58% rename from sdks/retailmedia_2023-07/docs/ResourceOfBalance202110.md rename to sdks/retailmedia_2024-10/docs/ResourceOfAddFundsToBalanceV2.md index 40dd7cd6..cc3f729c 100644 --- a/sdks/retailmedia_2023-07/docs/ResourceOfBalance202110.md +++ b/sdks/retailmedia_2024-10/docs/ResourceOfAddFundsToBalanceV2.md @@ -1,16 +1,16 @@ -# ResourceOfBalance202110 +# ResourceOfAddFundsToBalanceV2 -A class that represents an entity in a guild compliant way +A class that represents a domain entity exposed by an API ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**attributes** | [**AddFundsToBalanceV2**](AddFundsToBalanceV2.md) | | [optional] | |**id** | **String** | Id of the entity | [optional] | |**type** | **String** | Canonical type name of the entity | [optional] | -|**attributes** | [**ExternalBalance202110**](ExternalBalance202110.md) | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItem.md b/sdks/retailmedia_2024-10/docs/ResourceOfAuctionLineItem.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItem.md rename to sdks/retailmedia_2024-10/docs/ResourceOfAuctionLineItem.md diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItemUpdateModel.md b/sdks/retailmedia_2024-10/docs/ResourceOfAuctionLineItemUpdateModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItemUpdateModel.md rename to sdks/retailmedia_2024-10/docs/ResourceOfAuctionLineItemUpdateModel.md diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfBalanceCampaign202110.md b/sdks/retailmedia_2024-10/docs/ResourceOfBalanceCampaign202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ResourceOfBalanceCampaign202110.md rename to sdks/retailmedia_2024-10/docs/ResourceOfBalanceCampaign202110.md diff --git a/sdks/retailmedia_2024-10/docs/ResourceOfBalanceResponseV2.md b/sdks/retailmedia_2024-10/docs/ResourceOfBalanceResponseV2.md new file mode 100644 index 00000000..d9269c5b --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ResourceOfBalanceResponseV2.md @@ -0,0 +1,16 @@ + + +# ResourceOfBalanceResponseV2 + +A class that represents a domain entity exposed by an API + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attributes** | [**BalanceResponseV2**](BalanceResponseV2.md) | | [optional] | +|**id** | **String** | Id of the entity | [optional] | +|**type** | **String** | Canonical type name of the entity | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfCategory202204.md b/sdks/retailmedia_2024-10/docs/ResourceOfCategory202204.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ResourceOfCategory202204.md rename to sdks/retailmedia_2024-10/docs/ResourceOfCategory202204.md diff --git a/sdks/retailmedia_2024-10/docs/ResourceOfChangeDatesOfBalanceV2.md b/sdks/retailmedia_2024-10/docs/ResourceOfChangeDatesOfBalanceV2.md new file mode 100644 index 00000000..aace899c --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ResourceOfChangeDatesOfBalanceV2.md @@ -0,0 +1,16 @@ + + +# ResourceOfChangeDatesOfBalanceV2 + +A class that represents a domain entity exposed by an API + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attributes** | [**ChangeDatesOfBalanceV2**](ChangeDatesOfBalanceV2.md) | | [optional] | +|**id** | **String** | Id of the entity | [optional] | +|**type** | **String** | Canonical type name of the entity | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfCommonLineItem.md b/sdks/retailmedia_2024-10/docs/ResourceOfCommonLineItem.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ResourceOfCommonLineItem.md rename to sdks/retailmedia_2024-10/docs/ResourceOfCommonLineItem.md diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfPromotedProduct202110.md b/sdks/retailmedia_2024-10/docs/ResourceOfCreateBalanceV2.md similarity index 60% rename from sdks/retailmedia_2023-07/docs/ResourceOfPromotedProduct202110.md rename to sdks/retailmedia_2024-10/docs/ResourceOfCreateBalanceV2.md index 5fd3c0aa..28ce8cbc 100644 --- a/sdks/retailmedia_2023-07/docs/ResourceOfPromotedProduct202110.md +++ b/sdks/retailmedia_2024-10/docs/ResourceOfCreateBalanceV2.md @@ -1,16 +1,16 @@ -# ResourceOfPromotedProduct202110 +# ResourceOfCreateBalanceV2 -Data model for a Resource +A class that represents a domain entity exposed by an API ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**attributes** | [**CreateBalanceV2**](CreateBalanceV2.md) | | [optional] | |**id** | **String** | Id of the entity | [optional] | |**type** | **String** | Canonical type name of the entity | [optional] | -|**attributes** | [**ExternalPromotedProduct202110**](ExternalPromotedProduct202110.md) | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfCreative202110.md b/sdks/retailmedia_2024-10/docs/ResourceOfCreative202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ResourceOfCreative202110.md rename to sdks/retailmedia_2024-10/docs/ResourceOfCreative202110.md diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfCreative202210.md b/sdks/retailmedia_2024-10/docs/ResourceOfCreative202210.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ResourceOfCreative202210.md rename to sdks/retailmedia_2024-10/docs/ResourceOfCreative202210.md diff --git a/sdks/retailmedia_2024-10/docs/ResourceOfCreativeV2.md b/sdks/retailmedia_2024-10/docs/ResourceOfCreativeV2.md new file mode 100644 index 00000000..84270283 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ResourceOfCreativeV2.md @@ -0,0 +1,16 @@ + + +# ResourceOfCreativeV2 + +A class that represents a domain entity exposed by an API + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attributes** | [**ExternalCreativeV2**](ExternalCreativeV2.md) | | [optional] | +|**id** | **String** | Id of the entity | [optional] | +|**type** | **String** | Canonical type name of the entity | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/ResourceOfLineItemBidMultipliersV2.md b/sdks/retailmedia_2024-10/docs/ResourceOfLineItemBidMultipliersV2.md new file mode 100644 index 00000000..6351644a --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ResourceOfLineItemBidMultipliersV2.md @@ -0,0 +1,16 @@ + + +# ResourceOfLineItemBidMultipliersV2 + +A class that represents a domain entity exposed by an API + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attributes** | [**ExternalLineItemBidMultipliersV2**](ExternalLineItemBidMultipliersV2.md) | | [optional] | +|**id** | **String** | Id of the entity | [optional] | +|**type** | **String** | Canonical type name of the entity | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItem202110.md b/sdks/retailmedia_2024-10/docs/ResourceOfPreferredLineItemUpdateModelV2.md similarity index 62% rename from sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItem202110.md rename to sdks/retailmedia_2024-10/docs/ResourceOfPreferredLineItemUpdateModelV2.md index 753f5ee5..7b8d60f8 100644 --- a/sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItem202110.md +++ b/sdks/retailmedia_2024-10/docs/ResourceOfPreferredLineItemUpdateModelV2.md @@ -1,6 +1,6 @@ -# ResourceOfPreferredLineItem202110 +# ResourceOfPreferredLineItemUpdateModelV2 Data model for a Resource @@ -10,7 +10,7 @@ Data model for a Resource |------------ | ------------- | ------------- | -------------| |**id** | **String** | Id of the entity | [optional] | |**type** | **String** | Canonical type name of the entity | [optional] | -|**attributes** | [**ExternalPreferredLineItem202110**](ExternalPreferredLineItem202110.md) | | [optional] | +|**attributes** | [**ExternalPreferredLineItemUpdateModelV2**](ExternalPreferredLineItemUpdateModelV2.md) | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfLineItemBidMultipliers.md b/sdks/retailmedia_2024-10/docs/ResourceOfPreferredLineItemV2.md similarity index 67% rename from sdks/retailmedia_2023-07/docs/ResourceOfLineItemBidMultipliers.md rename to sdks/retailmedia_2024-10/docs/ResourceOfPreferredLineItemV2.md index 68915d54..6fa6f2b5 100644 --- a/sdks/retailmedia_2023-07/docs/ResourceOfLineItemBidMultipliers.md +++ b/sdks/retailmedia_2024-10/docs/ResourceOfPreferredLineItemV2.md @@ -1,6 +1,6 @@ -# ResourceOfLineItemBidMultipliers +# ResourceOfPreferredLineItemV2 Data model for a Resource @@ -8,9 +8,9 @@ Data model for a Resource | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**attributes** | [**LineItemBidMultipliers**](LineItemBidMultipliers.md) | | [optional] | |**id** | **String** | Id of the entity | [optional] | |**type** | **String** | Canonical type name of the entity | [optional] | +|**attributes** | [**ExternalPreferredLineItemV2**](ExternalPreferredLineItemV2.md) | | [optional] | diff --git a/sdks/retailmedia_2024-10/docs/ResourceOfRetailMediaAccount.md b/sdks/retailmedia_2024-10/docs/ResourceOfRetailMediaAccount.md new file mode 100644 index 00000000..acde10bb --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ResourceOfRetailMediaAccount.md @@ -0,0 +1,16 @@ + + +# ResourceOfRetailMediaAccount + +A class that represents a domain entity exposed by an API. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attributes** | [**RetailMediaAccount**](RetailMediaAccount.md) | | [optional] | +|**id** | **String** | Unique identifier of this resource. | [optional] | +|**type** | **String** | | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ResourceOfTemplate.md b/sdks/retailmedia_2024-10/docs/ResourceOfTemplate.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ResourceOfTemplate.md rename to sdks/retailmedia_2024-10/docs/ResourceOfTemplate.md diff --git a/sdks/retailmedia_2024-10/docs/ResourceOfUpdateBalanceModelV2.md b/sdks/retailmedia_2024-10/docs/ResourceOfUpdateBalanceModelV2.md new file mode 100644 index 00000000..674a1914 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ResourceOfUpdateBalanceModelV2.md @@ -0,0 +1,16 @@ + + +# ResourceOfUpdateBalanceModelV2 + +A class that represents a domain entity exposed by an API + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attributes** | [**UpdateBalanceModelV2**](UpdateBalanceModelV2.md) | | [optional] | +|**id** | **String** | Id of the entity | [optional] | +|**type** | **String** | Canonical type name of the entity | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ResourceOutcome.md b/sdks/retailmedia_2024-10/docs/ResourceOutcome.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ResourceOutcome.md rename to sdks/retailmedia_2024-10/docs/ResourceOutcome.md diff --git a/sdks/retailmedia_2024-10/docs/ResourceOutcomeOfRetailMediaAccount.md b/sdks/retailmedia_2024-10/docs/ResourceOutcomeOfRetailMediaAccount.md new file mode 100644 index 00000000..14893af6 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ResourceOutcomeOfRetailMediaAccount.md @@ -0,0 +1,16 @@ + + +# ResourceOutcomeOfRetailMediaAccount + +A top-level object that encapsulates a Criteo API response for a single entity. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ResourceOfRetailMediaAccount**](ResourceOfRetailMediaAccount.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RetailMediaAccount.md b/sdks/retailmedia_2024-10/docs/RetailMediaAccount.md new file mode 100644 index 00000000..d4066b2b --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RetailMediaAccount.md @@ -0,0 +1,42 @@ + + +# RetailMediaAccount + +The details for a newly created account + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | account name | [optional] | +|**companyName** | **String** | Paying entity name of ads for the Digital Services Act | [optional] | +|**onBehalfCompanyName** | **String** | On behalf entity name of ads for the Digital Services Act | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Type for the account | [optional] | +|**subType** | [**SubTypeEnum**](#SubTypeEnum) | subtype for the account | [optional] | +|**countryIds** | **List<String>** | list of countries associated with the account | [optional] | +|**currencyId** | **String** | the currency for the account | [optional] | +|**parentAccountLabel** | **String** | parent account label for the account | [optional] | +|**timeZone** | **String** | the timezone for the account | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| SUPPLY | "Supply" | +| DEMAND | "Demand" | + + + +## Enum: SubTypeEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| BRAND | "Brand" | +| SELLER | "Seller" | + + + diff --git a/sdks/retailmedia_2024-10/docs/RetailMediaBrandAccountCreation.md b/sdks/retailmedia_2024-10/docs/RetailMediaBrandAccountCreation.md new file mode 100644 index 00000000..fff1b561 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RetailMediaBrandAccountCreation.md @@ -0,0 +1,17 @@ + + +# RetailMediaBrandAccountCreation + +the initial set up and configuration options for a new private market demand brand account + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | the name of the account, must be unique across all accounts | [optional] | +|**companyName** | **String** | Paying entity name of ads for the Digital Services Act | [optional] | +|**onBehalfCompanyName** | **String** | On behalf entity name of ads for the Digital Services Act | [optional] | +|**brands** | **List<Long>** | list of brands to link to the new account | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ExternalPromotedProduct202110.md b/sdks/retailmedia_2024-10/docs/RetailMediaBrands.md similarity index 51% rename from sdks/retailmedia_2023-07/docs/ExternalPromotedProduct202110.md rename to sdks/retailmedia_2024-10/docs/RetailMediaBrands.md index a598672b..7ab3ad82 100644 --- a/sdks/retailmedia_2023-07/docs/ExternalPromotedProduct202110.md +++ b/sdks/retailmedia_2024-10/docs/RetailMediaBrands.md @@ -1,14 +1,14 @@ -# ExternalPromotedProduct202110 +# RetailMediaBrands -identifies a promoted product +A collection of brand ids ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**bidOverride** | **BigDecimal** | | [optional] | +|**brandIds** | **List<Long>** | | [optional] | diff --git a/sdks/retailmedia_2024-10/docs/RetailMediaContactlistAmendment.md b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistAmendment.md new file mode 100644 index 00000000..f6605b8c --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistAmendment.md @@ -0,0 +1,15 @@ + + +# RetailMediaContactlistAmendment + +Request data of retail media contact list amendment + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | User List | [optional] | +|**attributes** | [**RetailMediaContactlistAmendmentAttributes**](RetailMediaContactlistAmendmentAttributes.md) | | | + + + diff --git a/sdks/retailmedia_2024-10/docs/RetailMediaContactlistAmendmentAttributes.md b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistAmendmentAttributes.md new file mode 100644 index 00000000..d6918735 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistAmendmentAttributes.md @@ -0,0 +1,38 @@ + + +# RetailMediaContactlistAmendmentAttributes + +Attributes of retail media contact list amendment + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**operation** | [**OperationEnum**](#OperationEnum) | Whether to add or remove users | | +|**identifierType** | [**IdentifierTypeEnum**](#IdentifierTypeEnum) | What type of identifiers are used | [optional] | +|**identifiers** | **List<String>** | The users to add or remove, each in the schema specified | | + + + +## Enum: OperationEnum + +| Name | Value | +|---- | -----| +| ADD | "add" | +| REMOVE | "remove" | + + + +## Enum: IdentifierTypeEnum + +| Name | Value | +|---- | -----| +| EMAIL | "Email" | +| USERIDENTIFIER | "UserIdentifier" | +| IDENTITYLINK | "IdentityLink" | +| GUM | "Gum" | +| CUSTOMERID | "CustomerId" | +| PHONENUMBER | "PhoneNumber" | + + + diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateInputEntityV2.md b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistAmendmentRequest.md similarity index 50% rename from sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateInputEntityV2.md rename to sdks/retailmedia_2024-10/docs/RetailMediaContactlistAmendmentRequest.md index 4b631afd..935a65c6 100644 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateInputEntityV2.md +++ b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistAmendmentRequest.md @@ -1,14 +1,14 @@ -# RmLegacyAudienceCreateInputEntityV2 +# RetailMediaContactlistAmendmentRequest -Input to create audience. +Request of Retail Media contactlist ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**RmLegacyAudienceCreateEntityV2Resource**](RmLegacyAudienceCreateEntityV2Resource.md) | | [optional] | +|**data** | [**RetailMediaContactlistAmendment**](RetailMediaContactlistAmendment.md) | | | diff --git a/sdks/marketingsolutions_2023-07/docs/ReplaceAudienceResponse.md b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistOperation.md similarity index 57% rename from sdks/marketingsolutions_2023-07/docs/ReplaceAudienceResponse.md rename to sdks/retailmedia_2024-10/docs/RetailMediaContactlistOperation.md index 60b009b7..70e4a7a3 100644 --- a/sdks/marketingsolutions_2023-07/docs/ReplaceAudienceResponse.md +++ b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistOperation.md @@ -1,14 +1,14 @@ -# ReplaceAudienceResponse +# RetailMediaContactlistOperation -Response of an audience replacement +Operation on Retail Media contact list ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**BasicAudienceDefinition**](BasicAudienceDefinition.md) | | | +|**data** | [**RetailMediaContactlistOperationResponseAttributes**](RetailMediaContactlistOperationResponseAttributes.md) | | | |**errors** | [**List<AudienceError>**](AudienceError.md) | | | |**warnings** | [**List<AudienceWarning>**](AudienceWarning.md) | | | diff --git a/sdks/retailmedia_2024-10/docs/RetailMediaContactlistOperationResponseAttributes.md b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistOperationResponseAttributes.md new file mode 100644 index 00000000..a3439183 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistOperationResponseAttributes.md @@ -0,0 +1,15 @@ + + +# RetailMediaContactlistOperationResponseAttributes + +Response data of Retail Media contact list operation + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | the name of the entity type | | +|**attributes** | [**RetailMediaContactlistOperationResponseAttributesAttributes**](RetailMediaContactlistOperationResponseAttributesAttributes.md) | | | + + + diff --git a/sdks/retailmedia_2024-10/docs/RetailMediaContactlistOperationResponseAttributesAttributes.md b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistOperationResponseAttributesAttributes.md new file mode 100644 index 00000000..6a3b4eee --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RetailMediaContactlistOperationResponseAttributesAttributes.md @@ -0,0 +1,20 @@ + + +# RetailMediaContactlistOperationResponseAttributesAttributes + +The attributes of Retaile Media contact list operation + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**contactListId** | **Long** | The affected user list id | | +|**operation** | **String** | The action recorded | | +|**requestDate** | **OffsetDateTime** | When the action was recorded | | +|**identifierType** | **String** | The schema specified for of the identifiers | [optional] | +|**nbInvalidIdentifiers** | **Integer** | How many identifiers were invalid for the specified schema | [optional] | +|**nbValidIdentifiers** | **Integer** | How many identifiers were valid for the specified schema | [optional] | +|**sampleInvalidIdentifiers** | **List<String>** | A sample of invalid identifiers if there is some | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RetailMediaSeller.md b/sdks/retailmedia_2024-10/docs/RetailMediaSeller.md new file mode 100644 index 00000000..df1131fc --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RetailMediaSeller.md @@ -0,0 +1,15 @@ + + +# RetailMediaSeller + +used to define the exact seller linked with an account + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sellerId** | **String** | the seller id | [optional] | +|**retailerId** | **Integer** | the retailer id | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RetailMediaSellerAccountCreation.md b/sdks/retailmedia_2024-10/docs/RetailMediaSellerAccountCreation.md new file mode 100644 index 00000000..86f6d3bc --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RetailMediaSellerAccountCreation.md @@ -0,0 +1,17 @@ + + +# RetailMediaSellerAccountCreation + +the initial set up and configuration options for a new private market demand brand account + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | the name of the account, must be unique across all accounts | [optional] | +|**companyName** | **String** | Paying entity name of ads for the Digital Services Act | [optional] | +|**onBehalfCompanyName** | **String** | On behalf entity name of ads for the Digital Services Act | [optional] | +|**sellers** | [**List<RetailMediaSeller>**](RetailMediaSeller.md) | list of sellers to associate to the new account | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/ReviewStateModel.md b/sdks/retailmedia_2024-10/docs/ReviewStateModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ReviewStateModel.md rename to sdks/retailmedia_2024-10/docs/ReviewStateModel.md diff --git a/sdks/retailmedia_2024-10/docs/RmAlgebraNodeV1.md b/sdks/retailmedia_2024-10/docs/RmAlgebraNodeV1.md new file mode 100644 index 00000000..dc034b7b --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAlgebraNodeV1.md @@ -0,0 +1,17 @@ + + +# RmAlgebraNodeV1 + +Node in the audience algebra definition. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**and** | [**List<RmAlgebraNodeV1>**](RmAlgebraNodeV1.md) | | [optional] | +|**or** | [**List<RmAlgebraNodeV1>**](RmAlgebraNodeV1.md) | | [optional] | +|**not** | [**RmAlgebraNodeV1**](RmAlgebraNodeV1.md) | | [optional] | +|**audienceSegmentId** | **String** | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceEntityV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceEntityV1.md new file mode 100644 index 00000000..9c0de9d6 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceEntityV1.md @@ -0,0 +1,32 @@ + + +# RmAudienceEntityV1 + +Audience of people of interest for a marketer. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accountId** | **String** | Account associated to the audience | [optional] | +|**name** | **String** | Name of the audience | [optional] | +|**description** | **String** | Description of the audience | [optional] | +|**retailerId** | **String** | Retailer associated to the audience | [optional] | +|**createdById** | **String** | User that created the audience | [optional] | +|**createdAt** | **OffsetDateTime** | ISO-8601 timestamp in UTC of audience creation (read-only) | [optional] | +|**updatedAt** | **OffsetDateTime** | ISO-8601 timestamp in UTC of audience update (read-only) | [optional] | +|**channels** | [**List<ChannelsEnum>**](#List<ChannelsEnum>) | Channels associated to the audience (read-only) | [optional] | +|**algebra** | [**RmAlgebraNodeV1**](RmAlgebraNodeV1.md) | | [optional] | + + + +## Enum: List<ChannelsEnum> + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| ONSITE | "Onsite" | +| OFFSITE | "Offsite" | + + + diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2Resource.md b/sdks/retailmedia_2024-10/docs/RmAudienceEntityV1Resource.md similarity index 66% rename from sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2Resource.md rename to sdks/retailmedia_2024-10/docs/RmAudienceEntityV1Resource.md index b7835e4c..6623d4ea 100644 --- a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2Resource.md +++ b/sdks/retailmedia_2024-10/docs/RmAudienceEntityV1Resource.md @@ -1,6 +1,6 @@ -# RmLegacyAudienceGetEntityV2Resource +# RmAudienceEntityV1Resource A class that represents a domain entity exposed by an API @@ -8,7 +8,7 @@ A class that represents a domain entity exposed by an API | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**attributes** | [**RmLegacyAudienceGetEntityV2**](RmLegacyAudienceGetEntityV2.md) | | [optional] | +|**attributes** | [**RmAudienceEntityV1**](RmAudienceEntityV1.md) | | [optional] | |**id** | **String** | Id of the entity | [optional] | |**type** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md b/sdks/retailmedia_2024-10/docs/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md new file mode 100644 index 00000000..ddcacd4c --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md @@ -0,0 +1,17 @@ + + +# RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities and metadata + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**meta** | [**RmAudienceSearchMetadataV1**](RmAudienceSearchMetadataV1.md) | | [optional] | +|**data** | [**List<RmAudienceEntityV1Resource>**](RmAudienceEntityV1Resource.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSearchEntityV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceSearchEntityV1.md new file mode 100644 index 00000000..11bd900b --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSearchEntityV1.md @@ -0,0 +1,16 @@ + + +# RmAudienceSearchEntityV1 + +Available filters to perform a search on audiences. If present, the filters are AND'ed together when applied. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**audienceIds** | **List<String>** | List of audience ids | [optional] | +|**retailerIds** | **List<String>** | List of retailer ids | [optional] | +|**audienceSegmentIds** | **List<String>** | List of segment ids (linked to the result audiences) | [optional] | + + + diff --git a/sdks/marketingsolutions_preview/docs/DeleteUserProfileModelResource.md b/sdks/retailmedia_2024-10/docs/RmAudienceSearchEntityV1Resource.md similarity index 64% rename from sdks/marketingsolutions_preview/docs/DeleteUserProfileModelResource.md rename to sdks/retailmedia_2024-10/docs/RmAudienceSearchEntityV1Resource.md index fd93bf22..5738601e 100644 --- a/sdks/marketingsolutions_preview/docs/DeleteUserProfileModelResource.md +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSearchEntityV1Resource.md @@ -1,6 +1,6 @@ -# DeleteUserProfileModelResource +# RmAudienceSearchEntityV1Resource A top-level object that encapsulates a Criteo API response for a single value @@ -9,7 +9,7 @@ A top-level object that encapsulates a Criteo API response for a single value | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**type** | **String** | | [optional] | -|**attributes** | [**DeleteUserProfileModel**](DeleteUserProfileModel.md) | | [optional] | +|**attributes** | [**RmAudienceSearchEntityV1**](RmAudienceSearchEntityV1.md) | | [optional] | diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSearchInputV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceSearchInputV1.md new file mode 100644 index 00000000..0919a5ce --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSearchInputV1.md @@ -0,0 +1,14 @@ + + +# RmAudienceSearchInputV1 + +A top-level object that encapsulates a Criteo API request for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RmAudienceSearchEntityV1Resource**](RmAudienceSearchEntityV1Resource.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSearchMetadataV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceSearchMetadataV1.md new file mode 100644 index 00000000..6decab77 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSearchMetadataV1.md @@ -0,0 +1,16 @@ + + +# RmAudienceSearchMetadataV1 + +Metadata for the audience search response. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalItems** | **Integer** | Total number of items | [optional] | +|**limit** | **Integer** | Max item of the current page | [optional] | +|**offset** | **Integer** | Number of item to skip | [optional] | + + + diff --git a/sdks/marketingsolutions_preview/docs/SetUserProfileModelListRequest.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentBulkCreateInputV1.md similarity index 50% rename from sdks/marketingsolutions_preview/docs/SetUserProfileModelListRequest.md rename to sdks/retailmedia_2024-10/docs/RmAudienceSegmentBulkCreateInputV1.md index 8e336138..13b3f8ee 100644 --- a/sdks/marketingsolutions_preview/docs/SetUserProfileModelListRequest.md +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentBulkCreateInputV1.md @@ -1,14 +1,14 @@ -# SetUserProfileModelListRequest +# RmAudienceSegmentBulkCreateInputV1 -A top-level object that encapsulates a Criteo API request for several values +A top-level object that encapsulates a Criteo API request for several values. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**List<SetUserProfileModelResource>**](SetUserProfileModelResource.md) | | [optional] | +|**data** | [**List<RmAudienceSegmentCreateEntityV1Resource>**](RmAudienceSegmentCreateEntityV1Resource.md) | | [optional] | diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentBulkDeleteInputV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentBulkDeleteInputV1.md new file mode 100644 index 00000000..bd69109d --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentBulkDeleteInputV1.md @@ -0,0 +1,14 @@ + + +# RmAudienceSegmentBulkDeleteInputV1 + +A top-level object that encapsulates a Criteo API request for several entities. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<RmAudienceSegmentDeleteEntityV1Resource>**](RmAudienceSegmentDeleteEntityV1Resource.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentBulkUpdateInputV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentBulkUpdateInputV1.md new file mode 100644 index 00000000..630af8bb --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentBulkUpdateInputV1.md @@ -0,0 +1,14 @@ + + +# RmAudienceSegmentBulkUpdateInputV1 + +A top-level object that encapsulates a Criteo API request for several entities. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<RmAudienceSegmentUpdateEntityV1Resource>**](RmAudienceSegmentUpdateEntityV1Resource.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentCreateEntityV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentCreateEntityV1.md new file mode 100644 index 00000000..7756fec0 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentCreateEntityV1.md @@ -0,0 +1,17 @@ + + +# RmAudienceSegmentCreateEntityV1 + +Set of rules that defines specific people to target. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name of the segment | | +|**description** | **String** | Description of the segment | [optional] | +|**retailerId** | **String** | Retailer associated to the segment | | +|**contactList** | [**RmContactListCreateV1**](RmContactListCreateV1.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentCreateEntityV1Resource.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentCreateEntityV1Resource.md new file mode 100644 index 00000000..59eaeb56 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentCreateEntityV1Resource.md @@ -0,0 +1,15 @@ + + +# RmAudienceSegmentCreateEntityV1Resource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | | [optional] | +|**attributes** | [**RmAudienceSegmentCreateEntityV1**](RmAudienceSegmentCreateEntityV1.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV2Resource.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentDeleteEntityV1Resource.md similarity index 66% rename from sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV2Resource.md rename to sdks/retailmedia_2024-10/docs/RmAudienceSegmentDeleteEntityV1Resource.md index b7835e4c..b7a6df9e 100644 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV2Resource.md +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentDeleteEntityV1Resource.md @@ -1,6 +1,6 @@ -# RmLegacyAudienceGetEntityV2Resource +# RmAudienceSegmentDeleteEntityV1Resource A class that represents a domain entity exposed by an API @@ -8,7 +8,7 @@ A class that represents a domain entity exposed by an API | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**attributes** | [**RmLegacyAudienceGetEntityV2**](RmLegacyAudienceGetEntityV2.md) | | [optional] | +|**attributes** | **Object** | Segment to delete | [optional] | |**id** | **String** | Id of the entity | [optional] | |**type** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1.md new file mode 100644 index 00000000..c0fd5d13 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1.md @@ -0,0 +1,44 @@ + + +# RmAudienceSegmentEntityV1 + +Set of rules that defines specific people to target. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accountId** | **String** | Account associated to the segment | [optional] | +|**name** | **String** | Name of the segment | [optional] | +|**description** | **String** | Description of the segment | [optional] | +|**retailerId** | **String** | Retailer associated to the segment | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Type of segment (read-only) | [optional] | +|**createdAt** | **OffsetDateTime** | ISO-8601 timestamp in UTC of segment creation (read-only) | [optional] | +|**updatedAt** | **OffsetDateTime** | ISO-8601 timestamp in UTC of segment update (read-only) | [optional] | +|**createdById** | **String** | User that created the segment | [optional] | +|**contactList** | [**RmContactListV1**](RmContactListV1.md) | | [optional] | +|**events** | [**RmEventsV1**](RmEventsV1.md) | | [optional] | +|**channels** | [**List<ChannelsEnum>**](#List<ChannelsEnum>) | Channels associated to the segment (read-only) | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| CONTACTLIST | "ContactList" | +| EVENTS | "Events" | + + + +## Enum: List<ChannelsEnum> + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| ONSITE | "Onsite" | +| OFFSITE | "Offsite" | + + + diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2ListResponse.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1ListResponse.md similarity index 70% rename from sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2ListResponse.md rename to sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1ListResponse.md index 4586ca41..603b9bfe 100644 --- a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2ListResponse.md +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1ListResponse.md @@ -1,6 +1,6 @@ -# RmLegacyAudienceGetEntityV2ListResponse +# RmAudienceSegmentEntityV1ListResponse A top-level object that encapsulates a Criteo API response for several entities @@ -8,7 +8,7 @@ A top-level object that encapsulates a Criteo API response for several entities | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**List<RmLegacyAudienceGetEntityV2Resource>**](RmLegacyAudienceGetEntityV2Resource.md) | | [optional] | +|**data** | [**List<RmAudienceSegmentEntityV1Resource>**](RmAudienceSegmentEntityV1Resource.md) | | [optional] | |**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | |**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV2Resource.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1Resource.md similarity index 65% rename from sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV2Resource.md rename to sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1Resource.md index e73c4e60..4234a048 100644 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV2Resource.md +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1Resource.md @@ -1,6 +1,6 @@ -# RmLegacyAudienceCreateEntityV2Resource +# RmAudienceSegmentEntityV1Resource A class that represents a domain entity exposed by an API @@ -8,7 +8,7 @@ A class that represents a domain entity exposed by an API | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**attributes** | [**RmLegacyAudienceCreateEntityV2**](RmLegacyAudienceCreateEntityV2.md) | | [optional] | +|**attributes** | [**RmAudienceSegmentEntityV1**](RmAudienceSegmentEntityV1.md) | | [optional] | |**id** | **String** | Id of the entity | [optional] | |**type** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.md new file mode 100644 index 00000000..53486af3 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.md @@ -0,0 +1,17 @@ + + +# RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities and metadata + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**meta** | [**RmAudienceSegmentSearchMetadataV1**](RmAudienceSegmentSearchMetadataV1.md) | | [optional] | +|**data** | [**List<RmAudienceSegmentEntityV1Resource>**](RmAudienceSegmentEntityV1Resource.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV1ListResponse.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentIdEntityV1ListResponse.md similarity index 65% rename from sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV1ListResponse.md rename to sdks/retailmedia_2024-10/docs/RmAudienceSegmentIdEntityV1ListResponse.md index 07cd5264..a612acd7 100644 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceGetEntityV1ListResponse.md +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentIdEntityV1ListResponse.md @@ -1,14 +1,14 @@ -# RmLegacyAudienceGetEntityV1ListResponse +# RmAudienceSegmentIdEntityV1ListResponse -A top-level object that encapsulates a Criteo API response for several entities and metadata +A top-level object that encapsulates a Criteo API response for several entities ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**List<RmLegacyAudienceGetEntityV1Resource>**](RmLegacyAudienceGetEntityV1Resource.md) | | [optional] | +|**data** | [**List<RmAudienceSegmentIdEntityV1Resource>**](RmAudienceSegmentIdEntityV1Resource.md) | | [optional] | |**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | |**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | diff --git a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV1Resource.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentIdEntityV1Resource.md similarity index 65% rename from sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV1Resource.md rename to sdks/retailmedia_2024-10/docs/RmAudienceSegmentIdEntityV1Resource.md index fb7e4e47..821f14c8 100644 --- a/sdks/retailmedia_2023-07/docs/RmLegacyAudienceCreateEntityV1Resource.md +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentIdEntityV1Resource.md @@ -1,6 +1,6 @@ -# RmLegacyAudienceCreateEntityV1Resource +# RmAudienceSegmentIdEntityV1Resource A class that represents a domain entity exposed by an API @@ -8,7 +8,7 @@ A class that represents a domain entity exposed by an API | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**attributes** | [**RmLegacyAudienceCreateEntityV1**](RmLegacyAudienceCreateEntityV1.md) | | [optional] | +|**attributes** | **Object** | Audience Segment entity only with its ID | [optional] | |**id** | **String** | Id of the entity | [optional] | |**type** | **String** | | [optional] | diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchEntityV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchEntityV1.md new file mode 100644 index 00000000..94759e74 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchEntityV1.md @@ -0,0 +1,26 @@ + + +# RmAudienceSegmentSearchEntityV1 + +Available filters to perform a search on audience segments. If present, the filters are AND'ed together when applied. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**audienceSegmentIds** | **List<String>** | List of segment ids | [optional] | +|**retailerIds** | **List<String>** | List of retailer ids | [optional] | +|**audienceSegmentTypes** | [**List<AudienceSegmentTypesEnum>**](#List<AudienceSegmentTypesEnum>) | List of segment types | [optional] | + + + +## Enum: List<AudienceSegmentTypesEnum> + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| CONTACTLIST | "ContactList" | +| EVENTS | "Events" | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchEntityV1Resource.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchEntityV1Resource.md new file mode 100644 index 00000000..b7842607 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchEntityV1Resource.md @@ -0,0 +1,15 @@ + + +# RmAudienceSegmentSearchEntityV1Resource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | | [optional] | +|**attributes** | [**RmAudienceSegmentSearchEntityV1**](RmAudienceSegmentSearchEntityV1.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchInputV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchInputV1.md new file mode 100644 index 00000000..f36ec231 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchInputV1.md @@ -0,0 +1,14 @@ + + +# RmAudienceSegmentSearchInputV1 + +A top-level object that encapsulates a Criteo API request for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RmAudienceSegmentSearchEntityV1Resource**](RmAudienceSegmentSearchEntityV1Resource.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchMetadataV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchMetadataV1.md new file mode 100644 index 00000000..a8d7727d --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentSearchMetadataV1.md @@ -0,0 +1,16 @@ + + +# RmAudienceSegmentSearchMetadataV1 + +Metadata for the audience segment search response. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalItems** | **Integer** | Total number of items | [optional] | +|**limit** | **Integer** | Max item of the current page | [optional] | +|**offset** | **Integer** | Number of item to skip | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentUpdateEntityV1.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentUpdateEntityV1.md new file mode 100644 index 00000000..8b1cc3b2 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentUpdateEntityV1.md @@ -0,0 +1,16 @@ + + +# RmAudienceSegmentUpdateEntityV1 + +Set of rules that defines specific people to target. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name of the segment | [optional] | +|**description** | [**NillableString**](NillableString.md) | | [optional] | +|**contactList** | **Object** | Settings to update the contact list of the segment | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmAudienceSegmentUpdateEntityV1Resource.md b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentUpdateEntityV1Resource.md new file mode 100644 index 00000000..30baea39 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmAudienceSegmentUpdateEntityV1Resource.md @@ -0,0 +1,16 @@ + + +# RmAudienceSegmentUpdateEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attributes** | [**RmAudienceSegmentUpdateEntityV1**](RmAudienceSegmentUpdateEntityV1.md) | | [optional] | +|**id** | **String** | Id of the entity | [optional] | +|**type** | **String** | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmContactListCreateV1.md b/sdks/retailmedia_2024-10/docs/RmContactListCreateV1.md new file mode 100644 index 00000000..c55f85ab --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmContactListCreateV1.md @@ -0,0 +1,25 @@ + + +# RmContactListCreateV1 + +Settings to target users with your contact lists. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**identifierType** | [**IdentifierTypeEnum**](#IdentifierTypeEnum) | Indicates contact list type | [optional] | + + + +## Enum: IdentifierTypeEnum + +| Name | Value | +|---- | -----| +| EMAIL | "Email" | +| USERIDENTIFIER | "UserIdentifier" | +| IDENTITYLINK | "IdentityLink" | +| CUSTOMERID | "CustomerId" | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmContactListStatisticsEntityV1.md b/sdks/retailmedia_2024-10/docs/RmContactListStatisticsEntityV1.md new file mode 100644 index 00000000..183bbf59 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmContactListStatisticsEntityV1.md @@ -0,0 +1,16 @@ + + +# RmContactListStatisticsEntityV1 + +Contact list statistics. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**numberOfIdentifiers** | **Integer** | Number of identifiers in the contact list. | [optional] | +|**numberOfMatches** | **Integer** | Number of matched identifiers in the contact list. | [optional] | +|**matchRate** | **Double** | Percentage of matched identifiers in the contact list. Can differ from matches/identifiers depending on the contact list type. | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmContactListStatisticsEntityV1Resource.md b/sdks/retailmedia_2024-10/docs/RmContactListStatisticsEntityV1Resource.md new file mode 100644 index 00000000..128efbe8 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmContactListStatisticsEntityV1Resource.md @@ -0,0 +1,16 @@ + + +# RmContactListStatisticsEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attributes** | [**RmContactListStatisticsEntityV1**](RmContactListStatisticsEntityV1.md) | | [optional] | +|**id** | **String** | Id of the entity | [optional] | +|**type** | **String** | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmContactListStatisticsEntityV1Response.md b/sdks/retailmedia_2024-10/docs/RmContactListStatisticsEntityV1Response.md new file mode 100644 index 00000000..f9fffb1b --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmContactListStatisticsEntityV1Response.md @@ -0,0 +1,16 @@ + + +# RmContactListStatisticsEntityV1Response + +A top-level object that encapsulates a Criteo API response for a single entity + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RmContactListStatisticsEntityV1Resource**](RmContactListStatisticsEntityV1Resource.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_2024-10/docs/RmContactListV1.md b/sdks/retailmedia_2024-10/docs/RmContactListV1.md new file mode 100644 index 00000000..5ae150f1 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/RmContactListV1.md @@ -0,0 +1,39 @@ + + +# RmContactListV1 + +Settings to target users with your contact lists. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**isReadOnly** | **Boolean** | Is the segment read-only | [optional] | +|**identifierType** | [**IdentifierTypeEnum**](#IdentifierTypeEnum) | Indicates contact list identifier's type | [optional] | +|**sharingStatus** | [**SharingStatusEnum**](#SharingStatusEnum) | Indicates if the contact list is shared with other accounts | [optional] | + + + +## Enum: IdentifierTypeEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| EMAIL | "Email" | +| USERIDENTIFIER | "UserIdentifier" | +| IDENTITYLINK | "IdentityLink" | +| CUSTOMERID | "CustomerId" | + + + +## Enum: SharingStatusEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| NOTSHARED | "NotShared" | +| SHAREDWITHALL | "SharedWithAll" | +| SHAREDWITHDEMANDACCOUNTS | "SharedWithDemandAccounts" | + + + diff --git a/sdks/retailmedia_preview/docs/RmUserBehaviorV1.md b/sdks/retailmedia_2024-10/docs/RmEventsV1.md similarity index 98% rename from sdks/retailmedia_preview/docs/RmUserBehaviorV1.md rename to sdks/retailmedia_2024-10/docs/RmEventsV1.md index 3fd848c7..2252f5f6 100644 --- a/sdks/retailmedia_preview/docs/RmUserBehaviorV1.md +++ b/sdks/retailmedia_2024-10/docs/RmEventsV1.md @@ -1,6 +1,6 @@ -# RmUserBehaviorV1 +# RmEventsV1 Settings to target users based on their behavior diff --git a/sdks/retailmedia_2023-07/docs/RmcaCommonProblem.md b/sdks/retailmedia_2024-10/docs/RmcaCommonProblem.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/RmcaCommonProblem.md rename to sdks/retailmedia_2024-10/docs/RmcaCommonProblem.md diff --git a/sdks/retailmedia_2023-07/docs/Section.md b/sdks/retailmedia_2024-10/docs/Section.md similarity index 86% rename from sdks/retailmedia_2023-07/docs/Section.md rename to sdks/retailmedia_2024-10/docs/Section.md index 582cd3b5..4966c3b1 100644 --- a/sdks/retailmedia_2023-07/docs/Section.md +++ b/sdks/retailmedia_2024-10/docs/Section.md @@ -8,7 +8,7 @@ Section object that hold template variables | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**title** | **String** | | | +|**title** | **String** | | [optional] | |**templateVariables** | [**List<TemplateVariable>**](TemplateVariable.md) | | | diff --git a/sdks/retailmedia_2023-07/docs/SetBidModel.md b/sdks/retailmedia_2024-10/docs/SetBidModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/SetBidModel.md rename to sdks/retailmedia_2024-10/docs/SetBidModel.md diff --git a/sdks/retailmedia_2023-07/docs/SetBidsModel.md b/sdks/retailmedia_2024-10/docs/SetBidsModel.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/SetBidsModel.md rename to sdks/retailmedia_2024-10/docs/SetBidsModel.md diff --git a/sdks/retailmedia_2023-07/docs/SetBidsModelRequest.md b/sdks/retailmedia_2024-10/docs/SetBidsModelRequest.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/SetBidsModelRequest.md rename to sdks/retailmedia_2024-10/docs/SetBidsModelRequest.md diff --git a/sdks/retailmedia_2023-07/docs/SetBidsModelResource.md b/sdks/retailmedia_2024-10/docs/SetBidsModelResource.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/SetBidsModelResource.md rename to sdks/retailmedia_2024-10/docs/SetBidsModelResource.md diff --git a/sdks/retailmedia_2023-07/docs/StatusResponse.md b/sdks/retailmedia_2024-10/docs/StatusResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/StatusResponse.md rename to sdks/retailmedia_2024-10/docs/StatusResponse.md diff --git a/sdks/retailmedia_2023-07/docs/StatusResponseResource.md b/sdks/retailmedia_2024-10/docs/StatusResponseResource.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/StatusResponseResource.md rename to sdks/retailmedia_2024-10/docs/StatusResponseResource.md diff --git a/sdks/retailmedia_2023-07/docs/StoreIdsUpdateModel202110Request.md b/sdks/retailmedia_2024-10/docs/StoreIdsUpdateModel202110Request.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/StoreIdsUpdateModel202110Request.md rename to sdks/retailmedia_2024-10/docs/StoreIdsUpdateModel202110Request.md diff --git a/sdks/retailmedia_2023-07/docs/StoreTarget202110Request.md b/sdks/retailmedia_2024-10/docs/StoreTarget202110Request.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/StoreTarget202110Request.md rename to sdks/retailmedia_2024-10/docs/StoreTarget202110Request.md diff --git a/sdks/retailmedia_2023-07/docs/StoreTarget202110Response.md b/sdks/retailmedia_2024-10/docs/StoreTarget202110Response.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/StoreTarget202110Response.md rename to sdks/retailmedia_2024-10/docs/StoreTarget202110Response.md diff --git a/sdks/retailmedia_2023-07/docs/Template.md b/sdks/retailmedia_2024-10/docs/Template.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/Template.md rename to sdks/retailmedia_2024-10/docs/Template.md diff --git a/sdks/retailmedia_2023-07/docs/TemplateListResponse.md b/sdks/retailmedia_2024-10/docs/TemplateListResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/TemplateListResponse.md rename to sdks/retailmedia_2024-10/docs/TemplateListResponse.md diff --git a/sdks/retailmedia_2023-07/docs/TemplateResponse.md b/sdks/retailmedia_2024-10/docs/TemplateResponse.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/TemplateResponse.md rename to sdks/retailmedia_2024-10/docs/TemplateResponse.md diff --git a/sdks/retailmedia_2023-07/docs/TemplateVariable.md b/sdks/retailmedia_2024-10/docs/TemplateVariable.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/TemplateVariable.md rename to sdks/retailmedia_2024-10/docs/TemplateVariable.md diff --git a/sdks/retailmedia_2023-07/docs/TemplateVariableValue.md b/sdks/retailmedia_2024-10/docs/TemplateVariableValue.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/TemplateVariableValue.md rename to sdks/retailmedia_2024-10/docs/TemplateVariableValue.md diff --git a/sdks/retailmedia_2023-07/docs/TextVariableSpecification.md b/sdks/retailmedia_2024-10/docs/TextVariableSpecification.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/TextVariableSpecification.md rename to sdks/retailmedia_2024-10/docs/TextVariableSpecification.md diff --git a/sdks/retailmedia_2023-07/docs/TextVariableValue.md b/sdks/retailmedia_2024-10/docs/TextVariableValue.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/TextVariableValue.md rename to sdks/retailmedia_2024-10/docs/TextVariableValue.md diff --git a/sdks/retailmedia_2024-10/docs/UpdateBalanceModelV2.md b/sdks/retailmedia_2024-10/docs/UpdateBalanceModelV2.md new file mode 100644 index 00000000..c732e419 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/UpdateBalanceModelV2.md @@ -0,0 +1,18 @@ + + +# UpdateBalanceModelV2 + +An object that represents the available options to set when updating a Retail Media Balance. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name of the balance. | [optional] | +|**poNumber** | **String** | Purchase Order number. | [optional] | +|**startDate** | **String** | Start date of the balance in the format YYYY-MM-DD. | [optional] | +|**endDate** | **String** | End date of the balance in the format YYYY-MM-DD. | [optional] | +|**memo** | **String** | Memo. | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/UpdateBalanceModelV2Request.md b/sdks/retailmedia_2024-10/docs/UpdateBalanceModelV2Request.md new file mode 100644 index 00000000..6e0eb037 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/UpdateBalanceModelV2Request.md @@ -0,0 +1,14 @@ + + +# UpdateBalanceModelV2Request + +A top-level object that encapsulates a Criteo API request for a single entity + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ResourceOfUpdateBalanceModelV2**](ResourceOfUpdateBalanceModelV2.md) | | [optional] | + + + diff --git a/sdks/marketingsolutions_preview/docs/DeleteUserProfileModelListRequest.md b/sdks/retailmedia_2024-10/docs/ValueResourceCollectionInputOfRetailMediaSeller.md similarity index 50% rename from sdks/marketingsolutions_preview/docs/DeleteUserProfileModelListRequest.md rename to sdks/retailmedia_2024-10/docs/ValueResourceCollectionInputOfRetailMediaSeller.md index f2c1a488..af3ca79d 100644 --- a/sdks/marketingsolutions_preview/docs/DeleteUserProfileModelListRequest.md +++ b/sdks/retailmedia_2024-10/docs/ValueResourceCollectionInputOfRetailMediaSeller.md @@ -1,14 +1,14 @@ -# DeleteUserProfileModelListRequest +# ValueResourceCollectionInputOfRetailMediaSeller -A top-level object that encapsulates a Criteo API request for several values +A top-level object that encapsulates a Criteo API request for several values. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**List<DeleteUserProfileModelResource>**](DeleteUserProfileModelResource.md) | | [optional] | +|**data** | [**List<ValueResourceOfRetailMediaSeller>**](ValueResourceOfRetailMediaSeller.md) | | [optional] | diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1ListResponse.md b/sdks/retailmedia_2024-10/docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md similarity index 65% rename from sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1ListResponse.md rename to sdks/retailmedia_2024-10/docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md index 07cd5264..64c60ae3 100644 --- a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1ListResponse.md +++ b/sdks/retailmedia_2024-10/docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md @@ -1,14 +1,14 @@ -# RmLegacyAudienceGetEntityV1ListResponse +# ValueResourceCollectionOutcomeOfRetailMediaSeller -A top-level object that encapsulates a Criteo API response for several entities and metadata +A top-level object that encapsulates a Criteo API response for several values. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**List<RmLegacyAudienceGetEntityV1Resource>**](RmLegacyAudienceGetEntityV1Resource.md) | | [optional] | +|**data** | [**List<ValueResourceOfRetailMediaSeller>**](ValueResourceOfRetailMediaSeller.md) | | [optional] | |**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | |**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | diff --git a/sdks/retailmedia_preview/docs/ValueResourceInputOfCampaignBudgetOverrides.md b/sdks/retailmedia_2024-10/docs/ValueResourceInputOfCampaignBudgetOverrides.md similarity index 100% rename from sdks/retailmedia_preview/docs/ValueResourceInputOfCampaignBudgetOverrides.md rename to sdks/retailmedia_2024-10/docs/ValueResourceInputOfCampaignBudgetOverrides.md diff --git a/sdks/retailmedia_preview/docs/ValueResourceInputOfLineItemBudgetOverrides.md b/sdks/retailmedia_2024-10/docs/ValueResourceInputOfLineItemBudgetOverrides.md similarity index 100% rename from sdks/retailmedia_preview/docs/ValueResourceInputOfLineItemBudgetOverrides.md rename to sdks/retailmedia_2024-10/docs/ValueResourceInputOfLineItemBudgetOverrides.md diff --git a/sdks/retailmedia_2024-10/docs/ValueResourceInputOfRetailMediaBrandAccountCreation.md b/sdks/retailmedia_2024-10/docs/ValueResourceInputOfRetailMediaBrandAccountCreation.md new file mode 100644 index 00000000..d0ee73f8 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ValueResourceInputOfRetailMediaBrandAccountCreation.md @@ -0,0 +1,14 @@ + + +# ValueResourceInputOfRetailMediaBrandAccountCreation + +A top-level object that encapsulates a Criteo API request for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ValueResourceOfRetailMediaBrandAccountCreation**](ValueResourceOfRetailMediaBrandAccountCreation.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/ValueResourceInputOfRetailMediaBrands.md b/sdks/retailmedia_2024-10/docs/ValueResourceInputOfRetailMediaBrands.md new file mode 100644 index 00000000..f4e1a06b --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ValueResourceInputOfRetailMediaBrands.md @@ -0,0 +1,14 @@ + + +# ValueResourceInputOfRetailMediaBrands + +A top-level object that encapsulates a Criteo API request for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ValueResourceOfRetailMediaBrands**](ValueResourceOfRetailMediaBrands.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/ValueResourceInputOfRetailMediaSellerAccountCreation.md b/sdks/retailmedia_2024-10/docs/ValueResourceInputOfRetailMediaSellerAccountCreation.md new file mode 100644 index 00000000..1b0c42f6 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ValueResourceInputOfRetailMediaSellerAccountCreation.md @@ -0,0 +1,14 @@ + + +# ValueResourceInputOfRetailMediaSellerAccountCreation + +A top-level object that encapsulates a Criteo API request for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ValueResourceOfRetailMediaSellerAccountCreation**](ValueResourceOfRetailMediaSellerAccountCreation.md) | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/ValueResourceOfCampaignBudgetOverrides.md b/sdks/retailmedia_2024-10/docs/ValueResourceOfCampaignBudgetOverrides.md similarity index 100% rename from sdks/retailmedia_preview/docs/ValueResourceOfCampaignBudgetOverrides.md rename to sdks/retailmedia_2024-10/docs/ValueResourceOfCampaignBudgetOverrides.md diff --git a/sdks/retailmedia_preview/docs/ValueResourceOfLineItemBudgetOverrides.md b/sdks/retailmedia_2024-10/docs/ValueResourceOfLineItemBudgetOverrides.md similarity index 100% rename from sdks/retailmedia_preview/docs/ValueResourceOfLineItemBudgetOverrides.md rename to sdks/retailmedia_2024-10/docs/ValueResourceOfLineItemBudgetOverrides.md diff --git a/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaBrandAccountCreation.md b/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaBrandAccountCreation.md new file mode 100644 index 00000000..dd6eae32 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaBrandAccountCreation.md @@ -0,0 +1,15 @@ + + +# ValueResourceOfRetailMediaBrandAccountCreation + +A top-level object that encapsulates a Criteo API response for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | | [optional] | +|**attributes** | [**RetailMediaBrandAccountCreation**](RetailMediaBrandAccountCreation.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaBrands.md b/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaBrands.md new file mode 100644 index 00000000..e2f4a674 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaBrands.md @@ -0,0 +1,15 @@ + + +# ValueResourceOfRetailMediaBrands + +A top-level object that encapsulates a Criteo API response for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | | [optional] | +|**attributes** | [**RetailMediaBrands**](RetailMediaBrands.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaSeller.md b/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaSeller.md new file mode 100644 index 00000000..491e1861 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaSeller.md @@ -0,0 +1,15 @@ + + +# ValueResourceOfRetailMediaSeller + +A top-level object that encapsulates a Criteo API response for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | | [optional] | +|**attributes** | [**RetailMediaSeller**](RetailMediaSeller.md) | | [optional] | + + + diff --git a/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaSellerAccountCreation.md b/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaSellerAccountCreation.md new file mode 100644 index 00000000..1ecfba68 --- /dev/null +++ b/sdks/retailmedia_2024-10/docs/ValueResourceOfRetailMediaSellerAccountCreation.md @@ -0,0 +1,15 @@ + + +# ValueResourceOfRetailMediaSellerAccountCreation + +A top-level object that encapsulates a Criteo API response for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | | [optional] | +|**attributes** | [**RetailMediaSellerAccountCreation**](RetailMediaSellerAccountCreation.md) | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md b/sdks/retailmedia_2024-10/docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md similarity index 100% rename from sdks/retailmedia_preview/docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md rename to sdks/retailmedia_2024-10/docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md diff --git a/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md b/sdks/retailmedia_2024-10/docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md similarity index 100% rename from sdks/retailmedia_preview/docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md rename to sdks/retailmedia_2024-10/docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md diff --git a/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md b/sdks/retailmedia_2024-10/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md rename to sdks/retailmedia_2024-10/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketTarget202110.md b/sdks/retailmedia_2024-10/docs/ValueTypeResourceOfAddToBasketTarget202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketTarget202110.md rename to sdks/retailmedia_2024-10/docs/ValueTypeResourceOfAddToBasketTarget202110.md diff --git a/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md b/sdks/retailmedia_2024-10/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md rename to sdks/retailmedia_2024-10/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceTarget202110.md b/sdks/retailmedia_2024-10/docs/ValueTypeResourceOfAudienceTarget202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceTarget202110.md rename to sdks/retailmedia_2024-10/docs/ValueTypeResourceOfAudienceTarget202110.md diff --git a/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfKeywordTarget202110.md b/sdks/retailmedia_2024-10/docs/ValueTypeResourceOfKeywordTarget202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ValueTypeResourceOfKeywordTarget202110.md rename to sdks/retailmedia_2024-10/docs/ValueTypeResourceOfKeywordTarget202110.md diff --git a/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md b/sdks/retailmedia_2024-10/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md rename to sdks/retailmedia_2024-10/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreTarget202110.md b/sdks/retailmedia_2024-10/docs/ValueTypeResourceOfStoreTarget202110.md similarity index 100% rename from sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreTarget202110.md rename to sdks/retailmedia_2024-10/docs/ValueTypeResourceOfStoreTarget202110.md diff --git a/sdks/retailmedia_2023-07/gradle/wrapper/gradle-wrapper.jar b/sdks/retailmedia_2024-10/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from sdks/retailmedia_2023-07/gradle/wrapper/gradle-wrapper.jar rename to sdks/retailmedia_2024-10/gradle/wrapper/gradle-wrapper.jar diff --git a/sdks/retailmedia_2023-07/gradle/wrapper/gradle-wrapper.properties b/sdks/retailmedia_2024-10/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from sdks/retailmedia_2023-07/gradle/wrapper/gradle-wrapper.properties rename to sdks/retailmedia_2024-10/gradle/wrapper/gradle-wrapper.properties diff --git a/sdks/retailmedia_2023-07/gradlew b/sdks/retailmedia_2024-10/gradlew similarity index 100% rename from sdks/retailmedia_2023-07/gradlew rename to sdks/retailmedia_2024-10/gradlew diff --git a/sdks/retailmedia_2023-07/gradlew.bat b/sdks/retailmedia_2024-10/gradlew.bat similarity index 100% rename from sdks/retailmedia_2023-07/gradlew.bat rename to sdks/retailmedia_2024-10/gradlew.bat diff --git a/sdks/retailmedia_2023-07/settings.gradle b/sdks/retailmedia_2024-10/settings.gradle similarity index 100% rename from sdks/retailmedia_2023-07/settings.gradle rename to sdks/retailmedia_2024-10/settings.gradle diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiCallback.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiCallback.java similarity index 94% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiCallback.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiCallback.java index 6266489c..b829bdbb 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiCallback.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiCallback.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import java.io.IOException; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClient.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiClient.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClient.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiClient.java index 6020245b..5c66a3db 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClient.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiClient.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import okhttp3.*; import okhttp3.internal.http.HttpMethod; @@ -52,13 +52,13 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import com.criteo.api.retailmedia.v2023_07.auth.Authentication; -import com.criteo.api.retailmedia.v2023_07.auth.HttpBasicAuth; -import com.criteo.api.retailmedia.v2023_07.auth.HttpBearerAuth; -import com.criteo.api.retailmedia.v2023_07.auth.ApiKeyAuth; -import com.criteo.api.retailmedia.v2023_07.auth.OAuth; -import com.criteo.api.retailmedia.v2023_07.auth.RetryingOAuth; -import com.criteo.api.retailmedia.v2023_07.auth.OAuthFlow; +import com.criteo.api.retailmedia.v2024_10.auth.Authentication; +import com.criteo.api.retailmedia.v2024_10.auth.HttpBasicAuth; +import com.criteo.api.retailmedia.v2024_10.auth.HttpBearerAuth; +import com.criteo.api.retailmedia.v2024_10.auth.ApiKeyAuth; +import com.criteo.api.retailmedia.v2024_10.auth.OAuth; +import com.criteo.api.retailmedia.v2024_10.auth.RetryingOAuth; +import com.criteo.api.retailmedia.v2024_10.auth.OAuthFlow; /** *

ApiClient class.

@@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2023.07.0.240826/java"); + setUserAgent("OpenAPI-Generator/2024.10.0.241029/java"); authentications = new HashMap(); } @@ -386,7 +386,7 @@ public DateFormat getDateFormat() { *

Setter for the field dateFormat.

* * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.criteo.api.retailmedia.v2023_07.ApiClient} object + * @return a {@link com.criteo.api.retailmedia.v2024_10.ApiClient} object */ public ApiClient setDateFormat(DateFormat dateFormat) { JSON.setDateFormat(dateFormat); @@ -397,7 +397,7 @@ public ApiClient setDateFormat(DateFormat dateFormat) { *

Set SqlDateFormat.

* * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.criteo.api.retailmedia.v2023_07.ApiClient} object + * @return a {@link com.criteo.api.retailmedia.v2024_10.ApiClient} object */ public ApiClient setSqlDateFormat(DateFormat dateFormat) { JSON.setSqlDateFormat(dateFormat); @@ -408,7 +408,7 @@ public ApiClient setSqlDateFormat(DateFormat dateFormat) { *

Set OffsetDateTimeFormat.

* * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.criteo.api.retailmedia.v2023_07.ApiClient} object + * @return a {@link com.criteo.api.retailmedia.v2024_10.ApiClient} object */ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { JSON.setOffsetDateTimeFormat(dateFormat); @@ -419,7 +419,7 @@ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { *

Set LocalDateFormat.

* * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.criteo.api.retailmedia.v2023_07.ApiClient} object + * @return a {@link com.criteo.api.retailmedia.v2024_10.ApiClient} object */ public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { JSON.setLocalDateFormat(dateFormat); @@ -430,7 +430,7 @@ public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { *

Set LenientOnJson.

* * @param lenientOnJson a boolean - * @return a {@link com.criteo.api.retailmedia.v2023_07.ApiClient} object + * @return a {@link com.criteo.api.retailmedia.v2024_10.ApiClient} object */ public ApiClient setLenientOnJson(boolean lenientOnJson) { JSON.setLenientOnJson(lenientOnJson); @@ -944,7 +944,7 @@ public String escapeString(String str) { * @param response HTTP response * @param returnType The type of the Java object * @return The deserialized Java object - * @throws com.criteo.api.retailmedia.v2023_07.ApiException If fail to deserialize response body, i.e. cannot read response body + * @throws com.criteo.api.retailmedia.v2024_10.ApiException If fail to deserialize response body, i.e. cannot read response body * or the Content-Type of the response is not supported. */ @SuppressWarnings("unchecked") @@ -1005,7 +1005,7 @@ public T deserialize(Response response, Type returnType) throws ApiException * @param obj The Java object * @param contentType The request Content-Type * @return The serialized request body - * @throws com.criteo.api.retailmedia.v2023_07.ApiException If fail to serialize the given object + * @throws com.criteo.api.retailmedia.v2024_10.ApiException If fail to serialize the given object */ public RequestBody serialize(Object obj, String contentType) throws ApiException { if (obj instanceof byte[]) { @@ -1035,7 +1035,7 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException * Download file from the given response. * * @param response An instance of the Response object - * @throws com.criteo.api.retailmedia.v2023_07.ApiException If fail to read file content from response and write to disk + * @throws com.criteo.api.retailmedia.v2024_10.ApiException If fail to read file content from response and write to disk * @return Downloaded file */ public File downloadFileFromResponse(Response response) throws ApiException { @@ -1099,7 +1099,7 @@ public File prepareDownloadFile(Response response) throws IOException { * @param Type * @param call An instance of the Call object * @return ApiResponse<T> - * @throws com.criteo.api.retailmedia.v2023_07.ApiException If fail to execute the call + * @throws com.criteo.api.retailmedia.v2024_10.ApiException If fail to execute the call */ public ApiResponse execute(Call call) throws ApiException { return execute(call, null); @@ -1114,7 +1114,7 @@ public ApiResponse execute(Call call) throws ApiException { * @return ApiResponse object containing response status, headers and * data, which is a Java object deserialized from response body and would be null * when returnType is null. - * @throws com.criteo.api.retailmedia.v2023_07.ApiException If fail to execute the call + * @throws com.criteo.api.retailmedia.v2024_10.ApiException If fail to execute the call */ public ApiResponse execute(Call call, Type returnType) throws ApiException { try { @@ -1178,7 +1178,7 @@ public void onResponse(Call call, Response response) throws IOException { * @param response Response * @param returnType Return type * @return Type - * @throws com.criteo.api.retailmedia.v2023_07.ApiException If the response has an unsuccessful status code or + * @throws com.criteo.api.retailmedia.v2024_10.ApiException If the response has an unsuccessful status code or * fail to deserialize the response body */ public T handleResponse(Response response, Type returnType) throws ApiException { @@ -1225,7 +1225,7 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept * @param authNames The authentications to apply * @param callback Callback for upload/download progress * @return The HTTP call - * @throws com.criteo.api.retailmedia.v2023_07.ApiException If fail to serialize the request body object + * @throws com.criteo.api.retailmedia.v2024_10.ApiException If fail to serialize the request body object */ public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); @@ -1248,7 +1248,7 @@ public Call buildCall(String baseUrl, String path, String method, List que * @param authNames The authentications to apply * @param callback Callback for upload/download progress * @return The HTTP request - * @throws com.criteo.api.retailmedia.v2023_07.ApiException If fail to serialize the request body object + * @throws com.criteo.api.retailmedia.v2024_10.ApiException If fail to serialize the request body object */ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams @@ -1411,7 +1411,7 @@ public void processCookieParams(Map cookieParams, Request.Builde * @param payload HTTP request body * @param method HTTP method * @param uri URI - * @throws com.criteo.api.retailmedia.v2023_07.ApiException If fails to update the parameters + * @throws com.criteo.api.retailmedia.v2024_10.ApiException If fails to update the parameters */ public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { @@ -1622,7 +1622,7 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti * * @param requestBody The HTTP request object * @return The string representation of the HTTP request body - * @throws com.criteo.api.retailmedia.v2023_07.ApiException If fail to serialize the request body object into a string + * @throws com.criteo.api.retailmedia.v2024_10.ApiException If fail to serialize the request body object into a string */ private String requestBodyToString(RequestBody requestBody) throws ApiException { if (requestBody != null) { diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClientBuilder.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiClientBuilder.java similarity index 89% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClientBuilder.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiClientBuilder.java index 78c3333c..ab5ebff1 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClientBuilder.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiClientBuilder.java @@ -1,4 +1,4 @@ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import java.util.Map; import java.util.HashMap; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiException.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiException.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiException.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiException.java index b31e409c..841b036a 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiException.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiException.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import java.util.Map; import java.util.List; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiResponse.java similarity index 94% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiResponse.java index 362bd1f4..7afd5892 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ApiResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import java.util.List; import java.util.Map; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/Configuration.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/Configuration.java similarity index 91% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/Configuration.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/Configuration.java index b8da8980..5cd6ac0e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/Configuration.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/Configuration.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/GzipRequestInterceptor.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/GzipRequestInterceptor.java similarity index 96% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/GzipRequestInterceptor.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/GzipRequestInterceptor.java index 094530c3..7af50587 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/GzipRequestInterceptor.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import okhttp3.*; import okio.Buffer; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/JSON.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/JSON.java similarity index 53% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/JSON.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/JSON.java index 9a4a4ea5..fdfa72ba 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/JSON.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/JSON.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -93,188 +93,271 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AddRemoveKeywordModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AddRemoveKeywordsModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AddRemoveKeywordsModelRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AddRemoveKeywordsModelResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AddToBasketIdsUpdateModel202110Request.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AddToBasketTarget202110Request.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AddToBasketTarget202110Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ApplicationSummaryModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ApplicationSummaryModelResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ApplicationSummaryModelResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Asset.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AssetResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AssetResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignsReport.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignsReportRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignsReportResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemsReport.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemsReportRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemsReportResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncReportResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AuctionLineItemCreateModelRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AuctionLineItemPagedListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AuctionLineItemResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AuctionLineItemUpdateModelRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AudienceIdsUpdateModel202110Request.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AudienceTarget202110Request.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AudienceTarget202110Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Balance202110PagedListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.BalanceCampaign202110ListRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.BalanceCampaign202110PagedListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CampaignAttributesV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CampaignV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Category202204.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Category202204ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ChoiceOption.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ChoiceVariableSpecification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ChoiceVariableValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ColorVariableValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CommonError.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CommonLineItemPagedListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CommonLineItemResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CommonProblem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CommonWarning.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Creative202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Creative202110ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Creative202210.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Creative202210ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Creative202210Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CreativeCreateModel202207.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CreativeUpdateModel202207.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.EditableCampaignAttributesV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalAccount.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalAddToBasketIdsUpdateModel202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalAddToBasketTarget202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalAuctionLineItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalAuctionLineItemCreateModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalAuctionLineItemUpdateModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalAudienceIdsUpdateModel202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalAudienceTarget202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalBalance202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalBrand.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalCatalogRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalCatalogStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalCommonLineItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalKeywordTarget202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalLineItemCapping202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalLineItemPage202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalLineItemPageCategory202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalPreferredLineItem202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalPreferredLineItemCreateModel202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalPreferredLineItemUpdateModel202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalPromotedProduct202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalRetailer.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalRetailerPages202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalStoreIdsUpdateModel202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalStoreTarget202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.FilesVariableValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.FilesVariablesSpecification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.HyperlinkVariableValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.InputKeywordsModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.InputResourceOfAuctionLineItemCreateModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.InputResourceOfPreferredLineItemCreateModel202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndAccountAndAccount.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndBrandAndBrand.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiPageResponseOfAccount.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiPageResponseOfBrand.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiPageResponseOfCampaignV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiPageResponseOfRetailer.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiRequestOfCatalogRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiSingleResponseOfCampaignV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiSingleResponseOfCatalogStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.JsonApiSingleResponseOfLineItemBidMultipliers.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.KeywordDataModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.KeywordTarget202110Request.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.KeywordTarget202110Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.KeywordsModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.KeywordsModelResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.KeywordsModelResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.LineItemBidMultipliers.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.LineItemBidMultipliersRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.LineItemBidMultipliersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PageMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PageTypeEnvironment.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PostCampaignV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PreferredLineItem202110PagedListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PreferredLineItem202110Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PreferredLineItemCreateModel202110Request.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PreferredLineItemUpdateModel202110Request.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ProblemDetails.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PromotedProduct202110ListRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PromotedProduct202110PagedListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ProposalStatusModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ProposalStatusModelResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ProposalStatusModelResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PutCampaignV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ReportOutcome.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfAuctionLineItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfAuctionLineItemUpdateModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfBalance202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfBalanceCampaign202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfCategory202204.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfCommonLineItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfCreative202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfCreative202210.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfLineItemBidMultipliers.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfPreferredLineItem202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfPreferredLineItemUpdateModel202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfPromotedProduct202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfTemplate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOutcome.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV1Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV2.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV2Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV2Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateInputEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateInputEntityV2.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV2.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV2ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV2Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceUserBehaviorCreateV2.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceUserBehaviorDetailsV2.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacySegmentCustomerList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacySegmentUserBehaviorCreateV2.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacySegmentUserBehaviorV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmLegacySegmentUserBehaviorV2.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.RmcaCommonProblem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Section.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.SetBidModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.SetBidsModel.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.SetBidsModelRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.SetBidsModelResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.StatusResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.StatusResponseResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.StoreIdsUpdateModel202110Request.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.StoreTarget202110Request.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.StoreTarget202110Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Template.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.TemplateListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.TemplateResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.TemplateVariable.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.TemplateVariableValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.TextVariableSpecification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.TextVariableValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfAddToBasketIdsUpdateModel202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfAddToBasketTarget202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfAudienceIdsUpdateModel202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfAudienceTarget202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfKeywordTarget202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfStoreIdsUpdateModel202110.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfStoreTarget202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AddFundsToBalanceV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AddFundsToBalanceV2Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AddRemoveKeywordModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AddRemoveKeywordsModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AddRemoveKeywordsModelRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AddRemoveKeywordsModelResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AddToBasketIdsUpdateModel202110Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AddToBasketTarget202110Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AddToBasketTarget202110Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ApplicationSummaryModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ApplicationSummaryModelResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ApplicationSummaryModelResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.Asset.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AssetResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AssetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AsyncCampaignsReport.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AsyncCampaignsReportRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AsyncCampaignsReportResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AsyncLineItemsReport.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AsyncLineItemsReportRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AsyncLineItemsReportResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AsyncReportResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AsyncRevenueReport.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AsyncRevenueReportRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AsyncRevenueReportResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AuctionLineItemCreateModelRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AuctionLineItemPagedListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AuctionLineItemResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AuctionLineItemUpdateModelRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AudienceError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AudienceIdsUpdateModel202110Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AudienceTarget202110Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AudienceTarget202110Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.AudienceWarning.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.BalanceCampaign202110ListRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.BalanceCampaign202110PagedListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.BalanceHistoryChangeDataCaptureV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.BalanceResponseV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.BalanceResponseV2Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CampaignAttributesV202301.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CampaignBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CampaignDailyBudgetOverride.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CampaignMonthlyBudgetOverride.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CampaignV202301.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.Category202204.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.Category202204ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ChangeDatesOfBalanceV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ChangeDatesOfBalanceV2Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ChangeDetailsV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ChoiceOption.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ChoiceVariableSpecification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ChoiceVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ColorVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CommonError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CommonLineItemPagedListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CommonLineItemResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CommonProblem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CommonWarning.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CreateBalanceV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CreateBalanceV2Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.Creative202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.Creative202110ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.Creative202210.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.Creative202210Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CreativeCreateModel202207.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CreativeUpdateModel202207.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CreativeV2ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.CreativeV2Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.DailyLineItemBudgetOverride.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.EditableCampaignAttributesV202301.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ErrorCodeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalAccount.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalAddToBasketIdsUpdateModel202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalAddToBasketTarget202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalAuctionLineItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalAuctionLineItemCreateModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalAuctionLineItemUpdateModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalAudienceIdsUpdateModel202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalAudienceTarget202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalBrand.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalCatalogRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalCatalogStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalChoiceVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalColorVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalCommonLineItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalCreativeV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalFilesVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalHyperlinkVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalKeywordTarget202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemBidMultipliersV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemCappingV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemPageCategoryV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemPageV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalPageTypeEnvironment.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalPreferredLineItemCreateModelV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalPreferredLineItemUpdateModelV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalPreferredLineItemV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalRetailer.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalRetailerPages202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalStoreIdsUpdateModel202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalStoreTarget202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalTemplateVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalTextVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ExternalVideoVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.FilesVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.FilesVariablesSpecification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.HyperlinkVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.InputKeywordsModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.InputResourceOfAuctionLineItemCreateModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.InputResourceOfPreferredLineItemCreateModelV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndAccountAndAccount.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndBrandAndBrand.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiPageResponseOfAccount.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiPageResponseOfBrand.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiPageResponseOfCampaignV202301.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiPageResponseOfRetailer.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiRequestOfCatalogRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiSingleResponseOfCampaignV202301.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiSingleResponseOfCatalogStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.JsonApiSingleResponseOfLineItemBidMultipliersV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.KeywordDataModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.KeywordTarget202110Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.KeywordTarget202110Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.KeywordsModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.KeywordsModelResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.KeywordsModelResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.LineItemBidMultipliersV2Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.LineItemBidMultipliersV2Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.LineItemBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.Metadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.MonthlyLineItemBudegetOverride.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.NillableString.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PageMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PageOfBalanceHistoryChangeDataCaptureV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PageTypeEnvironment.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PagedResourceCollectionOutcomeOfBalanceResponseV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PostCampaignV202301.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PreferredLineItemCreateModelV2Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PreferredLineItemUpdateModelV2Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PreferredLineItemV2PagedListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PreferredLineItemV2Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ProblemDetails.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ProductMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ProductResourceOutcome.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PromotedProduct.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PromotedProductResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PromotedProductResourceCollectionInput.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PromotedProductResourceCollectionOutcome.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ProposalStatusModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ProposalStatusModelResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ProposalStatusModelResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.PutCampaignV202301.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ReportOutcome.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfAddFundsToBalanceV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfAuctionLineItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfAuctionLineItemUpdateModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfBalanceCampaign202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfBalanceResponseV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfCategory202204.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfChangeDatesOfBalanceV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfCommonLineItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfCreateBalanceV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfCreative202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfCreative202210.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfCreativeV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfLineItemBidMultipliersV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfPreferredLineItemUpdateModelV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfPreferredLineItemV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfRetailMediaAccount.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfTemplate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOfUpdateBalanceModelV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOutcome.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ResourceOutcomeOfRetailMediaAccount.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RetailMediaAccount.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RetailMediaBrandAccountCreation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RetailMediaBrands.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistAmendment.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistAmendmentAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistAmendmentRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistOperation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistOperationResponseAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistOperationResponseAttributesAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RetailMediaSeller.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RetailMediaSellerAccountCreation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAlgebraNodeV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSearchEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSearchEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSearchInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSearchMetadataV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentBulkCreateInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentBulkDeleteInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentBulkUpdateInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentCreateEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentCreateEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentDeleteEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentEntityV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentIdEntityV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentIdEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentSearchEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentSearchEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentSearchInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentSearchMetadataV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentUpdateEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentUpdateEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmContactListCreateV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmContactListStatisticsEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmContactListStatisticsEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmContactListStatisticsEntityV1Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmContactListV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmEventsV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.RmcaCommonProblem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.Section.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.SetBidModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.SetBidsModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.SetBidsModelRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.SetBidsModelResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.StatusResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.StatusResponseResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.StoreIdsUpdateModel202110Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.StoreTarget202110Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.StoreTarget202110Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.Template.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.TemplateListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.TemplateResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.TemplateVariable.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.TemplateVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.TextVariableSpecification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.TextVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.UpdateBalanceModelV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.UpdateBalanceModelV2Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceCollectionInputOfRetailMediaSeller.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceCollectionOutcomeOfRetailMediaSeller.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceInputOfCampaignBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceInputOfLineItemBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceInputOfRetailMediaBrandAccountCreation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceInputOfRetailMediaBrands.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceInputOfRetailMediaSellerAccountCreation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfCampaignBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfLineItemBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfRetailMediaBrandAccountCreation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfRetailMediaBrands.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfRetailMediaSeller.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfRetailMediaSellerAccountCreation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceOutcomeOfCampaignBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueResourceOutcomeOfLineItemBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfAddToBasketIdsUpdateModel202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfAddToBasketTarget202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfAudienceIdsUpdateModel202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfAudienceTarget202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfKeywordTarget202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfStoreIdsUpdateModel202110.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfStoreTarget202110.CustomTypeAdapterFactory()); gson = gsonBuilder.create(); } diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/Pair.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/Pair.java similarity index 91% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/Pair.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/Pair.java index d30f4726..39cb07c6 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/Pair.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/Pair.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Pair { diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ProgressRequestBody.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ProgressRequestBody.java similarity index 94% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ProgressRequestBody.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ProgressRequestBody.java index a7cf5b8d..0831f67f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ProgressRequestBody.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ProgressRequestBody.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import okhttp3.MediaType; import okhttp3.RequestBody; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ProgressResponseBody.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ProgressResponseBody.java similarity index 95% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ProgressResponseBody.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ProgressResponseBody.java index 74e0428a..cfeb8075 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ProgressResponseBody.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ProgressResponseBody.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import okhttp3.MediaType; import okhttp3.ResponseBody; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ServerConfiguration.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ServerConfiguration.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ServerConfiguration.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ServerConfiguration.java index 3d37a329..02b63e21 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ServerConfiguration.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ServerConfiguration.java @@ -1,4 +1,4 @@ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import java.util.Map; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ServerVariable.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ServerVariable.java similarity index 94% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ServerVariable.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ServerVariable.java index a0f5c5a1..ae49b4c2 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ServerVariable.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/ServerVariable.java @@ -1,4 +1,4 @@ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import java.util.HashSet; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/StringUtil.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/StringUtil.java similarity index 95% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/StringUtil.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/StringUtil.java index 8addb26d..4c119e55 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/StringUtil.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/StringUtil.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import java.util.Collection; import java.util.Iterator; diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/AccountsApi.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/AccountsApi.java new file mode 100644 index 00000000..d5a4f3e4 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/AccountsApi.java @@ -0,0 +1,877 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.api; + +import com.criteo.api.retailmedia.v2024_10.ApiCallback; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.ApiResponse; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.Pair; +import com.criteo.api.retailmedia.v2024_10.ProgressRequestBody; +import com.criteo.api.retailmedia.v2024_10.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.criteo.api.retailmedia.v2024_10.model.JsonApiPageResponseOfAccount; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOutcomeOfRetailMediaAccount; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceCollectionInputOfRetailMediaSeller; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceCollectionOutcomeOfRetailMediaSeller; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceInputOfRetailMediaBrandAccountCreation; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceInputOfRetailMediaBrands; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceInputOfRetailMediaSellerAccountCreation; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfRetailMediaBrands; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AccountsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AccountsApi() { + this(Configuration.getDefaultApiClient()); + } + + public AccountsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addBrands + * @param accountId the account id to update (required) + * @param valueResourceInputOfRetailMediaBrands brands to associate to account (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call addBrandsCall(String accountId, ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = valueResourceInputOfRetailMediaBrands; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/account-management/accounts/{accountId}/brands/add" + .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addBrandsValidateBeforeCall(String accountId, ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling addBrands(Async)"); + } + + return addBrandsCall(accountId, valueResourceInputOfRetailMediaBrands, _callback); + + } + + /** + * + * Add brands to an account + * @param accountId the account id to update (required) + * @param valueResourceInputOfRetailMediaBrands brands to associate to account (optional) + * @return ValueResourceOfRetailMediaBrands + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ValueResourceOfRetailMediaBrands addBrands(String accountId, ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands) throws ApiException { + ApiResponse localVarResp = addBrandsWithHttpInfo(accountId, valueResourceInputOfRetailMediaBrands); + return localVarResp.getData(); + } + + /** + * + * Add brands to an account + * @param accountId the account id to update (required) + * @param valueResourceInputOfRetailMediaBrands brands to associate to account (optional) + * @return ApiResponse<ValueResourceOfRetailMediaBrands> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse addBrandsWithHttpInfo(String accountId, ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands) throws ApiException { + okhttp3.Call localVarCall = addBrandsValidateBeforeCall(accountId, valueResourceInputOfRetailMediaBrands, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add brands to an account + * @param accountId the account id to update (required) + * @param valueResourceInputOfRetailMediaBrands brands to associate to account (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call addBrandsAsync(String accountId, ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addBrandsValidateBeforeCall(accountId, valueResourceInputOfRetailMediaBrands, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createPrivateMarketDemandBrandAccount + * @param accountId Account Id for the parent private market account (required) + * @param valueResourceInputOfRetailMediaBrandAccountCreation Initial creation and configuration options for the new account (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public okhttp3.Call createPrivateMarketDemandBrandAccountCall(String accountId, ValueResourceInputOfRetailMediaBrandAccountCreation valueResourceInputOfRetailMediaBrandAccountCreation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = valueResourceInputOfRetailMediaBrandAccountCreation; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/account-management/accounts/{accountId}/create-brand-account" + .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createPrivateMarketDemandBrandAccountValidateBeforeCall(String accountId, ValueResourceInputOfRetailMediaBrandAccountCreation valueResourceInputOfRetailMediaBrandAccountCreation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling createPrivateMarketDemandBrandAccount(Async)"); + } + + return createPrivateMarketDemandBrandAccountCall(accountId, valueResourceInputOfRetailMediaBrandAccountCreation, _callback); + + } + + /** + * + * Creates a new child Demand Brand Account for the provided parent private market account + * @param accountId Account Id for the parent private market account (required) + * @param valueResourceInputOfRetailMediaBrandAccountCreation Initial creation and configuration options for the new account (optional) + * @return ResourceOutcomeOfRetailMediaAccount + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public ResourceOutcomeOfRetailMediaAccount createPrivateMarketDemandBrandAccount(String accountId, ValueResourceInputOfRetailMediaBrandAccountCreation valueResourceInputOfRetailMediaBrandAccountCreation) throws ApiException { + ApiResponse localVarResp = createPrivateMarketDemandBrandAccountWithHttpInfo(accountId, valueResourceInputOfRetailMediaBrandAccountCreation); + return localVarResp.getData(); + } + + /** + * + * Creates a new child Demand Brand Account for the provided parent private market account + * @param accountId Account Id for the parent private market account (required) + * @param valueResourceInputOfRetailMediaBrandAccountCreation Initial creation and configuration options for the new account (optional) + * @return ApiResponse<ResourceOutcomeOfRetailMediaAccount> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public ApiResponse createPrivateMarketDemandBrandAccountWithHttpInfo(String accountId, ValueResourceInputOfRetailMediaBrandAccountCreation valueResourceInputOfRetailMediaBrandAccountCreation) throws ApiException { + okhttp3.Call localVarCall = createPrivateMarketDemandBrandAccountValidateBeforeCall(accountId, valueResourceInputOfRetailMediaBrandAccountCreation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Creates a new child Demand Brand Account for the provided parent private market account + * @param accountId Account Id for the parent private market account (required) + * @param valueResourceInputOfRetailMediaBrandAccountCreation Initial creation and configuration options for the new account (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public okhttp3.Call createPrivateMarketDemandBrandAccountAsync(String accountId, ValueResourceInputOfRetailMediaBrandAccountCreation valueResourceInputOfRetailMediaBrandAccountCreation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createPrivateMarketDemandBrandAccountValidateBeforeCall(accountId, valueResourceInputOfRetailMediaBrandAccountCreation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createPrivateMarketDemandSellerAccount + * @param accountId Account Id for the parent private market account (required) + * @param valueResourceInputOfRetailMediaSellerAccountCreation Initial creation and configuration options for the new account (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public okhttp3.Call createPrivateMarketDemandSellerAccountCall(String accountId, ValueResourceInputOfRetailMediaSellerAccountCreation valueResourceInputOfRetailMediaSellerAccountCreation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = valueResourceInputOfRetailMediaSellerAccountCreation; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/account-management/accounts/{accountId}/create-seller-account" + .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createPrivateMarketDemandSellerAccountValidateBeforeCall(String accountId, ValueResourceInputOfRetailMediaSellerAccountCreation valueResourceInputOfRetailMediaSellerAccountCreation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling createPrivateMarketDemandSellerAccount(Async)"); + } + + return createPrivateMarketDemandSellerAccountCall(accountId, valueResourceInputOfRetailMediaSellerAccountCreation, _callback); + + } + + /** + * + * Creates a new child Demand Seller Account for the provided parent private market account + * @param accountId Account Id for the parent private market account (required) + * @param valueResourceInputOfRetailMediaSellerAccountCreation Initial creation and configuration options for the new account (optional) + * @return ResourceOutcomeOfRetailMediaAccount + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public ResourceOutcomeOfRetailMediaAccount createPrivateMarketDemandSellerAccount(String accountId, ValueResourceInputOfRetailMediaSellerAccountCreation valueResourceInputOfRetailMediaSellerAccountCreation) throws ApiException { + ApiResponse localVarResp = createPrivateMarketDemandSellerAccountWithHttpInfo(accountId, valueResourceInputOfRetailMediaSellerAccountCreation); + return localVarResp.getData(); + } + + /** + * + * Creates a new child Demand Seller Account for the provided parent private market account + * @param accountId Account Id for the parent private market account (required) + * @param valueResourceInputOfRetailMediaSellerAccountCreation Initial creation and configuration options for the new account (optional) + * @return ApiResponse<ResourceOutcomeOfRetailMediaAccount> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public ApiResponse createPrivateMarketDemandSellerAccountWithHttpInfo(String accountId, ValueResourceInputOfRetailMediaSellerAccountCreation valueResourceInputOfRetailMediaSellerAccountCreation) throws ApiException { + okhttp3.Call localVarCall = createPrivateMarketDemandSellerAccountValidateBeforeCall(accountId, valueResourceInputOfRetailMediaSellerAccountCreation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Creates a new child Demand Seller Account for the provided parent private market account + * @param accountId Account Id for the parent private market account (required) + * @param valueResourceInputOfRetailMediaSellerAccountCreation Initial creation and configuration options for the new account (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public okhttp3.Call createPrivateMarketDemandSellerAccountAsync(String accountId, ValueResourceInputOfRetailMediaSellerAccountCreation valueResourceInputOfRetailMediaSellerAccountCreation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createPrivateMarketDemandSellerAccountValidateBeforeCall(accountId, valueResourceInputOfRetailMediaSellerAccountCreation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getApiV1ExternalAccounts + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) + * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getApiV1ExternalAccountsCall(List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limitToId != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); + } + + if (pageIndex != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); + } + + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getApiV1ExternalAccountsValidateBeforeCall(List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + return getApiV1ExternalAccountsCall(limitToId, pageIndex, pageSize, _callback); + + } + + /** + * + * Gets page of account objects that the current user can access + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) + * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) + * @return JsonApiPageResponseOfAccount + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public JsonApiPageResponseOfAccount getApiV1ExternalAccounts(List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { + ApiResponse localVarResp = getApiV1ExternalAccountsWithHttpInfo(limitToId, pageIndex, pageSize); + return localVarResp.getData(); + } + + /** + * + * Gets page of account objects that the current user can access + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) + * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) + * @return ApiResponse<JsonApiPageResponseOfAccount> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse getApiV1ExternalAccountsWithHttpInfo(List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { + okhttp3.Call localVarCall = getApiV1ExternalAccountsValidateBeforeCall(limitToId, pageIndex, pageSize, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Gets page of account objects that the current user can access + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) + * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getApiV1ExternalAccountsAsync(List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApiV1ExternalAccountsValidateBeforeCall(limitToId, pageIndex, pageSize, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for removeBrands + * @param accountId The account id to update (required) + * @param valueResourceInputOfRetailMediaBrands Brands to remove from account (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call removeBrandsCall(String accountId, ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = valueResourceInputOfRetailMediaBrands; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/account-management/accounts/{accountId}/brands/remove" + .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeBrandsValidateBeforeCall(String accountId, ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling removeBrands(Async)"); + } + + return removeBrandsCall(accountId, valueResourceInputOfRetailMediaBrands, _callback); + + } + + /** + * + * Remove a brand from an account + * @param accountId The account id to update (required) + * @param valueResourceInputOfRetailMediaBrands Brands to remove from account (optional) + * @return ValueResourceOfRetailMediaBrands + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ValueResourceOfRetailMediaBrands removeBrands(String accountId, ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands) throws ApiException { + ApiResponse localVarResp = removeBrandsWithHttpInfo(accountId, valueResourceInputOfRetailMediaBrands); + return localVarResp.getData(); + } + + /** + * + * Remove a brand from an account + * @param accountId The account id to update (required) + * @param valueResourceInputOfRetailMediaBrands Brands to remove from account (optional) + * @return ApiResponse<ValueResourceOfRetailMediaBrands> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse removeBrandsWithHttpInfo(String accountId, ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands) throws ApiException { + okhttp3.Call localVarCall = removeBrandsValidateBeforeCall(accountId, valueResourceInputOfRetailMediaBrands, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Remove a brand from an account + * @param accountId The account id to update (required) + * @param valueResourceInputOfRetailMediaBrands Brands to remove from account (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call removeBrandsAsync(String accountId, ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeBrandsValidateBeforeCall(accountId, valueResourceInputOfRetailMediaBrands, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateSellers + * @param accountId the account id to update (required) + * @param valueResourceCollectionInputOfRetailMediaSeller sellers to associate (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call updateSellersCall(String accountId, ValueResourceCollectionInputOfRetailMediaSeller valueResourceCollectionInputOfRetailMediaSeller, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = valueResourceCollectionInputOfRetailMediaSeller; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/account-management/accounts/{accountId}/sellers" + .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateSellersValidateBeforeCall(String accountId, ValueResourceCollectionInputOfRetailMediaSeller valueResourceCollectionInputOfRetailMediaSeller, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling updateSellers(Async)"); + } + + return updateSellersCall(accountId, valueResourceCollectionInputOfRetailMediaSeller, _callback); + + } + + /** + * + * replace the sellers assoiated with an account + * @param accountId the account id to update (required) + * @param valueResourceCollectionInputOfRetailMediaSeller sellers to associate (optional) + * @return ValueResourceCollectionOutcomeOfRetailMediaSeller + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ValueResourceCollectionOutcomeOfRetailMediaSeller updateSellers(String accountId, ValueResourceCollectionInputOfRetailMediaSeller valueResourceCollectionInputOfRetailMediaSeller) throws ApiException { + ApiResponse localVarResp = updateSellersWithHttpInfo(accountId, valueResourceCollectionInputOfRetailMediaSeller); + return localVarResp.getData(); + } + + /** + * + * replace the sellers assoiated with an account + * @param accountId the account id to update (required) + * @param valueResourceCollectionInputOfRetailMediaSeller sellers to associate (optional) + * @return ApiResponse<ValueResourceCollectionOutcomeOfRetailMediaSeller> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse updateSellersWithHttpInfo(String accountId, ValueResourceCollectionInputOfRetailMediaSeller valueResourceCollectionInputOfRetailMediaSeller) throws ApiException { + okhttp3.Call localVarCall = updateSellersValidateBeforeCall(accountId, valueResourceCollectionInputOfRetailMediaSeller, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * replace the sellers assoiated with an account + * @param accountId the account id to update (required) + * @param valueResourceCollectionInputOfRetailMediaSeller sellers to associate (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call updateSellersAsync(String accountId, ValueResourceCollectionInputOfRetailMediaSeller valueResourceCollectionInputOfRetailMediaSeller, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateSellersValidateBeforeCall(accountId, valueResourceCollectionInputOfRetailMediaSeller, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AnalyticsApi.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/AnalyticsApi.java similarity index 75% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AnalyticsApi.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/AnalyticsApi.java index 5e1fb6e2..2f379bde 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AnalyticsApi.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/AnalyticsApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,26 +11,27 @@ */ -package com.criteo.api.retailmedia.v2023_07.api; +package com.criteo.api.retailmedia.v2024_10.api; -import com.criteo.api.retailmedia.v2023_07.ApiCallback; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.ApiResponse; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.Pair; -import com.criteo.api.retailmedia.v2023_07.ProgressRequestBody; -import com.criteo.api.retailmedia.v2023_07.ProgressResponseBody; +import com.criteo.api.retailmedia.v2024_10.ApiCallback; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.ApiResponse; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.Pair; +import com.criteo.api.retailmedia.v2024_10.ProgressRequestBody; +import com.criteo.api.retailmedia.v2024_10.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignsReportRequest; -import com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemsReportRequest; -import com.criteo.api.retailmedia.v2023_07.model.AsyncReportResponse; -import com.criteo.api.retailmedia.v2023_07.model.ReportOutcome; +import com.criteo.api.retailmedia.v2024_10.model.AsyncCampaignsReportRequest; +import com.criteo.api.retailmedia.v2024_10.model.AsyncLineItemsReportRequest; +import com.criteo.api.retailmedia.v2024_10.model.AsyncReportResponse; +import com.criteo.api.retailmedia.v2024_10.model.AsyncRevenueReportRequest; +import com.criteo.api.retailmedia.v2024_10.model.ReportOutcome; import java.lang.reflect.Type; import java.util.ArrayList; @@ -107,7 +108,7 @@ public okhttp3.Call generateAsyncCampaignsReportCall(AsyncCampaignsReportRequest Object localVarPostBody = asyncCampaignsReportRequest; // create path and map variables - String localVarPath = "/2023-07/retail-media/reports/campaigns"; + String localVarPath = "/2024-10/retail-media/reports/campaigns"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -153,7 +154,7 @@ private okhttp3.Call generateAsyncCampaignsReportValidateBeforeCall(AsyncCampaig /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -172,7 +173,7 @@ public AsyncReportResponse generateAsyncCampaignsReport(AsyncCampaignsReportRequ /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -192,7 +193,7 @@ public ApiResponse generateAsyncCampaignsReportWithHttpInfo /** * (asynchronously) - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -243,7 +244,7 @@ public okhttp3.Call generateAsyncLineItemsReportCall(AsyncLineItemsReportRequest Object localVarPostBody = asyncLineItemsReportRequest; // create path and map variables - String localVarPath = "/2023-07/retail-media/reports/line-items"; + String localVarPath = "/2024-10/retail-media/reports/line-items"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -289,7 +290,7 @@ private okhttp3.Call generateAsyncLineItemsReportValidateBeforeCall(AsyncLineIte /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -308,7 +309,7 @@ public AsyncReportResponse generateAsyncLineItemsReport(AsyncLineItemsReportRequ /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -328,7 +329,7 @@ public ApiResponse generateAsyncLineItemsReportWithHttpInfo /** * (asynchronously) - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -348,6 +349,142 @@ public okhttp3.Call generateAsyncLineItemsReportAsync(AsyncLineItemsReportReques localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for generateAsyncRevenueReport + * @param asyncRevenueReportRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Success -
400 Bad Request -
403 Forbidden -
+ */ + public okhttp3.Call generateAsyncRevenueReportCall(AsyncRevenueReportRequest asyncRevenueReportRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = asyncRevenueReportRequest; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/reports/revenue"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call generateAsyncRevenueReportValidateBeforeCall(AsyncRevenueReportRequest asyncRevenueReportRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'asyncRevenueReportRequest' is set + if (asyncRevenueReportRequest == null) { + throw new ApiException("Missing the required parameter 'asyncRevenueReportRequest' when calling generateAsyncRevenueReport(Async)"); + } + + return generateAsyncRevenueReportCall(asyncRevenueReportRequest, _callback); + + } + + /** + * + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. + * @param asyncRevenueReportRequest (required) + * @return AsyncReportResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Success -
400 Bad Request -
403 Forbidden -
+ */ + public AsyncReportResponse generateAsyncRevenueReport(AsyncRevenueReportRequest asyncRevenueReportRequest) throws ApiException { + ApiResponse localVarResp = generateAsyncRevenueReportWithHttpInfo(asyncRevenueReportRequest); + return localVarResp.getData(); + } + + /** + * + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. + * @param asyncRevenueReportRequest (required) + * @return ApiResponse<AsyncReportResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Success -
400 Bad Request -
403 Forbidden -
+ */ + public ApiResponse generateAsyncRevenueReportWithHttpInfo(AsyncRevenueReportRequest asyncRevenueReportRequest) throws ApiException { + okhttp3.Call localVarCall = generateAsyncRevenueReportValidateBeforeCall(asyncRevenueReportRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Returns an asynchronous Revenue Report This endpoint is subject to specific rate limits. + * @param asyncRevenueReportRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Success -
400 Bad Request -
403 Forbidden -
+ */ + public okhttp3.Call generateAsyncRevenueReportAsync(AsyncRevenueReportRequest asyncRevenueReportRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = generateAsyncRevenueReportValidateBeforeCall(asyncRevenueReportRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for getAsyncExportOutput * @param reportId The ID of the report to retrieve (required) @@ -379,7 +516,7 @@ public okhttp3.Call getAsyncExportOutputCall(String reportId, final ApiCallback Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/reports/{reportId}/output" + String localVarPath = "/2024-10/retail-media/reports/{reportId}/output" .replace("{" + "reportId" + "}", localVarApiClient.escapeString(reportId.toString())); List localVarQueryParams = new ArrayList(); @@ -512,7 +649,7 @@ public okhttp3.Call getAsyncExportStatusCall(String reportId, final ApiCallback Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/reports/{reportId}/status" + String localVarPath = "/2024-10/retail-media/reports/{reportId}/status" .replace("{" + "reportId" + "}", localVarApiClient.escapeString(reportId.toString())); List localVarQueryParams = new ArrayList(); diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/AudienceApi.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/AudienceApi.java new file mode 100644 index 00000000..a41d39b9 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/AudienceApi.java @@ -0,0 +1,1277 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.api; + +import com.criteo.api.retailmedia.v2024_10.ApiCallback; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.ApiResponse; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.Pair; +import com.criteo.api.retailmedia.v2024_10.ProgressRequestBody; +import com.criteo.api.retailmedia.v2024_10.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.criteo.api.retailmedia.v2024_10.model.ErrorCodeResponse; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistAmendmentRequest; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistOperation; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSearchInputV1; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentBulkCreateInputV1; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentBulkDeleteInputV1; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentBulkUpdateInputV1; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentEntityV1ListResponse; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentIdEntityV1ListResponse; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentSearchInputV1; +import com.criteo.api.retailmedia.v2024_10.model.RmContactListStatisticsEntityV1Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AudienceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AudienceApi() { + this(Configuration.getDefaultApiClient()); + } + + public AudienceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for bulkCreateAudienceSegments + * @param accountId Account Id (required) + * @param rmAudienceSegmentBulkCreateInputV1 Segment creation parameter (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call bulkCreateAudienceSegmentsCall(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = rmAudienceSegmentBulkCreateInputV1; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/audience-segments/create" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call bulkCreateAudienceSegmentsValidateBeforeCall(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling bulkCreateAudienceSegments(Async)"); + } + + // verify the required parameter 'rmAudienceSegmentBulkCreateInputV1' is set + if (rmAudienceSegmentBulkCreateInputV1 == null) { + throw new ApiException("Missing the required parameter 'rmAudienceSegmentBulkCreateInputV1' when calling bulkCreateAudienceSegments(Async)"); + } + + return bulkCreateAudienceSegmentsCall(accountId, rmAudienceSegmentBulkCreateInputV1, _callback); + + } + + /** + * + * Creates all segments with a valid configuration, and returns the full segments. For those that cannot be created, one or multiple errors are returned. + * @param accountId Account Id (required) + * @param rmAudienceSegmentBulkCreateInputV1 Segment creation parameter (required) + * @return RmAudienceSegmentEntityV1ListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public RmAudienceSegmentEntityV1ListResponse bulkCreateAudienceSegments(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1) throws ApiException { + ApiResponse localVarResp = bulkCreateAudienceSegmentsWithHttpInfo(accountId, rmAudienceSegmentBulkCreateInputV1); + return localVarResp.getData(); + } + + /** + * + * Creates all segments with a valid configuration, and returns the full segments. For those that cannot be created, one or multiple errors are returned. + * @param accountId Account Id (required) + * @param rmAudienceSegmentBulkCreateInputV1 Segment creation parameter (required) + * @return ApiResponse<RmAudienceSegmentEntityV1ListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public ApiResponse bulkCreateAudienceSegmentsWithHttpInfo(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1) throws ApiException { + okhttp3.Call localVarCall = bulkCreateAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkCreateInputV1, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Creates all segments with a valid configuration, and returns the full segments. For those that cannot be created, one or multiple errors are returned. + * @param accountId Account Id (required) + * @param rmAudienceSegmentBulkCreateInputV1 Segment creation parameter (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call bulkCreateAudienceSegmentsAsync(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = bulkCreateAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkCreateInputV1, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for bulkDeleteAudienceSegments + * @param accountId Account id (required) + * @param rmAudienceSegmentBulkDeleteInputV1 Segment delete request. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call bulkDeleteAudienceSegmentsCall(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = rmAudienceSegmentBulkDeleteInputV1; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/audience-segments/delete" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call bulkDeleteAudienceSegmentsValidateBeforeCall(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling bulkDeleteAudienceSegments(Async)"); + } + + // verify the required parameter 'rmAudienceSegmentBulkDeleteInputV1' is set + if (rmAudienceSegmentBulkDeleteInputV1 == null) { + throw new ApiException("Missing the required parameter 'rmAudienceSegmentBulkDeleteInputV1' when calling bulkDeleteAudienceSegments(Async)"); + } + + return bulkDeleteAudienceSegmentsCall(accountId, rmAudienceSegmentBulkDeleteInputV1, _callback); + + } + + /** + * + * Delete the segments associated to the given audience IDs. + * @param accountId Account id (required) + * @param rmAudienceSegmentBulkDeleteInputV1 Segment delete request. (required) + * @return RmAudienceSegmentIdEntityV1ListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public RmAudienceSegmentIdEntityV1ListResponse bulkDeleteAudienceSegments(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1) throws ApiException { + ApiResponse localVarResp = bulkDeleteAudienceSegmentsWithHttpInfo(accountId, rmAudienceSegmentBulkDeleteInputV1); + return localVarResp.getData(); + } + + /** + * + * Delete the segments associated to the given audience IDs. + * @param accountId Account id (required) + * @param rmAudienceSegmentBulkDeleteInputV1 Segment delete request. (required) + * @return ApiResponse<RmAudienceSegmentIdEntityV1ListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public ApiResponse bulkDeleteAudienceSegmentsWithHttpInfo(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1) throws ApiException { + okhttp3.Call localVarCall = bulkDeleteAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkDeleteInputV1, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Delete the segments associated to the given audience IDs. + * @param accountId Account id (required) + * @param rmAudienceSegmentBulkDeleteInputV1 Segment delete request. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call bulkDeleteAudienceSegmentsAsync(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = bulkDeleteAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkDeleteInputV1, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for bulkUpdateAudienceSegments + * @param accountId Account id (required) + * @param rmAudienceSegmentBulkUpdateInputV1 Segment Update request (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call bulkUpdateAudienceSegmentsCall(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = rmAudienceSegmentBulkUpdateInputV1; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/audience-segments" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call bulkUpdateAudienceSegmentsValidateBeforeCall(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling bulkUpdateAudienceSegments(Async)"); + } + + // verify the required parameter 'rmAudienceSegmentBulkUpdateInputV1' is set + if (rmAudienceSegmentBulkUpdateInputV1 == null) { + throw new ApiException("Missing the required parameter 'rmAudienceSegmentBulkUpdateInputV1' when calling bulkUpdateAudienceSegments(Async)"); + } + + return bulkUpdateAudienceSegmentsCall(accountId, rmAudienceSegmentBulkUpdateInputV1, _callback); + + } + + /** + * + * Updates the properties of all segments with a valid configuration, and returns the full segments. For those that cannot be updated, one or multiple errors are returned. + * @param accountId Account id (required) + * @param rmAudienceSegmentBulkUpdateInputV1 Segment Update request (required) + * @return RmAudienceSegmentEntityV1ListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public RmAudienceSegmentEntityV1ListResponse bulkUpdateAudienceSegments(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1) throws ApiException { + ApiResponse localVarResp = bulkUpdateAudienceSegmentsWithHttpInfo(accountId, rmAudienceSegmentBulkUpdateInputV1); + return localVarResp.getData(); + } + + /** + * + * Updates the properties of all segments with a valid configuration, and returns the full segments. For those that cannot be updated, one or multiple errors are returned. + * @param accountId Account id (required) + * @param rmAudienceSegmentBulkUpdateInputV1 Segment Update request (required) + * @return ApiResponse<RmAudienceSegmentEntityV1ListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public ApiResponse bulkUpdateAudienceSegmentsWithHttpInfo(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1) throws ApiException { + okhttp3.Call localVarCall = bulkUpdateAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkUpdateInputV1, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Updates the properties of all segments with a valid configuration, and returns the full segments. For those that cannot be updated, one or multiple errors are returned. + * @param accountId Account id (required) + * @param rmAudienceSegmentBulkUpdateInputV1 Segment Update request (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call bulkUpdateAudienceSegmentsAsync(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = bulkUpdateAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkUpdateInputV1, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteContactListIdentifiers + * @param audienceSegmentId The id of the contact list audience-segment to amend, we only accept external Id here (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 The Contact List identifiers were deleted -
403 Forbidden -
+ */ + public okhttp3.Call deleteContactListIdentifiersCall(Long audienceSegmentId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/audience-segments/{audience-segment-id}/contact-list/clear" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteContactListIdentifiersValidateBeforeCall(Long audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling deleteContactListIdentifiers(Async)"); + } + + return deleteContactListIdentifiersCall(audienceSegmentId, _callback); + + } + + /** + * + * Delete all identifiers from a retail-media contact list audience-segment, with external audience segment id. + * @param audienceSegmentId The id of the contact list audience-segment to amend, we only accept external Id here (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 The Contact List identifiers were deleted -
403 Forbidden -
+ */ + public void deleteContactListIdentifiers(Long audienceSegmentId) throws ApiException { + deleteContactListIdentifiersWithHttpInfo(audienceSegmentId); + } + + /** + * + * Delete all identifiers from a retail-media contact list audience-segment, with external audience segment id. + * @param audienceSegmentId The id of the contact list audience-segment to amend, we only accept external Id here (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 The Contact List identifiers were deleted -
403 Forbidden -
+ */ + public ApiResponse deleteContactListIdentifiersWithHttpInfo(Long audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * Delete all identifiers from a retail-media contact list audience-segment, with external audience segment id. + * @param audienceSegmentId The id of the contact list audience-segment to amend, we only accept external Id here (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 The Contact List identifiers were deleted -
403 Forbidden -
+ */ + public okhttp3.Call deleteContactListIdentifiersAsync(Long audienceSegmentId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteContactListIdentifiersValidateBeforeCall(audienceSegmentId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAudienceSegmentContactListStatistics + * @param accountId Account Id (required) + * @param audienceSegmentId Segment Id. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call getAudienceSegmentContactListStatisticsCall(String accountId, String audienceSegmentId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/audience-segments/{audience-segment-id}/contact-list" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())) + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAudienceSegmentContactListStatisticsValidateBeforeCall(String accountId, String audienceSegmentId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling getAudienceSegmentContactListStatistics(Async)"); + } + + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling getAudienceSegmentContactListStatistics(Async)"); + } + + return getAudienceSegmentContactListStatisticsCall(accountId, audienceSegmentId, _callback); + + } + + /** + * + * Returns the statistics of a contact list segment. + * @param accountId Account Id (required) + * @param audienceSegmentId Segment Id. (required) + * @return RmContactListStatisticsEntityV1Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public RmContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(String accountId, String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = getAudienceSegmentContactListStatisticsWithHttpInfo(accountId, audienceSegmentId); + return localVarResp.getData(); + } + + /** + * + * Returns the statistics of a contact list segment. + * @param accountId Account Id (required) + * @param audienceSegmentId Segment Id. (required) + * @return ApiResponse<RmContactListStatisticsEntityV1Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public ApiResponse getAudienceSegmentContactListStatisticsWithHttpInfo(String accountId, String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = getAudienceSegmentContactListStatisticsValidateBeforeCall(accountId, audienceSegmentId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Returns the statistics of a contact list segment. + * @param accountId Account Id (required) + * @param audienceSegmentId Segment Id. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call getAudienceSegmentContactListStatisticsAsync(String accountId, String audienceSegmentId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAudienceSegmentContactListStatisticsValidateBeforeCall(accountId, audienceSegmentId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for searchAudienceSegments + * @param accountId Account Id (required) + * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call searchAudienceSegmentsCall(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = rmAudienceSegmentSearchInputV1; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/audience-segments/search" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchAudienceSegmentsValidateBeforeCall(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling searchAudienceSegments(Async)"); + } + + // verify the required parameter 'rmAudienceSegmentSearchInputV1' is set + if (rmAudienceSegmentSearchInputV1 == null) { + throw new ApiException("Missing the required parameter 'rmAudienceSegmentSearchInputV1' when calling searchAudienceSegments(Async)"); + } + + return searchAudienceSegmentsCall(accountId, rmAudienceSegmentSearchInputV1, limit, offset, _callback); + + } + + /** + * + * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * @param accountId Account Id (required) + * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @return RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset) throws ApiException { + ApiResponse localVarResp = searchAudienceSegmentsWithHttpInfo(accountId, rmAudienceSegmentSearchInputV1, limit, offset); + return localVarResp.getData(); + } + + /** + * + * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * @param accountId Account Id (required) + * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @return ApiResponse<RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public ApiResponse searchAudienceSegmentsWithHttpInfo(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset) throws ApiException { + okhttp3.Call localVarCall = searchAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentSearchInputV1, limit, offset, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * @param accountId Account Id (required) + * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call searchAudienceSegmentsAsync(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = searchAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentSearchInputV1, limit, offset, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for searchAudiences + * @param accountId Account Id (required) + * @param rmAudienceSearchInputV1 Audience search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call searchAudiencesCall(String accountId, RmAudienceSearchInputV1 rmAudienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = rmAudienceSearchInputV1; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/audiences/search" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchAudiencesValidateBeforeCall(String accountId, RmAudienceSearchInputV1 rmAudienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling searchAudiences(Async)"); + } + + // verify the required parameter 'rmAudienceSearchInputV1' is set + if (rmAudienceSearchInputV1 == null) { + throw new ApiException("Missing the required parameter 'rmAudienceSearchInputV1' when calling searchAudiences(Async)"); + } + + return searchAudiencesCall(accountId, rmAudienceSearchInputV1, limit, offset, _callback); + + } + + /** + * + * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. + * @param accountId Account Id (required) + * @param rmAudienceSearchInputV1 Audience search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @return RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse searchAudiences(String accountId, RmAudienceSearchInputV1 rmAudienceSearchInputV1, Integer limit, Integer offset) throws ApiException { + ApiResponse localVarResp = searchAudiencesWithHttpInfo(accountId, rmAudienceSearchInputV1, limit, offset); + return localVarResp.getData(); + } + + /** + * + * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. + * @param accountId Account Id (required) + * @param rmAudienceSearchInputV1 Audience search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @return ApiResponse<RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public ApiResponse searchAudiencesWithHttpInfo(String accountId, RmAudienceSearchInputV1 rmAudienceSearchInputV1, Integer limit, Integer offset) throws ApiException { + okhttp3.Call localVarCall = searchAudiencesValidateBeforeCall(accountId, rmAudienceSearchInputV1, limit, offset, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. + * @param accountId Account Id (required) + * @param rmAudienceSearchInputV1 Audience search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
+ */ + public okhttp3.Call searchAudiencesAsync(String accountId, RmAudienceSearchInputV1 rmAudienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = searchAudiencesValidateBeforeCall(accountId, rmAudienceSearchInputV1, limit, offset, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateContactListIdentifiers + * @param audienceSegmentId The id of the contact list audience-segment to amend, we only accept external Id here (required) + * @param retailMediaContactlistAmendmentRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
+ */ + public okhttp3.Call updateContactListIdentifiersCall(Long audienceSegmentId, RetailMediaContactlistAmendmentRequest retailMediaContactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = retailMediaContactlistAmendmentRequest; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/audience-segments/{audience-segment-id}/contact-list/add-remove" + .replace("{" + "audience-segment-id" + "}", localVarApiClient.escapeString(audienceSegmentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateContactListIdentifiersValidateBeforeCall(Long audienceSegmentId, RetailMediaContactlistAmendmentRequest retailMediaContactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceSegmentId' is set + if (audienceSegmentId == null) { + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling updateContactListIdentifiers(Async)"); + } + + // verify the required parameter 'retailMediaContactlistAmendmentRequest' is set + if (retailMediaContactlistAmendmentRequest == null) { + throw new ApiException("Missing the required parameter 'retailMediaContactlistAmendmentRequest' when calling updateContactListIdentifiers(Async)"); + } + + return updateContactListIdentifiersCall(audienceSegmentId, retailMediaContactlistAmendmentRequest, _callback); + + } + + /** + * + * Add/remove identifiers to or from a retail-media contact list audience-segment, with external audience segment id. + * @param audienceSegmentId The id of the contact list audience-segment to amend, we only accept external Id here (required) + * @param retailMediaContactlistAmendmentRequest (required) + * @return RetailMediaContactlistOperation + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
+ */ + public RetailMediaContactlistOperation updateContactListIdentifiers(Long audienceSegmentId, RetailMediaContactlistAmendmentRequest retailMediaContactlistAmendmentRequest) throws ApiException { + ApiResponse localVarResp = updateContactListIdentifiersWithHttpInfo(audienceSegmentId, retailMediaContactlistAmendmentRequest); + return localVarResp.getData(); + } + + /** + * + * Add/remove identifiers to or from a retail-media contact list audience-segment, with external audience segment id. + * @param audienceSegmentId The id of the contact list audience-segment to amend, we only accept external Id here (required) + * @param retailMediaContactlistAmendmentRequest (required) + * @return ApiResponse<RetailMediaContactlistOperation> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
+ */ + public ApiResponse updateContactListIdentifiersWithHttpInfo(Long audienceSegmentId, RetailMediaContactlistAmendmentRequest retailMediaContactlistAmendmentRequest) throws ApiException { + okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, retailMediaContactlistAmendmentRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add/remove identifiers to or from a retail-media contact list audience-segment, with external audience segment id. + * @param audienceSegmentId The id of the contact list audience-segment to amend, we only accept external Id here (required) + * @param retailMediaContactlistAmendmentRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 Summary of created request -
403 Forbidden -
+ */ + public okhttp3.Call updateContactListIdentifiersAsync(Long audienceSegmentId, RetailMediaContactlistAmendmentRequest retailMediaContactlistAmendmentRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateContactListIdentifiersValidateBeforeCall(audienceSegmentId, retailMediaContactlistAmendmentRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/BalanceApi.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/BalanceApi.java new file mode 100644 index 00000000..5d070fe2 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/BalanceApi.java @@ -0,0 +1,1231 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.api; + +import com.criteo.api.retailmedia.v2024_10.ApiCallback; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.ApiResponse; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.Pair; +import com.criteo.api.retailmedia.v2024_10.ProgressRequestBody; +import com.criteo.api.retailmedia.v2024_10.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.criteo.api.retailmedia.v2024_10.model.AddFundsToBalanceV2Request; +import com.criteo.api.retailmedia.v2024_10.model.BalanceCampaign202110PagedListResponse; +import com.criteo.api.retailmedia.v2024_10.model.BalanceResponseV2Response; +import com.criteo.api.retailmedia.v2024_10.model.ChangeDatesOfBalanceV2Request; +import com.criteo.api.retailmedia.v2024_10.model.CreateBalanceV2Request; +import com.criteo.api.retailmedia.v2024_10.model.PageOfBalanceHistoryChangeDataCaptureV1; +import com.criteo.api.retailmedia.v2024_10.model.PagedResourceCollectionOutcomeOfBalanceResponseV2; +import com.criteo.api.retailmedia.v2024_10.model.UpdateBalanceModelV2Request; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class BalanceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public BalanceApi() { + this(Configuration.getDefaultApiClient()); + } + + public BalanceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getApi202110ExternalBalanceCampaignsByBalanceId + * @param balanceId The balance to get campaigns from (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) + * @param pageSize The maximum number of items you would like to receive in this request (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getApi202110ExternalBalanceCampaignsByBalanceIdCall(String balanceId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/balances/{balance-id}/campaigns" + .replace("{" + "balance-id" + "}", localVarApiClient.escapeString(balanceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limitToId != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); + } + + if (pageIndex != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); + } + + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getApi202110ExternalBalanceCampaignsByBalanceIdValidateBeforeCall(String balanceId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'balanceId' is set + if (balanceId == null) { + throw new ApiException("Missing the required parameter 'balanceId' when calling getApi202110ExternalBalanceCampaignsByBalanceId(Async)"); + } + + return getApi202110ExternalBalanceCampaignsByBalanceIdCall(balanceId, limitToId, pageIndex, pageSize, _callback); + + } + + /** + * + * Gets page of campaigns for the given balanceId + * @param balanceId The balance to get campaigns from (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) + * @param pageSize The maximum number of items you would like to receive in this request (optional) + * @return BalanceCampaign202110PagedListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public BalanceCampaign202110PagedListResponse getApi202110ExternalBalanceCampaignsByBalanceId(String balanceId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { + ApiResponse localVarResp = getApi202110ExternalBalanceCampaignsByBalanceIdWithHttpInfo(balanceId, limitToId, pageIndex, pageSize); + return localVarResp.getData(); + } + + /** + * + * Gets page of campaigns for the given balanceId + * @param balanceId The balance to get campaigns from (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) + * @param pageSize The maximum number of items you would like to receive in this request (optional) + * @return ApiResponse<BalanceCampaign202110PagedListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse getApi202110ExternalBalanceCampaignsByBalanceIdWithHttpInfo(String balanceId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { + okhttp3.Call localVarCall = getApi202110ExternalBalanceCampaignsByBalanceIdValidateBeforeCall(balanceId, limitToId, pageIndex, pageSize, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Gets page of campaigns for the given balanceId + * @param balanceId The balance to get campaigns from (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) + * @param pageSize The maximum number of items you would like to receive in this request (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getApi202110ExternalBalanceCampaignsByBalanceIdAsync(String balanceId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApi202110ExternalBalanceCampaignsByBalanceIdValidateBeforeCall(balanceId, limitToId, pageIndex, pageSize, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getApiV2ExternalAccountBalancesByAccountId + * @param accountId The account to get balances for (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) + * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getApiV2ExternalAccountBalancesByAccountIdCall(String accountId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/balances" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limitToId != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); + } + + if (pageIndex != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); + } + + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getApiV2ExternalAccountBalancesByAccountIdValidateBeforeCall(String accountId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling getApiV2ExternalAccountBalancesByAccountId(Async)"); + } + + return getApiV2ExternalAccountBalancesByAccountIdCall(accountId, limitToId, pageIndex, pageSize, _callback); + + } + + /** + * + * Gets page of balance objects for the given account id + * @param accountId The account to get balances for (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) + * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) + * @return PagedResourceCollectionOutcomeOfBalanceResponseV2 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public PagedResourceCollectionOutcomeOfBalanceResponseV2 getApiV2ExternalAccountBalancesByAccountId(String accountId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { + ApiResponse localVarResp = getApiV2ExternalAccountBalancesByAccountIdWithHttpInfo(accountId, limitToId, pageIndex, pageSize); + return localVarResp.getData(); + } + + /** + * + * Gets page of balance objects for the given account id + * @param accountId The account to get balances for (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) + * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) + * @return ApiResponse<PagedResourceCollectionOutcomeOfBalanceResponseV2> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse getApiV2ExternalAccountBalancesByAccountIdWithHttpInfo(String accountId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { + okhttp3.Call localVarCall = getApiV2ExternalAccountBalancesByAccountIdValidateBeforeCall(accountId, limitToId, pageIndex, pageSize, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Gets page of balance objects for the given account id + * @param accountId The account to get balances for (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) + * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getApiV2ExternalAccountBalancesByAccountIdAsync(String accountId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApiV2ExternalAccountBalancesByAccountIdValidateBeforeCall(accountId, limitToId, pageIndex, pageSize, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getApiV2ExternalAccountByAccountIdBalancesbalanceId + * @param accountId The account of the balance (required) + * @param balanceId The balance id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getApiV2ExternalAccountByAccountIdBalancesbalanceIdCall(String accountId, String balanceId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/balances/{balance-id}" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())) + .replace("{" + "balance-id" + "}", localVarApiClient.escapeString(balanceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getApiV2ExternalAccountByAccountIdBalancesbalanceIdValidateBeforeCall(String accountId, String balanceId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling getApiV2ExternalAccountByAccountIdBalancesbalanceId(Async)"); + } + + // verify the required parameter 'balanceId' is set + if (balanceId == null) { + throw new ApiException("Missing the required parameter 'balanceId' when calling getApiV2ExternalAccountByAccountIdBalancesbalanceId(Async)"); + } + + return getApiV2ExternalAccountByAccountIdBalancesbalanceIdCall(accountId, balanceId, _callback); + + } + + /** + * + * Get a balance for the given account id and balance id + * @param accountId The account of the balance (required) + * @param balanceId The balance id (required) + * @return BalanceResponseV2Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public BalanceResponseV2Response getApiV2ExternalAccountByAccountIdBalancesbalanceId(String accountId, String balanceId) throws ApiException { + ApiResponse localVarResp = getApiV2ExternalAccountByAccountIdBalancesbalanceIdWithHttpInfo(accountId, balanceId); + return localVarResp.getData(); + } + + /** + * + * Get a balance for the given account id and balance id + * @param accountId The account of the balance (required) + * @param balanceId The balance id (required) + * @return ApiResponse<BalanceResponseV2Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse getApiV2ExternalAccountByAccountIdBalancesbalanceIdWithHttpInfo(String accountId, String balanceId) throws ApiException { + okhttp3.Call localVarCall = getApiV2ExternalAccountByAccountIdBalancesbalanceIdValidateBeforeCall(accountId, balanceId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Get a balance for the given account id and balance id + * @param accountId The account of the balance (required) + * @param balanceId The balance id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getApiV2ExternalAccountByAccountIdBalancesbalanceIdAsync(String accountId, String balanceId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApiV2ExternalAccountByAccountIdBalancesbalanceIdValidateBeforeCall(accountId, balanceId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getBalanceHistory + * @param balanceId Balance id. (required) + * @param offset The (zero-based) starting offset in the collection. (optional, default to 0) + * @param limit The number of elements to be returned. (optional, default to 25) + * @param limitToChangeTypes Comma separated change types string that will be queried. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getBalanceHistoryCall(String balanceId, Integer offset, Integer limit, String limitToChangeTypes, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/balances/{balanceId}/history" + .replace("{" + "balanceId" + "}", localVarApiClient.escapeString(balanceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (limitToChangeTypes != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limitToChangeTypes", limitToChangeTypes)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getBalanceHistoryValidateBeforeCall(String balanceId, Integer offset, Integer limit, String limitToChangeTypes, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'balanceId' is set + if (balanceId == null) { + throw new ApiException("Missing the required parameter 'balanceId' when calling getBalanceHistory(Async)"); + } + + return getBalanceHistoryCall(balanceId, offset, limit, limitToChangeTypes, _callback); + + } + + /** + * + * Gets the balance's historical change data. + * @param balanceId Balance id. (required) + * @param offset The (zero-based) starting offset in the collection. (optional, default to 0) + * @param limit The number of elements to be returned. (optional, default to 25) + * @param limitToChangeTypes Comma separated change types string that will be queried. (optional) + * @return PageOfBalanceHistoryChangeDataCaptureV1 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public PageOfBalanceHistoryChangeDataCaptureV1 getBalanceHistory(String balanceId, Integer offset, Integer limit, String limitToChangeTypes) throws ApiException { + ApiResponse localVarResp = getBalanceHistoryWithHttpInfo(balanceId, offset, limit, limitToChangeTypes); + return localVarResp.getData(); + } + + /** + * + * Gets the balance's historical change data. + * @param balanceId Balance id. (required) + * @param offset The (zero-based) starting offset in the collection. (optional, default to 0) + * @param limit The number of elements to be returned. (optional, default to 25) + * @param limitToChangeTypes Comma separated change types string that will be queried. (optional) + * @return ApiResponse<PageOfBalanceHistoryChangeDataCaptureV1> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse getBalanceHistoryWithHttpInfo(String balanceId, Integer offset, Integer limit, String limitToChangeTypes) throws ApiException { + okhttp3.Call localVarCall = getBalanceHistoryValidateBeforeCall(balanceId, offset, limit, limitToChangeTypes, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Gets the balance's historical change data. + * @param balanceId Balance id. (required) + * @param offset The (zero-based) starting offset in the collection. (optional, default to 0) + * @param limit The number of elements to be returned. (optional, default to 25) + * @param limitToChangeTypes Comma separated change types string that will be queried. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getBalanceHistoryAsync(String balanceId, Integer offset, Integer limit, String limitToChangeTypes, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getBalanceHistoryValidateBeforeCall(balanceId, offset, limit, limitToChangeTypes, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchApiV2ExternalAccountByAccountIdBalancesbalanceId + * @param accountId The account of the balance (required) + * @param balanceId The balance to change the dates (required) + * @param updateBalanceModelV2Request An object that represents the available options to modify a balance. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call patchApiV2ExternalAccountByAccountIdBalancesbalanceIdCall(String accountId, String balanceId, UpdateBalanceModelV2Request updateBalanceModelV2Request, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateBalanceModelV2Request; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/balances/{balance-id}" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())) + .replace("{" + "balance-id" + "}", localVarApiClient.escapeString(balanceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchApiV2ExternalAccountByAccountIdBalancesbalanceIdValidateBeforeCall(String accountId, String balanceId, UpdateBalanceModelV2Request updateBalanceModelV2Request, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling patchApiV2ExternalAccountByAccountIdBalancesbalanceId(Async)"); + } + + // verify the required parameter 'balanceId' is set + if (balanceId == null) { + throw new ApiException("Missing the required parameter 'balanceId' when calling patchApiV2ExternalAccountByAccountIdBalancesbalanceId(Async)"); + } + + // verify the required parameter 'updateBalanceModelV2Request' is set + if (updateBalanceModelV2Request == null) { + throw new ApiException("Missing the required parameter 'updateBalanceModelV2Request' when calling patchApiV2ExternalAccountByAccountIdBalancesbalanceId(Async)"); + } + + return patchApiV2ExternalAccountByAccountIdBalancesbalanceIdCall(accountId, balanceId, updateBalanceModelV2Request, _callback); + + } + + /** + * + * Modify a balance for the given account id + * @param accountId The account of the balance (required) + * @param balanceId The balance to change the dates (required) + * @param updateBalanceModelV2Request An object that represents the available options to modify a balance. (required) + * @return BalanceResponseV2Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public BalanceResponseV2Response patchApiV2ExternalAccountByAccountIdBalancesbalanceId(String accountId, String balanceId, UpdateBalanceModelV2Request updateBalanceModelV2Request) throws ApiException { + ApiResponse localVarResp = patchApiV2ExternalAccountByAccountIdBalancesbalanceIdWithHttpInfo(accountId, balanceId, updateBalanceModelV2Request); + return localVarResp.getData(); + } + + /** + * + * Modify a balance for the given account id + * @param accountId The account of the balance (required) + * @param balanceId The balance to change the dates (required) + * @param updateBalanceModelV2Request An object that represents the available options to modify a balance. (required) + * @return ApiResponse<BalanceResponseV2Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse patchApiV2ExternalAccountByAccountIdBalancesbalanceIdWithHttpInfo(String accountId, String balanceId, UpdateBalanceModelV2Request updateBalanceModelV2Request) throws ApiException { + okhttp3.Call localVarCall = patchApiV2ExternalAccountByAccountIdBalancesbalanceIdValidateBeforeCall(accountId, balanceId, updateBalanceModelV2Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Modify a balance for the given account id + * @param accountId The account of the balance (required) + * @param balanceId The balance to change the dates (required) + * @param updateBalanceModelV2Request An object that represents the available options to modify a balance. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call patchApiV2ExternalAccountByAccountIdBalancesbalanceIdAsync(String accountId, String balanceId, UpdateBalanceModelV2Request updateBalanceModelV2Request, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchApiV2ExternalAccountByAccountIdBalancesbalanceIdValidateBeforeCall(accountId, balanceId, updateBalanceModelV2Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId + * @param accountId The account of the balance (required) + * @param balanceId The balance to add funds to (required) + * @param addFundsToBalanceV2Request An object that represents the available options of adding funds to a balance. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceIdCall(String accountId, String balanceId, AddFundsToBalanceV2Request addFundsToBalanceV2Request, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addFundsToBalanceV2Request; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/balances/{balance-id}/add-funds" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())) + .replace("{" + "balance-id" + "}", localVarApiClient.escapeString(balanceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceIdValidateBeforeCall(String accountId, String balanceId, AddFundsToBalanceV2Request addFundsToBalanceV2Request, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId(Async)"); + } + + // verify the required parameter 'balanceId' is set + if (balanceId == null) { + throw new ApiException("Missing the required parameter 'balanceId' when calling postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId(Async)"); + } + + // verify the required parameter 'addFundsToBalanceV2Request' is set + if (addFundsToBalanceV2Request == null) { + throw new ApiException("Missing the required parameter 'addFundsToBalanceV2Request' when calling postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId(Async)"); + } + + return postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceIdCall(accountId, balanceId, addFundsToBalanceV2Request, _callback); + + } + + /** + * + * Add funds to a balance for the given account id + * @param accountId The account of the balance (required) + * @param balanceId The balance to add funds to (required) + * @param addFundsToBalanceV2Request An object that represents the available options of adding funds to a balance. (required) + * @return BalanceResponseV2Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public BalanceResponseV2Response postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceId(String accountId, String balanceId, AddFundsToBalanceV2Request addFundsToBalanceV2Request) throws ApiException { + ApiResponse localVarResp = postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceIdWithHttpInfo(accountId, balanceId, addFundsToBalanceV2Request); + return localVarResp.getData(); + } + + /** + * + * Add funds to a balance for the given account id + * @param accountId The account of the balance (required) + * @param balanceId The balance to add funds to (required) + * @param addFundsToBalanceV2Request An object that represents the available options of adding funds to a balance. (required) + * @return ApiResponse<BalanceResponseV2Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceIdWithHttpInfo(String accountId, String balanceId, AddFundsToBalanceV2Request addFundsToBalanceV2Request) throws ApiException { + okhttp3.Call localVarCall = postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceIdValidateBeforeCall(accountId, balanceId, addFundsToBalanceV2Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Add funds to a balance for the given account id + * @param accountId The account of the balance (required) + * @param balanceId The balance to add funds to (required) + * @param addFundsToBalanceV2Request An object that represents the available options of adding funds to a balance. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceIdAsync(String accountId, String balanceId, AddFundsToBalanceV2Request addFundsToBalanceV2Request, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postApiV2ExternalAccountAddFundsByAccountIdBalancesbalanceIdValidateBeforeCall(accountId, balanceId, addFundsToBalanceV2Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for postApiV2ExternalAccountBalancesByAccountId + * @param accountId The account to create balances for (required) + * @param createBalanceV2Request An object that represents the available options to set when creating a Retail Media Balance (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public okhttp3.Call postApiV2ExternalAccountBalancesByAccountIdCall(String accountId, CreateBalanceV2Request createBalanceV2Request, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createBalanceV2Request; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/balances" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postApiV2ExternalAccountBalancesByAccountIdValidateBeforeCall(String accountId, CreateBalanceV2Request createBalanceV2Request, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling postApiV2ExternalAccountBalancesByAccountId(Async)"); + } + + // verify the required parameter 'createBalanceV2Request' is set + if (createBalanceV2Request == null) { + throw new ApiException("Missing the required parameter 'createBalanceV2Request' when calling postApiV2ExternalAccountBalancesByAccountId(Async)"); + } + + return postApiV2ExternalAccountBalancesByAccountIdCall(accountId, createBalanceV2Request, _callback); + + } + + /** + * + * Create balance for the given account id + * @param accountId The account to create balances for (required) + * @param createBalanceV2Request An object that represents the available options to set when creating a Retail Media Balance (required) + * @return BalanceResponseV2Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public BalanceResponseV2Response postApiV2ExternalAccountBalancesByAccountId(String accountId, CreateBalanceV2Request createBalanceV2Request) throws ApiException { + ApiResponse localVarResp = postApiV2ExternalAccountBalancesByAccountIdWithHttpInfo(accountId, createBalanceV2Request); + return localVarResp.getData(); + } + + /** + * + * Create balance for the given account id + * @param accountId The account to create balances for (required) + * @param createBalanceV2Request An object that represents the available options to set when creating a Retail Media Balance (required) + * @return ApiResponse<BalanceResponseV2Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public ApiResponse postApiV2ExternalAccountBalancesByAccountIdWithHttpInfo(String accountId, CreateBalanceV2Request createBalanceV2Request) throws ApiException { + okhttp3.Call localVarCall = postApiV2ExternalAccountBalancesByAccountIdValidateBeforeCall(accountId, createBalanceV2Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Create balance for the given account id + * @param accountId The account to create balances for (required) + * @param createBalanceV2Request An object that represents the available options to set when creating a Retail Media Balance (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public okhttp3.Call postApiV2ExternalAccountBalancesByAccountIdAsync(String accountId, CreateBalanceV2Request createBalanceV2Request, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postApiV2ExternalAccountBalancesByAccountIdValidateBeforeCall(accountId, createBalanceV2Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId + * @param accountId The account of the balance (required) + * @param balanceId The balance to change the dates (required) + * @param changeDatesOfBalanceV2Request An object that represents the available options to modify schedule of a balance. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceIdCall(String accountId, String balanceId, ChangeDatesOfBalanceV2Request changeDatesOfBalanceV2Request, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = changeDatesOfBalanceV2Request; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/balances/{balance-id}/change-dates" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())) + .replace("{" + "balance-id" + "}", localVarApiClient.escapeString(balanceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceIdValidateBeforeCall(String accountId, String balanceId, ChangeDatesOfBalanceV2Request changeDatesOfBalanceV2Request, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId(Async)"); + } + + // verify the required parameter 'balanceId' is set + if (balanceId == null) { + throw new ApiException("Missing the required parameter 'balanceId' when calling postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId(Async)"); + } + + // verify the required parameter 'changeDatesOfBalanceV2Request' is set + if (changeDatesOfBalanceV2Request == null) { + throw new ApiException("Missing the required parameter 'changeDatesOfBalanceV2Request' when calling postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId(Async)"); + } + + return postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceIdCall(accountId, balanceId, changeDatesOfBalanceV2Request, _callback); + + } + + /** + * + * Change dates of a balance for the given account id + * @param accountId The account of the balance (required) + * @param balanceId The balance to change the dates (required) + * @param changeDatesOfBalanceV2Request An object that represents the available options to modify schedule of a balance. (required) + * @return BalanceResponseV2Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public BalanceResponseV2Response postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceId(String accountId, String balanceId, ChangeDatesOfBalanceV2Request changeDatesOfBalanceV2Request) throws ApiException { + ApiResponse localVarResp = postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceIdWithHttpInfo(accountId, balanceId, changeDatesOfBalanceV2Request); + return localVarResp.getData(); + } + + /** + * + * Change dates of a balance for the given account id + * @param accountId The account of the balance (required) + * @param balanceId The balance to change the dates (required) + * @param changeDatesOfBalanceV2Request An object that represents the available options to modify schedule of a balance. (required) + * @return ApiResponse<BalanceResponseV2Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceIdWithHttpInfo(String accountId, String balanceId, ChangeDatesOfBalanceV2Request changeDatesOfBalanceV2Request) throws ApiException { + okhttp3.Call localVarCall = postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceIdValidateBeforeCall(accountId, balanceId, changeDatesOfBalanceV2Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Change dates of a balance for the given account id + * @param accountId The account of the balance (required) + * @param balanceId The balance to change the dates (required) + * @param changeDatesOfBalanceV2Request An object that represents the available options to modify schedule of a balance. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceIdAsync(String accountId, String balanceId, ChangeDatesOfBalanceV2Request changeDatesOfBalanceV2Request, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postApiV2ExternalAccountChangeDatesByAccountIdBalancesbalanceIdValidateBeforeCall(accountId, balanceId, changeDatesOfBalanceV2Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/CampaignApi.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/CampaignApi.java similarity index 84% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/CampaignApi.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/CampaignApi.java index e761a259..19a15370 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/CampaignApi.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/CampaignApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,75 +11,81 @@ */ -package com.criteo.api.retailmedia.v2023_07.api; +package com.criteo.api.retailmedia.v2024_10.api; -import com.criteo.api.retailmedia.v2023_07.ApiCallback; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.ApiResponse; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.Pair; -import com.criteo.api.retailmedia.v2023_07.ProgressRequestBody; -import com.criteo.api.retailmedia.v2023_07.ProgressResponseBody; +import com.criteo.api.retailmedia.v2024_10.ApiCallback; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.ApiResponse; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.Pair; +import com.criteo.api.retailmedia.v2024_10.ProgressRequestBody; +import com.criteo.api.retailmedia.v2024_10.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import com.criteo.api.retailmedia.v2023_07.model.AddRemoveKeywordsModelRequest; -import com.criteo.api.retailmedia.v2023_07.model.AddToBasketIdsUpdateModel202110Request; -import com.criteo.api.retailmedia.v2023_07.model.AddToBasketTarget202110Request; -import com.criteo.api.retailmedia.v2023_07.model.AddToBasketTarget202110Response; -import com.criteo.api.retailmedia.v2023_07.model.AssetResponse; -import com.criteo.api.retailmedia.v2023_07.model.AuctionLineItemCreateModelRequest; -import com.criteo.api.retailmedia.v2023_07.model.AuctionLineItemPagedListResponse; -import com.criteo.api.retailmedia.v2023_07.model.AuctionLineItemResponse; -import com.criteo.api.retailmedia.v2023_07.model.AuctionLineItemUpdateModelRequest; -import com.criteo.api.retailmedia.v2023_07.model.AudienceIdsUpdateModel202110Request; -import com.criteo.api.retailmedia.v2023_07.model.AudienceTarget202110Request; -import com.criteo.api.retailmedia.v2023_07.model.AudienceTarget202110Response; -import com.criteo.api.retailmedia.v2023_07.model.BalanceCampaign202110ListRequest; -import com.criteo.api.retailmedia.v2023_07.model.BalanceCampaign202110PagedListResponse; -import com.criteo.api.retailmedia.v2023_07.model.Category202204; -import com.criteo.api.retailmedia.v2023_07.model.Category202204ListResponse; -import com.criteo.api.retailmedia.v2023_07.model.CommonLineItemPagedListResponse; -import com.criteo.api.retailmedia.v2023_07.model.CommonLineItemResponse; -import com.criteo.api.retailmedia.v2023_07.model.Creative202110ListResponse; -import com.criteo.api.retailmedia.v2023_07.model.Creative202210ListResponse; -import com.criteo.api.retailmedia.v2023_07.model.Creative202210Response; -import com.criteo.api.retailmedia.v2023_07.model.CreativeCreateModel202207; -import com.criteo.api.retailmedia.v2023_07.model.CreativeUpdateModel202207; -import com.criteo.api.retailmedia.v2023_07.model.ExternalRetailerPages202110; +import com.criteo.api.retailmedia.v2024_10.model.AddRemoveKeywordsModelRequest; +import com.criteo.api.retailmedia.v2024_10.model.AddToBasketIdsUpdateModel202110Request; +import com.criteo.api.retailmedia.v2024_10.model.AddToBasketTarget202110Request; +import com.criteo.api.retailmedia.v2024_10.model.AddToBasketTarget202110Response; +import com.criteo.api.retailmedia.v2024_10.model.AssetResponse; +import com.criteo.api.retailmedia.v2024_10.model.AuctionLineItemCreateModelRequest; +import com.criteo.api.retailmedia.v2024_10.model.AuctionLineItemPagedListResponse; +import com.criteo.api.retailmedia.v2024_10.model.AuctionLineItemResponse; +import com.criteo.api.retailmedia.v2024_10.model.AuctionLineItemUpdateModelRequest; +import com.criteo.api.retailmedia.v2024_10.model.AudienceIdsUpdateModel202110Request; +import com.criteo.api.retailmedia.v2024_10.model.AudienceTarget202110Request; +import com.criteo.api.retailmedia.v2024_10.model.AudienceTarget202110Response; +import com.criteo.api.retailmedia.v2024_10.model.BalanceCampaign202110ListRequest; +import com.criteo.api.retailmedia.v2024_10.model.BalanceCampaign202110PagedListResponse; +import com.criteo.api.retailmedia.v2024_10.model.Category202204; +import com.criteo.api.retailmedia.v2024_10.model.Category202204ListResponse; +import com.criteo.api.retailmedia.v2024_10.model.CommonLineItemPagedListResponse; +import com.criteo.api.retailmedia.v2024_10.model.CommonLineItemResponse; +import com.criteo.api.retailmedia.v2024_10.model.Creative202110ListResponse; +import com.criteo.api.retailmedia.v2024_10.model.Creative202210Response; +import com.criteo.api.retailmedia.v2024_10.model.CreativeCreateModel202207; +import com.criteo.api.retailmedia.v2024_10.model.CreativeUpdateModel202207; +import com.criteo.api.retailmedia.v2024_10.model.CreativeV2ListResponse; +import com.criteo.api.retailmedia.v2024_10.model.CreativeV2Response; +import com.criteo.api.retailmedia.v2024_10.model.ExternalRetailerPages202110; import java.io.File; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiPageResponseOfBrand; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiPageResponseOfCampaignV202301; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiPageResponseOfRetailer; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiRequestOfCatalogRequest; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiSingleResponseOfCampaignV202301; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiSingleResponseOfCatalogStatus; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiSingleResponseOfLineItemBidMultipliers; -import com.criteo.api.retailmedia.v2023_07.model.KeywordTarget202110Request; -import com.criteo.api.retailmedia.v2023_07.model.KeywordTarget202110Response; -import com.criteo.api.retailmedia.v2023_07.model.KeywordsModelResponse; -import com.criteo.api.retailmedia.v2023_07.model.LineItemBidMultipliersRequest; -import com.criteo.api.retailmedia.v2023_07.model.LineItemBidMultipliersResponse; -import com.criteo.api.retailmedia.v2023_07.model.PostCampaignV202301; -import com.criteo.api.retailmedia.v2023_07.model.PreferredLineItem202110PagedListResponse; -import com.criteo.api.retailmedia.v2023_07.model.PreferredLineItem202110Response; -import com.criteo.api.retailmedia.v2023_07.model.PreferredLineItemCreateModel202110Request; -import com.criteo.api.retailmedia.v2023_07.model.PreferredLineItemUpdateModel202110Request; -import com.criteo.api.retailmedia.v2023_07.model.PromotedProduct202110ListRequest; -import com.criteo.api.retailmedia.v2023_07.model.PromotedProduct202110PagedListResponse; -import com.criteo.api.retailmedia.v2023_07.model.ProposalStatusModelResponse; -import com.criteo.api.retailmedia.v2023_07.model.PutCampaignV202301; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOutcome; -import com.criteo.api.retailmedia.v2023_07.model.SetBidsModelRequest; -import com.criteo.api.retailmedia.v2023_07.model.StoreIdsUpdateModel202110Request; -import com.criteo.api.retailmedia.v2023_07.model.StoreTarget202110Request; -import com.criteo.api.retailmedia.v2023_07.model.StoreTarget202110Response; -import com.criteo.api.retailmedia.v2023_07.model.TemplateListResponse; -import com.criteo.api.retailmedia.v2023_07.model.TemplateResponse; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiPageResponseOfBrand; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiPageResponseOfCampaignV202301; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiPageResponseOfRetailer; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiRequestOfCatalogRequest; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiSingleResponseOfCampaignV202301; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiSingleResponseOfCatalogStatus; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiSingleResponseOfLineItemBidMultipliersV2; +import com.criteo.api.retailmedia.v2024_10.model.KeywordTarget202110Request; +import com.criteo.api.retailmedia.v2024_10.model.KeywordTarget202110Response; +import com.criteo.api.retailmedia.v2024_10.model.KeywordsModelResponse; +import com.criteo.api.retailmedia.v2024_10.model.LineItemBidMultipliersV2Request; +import com.criteo.api.retailmedia.v2024_10.model.LineItemBidMultipliersV2Response; +import com.criteo.api.retailmedia.v2024_10.model.PostCampaignV202301; +import com.criteo.api.retailmedia.v2024_10.model.PreferredLineItemCreateModelV2Request; +import com.criteo.api.retailmedia.v2024_10.model.PreferredLineItemUpdateModelV2Request; +import com.criteo.api.retailmedia.v2024_10.model.PreferredLineItemV2PagedListResponse; +import com.criteo.api.retailmedia.v2024_10.model.PreferredLineItemV2Response; +import com.criteo.api.retailmedia.v2024_10.model.ProductResourceOutcome; +import com.criteo.api.retailmedia.v2024_10.model.PromotedProductResourceCollectionInput; +import com.criteo.api.retailmedia.v2024_10.model.PromotedProductResourceCollectionOutcome; +import com.criteo.api.retailmedia.v2024_10.model.ProposalStatusModelResponse; +import com.criteo.api.retailmedia.v2024_10.model.PutCampaignV202301; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOutcome; +import com.criteo.api.retailmedia.v2024_10.model.SetBidsModelRequest; +import com.criteo.api.retailmedia.v2024_10.model.StoreIdsUpdateModel202110Request; +import com.criteo.api.retailmedia.v2024_10.model.StoreTarget202110Request; +import com.criteo.api.retailmedia.v2024_10.model.StoreTarget202110Response; +import com.criteo.api.retailmedia.v2024_10.model.TemplateListResponse; +import com.criteo.api.retailmedia.v2024_10.model.TemplateResponse; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceInputOfCampaignBudgetOverrides; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceInputOfLineItemBudgetOverrides; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOutcomeOfCampaignBudgetOverrides; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOutcomeOfLineItemBudgetOverrides; import java.lang.reflect.Type; import java.util.ArrayList; @@ -156,7 +162,7 @@ public okhttp3.Call addRemoveKeywordsCall(String id, AddRemoveKeywordsModelReque Object localVarPostBody = addRemoveKeywordsModelRequest; // create path and map variables - String localVarPath = "/2023-07/retail-media/line-items/{id}/keywords/add-remove" + String localVarPath = "/2024-10/retail-media/line-items/{id}/keywords/add-remove" .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -257,6 +263,138 @@ public okhttp3.Call addRemoveKeywordsAsync(String id, AddRemoveKeywordsModelRequ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for appendPromotedProducts + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Promoted products appended to the line item -
400 Invalid request body -
403 Invalid external line item ID -
+ */ + public okhttp3.Call appendPromotedProductsCall(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = promotedProductResourceCollectionInput; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/line-items/{line-item-id}/products/append" + .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call appendPromotedProductsValidateBeforeCall(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'lineItemId' is set + if (lineItemId == null) { + throw new ApiException("Missing the required parameter 'lineItemId' when calling appendPromotedProducts(Async)"); + } + + return appendPromotedProductsCall(lineItemId, promotedProductResourceCollectionInput, _callback); + + } + + /** + * + * Append a collection of promoted products to a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Promoted products appended to the line item -
400 Invalid request body -
403 Invalid external line item ID -
+ */ + public void appendPromotedProducts(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput) throws ApiException { + appendPromotedProductsWithHttpInfo(lineItemId, promotedProductResourceCollectionInput); + } + + /** + * + * Append a collection of promoted products to a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Promoted products appended to the line item -
400 Invalid request body -
403 Invalid external line item ID -
+ */ + public ApiResponse appendPromotedProductsWithHttpInfo(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput) throws ApiException { + okhttp3.Call localVarCall = appendPromotedProductsValidateBeforeCall(lineItemId, promotedProductResourceCollectionInput, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * Append a collection of promoted products to a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Promoted products appended to the line item -
400 Invalid request body -
403 Invalid external line item ID -
+ */ + public okhttp3.Call appendPromotedProductsAsync(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = appendPromotedProductsValidateBeforeCall(lineItemId, promotedProductResourceCollectionInput, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } /** * Build call for createAsset * @param assetFile The asset binary content (required) @@ -286,7 +424,7 @@ public okhttp3.Call createAssetCall(File assetFile, final ApiCallback _callback) Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/assets"; + String localVarPath = "/2024-10/retail-media/assets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -387,19 +525,21 @@ public okhttp3.Call createAssetAsync(File assetFile, final ApiCallback Status Code Description Response Headers - 200 Success - - 400 Bad Request - + 204 Promoted products removed from the line item - + 400 Invalid request body - + 403 Invalid external line item ID - */ - public okhttp3.Call fetchKeywordsCall(String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePromotedProductsCall(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -413,11 +553,11 @@ public okhttp3.Call fetchKeywordsCall(String id, final ApiCallback _callback) th basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = promotedProductResourceCollectionInput; // create path and map variables - String localVarPath = "/2023-07/retail-media/line-items/{id}/keywords" - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + String localVarPath = "/2024-10/retail-media/line-items/{line-item-id}/products/delete" + .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -434,6 +574,7 @@ public okhttp3.Call fetchKeywordsCall(String id, final ApiCallback _callback) th } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -441,80 +582,82 @@ public okhttp3.Call fetchKeywordsCall(String id, final ApiCallback _callback) th } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call fetchKeywordsValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling fetchKeywords(Async)"); + private okhttp3.Call deletePromotedProductsValidateBeforeCall(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'lineItemId' is set + if (lineItemId == null) { + throw new ApiException("Missing the required parameter 'lineItemId' when calling deletePromotedProducts(Async)"); } - return fetchKeywordsCall(id, _callback); + return deletePromotedProductsCall(lineItemId, promotedProductResourceCollectionInput, _callback); } /** * - * Fetch keywords associated with the specified line item - * @param id ID of the line item (required) - * @return KeywordsModelResponse + * Remove a collection of promoted products from a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - + + +
Status Code Description Response Headers
200 Success -
400 Bad Request -
204 Promoted products removed from the line item -
400 Invalid request body -
403 Invalid external line item ID -
*/ - public KeywordsModelResponse fetchKeywords(String id) throws ApiException { - ApiResponse localVarResp = fetchKeywordsWithHttpInfo(id); - return localVarResp.getData(); + public void deletePromotedProducts(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput) throws ApiException { + deletePromotedProductsWithHttpInfo(lineItemId, promotedProductResourceCollectionInput); } /** * - * Fetch keywords associated with the specified line item - * @param id ID of the line item (required) - * @return ApiResponse<KeywordsModelResponse> + * Remove a collection of promoted products from a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - + + +
Status Code Description Response Headers
200 Success -
400 Bad Request -
204 Promoted products removed from the line item -
400 Invalid request body -
403 Invalid external line item ID -
*/ - public ApiResponse fetchKeywordsWithHttpInfo(String id) throws ApiException { - okhttp3.Call localVarCall = fetchKeywordsValidateBeforeCall(id, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + public ApiResponse deletePromotedProductsWithHttpInfo(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput) throws ApiException { + okhttp3.Call localVarCall = deletePromotedProductsValidateBeforeCall(lineItemId, promotedProductResourceCollectionInput, null); + return localVarApiClient.execute(localVarCall); } /** * (asynchronously) - * Fetch keywords associated with the specified line item - * @param id ID of the line item (required) + * Remove a collection of promoted products from a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - + + +
Status Code Description Response Headers
200 Success -
400 Bad Request -
204 Promoted products removed from the line item -
400 Invalid request body -
403 Invalid external line item ID -
*/ - public okhttp3.Call fetchKeywordsAsync(String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePromotedProductsAsync(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = fetchKeywordsValidateBeforeCall(id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + okhttp3.Call localVarCall = deletePromotedProductsValidateBeforeCall(lineItemId, promotedProductResourceCollectionInput, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** - * Build call for fetchProposal + * Build call for fetchKeywords * @param id ID of the line item (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -524,10 +667,9 @@ public okhttp3.Call fetchKeywordsAsync(String id, final ApiCallback Status Code Description Response Headers 200 Success - 400 Bad Request - - 403 Forbidden - */ - public okhttp3.Call fetchProposalCall(String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fetchKeywordsCall(String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -544,7 +686,7 @@ public okhttp3.Call fetchProposalCall(String id, final ApiCallback _callback) th Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-deal-line-items/{id}/proposal" + String localVarPath = "/2024-10/retail-media/line-items/{id}/keywords" .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -573,58 +715,56 @@ public okhttp3.Call fetchProposalCall(String id, final ApiCallback _callback) th } @SuppressWarnings("rawtypes") - private okhttp3.Call fetchProposalValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fetchKeywordsValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling fetchProposal(Async)"); + throw new ApiException("Missing the required parameter 'id' when calling fetchKeywords(Async)"); } - return fetchProposalCall(id, _callback); + return fetchKeywordsCall(id, _callback); } /** * - * Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. + * Fetch keywords associated with the specified line item * @param id ID of the line item (required) - * @return ProposalStatusModelResponse + * @return KeywordsModelResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 Success -
400 Bad Request -
403 Forbidden -
*/ - public ProposalStatusModelResponse fetchProposal(String id) throws ApiException { - ApiResponse localVarResp = fetchProposalWithHttpInfo(id); + public KeywordsModelResponse fetchKeywords(String id) throws ApiException { + ApiResponse localVarResp = fetchKeywordsWithHttpInfo(id); return localVarResp.getData(); } /** * - * Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. + * Fetch keywords associated with the specified line item * @param id ID of the line item (required) - * @return ApiResponse<ProposalStatusModelResponse> + * @return ApiResponse<KeywordsModelResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 Success -
400 Bad Request -
403 Forbidden -
*/ - public ApiResponse fetchProposalWithHttpInfo(String id) throws ApiException { - okhttp3.Call localVarCall = fetchProposalValidateBeforeCall(id, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse fetchKeywordsWithHttpInfo(String id) throws ApiException { + okhttp3.Call localVarCall = fetchKeywordsValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. + * Fetch keywords associated with the specified line item * @param id ID of the line item (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -634,29 +774,32 @@ public ApiResponse fetchProposalWithHttpInfo(String Status Code Description Response Headers 200 Success - 400 Bad Request - - 403 Forbidden - */ - public okhttp3.Call fetchProposalAsync(String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fetchKeywordsAsync(String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = fetchProposalValidateBeforeCall(id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = fetchKeywordsValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getApi202110ExternalAccountCreativesByAccountId - * @param accountId External account id to retrieve creatives for (required) + * Build call for fetchPromotedProducts + * @param lineItemId ID of the line item. (required) + * @param offset Offset of the first item to fetch. Defaults to zero. (optional) + * @param limit Maximum page size to fetch. Defaults to 500. (optional) + * @param fields A comma separated list of attribute names from the response model to compute and return. Valid values are `status` and `bidOverride` in any order. Defaults to `status`. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - + +
Status Code Description Response Headers
200 Creatives found -
200 Promoted products associated with the line item -
403 Invalid external line item ID -
*/ - public okhttp3.Call getApi202110ExternalAccountCreativesByAccountIdCall(String accountId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fetchPromotedProductsCall(String lineItemId, Integer offset, Integer limit, String fields, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -673,8 +816,8 @@ public okhttp3.Call getApi202110ExternalAccountCreativesByAccountIdCall(String a Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{account-id}/creatives" - .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); + String localVarPath = "/2024-10/retail-media/line-items/{line-item-id}/products" + .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -682,6 +825,18 @@ public okhttp3.Call getApi202110ExternalAccountCreativesByAccountIdCall(String a Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (fields != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fields", fields)); + } + final String[] localVarAccepts = { "application/json" }; @@ -702,74 +857,86 @@ public okhttp3.Call getApi202110ExternalAccountCreativesByAccountIdCall(String a } @SuppressWarnings("rawtypes") - private okhttp3.Call getApi202110ExternalAccountCreativesByAccountIdValidateBeforeCall(String accountId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling getApi202110ExternalAccountCreativesByAccountId(Async)"); + private okhttp3.Call fetchPromotedProductsValidateBeforeCall(String lineItemId, Integer offset, Integer limit, String fields, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'lineItemId' is set + if (lineItemId == null) { + throw new ApiException("Missing the required parameter 'lineItemId' when calling fetchPromotedProducts(Async)"); } - return getApi202110ExternalAccountCreativesByAccountIdCall(accountId, _callback); + return fetchPromotedProductsCall(lineItemId, offset, limit, fields, _callback); } /** * - * Get account creatives - * @param accountId External account id to retrieve creatives for (required) - * @return Creative202110ListResponse + * Retrieve a page of promoted products for a line item + * @param lineItemId ID of the line item. (required) + * @param offset Offset of the first item to fetch. Defaults to zero. (optional) + * @param limit Maximum page size to fetch. Defaults to 500. (optional) + * @param fields A comma separated list of attribute names from the response model to compute and return. Valid values are `status` and `bidOverride` in any order. Defaults to `status`. (optional) + * @return PromotedProductResourceCollectionOutcome * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + +
Status Code Description Response Headers
200 Creatives found -
200 Promoted products associated with the line item -
403 Invalid external line item ID -
*/ - public Creative202110ListResponse getApi202110ExternalAccountCreativesByAccountId(String accountId) throws ApiException { - ApiResponse localVarResp = getApi202110ExternalAccountCreativesByAccountIdWithHttpInfo(accountId); + public PromotedProductResourceCollectionOutcome fetchPromotedProducts(String lineItemId, Integer offset, Integer limit, String fields) throws ApiException { + ApiResponse localVarResp = fetchPromotedProductsWithHttpInfo(lineItemId, offset, limit, fields); return localVarResp.getData(); } /** * - * Get account creatives - * @param accountId External account id to retrieve creatives for (required) - * @return ApiResponse<Creative202110ListResponse> + * Retrieve a page of promoted products for a line item + * @param lineItemId ID of the line item. (required) + * @param offset Offset of the first item to fetch. Defaults to zero. (optional) + * @param limit Maximum page size to fetch. Defaults to 500. (optional) + * @param fields A comma separated list of attribute names from the response model to compute and return. Valid values are `status` and `bidOverride` in any order. Defaults to `status`. (optional) + * @return ApiResponse<PromotedProductResourceCollectionOutcome> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + +
Status Code Description Response Headers
200 Creatives found -
200 Promoted products associated with the line item -
403 Invalid external line item ID -
*/ - public ApiResponse getApi202110ExternalAccountCreativesByAccountIdWithHttpInfo(String accountId) throws ApiException { - okhttp3.Call localVarCall = getApi202110ExternalAccountCreativesByAccountIdValidateBeforeCall(accountId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse fetchPromotedProductsWithHttpInfo(String lineItemId, Integer offset, Integer limit, String fields) throws ApiException { + okhttp3.Call localVarCall = fetchPromotedProductsValidateBeforeCall(lineItemId, offset, limit, fields, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Get account creatives - * @param accountId External account id to retrieve creatives for (required) + * Retrieve a page of promoted products for a line item + * @param lineItemId ID of the line item. (required) + * @param offset Offset of the first item to fetch. Defaults to zero. (optional) + * @param limit Maximum page size to fetch. Defaults to 500. (optional) + * @param fields A comma separated list of attribute names from the response model to compute and return. Valid values are `status` and `bidOverride` in any order. Defaults to `status`. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - + +
Status Code Description Response Headers
200 Creatives found -
200 Promoted products associated with the line item -
403 Invalid external line item ID -
*/ - public okhttp3.Call getApi202110ExternalAccountCreativesByAccountIdAsync(String accountId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fetchPromotedProductsAsync(String lineItemId, Integer offset, Integer limit, String fields, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getApi202110ExternalAccountCreativesByAccountIdValidateBeforeCall(accountId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = fetchPromotedProductsValidateBeforeCall(lineItemId, offset, limit, fields, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId - * @param lineItemId The line item to interact with (required) + * Build call for fetchProposal + * @param id ID of the line item (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -778,9 +945,10 @@ public okhttp3.Call getApi202110ExternalAccountCreativesByAccountIdAsync(String Status Code Description Response Headers 200 Success - 400 Bad Request - + 403 Forbidden - */ - public okhttp3.Call getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdCall(String lineItemId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fetchProposalCall(String id, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -797,8 +965,8 @@ public okhttp3.Call getApi202110ExternalAuctionLineItemTargetingKeywordsByLineIt Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords" - .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); + String localVarPath = "/2024-10/retail-media/preferred-deal-line-items/{id}/proposal" + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -826,57 +994,59 @@ public okhttp3.Call getApi202110ExternalAuctionLineItemTargetingKeywordsByLineIt } @SuppressWarnings("rawtypes") - private okhttp3.Call getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdValidateBeforeCall(String lineItemId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'lineItemId' is set - if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId(Async)"); + private okhttp3.Call fetchProposalValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling fetchProposal(Async)"); } - return getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdCall(lineItemId, _callback); + return fetchProposalCall(id, _callback); } /** * - * This endpoint gets the keyword target on the specified line item. - * @param lineItemId The line item to interact with (required) - * @return KeywordTarget202110Response + * Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. + * @param id ID of the line item (required) + * @return ProposalStatusModelResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
403 Forbidden -
*/ - public KeywordTarget202110Response getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId(String lineItemId) throws ApiException { - ApiResponse localVarResp = getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdWithHttpInfo(lineItemId); + public ProposalStatusModelResponse fetchProposal(String id) throws ApiException { + ApiResponse localVarResp = fetchProposalWithHttpInfo(id); return localVarResp.getData(); } /** * - * This endpoint gets the keyword target on the specified line item. - * @param lineItemId The line item to interact with (required) - * @return ApiResponse<KeywordTarget202110Response> + * Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. + * @param id ID of the line item (required) + * @return ApiResponse<ProposalStatusModelResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
403 Forbidden -
*/ - public ApiResponse getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdWithHttpInfo(String lineItemId) throws ApiException { - okhttp3.Call localVarCall = getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdValidateBeforeCall(lineItemId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse fetchProposalWithHttpInfo(String id) throws ApiException { + okhttp3.Call localVarCall = fetchProposalValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * This endpoint gets the keyword target on the specified line item. - * @param lineItemId The line item to interact with (required) + * Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. + * @param id ID of the line item (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -885,32 +1055,29 @@ public ApiResponse getApi202110ExternalAuctionLineI Status Code Description Response Headers 200 Success - 400 Bad Request - + 403 Forbidden - */ - public okhttp3.Call getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdAsync(String lineItemId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fetchProposalAsync(String id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdValidateBeforeCall(lineItemId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = fetchProposalValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getApi202110ExternalCampaignPreferredLineItemsByCampaignId - * @param campaignId The given campaign id (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) + * Build call for getApi202110ExternalAccountCreativesByAccountId + * @param accountId External account id to retrieve creatives for (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 Creatives found -
*/ - public okhttp3.Call getApi202110ExternalCampaignPreferredLineItemsByCampaignIdCall(String campaignId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApi202110ExternalAccountCreativesByAccountIdCall(String accountId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -927,8 +1094,8 @@ public okhttp3.Call getApi202110ExternalCampaignPreferredLineItemsByCampaignIdCa Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items" - .replace("{" + "campaign-id" + "}", localVarApiClient.escapeString(campaignId.toString())); + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/creatives" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -936,18 +1103,6 @@ public okhttp3.Call getApi202110ExternalCampaignPreferredLineItemsByCampaignIdCa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (limitToId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); - } - - if (pageIndex != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - final String[] localVarAccepts = { "application/json" }; @@ -968,233 +1123,74 @@ public okhttp3.Call getApi202110ExternalCampaignPreferredLineItemsByCampaignIdCa } @SuppressWarnings("rawtypes") - private okhttp3.Call getApi202110ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(String campaignId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'campaignId' is set - if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling getApi202110ExternalCampaignPreferredLineItemsByCampaignId(Async)"); + private okhttp3.Call getApi202110ExternalAccountCreativesByAccountIdValidateBeforeCall(String accountId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling getApi202110ExternalAccountCreativesByAccountId(Async)"); } - return getApi202110ExternalCampaignPreferredLineItemsByCampaignIdCall(campaignId, limitToId, pageIndex, pageSize, _callback); + return getApi202110ExternalAccountCreativesByAccountIdCall(accountId, _callback); } /** * - * Gets page of preferred line item objects for the given campaign id - * @param campaignId The given campaign id (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @return PreferredLineItem202110PagedListResponse + * Get account creatives + * @param accountId External account id to retrieve creatives for (required) + * @return Creative202110ListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 Creatives found -
*/ - public PreferredLineItem202110PagedListResponse getApi202110ExternalCampaignPreferredLineItemsByCampaignId(String campaignId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { - ApiResponse localVarResp = getApi202110ExternalCampaignPreferredLineItemsByCampaignIdWithHttpInfo(campaignId, limitToId, pageIndex, pageSize); + public Creative202110ListResponse getApi202110ExternalAccountCreativesByAccountId(String accountId) throws ApiException { + ApiResponse localVarResp = getApi202110ExternalAccountCreativesByAccountIdWithHttpInfo(accountId); return localVarResp.getData(); } /** * - * Gets page of preferred line item objects for the given campaign id - * @param campaignId The given campaign id (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @return ApiResponse<PreferredLineItem202110PagedListResponse> + * Get account creatives + * @param accountId External account id to retrieve creatives for (required) + * @return ApiResponse<Creative202110ListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 Creatives found -
*/ - public ApiResponse getApi202110ExternalCampaignPreferredLineItemsByCampaignIdWithHttpInfo(String campaignId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { - okhttp3.Call localVarCall = getApi202110ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(campaignId, limitToId, pageIndex, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getApi202110ExternalAccountCreativesByAccountIdWithHttpInfo(String accountId) throws ApiException { + okhttp3.Call localVarCall = getApi202110ExternalAccountCreativesByAccountIdValidateBeforeCall(accountId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Gets page of preferred line item objects for the given campaign id - * @param campaignId The given campaign id (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) + * Get account creatives + * @param accountId External account id to retrieve creatives for (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 Creatives found -
*/ - public okhttp3.Call getApi202110ExternalCampaignPreferredLineItemsByCampaignIdAsync(String campaignId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApi202110ExternalAccountCreativesByAccountIdAsync(String accountId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getApi202110ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(campaignId, limitToId, pageIndex, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getApi202110ExternalAccountCreativesByAccountIdValidateBeforeCall(accountId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getApi202110ExternalLineItemProductsByLineItemId - * @param lineItemId The line item to interact with (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getApi202110ExternalLineItemProductsByLineItemIdCall(String lineItemId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2023-07/retail-media/line-items/{line-item-id}/products" - .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limitToId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); - } - - if (pageIndex != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getApi202110ExternalLineItemProductsByLineItemIdValidateBeforeCall(String lineItemId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'lineItemId' is set - if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling getApi202110ExternalLineItemProductsByLineItemId(Async)"); - } - - return getApi202110ExternalLineItemProductsByLineItemIdCall(lineItemId, limitToId, pageIndex, pageSize, _callback); - - } - - /** - * - * This endpoint gets the promoted products on the specified line item. - * @param lineItemId The line item to interact with (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @return PromotedProduct202110PagedListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public PromotedProduct202110PagedListResponse getApi202110ExternalLineItemProductsByLineItemId(String lineItemId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { - ApiResponse localVarResp = getApi202110ExternalLineItemProductsByLineItemIdWithHttpInfo(lineItemId, limitToId, pageIndex, pageSize); - return localVarResp.getData(); - } - - /** - * - * This endpoint gets the promoted products on the specified line item. - * @param lineItemId The line item to interact with (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @return ApiResponse<PromotedProduct202110PagedListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public ApiResponse getApi202110ExternalLineItemProductsByLineItemIdWithHttpInfo(String lineItemId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { - okhttp3.Call localVarCall = getApi202110ExternalLineItemProductsByLineItemIdValidateBeforeCall(lineItemId, limitToId, pageIndex, pageSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * This endpoint gets the promoted products on the specified line item. + * Build call for getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId * @param lineItemId The line item to interact with (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getApi202110ExternalLineItemProductsByLineItemIdAsync(String lineItemId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApi202110ExternalLineItemProductsByLineItemIdValidateBeforeCall(lineItemId, limitToId, pageIndex, pageSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getApi202110ExternalPreferredLineItemByLineItemId - * @param lineItemId The given line item id (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1205,7 +1201,7 @@ public okhttp3.Call getApi202110ExternalLineItemProductsByLineItemIdAsync(String 400 Bad Request - */ - public okhttp3.Call getApi202110ExternalPreferredLineItemByLineItemIdCall(String lineItemId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdCall(String lineItemId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1222,7 +1218,7 @@ public okhttp3.Call getApi202110ExternalPreferredLineItemByLineItemIdCall(String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}" + String localVarPath = "/2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -1251,21 +1247,21 @@ public okhttp3.Call getApi202110ExternalPreferredLineItemByLineItemIdCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call getApi202110ExternalPreferredLineItemByLineItemIdValidateBeforeCall(String lineItemId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdValidateBeforeCall(String lineItemId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'lineItemId' is set if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling getApi202110ExternalPreferredLineItemByLineItemId(Async)"); + throw new ApiException("Missing the required parameter 'lineItemId' when calling getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId(Async)"); } - return getApi202110ExternalPreferredLineItemByLineItemIdCall(lineItemId, _callback); + return getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdCall(lineItemId, _callback); } /** * - * Gets the preferred line item for the given line item id - * @param lineItemId The given line item id (required) - * @return PreferredLineItem202110Response + * This endpoint gets the keyword target on the specified line item. + * @param lineItemId The line item to interact with (required) + * @return KeywordTarget202110Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1274,16 +1270,16 @@ private okhttp3.Call getApi202110ExternalPreferredLineItemByLineItemIdValidateBe
400 Bad Request -
*/ - public PreferredLineItem202110Response getApi202110ExternalPreferredLineItemByLineItemId(String lineItemId) throws ApiException { - ApiResponse localVarResp = getApi202110ExternalPreferredLineItemByLineItemIdWithHttpInfo(lineItemId); + public KeywordTarget202110Response getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId(String lineItemId) throws ApiException { + ApiResponse localVarResp = getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdWithHttpInfo(lineItemId); return localVarResp.getData(); } /** * - * Gets the preferred line item for the given line item id - * @param lineItemId The given line item id (required) - * @return ApiResponse<PreferredLineItem202110Response> + * This endpoint gets the keyword target on the specified line item. + * @param lineItemId The line item to interact with (required) + * @return ApiResponse<KeywordTarget202110Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1292,16 +1288,16 @@ public PreferredLineItem202110Response getApi202110ExternalPreferredLineItemByLi
400 Bad Request -
*/ - public ApiResponse getApi202110ExternalPreferredLineItemByLineItemIdWithHttpInfo(String lineItemId) throws ApiException { - okhttp3.Call localVarCall = getApi202110ExternalPreferredLineItemByLineItemIdValidateBeforeCall(lineItemId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdWithHttpInfo(String lineItemId) throws ApiException { + okhttp3.Call localVarCall = getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdValidateBeforeCall(lineItemId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Gets the preferred line item for the given line item id - * @param lineItemId The given line item id (required) + * This endpoint gets the keyword target on the specified line item. + * @param lineItemId The line item to interact with (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1312,10 +1308,10 @@ public ApiResponse getApi202110ExternalPreferre 400 Bad Request - */ - public okhttp3.Call getApi202110ExternalPreferredLineItemByLineItemIdAsync(String lineItemId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdAsync(String lineItemId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getApi202110ExternalPreferredLineItemByLineItemIdValidateBeforeCall(lineItemId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemIdValidateBeforeCall(lineItemId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1349,7 +1345,7 @@ public okhttp3.Call getApi202110ExternalPreferredLineItemTargetingAddToBasketByL Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -1476,7 +1472,7 @@ public okhttp3.Call getApi202110ExternalPreferredLineItemTargetingAudiencesByLin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -1603,7 +1599,7 @@ public okhttp3.Call getApi202110ExternalPreferredLineItemTargetingStoresByLineIt Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -1729,7 +1725,7 @@ public okhttp3.Call getApi202110ExternalRetailerPagesByRetailerIdCall(Integer re Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/retailers/{retailerId}/pages" + String localVarPath = "/2024-10/retail-media/retailers/{retailerId}/pages" .replace("{" + "retailerId" + "}", localVarApiClient.escapeString(retailerId.toString())); List localVarQueryParams = new ArrayList(); @@ -1854,7 +1850,7 @@ public okhttp3.Call getApi202204ExternalCategorieByCategoryIdCall(Integer catego Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/categories/{categoryId}" + String localVarPath = "/2024-10/retail-media/categories/{categoryId}" .replace("{" + "categoryId" + "}", localVarApiClient.escapeString(categoryId.toString())); List localVarQueryParams = new ArrayList(); @@ -1986,7 +1982,7 @@ public okhttp3.Call getApi202204ExternalCategoriesCall(Integer retailerId, Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/categories"; + String localVarPath = "/2024-10/retail-media/categories"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2129,7 +2125,7 @@ public okhttp3.Call getApi202207ExternalRetailerByRetailerIdTemplatestemplateIdC Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/retailers/{retailer-id}/templates/{template-id}" + String localVarPath = "/2024-10/retail-media/retailers/{retailer-id}/templates/{template-id}" .replace("{" + "retailer-id" + "}", localVarApiClient.escapeString(retailerId.toString())) .replace("{" + "template-id" + "}", localVarApiClient.escapeString(templateId.toString())); @@ -2261,7 +2257,7 @@ public okhttp3.Call getApi202207ExternalRetailerTemplatesByRetailerIdCall(Intege Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/retailers/{retailer-id}/templates" + String localVarPath = "/2024-10/retail-media/retailers/{retailer-id}/templates" .replace("{" + "retailer-id" + "}", localVarApiClient.escapeString(retailerId.toString())); List localVarQueryParams = new ArrayList(); @@ -2356,19 +2352,21 @@ public okhttp3.Call getApi202207ExternalRetailerTemplatesByRetailerIdAsync(Integ return localVarCall; } /** - * Build call for getApi202210ExternalAccountByAccountIdCreativescreativeId - * @param accountId External account id to retrieve creatives for (required) - * @param creativeId Creative to get (required) + * Build call for getApi202301ExternalAccountCampaignsByAccountId + * @param accountId The account to request the campaign for. (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) + * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
Status Code Description Response Headers
200 Creatives found -
200 Success -
*/ - public okhttp3.Call getApi202210ExternalAccountByAccountIdCreativescreativeIdCall(String accountId, String creativeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApi202301ExternalAccountCampaignsByAccountIdCall(String accountId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2385,142 +2383,7 @@ public okhttp3.Call getApi202210ExternalAccountByAccountIdCreativescreativeIdCal Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{account-id}/creatives/{creative-id}" - .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())) - .replace("{" + "creative-id" + "}", localVarApiClient.escapeString(creativeId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getApi202210ExternalAccountByAccountIdCreativescreativeIdValidateBeforeCall(String accountId, String creativeId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling getApi202210ExternalAccountByAccountIdCreativescreativeId(Async)"); - } - - // verify the required parameter 'creativeId' is set - if (creativeId == null) { - throw new ApiException("Missing the required parameter 'creativeId' when calling getApi202210ExternalAccountByAccountIdCreativescreativeId(Async)"); - } - - return getApi202210ExternalAccountByAccountIdCreativescreativeIdCall(accountId, creativeId, _callback); - - } - - /** - * - * Get the specified creative - * @param accountId External account id to retrieve creatives for (required) - * @param creativeId Creative to get (required) - * @return Creative202210Response - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Creatives found -
- */ - public Creative202210Response getApi202210ExternalAccountByAccountIdCreativescreativeId(String accountId, String creativeId) throws ApiException { - ApiResponse localVarResp = getApi202210ExternalAccountByAccountIdCreativescreativeIdWithHttpInfo(accountId, creativeId); - return localVarResp.getData(); - } - - /** - * - * Get the specified creative - * @param accountId External account id to retrieve creatives for (required) - * @param creativeId Creative to get (required) - * @return ApiResponse<Creative202210Response> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Creatives found -
- */ - public ApiResponse getApi202210ExternalAccountByAccountIdCreativescreativeIdWithHttpInfo(String accountId, String creativeId) throws ApiException { - okhttp3.Call localVarCall = getApi202210ExternalAccountByAccountIdCreativescreativeIdValidateBeforeCall(accountId, creativeId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Get the specified creative - * @param accountId External account id to retrieve creatives for (required) - * @param creativeId Creative to get (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Creatives found -
- */ - public okhttp3.Call getApi202210ExternalAccountByAccountIdCreativescreativeIdAsync(String accountId, String creativeId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApi202210ExternalAccountByAccountIdCreativescreativeIdValidateBeforeCall(accountId, creativeId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getApi202301ExternalAccountCampaignsByAccountId - * @param accountId The account to request the campaign for. (required) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional, default to 0) - * @param pageSize The maximum number of items you would like to receive in this request (optional, default to 25) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getApi202301ExternalAccountCampaignsByAccountIdCall(String accountId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{account-id}/campaigns" + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/campaigns" .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); @@ -2664,7 +2527,7 @@ public okhttp3.Call getApi202301ExternalCampaignByCampaignIdCall(String campaign Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/campaigns/{campaignId}" + String localVarPath = "/2024-10/retail-media/campaigns/{campaignId}" .replace("{" + "campaignId" + "}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); @@ -2758,131 +2621,6 @@ public okhttp3.Call getApi202301ExternalCampaignByCampaignIdAsync(String campaig localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for getApi202301ExternalLineItemBidMultipliersByLineItemId - * @param lineItemId Long external id of the associated line item (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getApi202301ExternalLineItemBidMultipliersByLineItemIdCall(String lineItemId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/2023-07/retail-media/line-items/{line-item-id}/bid-multipliers" - .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getApi202301ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(String lineItemId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'lineItemId' is set - if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling getApi202301ExternalLineItemBidMultipliersByLineItemId(Async)"); - } - - return getApi202301ExternalLineItemBidMultipliersByLineItemIdCall(lineItemId, _callback); - - } - - /** - * - * Get bid multipliers by line item - * @param lineItemId Long external id of the associated line item (required) - * @return JsonApiSingleResponseOfLineItemBidMultipliers - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public JsonApiSingleResponseOfLineItemBidMultipliers getApi202301ExternalLineItemBidMultipliersByLineItemId(String lineItemId) throws ApiException { - ApiResponse localVarResp = getApi202301ExternalLineItemBidMultipliersByLineItemIdWithHttpInfo(lineItemId); - return localVarResp.getData(); - } - - /** - * - * Get bid multipliers by line item - * @param lineItemId Long external id of the associated line item (required) - * @return ApiResponse<JsonApiSingleResponseOfLineItemBidMultipliers> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public ApiResponse getApi202301ExternalLineItemBidMultipliersByLineItemIdWithHttpInfo(String lineItemId) throws ApiException { - okhttp3.Call localVarCall = getApi202301ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(lineItemId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Get bid multipliers by line item - * @param lineItemId Long external id of the associated line item (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getApi202301ExternalLineItemBidMultipliersByLineItemIdAsync(String lineItemId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApi202301ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(lineItemId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } /** * Build call for getApiV1ExternalAccountBrandsByAccountId * @param accountId The given account id (required) @@ -2915,7 +2653,7 @@ public okhttp3.Call getApiV1ExternalAccountBrandsByAccountIdCall(String accountI Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{accountId}/brands" + String localVarPath = "/2024-10/retail-media/accounts/{accountId}/brands" .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); @@ -3064,7 +2802,7 @@ public okhttp3.Call getApiV1ExternalAccountRetailersByAccountIdCall(String accou Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{accountId}/retailers" + String localVarPath = "/2024-10/retail-media/accounts/{accountId}/retailers" .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); @@ -3211,7 +2949,7 @@ public okhttp3.Call getApiV1ExternalCatalogOutputByCatalogIdCall(String catalogI Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/catalogs/{catalogId}/output" + String localVarPath = "/2024-10/retail-media/catalogs/{catalogId}/output" .replace("{" + "catalogId" + "}", localVarApiClient.escapeString(catalogId.toString())); List localVarQueryParams = new ArrayList(); @@ -3338,7 +3076,7 @@ public okhttp3.Call getApiV1ExternalCatalogStatusByCatalogIdCall(String catalogI Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/catalogs/{catalogId}/status" + String localVarPath = "/2024-10/retail-media/catalogs/{catalogId}/status" .replace("{" + "catalogId" + "}", localVarApiClient.escapeString(catalogId.toString())); List localVarQueryParams = new ArrayList(); @@ -3433,23 +3171,19 @@ public okhttp3.Call getApiV1ExternalCatalogStatusByCatalogIdAsync(String catalog return localVarCall; } /** - * Build call for getApiV2ExternalAccountLineItemsByAccountId - * @param accountId The given account id (required) - * @param limitToCampaignId The campaign ids that you would like to limit your result set to (optional) - * @param limitToType The campaign types that you would like to limit your result set to (optional) - * @param limitToId The ids that you would like to limit your result set to (optional) - * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) - * @param pageSize The maximum number of items you would like to receive in this request (optional) + * Build call for getApiV2ExternalAccountByAccountIdCreativescreativeId + * @param accountId External account id to retrieve creatives for (required) + * @param creativeId Creative to get (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
Status Code Description Response Headers
200 Success -
200 Creatives found -
*/ - public okhttp3.Call getApiV2ExternalAccountLineItemsByAccountIdCall(String accountId, List limitToCampaignId, String limitToType, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApiV2ExternalAccountByAccountIdCreativescreativeIdCall(String accountId, String creativeId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3466,8 +3200,9 @@ public okhttp3.Call getApiV2ExternalAccountLineItemsByAccountIdCall(String accou Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{account-id}/line-items" - .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/creatives/{creative-id}" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())) + .replace("{" + "creative-id" + "}", localVarApiClient.escapeString(creativeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3475,12 +3210,150 @@ public okhttp3.Call getApiV2ExternalAccountLineItemsByAccountIdCall(String accou Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (limitToCampaignId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToCampaignId", limitToCampaignId)); + final String[] localVarAccepts = { + "text/plain", + "application/json", + "text/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - if (limitToType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limitToType", limitToType)); + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getApiV2ExternalAccountByAccountIdCreativescreativeIdValidateBeforeCall(String accountId, String creativeId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling getApiV2ExternalAccountByAccountIdCreativescreativeId(Async)"); + } + + // verify the required parameter 'creativeId' is set + if (creativeId == null) { + throw new ApiException("Missing the required parameter 'creativeId' when calling getApiV2ExternalAccountByAccountIdCreativescreativeId(Async)"); + } + + return getApiV2ExternalAccountByAccountIdCreativescreativeIdCall(accountId, creativeId, _callback); + + } + + /** + * + * Get the specified creative + * @param accountId External account id to retrieve creatives for (required) + * @param creativeId Creative to get (required) + * @return CreativeV2Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Creatives found -
+ */ + public CreativeV2Response getApiV2ExternalAccountByAccountIdCreativescreativeId(String accountId, String creativeId) throws ApiException { + ApiResponse localVarResp = getApiV2ExternalAccountByAccountIdCreativescreativeIdWithHttpInfo(accountId, creativeId); + return localVarResp.getData(); + } + + /** + * + * Get the specified creative + * @param accountId External account id to retrieve creatives for (required) + * @param creativeId Creative to get (required) + * @return ApiResponse<CreativeV2Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Creatives found -
+ */ + public ApiResponse getApiV2ExternalAccountByAccountIdCreativescreativeIdWithHttpInfo(String accountId, String creativeId) throws ApiException { + okhttp3.Call localVarCall = getApiV2ExternalAccountByAccountIdCreativescreativeIdValidateBeforeCall(accountId, creativeId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Get the specified creative + * @param accountId External account id to retrieve creatives for (required) + * @param creativeId Creative to get (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Creatives found -
+ */ + public okhttp3.Call getApiV2ExternalAccountByAccountIdCreativescreativeIdAsync(String accountId, String creativeId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApiV2ExternalAccountByAccountIdCreativescreativeIdValidateBeforeCall(accountId, creativeId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getApiV2ExternalAccountLineItemsByAccountId + * @param accountId The given account id (required) + * @param limitToCampaignId The campaign ids that you would like to limit your result set to (optional) + * @param limitToType The campaign types that you would like to limit your result set to (optional) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) + * @param pageSize The maximum number of items you would like to receive in this request (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getApiV2ExternalAccountLineItemsByAccountIdCall(String accountId, List limitToCampaignId, String limitToType, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/line-items" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limitToCampaignId != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToCampaignId", limitToCampaignId)); + } + + if (limitToType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limitToType", limitToType)); } if (limitToId != null) { @@ -3625,7 +3498,7 @@ public okhttp3.Call getApiV2ExternalAuctionLineItemByLineItemIdCall(String lineI Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/auction-line-items/{line-item-id}" + String localVarPath = "/2024-10/retail-media/auction-line-items/{line-item-id}" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -3755,7 +3628,7 @@ public okhttp3.Call getApiV2ExternalCampaignAuctionLineItemsByCampaignIdCall(Str Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/campaigns/{campaign-id}/auction-line-items" + String localVarPath = "/2024-10/retail-media/campaigns/{campaign-id}/auction-line-items" .replace("{" + "campaign-id" + "}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); @@ -3874,8 +3747,11 @@ public okhttp3.Call getApiV2ExternalCampaignAuctionLineItemsByCampaignIdAsync(St return localVarCall; } /** - * Build call for getApiV2ExternalLineItemByLineItemId - * @param lineItemId The given line item id (required) + * Build call for getApiV2ExternalCampaignPreferredLineItemsByCampaignId + * @param campaignId The given campaign id (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) + * @param pageSize The maximum number of items you would like to receive in this request (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3883,9 +3759,10 @@ public okhttp3.Call getApiV2ExternalCampaignAuctionLineItemsByCampaignIdAsync(St +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call getApiV2ExternalLineItemByLineItemIdCall(String lineItemId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApiV2ExternalCampaignPreferredLineItemsByCampaignIdCall(String campaignId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3902,8 +3779,8 @@ public okhttp3.Call getApiV2ExternalLineItemByLineItemIdCall(String lineItemId, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/line-items/{line-item-id}" - .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); + String localVarPath = "/2024-10/retail-media/campaigns/{campaign-id}/preferred-line-items" + .replace("{" + "campaign-id" + "}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3911,6 +3788,18 @@ public okhttp3.Call getApiV2ExternalLineItemByLineItemIdCall(String lineItemId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (limitToId != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); + } + + if (pageIndex != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); + } + + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + final String[] localVarAccepts = { "application/json" }; @@ -3931,55 +3820,66 @@ public okhttp3.Call getApiV2ExternalLineItemByLineItemIdCall(String lineItemId, } @SuppressWarnings("rawtypes") - private okhttp3.Call getApiV2ExternalLineItemByLineItemIdValidateBeforeCall(String lineItemId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'lineItemId' is set - if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling getApiV2ExternalLineItemByLineItemId(Async)"); + private okhttp3.Call getApiV2ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(String campaignId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling getApiV2ExternalCampaignPreferredLineItemsByCampaignId(Async)"); } - return getApiV2ExternalLineItemByLineItemIdCall(lineItemId, _callback); + return getApiV2ExternalCampaignPreferredLineItemsByCampaignIdCall(campaignId, limitToId, pageIndex, pageSize, _callback); } /** * - * Gets the line item for the given line item id - * @param lineItemId The given line item id (required) - * @return CommonLineItemResponse + * Gets page of preferred line item objects for the given campaign id + * @param campaignId The given campaign id (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) + * @param pageSize The maximum number of items you would like to receive in this request (optional) + * @return PreferredLineItemV2PagedListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public CommonLineItemResponse getApiV2ExternalLineItemByLineItemId(String lineItemId) throws ApiException { - ApiResponse localVarResp = getApiV2ExternalLineItemByLineItemIdWithHttpInfo(lineItemId); + public PreferredLineItemV2PagedListResponse getApiV2ExternalCampaignPreferredLineItemsByCampaignId(String campaignId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { + ApiResponse localVarResp = getApiV2ExternalCampaignPreferredLineItemsByCampaignIdWithHttpInfo(campaignId, limitToId, pageIndex, pageSize); return localVarResp.getData(); } /** * - * Gets the line item for the given line item id - * @param lineItemId The given line item id (required) - * @return ApiResponse<CommonLineItemResponse> + * Gets page of preferred line item objects for the given campaign id + * @param campaignId The given campaign id (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) + * @param pageSize The maximum number of items you would like to receive in this request (optional) + * @return ApiResponse<PreferredLineItemV2PagedListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public ApiResponse getApiV2ExternalLineItemByLineItemIdWithHttpInfo(String lineItemId) throws ApiException { - okhttp3.Call localVarCall = getApiV2ExternalLineItemByLineItemIdValidateBeforeCall(lineItemId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getApiV2ExternalCampaignPreferredLineItemsByCampaignIdWithHttpInfo(String campaignId, List limitToId, Integer pageIndex, Integer pageSize) throws ApiException { + okhttp3.Call localVarCall = getApiV2ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(campaignId, limitToId, pageIndex, pageSize, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Gets the line item for the given line item id - * @param lineItemId The given line item id (required) + * Gets page of preferred line item objects for the given campaign id + * @param campaignId The given campaign id (required) + * @param limitToId The ids that you would like to limit your result set to (optional) + * @param pageIndex The 0 indexed page index you would like to receive given the page size (optional) + * @param pageSize The maximum number of items you would like to receive in this request (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3987,30 +3887,29 @@ public ApiResponse getApiV2ExternalLineItemByLineItemIdW +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call getApiV2ExternalLineItemByLineItemIdAsync(String lineItemId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApiV2ExternalCampaignPreferredLineItemsByCampaignIdAsync(String campaignId, List limitToId, Integer pageIndex, Integer pageSize, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getApiV2ExternalLineItemByLineItemIdValidateBeforeCall(lineItemId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getApiV2ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(campaignId, limitToId, pageIndex, pageSize, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId - * @param lineItemId The line item to interact with (required) - * @param keywordTarget202110Request (optional) + * Build call for getApiV2ExternalLineItemBidMultipliersByLineItemId + * @param lineItemId External LineItemId for bid multiplier retrieval (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 BidMultipliers Found -
*/ - public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdCall(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApiV2ExternalLineItemBidMultipliersByLineItemIdCall(String lineItemId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4024,10 +3923,10 @@ public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsAppendB basePath = null; } - Object localVarPostBody = keywordTarget202110Request; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append" + String localVarPath = "/2024-10/retail-media/line-items/{line-item-id}/bid-multipliers" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -4037,7 +3936,9 @@ public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsAppendB Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "text/plain", + "application/json", + "text/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4045,7 +3946,6 @@ public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsAppendB } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4053,85 +3953,78 @@ public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsAppendB } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdValidateBeforeCall(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiV2ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(String lineItemId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'lineItemId' is set if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId(Async)"); + throw new ApiException("Missing the required parameter 'lineItemId' when calling getApiV2ExternalLineItemBidMultipliersByLineItemId(Async)"); } - return postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdCall(lineItemId, keywordTarget202110Request, _callback); + return getApiV2ExternalLineItemBidMultipliersByLineItemIdCall(lineItemId, _callback); } /** * - * This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. - * @param lineItemId The line item to interact with (required) - * @param keywordTarget202110Request (optional) - * @return KeywordTarget202110Response + * Fetch all bid multipliers for a given line item + * @param lineItemId External LineItemId for bid multiplier retrieval (required) + * @return JsonApiSingleResponseOfLineItemBidMultipliersV2 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 BidMultipliers Found -
*/ - public KeywordTarget202110Response postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId(String lineItemId, KeywordTarget202110Request keywordTarget202110Request) throws ApiException { - ApiResponse localVarResp = postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdWithHttpInfo(lineItemId, keywordTarget202110Request); + public JsonApiSingleResponseOfLineItemBidMultipliersV2 getApiV2ExternalLineItemBidMultipliersByLineItemId(String lineItemId) throws ApiException { + ApiResponse localVarResp = getApiV2ExternalLineItemBidMultipliersByLineItemIdWithHttpInfo(lineItemId); return localVarResp.getData(); } /** * - * This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. - * @param lineItemId The line item to interact with (required) - * @param keywordTarget202110Request (optional) - * @return ApiResponse<KeywordTarget202110Response> + * Fetch all bid multipliers for a given line item + * @param lineItemId External LineItemId for bid multiplier retrieval (required) + * @return ApiResponse<JsonApiSingleResponseOfLineItemBidMultipliersV2> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 BidMultipliers Found -
*/ - public ApiResponse postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdWithHttpInfo(String lineItemId, KeywordTarget202110Request keywordTarget202110Request) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdValidateBeforeCall(lineItemId, keywordTarget202110Request, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getApiV2ExternalLineItemBidMultipliersByLineItemIdWithHttpInfo(String lineItemId) throws ApiException { + okhttp3.Call localVarCall = getApiV2ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(lineItemId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. - * @param lineItemId The line item to interact with (required) - * @param keywordTarget202110Request (optional) + * Fetch all bid multipliers for a given line item + * @param lineItemId External LineItemId for bid multiplier retrieval (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 BidMultipliers Found -
*/ - public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdAsync(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApiV2ExternalLineItemBidMultipliersByLineItemIdAsync(String lineItemId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdValidateBeforeCall(lineItemId, keywordTarget202110Request, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getApiV2ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(lineItemId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId - * @param lineItemId The line item to interact with (required) - * @param keywordTarget202110Request (optional) + * Build call for getApiV2ExternalLineItemByLineItemId + * @param lineItemId The given line item id (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4139,10 +4032,9 @@ public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsAppendB -
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdCall(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApiV2ExternalLineItemByLineItemIdCall(String lineItemId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4156,10 +4048,10 @@ public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteB basePath = null; } - Object localVarPostBody = keywordTarget202110Request; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete" + String localVarPath = "/2024-10/retail-media/line-items/{line-item-id}" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -4177,7 +4069,6 @@ public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteB } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4185,64 +4076,59 @@ public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteB } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdValidateBeforeCall(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiV2ExternalLineItemByLineItemIdValidateBeforeCall(String lineItemId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'lineItemId' is set if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId(Async)"); + throw new ApiException("Missing the required parameter 'lineItemId' when calling getApiV2ExternalLineItemByLineItemId(Async)"); } - return postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdCall(lineItemId, keywordTarget202110Request, _callback); + return getApiV2ExternalLineItemByLineItemIdCall(lineItemId, _callback); } /** * - * This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. - * @param lineItemId The line item to interact with (required) - * @param keywordTarget202110Request (optional) - * @return KeywordTarget202110Response + * Gets the line item for the given line item id + * @param lineItemId The given line item id (required) + * @return CommonLineItemResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public KeywordTarget202110Response postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId(String lineItemId, KeywordTarget202110Request keywordTarget202110Request) throws ApiException { - ApiResponse localVarResp = postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdWithHttpInfo(lineItemId, keywordTarget202110Request); + public CommonLineItemResponse getApiV2ExternalLineItemByLineItemId(String lineItemId) throws ApiException { + ApiResponse localVarResp = getApiV2ExternalLineItemByLineItemIdWithHttpInfo(lineItemId); return localVarResp.getData(); } /** * - * This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. - * @param lineItemId The line item to interact with (required) - * @param keywordTarget202110Request (optional) - * @return ApiResponse<KeywordTarget202110Response> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * Gets the line item for the given line item id + * @param lineItemId The given line item id (required) + * @return ApiResponse<CommonLineItemResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public ApiResponse postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdWithHttpInfo(String lineItemId, KeywordTarget202110Request keywordTarget202110Request) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdValidateBeforeCall(lineItemId, keywordTarget202110Request, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getApiV2ExternalLineItemByLineItemIdWithHttpInfo(String lineItemId) throws ApiException { + okhttp3.Call localVarCall = getApiV2ExternalLineItemByLineItemIdValidateBeforeCall(lineItemId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. - * @param lineItemId The line item to interact with (required) - * @param keywordTarget202110Request (optional) + * Gets the line item for the given line item id + * @param lineItemId The given line item id (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4250,20 +4136,18 @@ public ApiResponse postApi202110ExternalAuctionLine -
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdAsync(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApiV2ExternalLineItemByLineItemIdAsync(String lineItemId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdValidateBeforeCall(lineItemId, keywordTarget202110Request, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getApiV2ExternalLineItemByLineItemIdValidateBeforeCall(lineItemId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for postApi202110ExternalBalanceCampaignsAppendByBalanceId - * @param balanceId The balance to add campaigns from (required) - * @param balanceCampaign202110ListRequest The campaigns to append (optional) + * Build call for getApiV2ExternalPreferredLineItemByLineItemId + * @param lineItemId The given line item id (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4271,9 +4155,10 @@ public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteB +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call postApi202110ExternalBalanceCampaignsAppendByBalanceIdCall(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApiV2ExternalPreferredLineItemByLineItemIdCall(String lineItemId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4287,11 +4172,11 @@ public okhttp3.Call postApi202110ExternalBalanceCampaignsAppendByBalanceIdCall(S basePath = null; } - Object localVarPostBody = balanceCampaign202110ListRequest; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/balances/{balance-id}/campaigns/append" - .replace("{" + "balance-id" + "}", localVarApiClient.escapeString(balanceId.toString())); + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}" + .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4308,7 +4193,6 @@ public okhttp3.Call postApi202110ExternalBalanceCampaignsAppendByBalanceIdCall(S } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4316,62 +4200,61 @@ public okhttp3.Call postApi202110ExternalBalanceCampaignsAppendByBalanceIdCall(S } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call postApi202110ExternalBalanceCampaignsAppendByBalanceIdValidateBeforeCall(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'balanceId' is set - if (balanceId == null) { - throw new ApiException("Missing the required parameter 'balanceId' when calling postApi202110ExternalBalanceCampaignsAppendByBalanceId(Async)"); + private okhttp3.Call getApiV2ExternalPreferredLineItemByLineItemIdValidateBeforeCall(String lineItemId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'lineItemId' is set + if (lineItemId == null) { + throw new ApiException("Missing the required parameter 'lineItemId' when calling getApiV2ExternalPreferredLineItemByLineItemId(Async)"); } - return postApi202110ExternalBalanceCampaignsAppendByBalanceIdCall(balanceId, balanceCampaign202110ListRequest, _callback); + return getApiV2ExternalPreferredLineItemByLineItemIdCall(lineItemId, _callback); } /** * - * appends one or more campaigns to the specified balance - * @param balanceId The balance to add campaigns from (required) - * @param balanceCampaign202110ListRequest The campaigns to append (optional) - * @return BalanceCampaign202110PagedListResponse + * Gets the preferred line item for the given line item id + * @param lineItemId The given line item id (required) + * @return PreferredLineItemV2Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public BalanceCampaign202110PagedListResponse postApi202110ExternalBalanceCampaignsAppendByBalanceId(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest) throws ApiException { - ApiResponse localVarResp = postApi202110ExternalBalanceCampaignsAppendByBalanceIdWithHttpInfo(balanceId, balanceCampaign202110ListRequest); + public PreferredLineItemV2Response getApiV2ExternalPreferredLineItemByLineItemId(String lineItemId) throws ApiException { + ApiResponse localVarResp = getApiV2ExternalPreferredLineItemByLineItemIdWithHttpInfo(lineItemId); return localVarResp.getData(); } /** * - * appends one or more campaigns to the specified balance - * @param balanceId The balance to add campaigns from (required) - * @param balanceCampaign202110ListRequest The campaigns to append (optional) - * @return ApiResponse<BalanceCampaign202110PagedListResponse> + * Gets the preferred line item for the given line item id + * @param lineItemId The given line item id (required) + * @return ApiResponse<PreferredLineItemV2Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public ApiResponse postApi202110ExternalBalanceCampaignsAppendByBalanceIdWithHttpInfo(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalBalanceCampaignsAppendByBalanceIdValidateBeforeCall(balanceId, balanceCampaign202110ListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getApiV2ExternalPreferredLineItemByLineItemIdWithHttpInfo(String lineItemId) throws ApiException { + okhttp3.Call localVarCall = getApiV2ExternalPreferredLineItemByLineItemIdValidateBeforeCall(lineItemId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * appends one or more campaigns to the specified balance - * @param balanceId The balance to add campaigns from (required) - * @param balanceCampaign202110ListRequest The campaigns to append (optional) + * Gets the preferred line item for the given line item id + * @param lineItemId The given line item id (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4379,19 +4262,19 @@ public ApiResponse postApi202110External +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call postApi202110ExternalBalanceCampaignsAppendByBalanceIdAsync(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApiV2ExternalPreferredLineItemByLineItemIdAsync(String lineItemId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalBalanceCampaignsAppendByBalanceIdValidateBeforeCall(balanceId, balanceCampaign202110ListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getApiV2ExternalPreferredLineItemByLineItemIdValidateBeforeCall(lineItemId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for postApi202110ExternalBalanceCampaignsDeleteByBalanceId - * @param balanceId The balance to remove campaigns from (required) - * @param balanceCampaign202110ListRequest The campaigns to append (optional) + * Build call for getCampaignBudgetOverrides + * @param campaignId External campaign id. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4401,7 +4284,7 @@ public okhttp3.Call postApi202110ExternalBalanceCampaignsAppendByBalanceIdAsync( 200 Success - */ - public okhttp3.Call postApi202110ExternalBalanceCampaignsDeleteByBalanceIdCall(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignBudgetOverridesCall(Long campaignId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4415,11 +4298,11 @@ public okhttp3.Call postApi202110ExternalBalanceCampaignsDeleteByBalanceIdCall(S basePath = null; } - Object localVarPostBody = balanceCampaign202110ListRequest; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/balances/{balance-id}/campaigns/delete" - .replace("{" + "balance-id" + "}", localVarApiClient.escapeString(balanceId.toString())); + String localVarPath = "/2024-10/retail-media/campaigns/{campaignId}/campaign-budget-overrides" + .replace("{" + "campaignId" + "}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4436,7 +4319,6 @@ public okhttp3.Call postApi202110ExternalBalanceCampaignsDeleteByBalanceIdCall(S } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4444,26 +4326,25 @@ public okhttp3.Call postApi202110ExternalBalanceCampaignsDeleteByBalanceIdCall(S } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call postApi202110ExternalBalanceCampaignsDeleteByBalanceIdValidateBeforeCall(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'balanceId' is set - if (balanceId == null) { - throw new ApiException("Missing the required parameter 'balanceId' when calling postApi202110ExternalBalanceCampaignsDeleteByBalanceId(Async)"); + private okhttp3.Call getCampaignBudgetOverridesValidateBeforeCall(Long campaignId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling getCampaignBudgetOverrides(Async)"); } - return postApi202110ExternalBalanceCampaignsDeleteByBalanceIdCall(balanceId, balanceCampaign202110ListRequest, _callback); + return getCampaignBudgetOverridesCall(campaignId, _callback); } /** * - * Removes one or more campaigns on the specified balance - * @param balanceId The balance to remove campaigns from (required) - * @param balanceCampaign202110ListRequest The campaigns to append (optional) - * @return BalanceCampaign202110PagedListResponse + * Get current campaign budget overrides by given external campaign id. + * @param campaignId External campaign id. (required) + * @return ValueResourceOutcomeOfCampaignBudgetOverrides * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4471,17 +4352,16 @@ private okhttp3.Call postApi202110ExternalBalanceCampaignsDeleteByBalanceIdValid
200 Success -
*/ - public BalanceCampaign202110PagedListResponse postApi202110ExternalBalanceCampaignsDeleteByBalanceId(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest) throws ApiException { - ApiResponse localVarResp = postApi202110ExternalBalanceCampaignsDeleteByBalanceIdWithHttpInfo(balanceId, balanceCampaign202110ListRequest); + public ValueResourceOutcomeOfCampaignBudgetOverrides getCampaignBudgetOverrides(Long campaignId) throws ApiException { + ApiResponse localVarResp = getCampaignBudgetOverridesWithHttpInfo(campaignId); return localVarResp.getData(); } /** * - * Removes one or more campaigns on the specified balance - * @param balanceId The balance to remove campaigns from (required) - * @param balanceCampaign202110ListRequest The campaigns to append (optional) - * @return ApiResponse<BalanceCampaign202110PagedListResponse> + * Get current campaign budget overrides by given external campaign id. + * @param campaignId External campaign id. (required) + * @return ApiResponse<ValueResourceOutcomeOfCampaignBudgetOverrides> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4489,17 +4369,16 @@ public BalanceCampaign202110PagedListResponse postApi202110ExternalBalanceCampai
200 Success -
*/ - public ApiResponse postApi202110ExternalBalanceCampaignsDeleteByBalanceIdWithHttpInfo(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalBalanceCampaignsDeleteByBalanceIdValidateBeforeCall(balanceId, balanceCampaign202110ListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getCampaignBudgetOverridesWithHttpInfo(Long campaignId) throws ApiException { + okhttp3.Call localVarCall = getCampaignBudgetOverridesValidateBeforeCall(campaignId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Removes one or more campaigns on the specified balance - * @param balanceId The balance to remove campaigns from (required) - * @param balanceCampaign202110ListRequest The campaigns to append (optional) + * Get current campaign budget overrides by given external campaign id. + * @param campaignId External campaign id. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4509,28 +4388,26 @@ public ApiResponse postApi202110External 200 Success - */ - public okhttp3.Call postApi202110ExternalBalanceCampaignsDeleteByBalanceIdAsync(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignBudgetOverridesAsync(Long campaignId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalBalanceCampaignsDeleteByBalanceIdValidateBeforeCall(balanceId, balanceCampaign202110ListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getCampaignBudgetOverridesValidateBeforeCall(campaignId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for postApi202110ExternalCampaignPreferredLineItemsByCampaignId - * @param campaignId The given campaign id (required) - * @param preferredLineItemCreateModel202110Request The line item settings to create a line item with (optional) + * Build call for getLineItemBudgetOverrides + * @param lineItemId The line item id to get budget overrides for. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - +
Status Code Description Response Headers
201 Success -
400 Bad Request -
200 Success -
*/ - public okhttp3.Call postApi202110ExternalCampaignPreferredLineItemsByCampaignIdCall(String campaignId, PreferredLineItemCreateModel202110Request preferredLineItemCreateModel202110Request, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLineItemBudgetOverridesCall(String lineItemId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4544,11 +4421,11 @@ public okhttp3.Call postApi202110ExternalCampaignPreferredLineItemsByCampaignIdC basePath = null; } - Object localVarPostBody = preferredLineItemCreateModel202110Request; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items" - .replace("{" + "campaign-id" + "}", localVarApiClient.escapeString(campaignId.toString())); + String localVarPath = "/2024-10/retail-media/line-items/{lineItemId}/line-item-budget-overrides" + .replace("{" + "lineItemId" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4565,7 +4442,6 @@ public okhttp3.Call postApi202110ExternalCampaignPreferredLineItemsByCampaignIdC } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4573,95 +4449,91 @@ public okhttp3.Call postApi202110ExternalCampaignPreferredLineItemsByCampaignIdC } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call postApi202110ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(String campaignId, PreferredLineItemCreateModel202110Request preferredLineItemCreateModel202110Request, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'campaignId' is set - if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling postApi202110ExternalCampaignPreferredLineItemsByCampaignId(Async)"); + private okhttp3.Call getLineItemBudgetOverridesValidateBeforeCall(String lineItemId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'lineItemId' is set + if (lineItemId == null) { + throw new ApiException("Missing the required parameter 'lineItemId' when calling getLineItemBudgetOverrides(Async)"); } - return postApi202110ExternalCampaignPreferredLineItemsByCampaignIdCall(campaignId, preferredLineItemCreateModel202110Request, _callback); + return getLineItemBudgetOverridesCall(lineItemId, _callback); } /** * - * Creates a new preferred line item with the specified settings - * @param campaignId The given campaign id (required) - * @param preferredLineItemCreateModel202110Request The line item settings to create a line item with (optional) - * @return PreferredLineItem202110Response + * Gets a collection of monthly and daily budget overrides for the provided line item. + * @param lineItemId The line item id to get budget overrides for. (required) + * @return ValueResourceOutcomeOfLineItemBudgetOverrides * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - +
Status Code Description Response Headers
201 Success -
400 Bad Request -
200 Success -
*/ - public PreferredLineItem202110Response postApi202110ExternalCampaignPreferredLineItemsByCampaignId(String campaignId, PreferredLineItemCreateModel202110Request preferredLineItemCreateModel202110Request) throws ApiException { - ApiResponse localVarResp = postApi202110ExternalCampaignPreferredLineItemsByCampaignIdWithHttpInfo(campaignId, preferredLineItemCreateModel202110Request); + public ValueResourceOutcomeOfLineItemBudgetOverrides getLineItemBudgetOverrides(String lineItemId) throws ApiException { + ApiResponse localVarResp = getLineItemBudgetOverridesWithHttpInfo(lineItemId); return localVarResp.getData(); } /** * - * Creates a new preferred line item with the specified settings - * @param campaignId The given campaign id (required) - * @param preferredLineItemCreateModel202110Request The line item settings to create a line item with (optional) - * @return ApiResponse<PreferredLineItem202110Response> + * Gets a collection of monthly and daily budget overrides for the provided line item. + * @param lineItemId The line item id to get budget overrides for. (required) + * @return ApiResponse<ValueResourceOutcomeOfLineItemBudgetOverrides> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - +
Status Code Description Response Headers
201 Success -
400 Bad Request -
200 Success -
*/ - public ApiResponse postApi202110ExternalCampaignPreferredLineItemsByCampaignIdWithHttpInfo(String campaignId, PreferredLineItemCreateModel202110Request preferredLineItemCreateModel202110Request) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(campaignId, preferredLineItemCreateModel202110Request, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getLineItemBudgetOverridesWithHttpInfo(String lineItemId) throws ApiException { + okhttp3.Call localVarCall = getLineItemBudgetOverridesValidateBeforeCall(lineItemId, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Creates a new preferred line item with the specified settings - * @param campaignId The given campaign id (required) - * @param preferredLineItemCreateModel202110Request The line item settings to create a line item with (optional) + * Gets a collection of monthly and daily budget overrides for the provided line item. + * @param lineItemId The line item id to get budget overrides for. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - +
Status Code Description Response Headers
201 Success -
400 Bad Request -
200 Success -
*/ - public okhttp3.Call postApi202110ExternalCampaignPreferredLineItemsByCampaignIdAsync(String campaignId, PreferredLineItemCreateModel202110Request preferredLineItemCreateModel202110Request, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLineItemBudgetOverridesAsync(String lineItemId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(campaignId, preferredLineItemCreateModel202110Request, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getLineItemBudgetOverridesValidateBeforeCall(lineItemId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for postApi202110ExternalLineItemProductsAppendByLineItemId - * @param lineItemId The line item to interact with (required) - * @param promotedProduct202110ListRequest the products to append to this line item (optional) + * Build call for pausePromotedProducts + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - + + +
Status Code Description Response Headers
200 Success -
204 Promoted products paused -
400 Invalid request body -
403 Invalid external line item ID -
*/ - public okhttp3.Call postApi202110ExternalLineItemProductsAppendByLineItemIdCall(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call pausePromotedProductsCall(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4675,10 +4547,10 @@ public okhttp3.Call postApi202110ExternalLineItemProductsAppendByLineItemIdCall( basePath = null; } - Object localVarPostBody = promotedProduct202110ListRequest; + Object localVarPostBody = promotedProductResourceCollectionInput; // create path and map variables - String localVarPath = "/2023-07/retail-media/line-items/{line-item-id}/products/append" + String localVarPath = "/2024-10/retail-media/line-items/{line-item-id}/products/pause" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -4708,78 +4580,80 @@ public okhttp3.Call postApi202110ExternalLineItemProductsAppendByLineItemIdCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call postApi202110ExternalLineItemProductsAppendByLineItemIdValidateBeforeCall(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call pausePromotedProductsValidateBeforeCall(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { // verify the required parameter 'lineItemId' is set if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling postApi202110ExternalLineItemProductsAppendByLineItemId(Async)"); + throw new ApiException("Missing the required parameter 'lineItemId' when calling pausePromotedProducts(Async)"); } - return postApi202110ExternalLineItemProductsAppendByLineItemIdCall(lineItemId, promotedProduct202110ListRequest, _callback); + return pausePromotedProductsCall(lineItemId, promotedProductResourceCollectionInput, _callback); } /** * - * This endpoint appends one or more products to promote on the specified line item. The resulting state of the line item is returned. - * @param lineItemId The line item to interact with (required) - * @param promotedProduct202110ListRequest the products to append to this line item (optional) - * @return PromotedProduct202110PagedListResponse + * Pause a collection of promoted products associated with a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + + +
Status Code Description Response Headers
200 Success -
204 Promoted products paused -
400 Invalid request body -
403 Invalid external line item ID -
*/ - public PromotedProduct202110PagedListResponse postApi202110ExternalLineItemProductsAppendByLineItemId(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest) throws ApiException { - ApiResponse localVarResp = postApi202110ExternalLineItemProductsAppendByLineItemIdWithHttpInfo(lineItemId, promotedProduct202110ListRequest); - return localVarResp.getData(); + public void pausePromotedProducts(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput) throws ApiException { + pausePromotedProductsWithHttpInfo(lineItemId, promotedProductResourceCollectionInput); } /** * - * This endpoint appends one or more products to promote on the specified line item. The resulting state of the line item is returned. - * @param lineItemId The line item to interact with (required) - * @param promotedProduct202110ListRequest the products to append to this line item (optional) - * @return ApiResponse<PromotedProduct202110PagedListResponse> + * Pause a collection of promoted products associated with a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - + + +
Status Code Description Response Headers
200 Success -
204 Promoted products paused -
400 Invalid request body -
403 Invalid external line item ID -
*/ - public ApiResponse postApi202110ExternalLineItemProductsAppendByLineItemIdWithHttpInfo(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalLineItemProductsAppendByLineItemIdValidateBeforeCall(lineItemId, promotedProduct202110ListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + public ApiResponse pausePromotedProductsWithHttpInfo(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput) throws ApiException { + okhttp3.Call localVarCall = pausePromotedProductsValidateBeforeCall(lineItemId, promotedProductResourceCollectionInput, null); + return localVarApiClient.execute(localVarCall); } /** * (asynchronously) - * This endpoint appends one or more products to promote on the specified line item. The resulting state of the line item is returned. - * @param lineItemId The line item to interact with (required) - * @param promotedProduct202110ListRequest the products to append to this line item (optional) + * Pause a collection of promoted products associated with a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - + + +
Status Code Description Response Headers
200 Success -
204 Promoted products paused -
400 Invalid request body -
403 Invalid external line item ID -
*/ - public okhttp3.Call postApi202110ExternalLineItemProductsAppendByLineItemIdAsync(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call pausePromotedProductsAsync(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalLineItemProductsAppendByLineItemIdValidateBeforeCall(lineItemId, promotedProduct202110ListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + okhttp3.Call localVarCall = pausePromotedProductsValidateBeforeCall(lineItemId, promotedProductResourceCollectionInput, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** - * Build call for postApi202110ExternalLineItemProductsDeleteByLineItemId + * Build call for postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId * @param lineItemId The line item to interact with (required) - * @param promotedProduct202110ListRequest (optional) + * @param keywordTarget202110Request (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4787,9 +4661,10 @@ public okhttp3.Call postApi202110ExternalLineItemProductsAppendByLineItemIdAsync +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call postApi202110ExternalLineItemProductsDeleteByLineItemIdCall(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdCall(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4803,10 +4678,10 @@ public okhttp3.Call postApi202110ExternalLineItemProductsDeleteByLineItemIdCall( basePath = null; } - Object localVarPostBody = promotedProduct202110ListRequest; + Object localVarPostBody = keywordTarget202110Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/line-items/{line-item-id}/products/delete" + String localVarPath = "/2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -4836,58 +4711,60 @@ public okhttp3.Call postApi202110ExternalLineItemProductsDeleteByLineItemIdCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call postApi202110ExternalLineItemProductsDeleteByLineItemIdValidateBeforeCall(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdValidateBeforeCall(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { // verify the required parameter 'lineItemId' is set if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling postApi202110ExternalLineItemProductsDeleteByLineItemId(Async)"); + throw new ApiException("Missing the required parameter 'lineItemId' when calling postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId(Async)"); } - return postApi202110ExternalLineItemProductsDeleteByLineItemIdCall(lineItemId, promotedProduct202110ListRequest, _callback); + return postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdCall(lineItemId, keywordTarget202110Request, _callback); } /** * - * This endpoint removes one or more products from promotion on the specified line item. The resulting state of the line item is returned. + * This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. * @param lineItemId The line item to interact with (required) - * @param promotedProduct202110ListRequest (optional) - * @return PromotedProduct202110PagedListResponse + * @param keywordTarget202110Request (optional) + * @return KeywordTarget202110Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public PromotedProduct202110PagedListResponse postApi202110ExternalLineItemProductsDeleteByLineItemId(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest) throws ApiException { - ApiResponse localVarResp = postApi202110ExternalLineItemProductsDeleteByLineItemIdWithHttpInfo(lineItemId, promotedProduct202110ListRequest); + public KeywordTarget202110Response postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId(String lineItemId, KeywordTarget202110Request keywordTarget202110Request) throws ApiException { + ApiResponse localVarResp = postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdWithHttpInfo(lineItemId, keywordTarget202110Request); return localVarResp.getData(); } /** * - * This endpoint removes one or more products from promotion on the specified line item. The resulting state of the line item is returned. + * This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. * @param lineItemId The line item to interact with (required) - * @param promotedProduct202110ListRequest (optional) - * @return ApiResponse<PromotedProduct202110PagedListResponse> + * @param keywordTarget202110Request (optional) + * @return ApiResponse<KeywordTarget202110Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public ApiResponse postApi202110ExternalLineItemProductsDeleteByLineItemIdWithHttpInfo(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalLineItemProductsDeleteByLineItemIdValidateBeforeCall(lineItemId, promotedProduct202110ListRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdWithHttpInfo(String lineItemId, KeywordTarget202110Request keywordTarget202110Request) throws ApiException { + okhttp3.Call localVarCall = postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdValidateBeforeCall(lineItemId, keywordTarget202110Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * This endpoint removes one or more products from promotion on the specified line item. The resulting state of the line item is returned. + * This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. * @param lineItemId The line item to interact with (required) - * @param promotedProduct202110ListRequest (optional) + * @param keywordTarget202110Request (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4895,19 +4772,20 @@ public ApiResponse postApi202110External +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call postApi202110ExternalLineItemProductsDeleteByLineItemIdAsync(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdAsync(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalLineItemProductsDeleteByLineItemIdValidateBeforeCall(lineItemId, promotedProduct202110ListRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemIdValidateBeforeCall(lineItemId, keywordTarget202110Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for postApi202110ExternalLineItemProductsPauseByLineItemId - * @param lineItemId The line item to interact with. (required) - * @param promotedProduct202110ListRequest The products from which their IDs will be used to pause. (optional) + * Build call for postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId + * @param lineItemId The line item to interact with (required) + * @param keywordTarget202110Request (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4915,9 +4793,10 @@ public okhttp3.Call postApi202110ExternalLineItemProductsDeleteByLineItemIdAsync +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call postApi202110ExternalLineItemProductsPauseByLineItemIdCall(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdCall(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4931,10 +4810,10 @@ public okhttp3.Call postApi202110ExternalLineItemProductsPauseByLineItemIdCall(S basePath = null; } - Object localVarPostBody = promotedProduct202110ListRequest; + Object localVarPostBody = keywordTarget202110Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/line-items/{line-item-id}/products/pause" + String localVarPath = "/2024-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -4944,6 +4823,7 @@ public okhttp3.Call postApi202110ExternalLineItemProductsPauseByLineItemIdCall(S Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4963,55 +4843,60 @@ public okhttp3.Call postApi202110ExternalLineItemProductsPauseByLineItemIdCall(S } @SuppressWarnings("rawtypes") - private okhttp3.Call postApi202110ExternalLineItemProductsPauseByLineItemIdValidateBeforeCall(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdValidateBeforeCall(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { // verify the required parameter 'lineItemId' is set if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling postApi202110ExternalLineItemProductsPauseByLineItemId(Async)"); + throw new ApiException("Missing the required parameter 'lineItemId' when calling postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId(Async)"); } - return postApi202110ExternalLineItemProductsPauseByLineItemIdCall(lineItemId, promotedProduct202110ListRequest, _callback); + return postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdCall(lineItemId, keywordTarget202110Request, _callback); } /** * - * This endpoint pauses one or more promoted products on a specified line item. - * @param lineItemId The line item to interact with. (required) - * @param promotedProduct202110ListRequest The products from which their IDs will be used to pause. (optional) + * This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. + * @param lineItemId The line item to interact with (required) + * @param keywordTarget202110Request (optional) + * @return KeywordTarget202110Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public void postApi202110ExternalLineItemProductsPauseByLineItemId(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest) throws ApiException { - postApi202110ExternalLineItemProductsPauseByLineItemIdWithHttpInfo(lineItemId, promotedProduct202110ListRequest); + public KeywordTarget202110Response postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId(String lineItemId, KeywordTarget202110Request keywordTarget202110Request) throws ApiException { + ApiResponse localVarResp = postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdWithHttpInfo(lineItemId, keywordTarget202110Request); + return localVarResp.getData(); } /** * - * This endpoint pauses one or more promoted products on a specified line item. - * @param lineItemId The line item to interact with. (required) - * @param promotedProduct202110ListRequest The products from which their IDs will be used to pause. (optional) - * @return ApiResponse<Void> + * This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. + * @param lineItemId The line item to interact with (required) + * @param keywordTarget202110Request (optional) + * @return ApiResponse<KeywordTarget202110Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public ApiResponse postApi202110ExternalLineItemProductsPauseByLineItemIdWithHttpInfo(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalLineItemProductsPauseByLineItemIdValidateBeforeCall(lineItemId, promotedProduct202110ListRequest, null); - return localVarApiClient.execute(localVarCall); + public ApiResponse postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdWithHttpInfo(String lineItemId, KeywordTarget202110Request keywordTarget202110Request) throws ApiException { + okhttp3.Call localVarCall = postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdValidateBeforeCall(lineItemId, keywordTarget202110Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * This endpoint pauses one or more promoted products on a specified line item. - * @param lineItemId The line item to interact with. (required) - * @param promotedProduct202110ListRequest The products from which their IDs will be used to pause. (optional) + * This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. + * @param lineItemId The line item to interact with (required) + * @param keywordTarget202110Request (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5019,18 +4904,20 @@ public ApiResponse postApi202110ExternalLineItemProductsPauseByLineItemIdW +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call postApi202110ExternalLineItemProductsPauseByLineItemIdAsync(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdAsync(String lineItemId, KeywordTarget202110Request keywordTarget202110Request, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalLineItemProductsPauseByLineItemIdValidateBeforeCall(lineItemId, promotedProduct202110ListRequest, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); + okhttp3.Call localVarCall = postApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemIdValidateBeforeCall(lineItemId, keywordTarget202110Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for postApi202110ExternalLineItemProductsUnpauseByLineItemId - * @param lineItemId The line item to interact with. (required) - * @param promotedProduct202110ListRequest The products from which their IDs will be used to unpause. (optional) + * Build call for postApi202110ExternalBalanceCampaignsAppendByBalanceId + * @param balanceId The balance to add campaigns from (required) + * @param balanceCampaign202110ListRequest The campaigns to append (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5040,7 +4927,7 @@ public okhttp3.Call postApi202110ExternalLineItemProductsPauseByLineItemIdAsync( 200 Success - */ - public okhttp3.Call postApi202110ExternalLineItemProductsUnpauseByLineItemIdCall(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApi202110ExternalBalanceCampaignsAppendByBalanceIdCall(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5054,11 +4941,11 @@ public okhttp3.Call postApi202110ExternalLineItemProductsUnpauseByLineItemIdCall basePath = null; } - Object localVarPostBody = promotedProduct202110ListRequest; + Object localVarPostBody = balanceCampaign202110ListRequest; // create path and map variables - String localVarPath = "/2023-07/retail-media/line-items/{line-item-id}/products/unpause" - .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); + String localVarPath = "/2024-10/retail-media/balances/{balance-id}/campaigns/append" + .replace("{" + "balance-id" + "}", localVarApiClient.escapeString(balanceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5067,6 +4954,7 @@ public okhttp3.Call postApi202110ExternalLineItemProductsUnpauseByLineItemIdCall Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5086,21 +4974,22 @@ public okhttp3.Call postApi202110ExternalLineItemProductsUnpauseByLineItemIdCall } @SuppressWarnings("rawtypes") - private okhttp3.Call postApi202110ExternalLineItemProductsUnpauseByLineItemIdValidateBeforeCall(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'lineItemId' is set - if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling postApi202110ExternalLineItemProductsUnpauseByLineItemId(Async)"); + private okhttp3.Call postApi202110ExternalBalanceCampaignsAppendByBalanceIdValidateBeforeCall(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'balanceId' is set + if (balanceId == null) { + throw new ApiException("Missing the required parameter 'balanceId' when calling postApi202110ExternalBalanceCampaignsAppendByBalanceId(Async)"); } - return postApi202110ExternalLineItemProductsUnpauseByLineItemIdCall(lineItemId, promotedProduct202110ListRequest, _callback); + return postApi202110ExternalBalanceCampaignsAppendByBalanceIdCall(balanceId, balanceCampaign202110ListRequest, _callback); } /** * - * This endpoint unpauses one or more promoted products on a specified line item. - * @param lineItemId The line item to interact with. (required) - * @param promotedProduct202110ListRequest The products from which their IDs will be used to unpause. (optional) + * appends one or more campaigns to the specified balance + * @param balanceId The balance to add campaigns from (required) + * @param balanceCampaign202110ListRequest The campaigns to append (optional) + * @return BalanceCampaign202110PagedListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5108,16 +4997,17 @@ private okhttp3.Call postApi202110ExternalLineItemProductsUnpauseByLineItemIdVal
200 Success -
*/ - public void postApi202110ExternalLineItemProductsUnpauseByLineItemId(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest) throws ApiException { - postApi202110ExternalLineItemProductsUnpauseByLineItemIdWithHttpInfo(lineItemId, promotedProduct202110ListRequest); + public BalanceCampaign202110PagedListResponse postApi202110ExternalBalanceCampaignsAppendByBalanceId(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest) throws ApiException { + ApiResponse localVarResp = postApi202110ExternalBalanceCampaignsAppendByBalanceIdWithHttpInfo(balanceId, balanceCampaign202110ListRequest); + return localVarResp.getData(); } /** * - * This endpoint unpauses one or more promoted products on a specified line item. - * @param lineItemId The line item to interact with. (required) - * @param promotedProduct202110ListRequest The products from which their IDs will be used to unpause. (optional) - * @return ApiResponse<Void> + * appends one or more campaigns to the specified balance + * @param balanceId The balance to add campaigns from (required) + * @param balanceCampaign202110ListRequest The campaigns to append (optional) + * @return ApiResponse<BalanceCampaign202110PagedListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5125,16 +5015,17 @@ public void postApi202110ExternalLineItemProductsUnpauseByLineItemId(String line
200 Success -
*/ - public ApiResponse postApi202110ExternalLineItemProductsUnpauseByLineItemIdWithHttpInfo(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalLineItemProductsUnpauseByLineItemIdValidateBeforeCall(lineItemId, promotedProduct202110ListRequest, null); - return localVarApiClient.execute(localVarCall); + public ApiResponse postApi202110ExternalBalanceCampaignsAppendByBalanceIdWithHttpInfo(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest) throws ApiException { + okhttp3.Call localVarCall = postApi202110ExternalBalanceCampaignsAppendByBalanceIdValidateBeforeCall(balanceId, balanceCampaign202110ListRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * This endpoint unpauses one or more promoted products on a specified line item. - * @param lineItemId The line item to interact with. (required) - * @param promotedProduct202110ListRequest The products from which their IDs will be used to unpause. (optional) + * appends one or more campaigns to the specified balance + * @param balanceId The balance to add campaigns from (required) + * @param balanceCampaign202110ListRequest The campaigns to append (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5144,12 +5035,278 @@ public ApiResponse postApi202110ExternalLineItemProductsUnpauseByLineItemI 200 Success - */ - public okhttp3.Call postApi202110ExternalLineItemProductsUnpauseByLineItemIdAsync(String lineItemId, PromotedProduct202110ListRequest promotedProduct202110ListRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApi202110ExternalBalanceCampaignsAppendByBalanceIdAsync(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApi202110ExternalLineItemProductsUnpauseByLineItemIdValidateBeforeCall(lineItemId, promotedProduct202110ListRequest, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } + okhttp3.Call localVarCall = postApi202110ExternalBalanceCampaignsAppendByBalanceIdValidateBeforeCall(balanceId, balanceCampaign202110ListRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for postApi202110ExternalBalanceCampaignsDeleteByBalanceId + * @param balanceId The balance to remove campaigns from (required) + * @param balanceCampaign202110ListRequest The campaigns to append (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call postApi202110ExternalBalanceCampaignsDeleteByBalanceIdCall(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = balanceCampaign202110ListRequest; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/balances/{balance-id}/campaigns/delete" + .replace("{" + "balance-id" + "}", localVarApiClient.escapeString(balanceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postApi202110ExternalBalanceCampaignsDeleteByBalanceIdValidateBeforeCall(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'balanceId' is set + if (balanceId == null) { + throw new ApiException("Missing the required parameter 'balanceId' when calling postApi202110ExternalBalanceCampaignsDeleteByBalanceId(Async)"); + } + + return postApi202110ExternalBalanceCampaignsDeleteByBalanceIdCall(balanceId, balanceCampaign202110ListRequest, _callback); + + } + + /** + * + * Removes one or more campaigns on the specified balance + * @param balanceId The balance to remove campaigns from (required) + * @param balanceCampaign202110ListRequest The campaigns to append (optional) + * @return BalanceCampaign202110PagedListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public BalanceCampaign202110PagedListResponse postApi202110ExternalBalanceCampaignsDeleteByBalanceId(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest) throws ApiException { + ApiResponse localVarResp = postApi202110ExternalBalanceCampaignsDeleteByBalanceIdWithHttpInfo(balanceId, balanceCampaign202110ListRequest); + return localVarResp.getData(); + } + + /** + * + * Removes one or more campaigns on the specified balance + * @param balanceId The balance to remove campaigns from (required) + * @param balanceCampaign202110ListRequest The campaigns to append (optional) + * @return ApiResponse<BalanceCampaign202110PagedListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse postApi202110ExternalBalanceCampaignsDeleteByBalanceIdWithHttpInfo(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest) throws ApiException { + okhttp3.Call localVarCall = postApi202110ExternalBalanceCampaignsDeleteByBalanceIdValidateBeforeCall(balanceId, balanceCampaign202110ListRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Removes one or more campaigns on the specified balance + * @param balanceId The balance to remove campaigns from (required) + * @param balanceCampaign202110ListRequest The campaigns to append (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call postApi202110ExternalBalanceCampaignsDeleteByBalanceIdAsync(String balanceId, BalanceCampaign202110ListRequest balanceCampaign202110ListRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postApi202110ExternalBalanceCampaignsDeleteByBalanceIdValidateBeforeCall(balanceId, balanceCampaign202110ListRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for postApi202110ExternalCampaignPreferredLineItemsByCampaignId + * @param campaignId The given campaign id (required) + * @param preferredLineItemCreateModelV2Request The line item settings to create a line item with (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Success -
400 Bad Request -
+ */ + public okhttp3.Call postApi202110ExternalCampaignPreferredLineItemsByCampaignIdCall(String campaignId, PreferredLineItemCreateModelV2Request preferredLineItemCreateModelV2Request, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = preferredLineItemCreateModelV2Request; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/campaigns/{campaign-id}/preferred-line-items" + .replace("{" + "campaign-id" + "}", localVarApiClient.escapeString(campaignId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call postApi202110ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(String campaignId, PreferredLineItemCreateModelV2Request preferredLineItemCreateModelV2Request, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling postApi202110ExternalCampaignPreferredLineItemsByCampaignId(Async)"); + } + + // verify the required parameter 'preferredLineItemCreateModelV2Request' is set + if (preferredLineItemCreateModelV2Request == null) { + throw new ApiException("Missing the required parameter 'preferredLineItemCreateModelV2Request' when calling postApi202110ExternalCampaignPreferredLineItemsByCampaignId(Async)"); + } + + return postApi202110ExternalCampaignPreferredLineItemsByCampaignIdCall(campaignId, preferredLineItemCreateModelV2Request, _callback); + + } + + /** + * + * Creates a new preferred line item with the specified settings + * @param campaignId The given campaign id (required) + * @param preferredLineItemCreateModelV2Request The line item settings to create a line item with (required) + * @return PreferredLineItemV2Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Success -
400 Bad Request -
+ */ + public PreferredLineItemV2Response postApi202110ExternalCampaignPreferredLineItemsByCampaignId(String campaignId, PreferredLineItemCreateModelV2Request preferredLineItemCreateModelV2Request) throws ApiException { + ApiResponse localVarResp = postApi202110ExternalCampaignPreferredLineItemsByCampaignIdWithHttpInfo(campaignId, preferredLineItemCreateModelV2Request); + return localVarResp.getData(); + } + + /** + * + * Creates a new preferred line item with the specified settings + * @param campaignId The given campaign id (required) + * @param preferredLineItemCreateModelV2Request The line item settings to create a line item with (required) + * @return ApiResponse<PreferredLineItemV2Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Success -
400 Bad Request -
+ */ + public ApiResponse postApi202110ExternalCampaignPreferredLineItemsByCampaignIdWithHttpInfo(String campaignId, PreferredLineItemCreateModelV2Request preferredLineItemCreateModelV2Request) throws ApiException { + okhttp3.Call localVarCall = postApi202110ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(campaignId, preferredLineItemCreateModelV2Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Creates a new preferred line item with the specified settings + * @param campaignId The given campaign id (required) + * @param preferredLineItemCreateModelV2Request The line item settings to create a line item with (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Success -
400 Bad Request -
+ */ + public okhttp3.Call postApi202110ExternalCampaignPreferredLineItemsByCampaignIdAsync(String campaignId, PreferredLineItemCreateModelV2Request preferredLineItemCreateModelV2Request, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = postApi202110ExternalCampaignPreferredLineItemsByCampaignIdValidateBeforeCall(campaignId, preferredLineItemCreateModelV2Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for postApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId * @param lineItemId The line item to interact with (required) @@ -5181,7 +5338,7 @@ public okhttp3.Call postApi202110ExternalPreferredLineItemTargetingAddToBasketAp Object localVarPostBody = addToBasketIdsUpdateModel202110Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -5313,7 +5470,7 @@ public okhttp3.Call postApi202110ExternalPreferredLineItemTargetingAddToBasketDe Object localVarPostBody = addToBasketIdsUpdateModel202110Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -5445,7 +5602,7 @@ public okhttp3.Call postApi202110ExternalPreferredLineItemTargetingAudiencesAppe Object localVarPostBody = audienceIdsUpdateModel202110Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -5577,7 +5734,7 @@ public okhttp3.Call postApi202110ExternalPreferredLineItemTargetingAudiencesDele Object localVarPostBody = audienceIdsUpdateModel202110Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -5709,7 +5866,7 @@ public okhttp3.Call postApi202110ExternalPreferredLineItemTargetingStoresAppendB Object localVarPostBody = storeIdsUpdateModel202110Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -5841,7 +5998,7 @@ public okhttp3.Call postApi202110ExternalPreferredLineItemTargetingStoresDeleteB Object localVarPostBody = storeIdsUpdateModel202110Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -5972,7 +6129,7 @@ public okhttp3.Call postApi202210ExternalAccountCreativesByAccountIdCall(String Object localVarPostBody = creativeCreateModel202207; // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{account-id}/creatives" + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/creatives" .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); @@ -6071,19 +6228,19 @@ public okhttp3.Call postApi202210ExternalAccountCreativesByAccountIdAsync(String return localVarCall; } /** - * Build call for postApi202210ExternalAccountCreativesSearchByAccountId - * @param accountId External account id to retrieve creatives for (required) - * @param creativeIds Creatives to filter by (optional) + * Build call for postApi202301ExternalAccountCampaignsByAccountId + * @param accountId The account to request the campaign for. (required) + * @param postCampaignV202301 Creatable campaign attributes (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
Status Code Description Response Headers
200 Creatives found -
201 Success -
*/ - public okhttp3.Call postApi202210ExternalAccountCreativesSearchByAccountIdCall(String accountId, List creativeIds, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApi202301ExternalAccountCampaignsByAccountIdCall(String accountId, PostCampaignV202301 postCampaignV202301, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6097,10 +6254,10 @@ public okhttp3.Call postApi202210ExternalAccountCreativesSearchByAccountIdCall(S basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = postCampaignV202301; // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{account-id}/creatives/search" + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/campaigns" .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); @@ -6109,10 +6266,6 @@ public okhttp3.Call postApi202210ExternalAccountCreativesSearchByAccountIdCall(S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (creativeIds != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "creative-ids", creativeIds)); - } - final String[] localVarAccepts = { "application/json" }; @@ -6122,6 +6275,7 @@ public okhttp3.Call postApi202210ExternalAccountCreativesSearchByAccountIdCall(S } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -6133,88 +6287,88 @@ public okhttp3.Call postApi202210ExternalAccountCreativesSearchByAccountIdCall(S } @SuppressWarnings("rawtypes") - private okhttp3.Call postApi202210ExternalAccountCreativesSearchByAccountIdValidateBeforeCall(String accountId, List creativeIds, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postApi202301ExternalAccountCampaignsByAccountIdValidateBeforeCall(String accountId, PostCampaignV202301 postCampaignV202301, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling postApi202210ExternalAccountCreativesSearchByAccountId(Async)"); + throw new ApiException("Missing the required parameter 'accountId' when calling postApi202301ExternalAccountCampaignsByAccountId(Async)"); } - return postApi202210ExternalAccountCreativesSearchByAccountIdCall(accountId, creativeIds, _callback); + return postApi202301ExternalAccountCampaignsByAccountIdCall(accountId, postCampaignV202301, _callback); } /** * - * Get account creatives - * @param accountId External account id to retrieve creatives for (required) - * @param creativeIds Creatives to filter by (optional) - * @return Creative202210ListResponse + * Create a campaign and assign budgets for the given account id with creatable campaign attributes given in request body constrained by business validation. The validation error includes details and source of errors. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. + * @param accountId The account to request the campaign for. (required) + * @param postCampaignV202301 Creatable campaign attributes (optional) + * @return JsonApiSingleResponseOfCampaignV202301 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 Creatives found -
201 Success -
*/ - public Creative202210ListResponse postApi202210ExternalAccountCreativesSearchByAccountId(String accountId, List creativeIds) throws ApiException { - ApiResponse localVarResp = postApi202210ExternalAccountCreativesSearchByAccountIdWithHttpInfo(accountId, creativeIds); + public JsonApiSingleResponseOfCampaignV202301 postApi202301ExternalAccountCampaignsByAccountId(String accountId, PostCampaignV202301 postCampaignV202301) throws ApiException { + ApiResponse localVarResp = postApi202301ExternalAccountCampaignsByAccountIdWithHttpInfo(accountId, postCampaignV202301); return localVarResp.getData(); } /** * - * Get account creatives - * @param accountId External account id to retrieve creatives for (required) - * @param creativeIds Creatives to filter by (optional) - * @return ApiResponse<Creative202210ListResponse> + * Create a campaign and assign budgets for the given account id with creatable campaign attributes given in request body constrained by business validation. The validation error includes details and source of errors. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. + * @param accountId The account to request the campaign for. (required) + * @param postCampaignV202301 Creatable campaign attributes (optional) + * @return ApiResponse<JsonApiSingleResponseOfCampaignV202301> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 Creatives found -
201 Success -
*/ - public ApiResponse postApi202210ExternalAccountCreativesSearchByAccountIdWithHttpInfo(String accountId, List creativeIds) throws ApiException { - okhttp3.Call localVarCall = postApi202210ExternalAccountCreativesSearchByAccountIdValidateBeforeCall(accountId, creativeIds, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postApi202301ExternalAccountCampaignsByAccountIdWithHttpInfo(String accountId, PostCampaignV202301 postCampaignV202301) throws ApiException { + okhttp3.Call localVarCall = postApi202301ExternalAccountCampaignsByAccountIdValidateBeforeCall(accountId, postCampaignV202301, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Get account creatives - * @param accountId External account id to retrieve creatives for (required) - * @param creativeIds Creatives to filter by (optional) + * Create a campaign and assign budgets for the given account id with creatable campaign attributes given in request body constrained by business validation. The validation error includes details and source of errors. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. + * @param accountId The account to request the campaign for. (required) + * @param postCampaignV202301 Creatable campaign attributes (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
Status Code Description Response Headers
200 Creatives found -
201 Success -
*/ - public okhttp3.Call postApi202210ExternalAccountCreativesSearchByAccountIdAsync(String accountId, List creativeIds, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApi202301ExternalAccountCampaignsByAccountIdAsync(String accountId, PostCampaignV202301 postCampaignV202301, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApi202210ExternalAccountCreativesSearchByAccountIdValidateBeforeCall(accountId, creativeIds, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postApi202301ExternalAccountCampaignsByAccountIdValidateBeforeCall(accountId, postCampaignV202301, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for postApi202301ExternalAccountCampaignsByAccountId - * @param accountId The account to request the campaign for. (required) - * @param postCampaignV202301 Creatable campaign attributes (optional) + * Build call for postApiV1ExternalAccountCatalogsByAccountId + * @param accountId The account to request the catalog for. (required) + * @param jsonApiRequestOfCatalogRequest (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
Status Code Description Response Headers
201 Success -
200 Catalog request successfully created -
*/ - public okhttp3.Call postApi202301ExternalAccountCampaignsByAccountIdCall(String accountId, PostCampaignV202301 postCampaignV202301, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApiV1ExternalAccountCatalogsByAccountIdCall(String accountId, JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6228,11 +6382,11 @@ public okhttp3.Call postApi202301ExternalAccountCampaignsByAccountIdCall(String basePath = null; } - Object localVarPostBody = postCampaignV202301; + Object localVarPostBody = jsonApiRequestOfCatalogRequest; // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{account-id}/campaigns" - .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); + String localVarPath = "/2024-10/retail-media/accounts/{accountId}/catalogs" + .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6261,88 +6415,88 @@ public okhttp3.Call postApi202301ExternalAccountCampaignsByAccountIdCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call postApi202301ExternalAccountCampaignsByAccountIdValidateBeforeCall(String accountId, PostCampaignV202301 postCampaignV202301, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postApiV1ExternalAccountCatalogsByAccountIdValidateBeforeCall(String accountId, JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling postApi202301ExternalAccountCampaignsByAccountId(Async)"); + throw new ApiException("Missing the required parameter 'accountId' when calling postApiV1ExternalAccountCatalogsByAccountId(Async)"); } - return postApi202301ExternalAccountCampaignsByAccountIdCall(accountId, postCampaignV202301, _callback); + return postApiV1ExternalAccountCatalogsByAccountIdCall(accountId, jsonApiRequestOfCatalogRequest, _callback); } /** * - * Create a campaign and assign budgets for the given account id with creatable campaign attributes given in request body constrained by business validation. The validation error includes details and source of errors. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. - * @param accountId The account to request the campaign for. (required) - * @param postCampaignV202301 Creatable campaign attributes (optional) - * @return JsonApiSingleResponseOfCampaignV202301 + * Create a request for a Catalog available to the indicated account. + * @param accountId The account to request the catalog for. (required) + * @param jsonApiRequestOfCatalogRequest (optional) + * @return JsonApiSingleResponseOfCatalogStatus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
201 Success -
200 Catalog request successfully created -
*/ - public JsonApiSingleResponseOfCampaignV202301 postApi202301ExternalAccountCampaignsByAccountId(String accountId, PostCampaignV202301 postCampaignV202301) throws ApiException { - ApiResponse localVarResp = postApi202301ExternalAccountCampaignsByAccountIdWithHttpInfo(accountId, postCampaignV202301); + public JsonApiSingleResponseOfCatalogStatus postApiV1ExternalAccountCatalogsByAccountId(String accountId, JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest) throws ApiException { + ApiResponse localVarResp = postApiV1ExternalAccountCatalogsByAccountIdWithHttpInfo(accountId, jsonApiRequestOfCatalogRequest); return localVarResp.getData(); } /** * - * Create a campaign and assign budgets for the given account id with creatable campaign attributes given in request body constrained by business validation. The validation error includes details and source of errors. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. - * @param accountId The account to request the campaign for. (required) - * @param postCampaignV202301 Creatable campaign attributes (optional) - * @return ApiResponse<JsonApiSingleResponseOfCampaignV202301> + * Create a request for a Catalog available to the indicated account. + * @param accountId The account to request the catalog for. (required) + * @param jsonApiRequestOfCatalogRequest (optional) + * @return ApiResponse<JsonApiSingleResponseOfCatalogStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
201 Success -
200 Catalog request successfully created -
*/ - public ApiResponse postApi202301ExternalAccountCampaignsByAccountIdWithHttpInfo(String accountId, PostCampaignV202301 postCampaignV202301) throws ApiException { - okhttp3.Call localVarCall = postApi202301ExternalAccountCampaignsByAccountIdValidateBeforeCall(accountId, postCampaignV202301, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postApiV1ExternalAccountCatalogsByAccountIdWithHttpInfo(String accountId, JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest) throws ApiException { + okhttp3.Call localVarCall = postApiV1ExternalAccountCatalogsByAccountIdValidateBeforeCall(accountId, jsonApiRequestOfCatalogRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Create a campaign and assign budgets for the given account id with creatable campaign attributes given in request body constrained by business validation. The validation error includes details and source of errors. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. - * @param accountId The account to request the campaign for. (required) - * @param postCampaignV202301 Creatable campaign attributes (optional) + * Create a request for a Catalog available to the indicated account. + * @param accountId The account to request the catalog for. (required) + * @param jsonApiRequestOfCatalogRequest (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
Status Code Description Response Headers
201 Success -
200 Catalog request successfully created -
*/ - public okhttp3.Call postApi202301ExternalAccountCampaignsByAccountIdAsync(String accountId, PostCampaignV202301 postCampaignV202301, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApiV1ExternalAccountCatalogsByAccountIdAsync(String accountId, JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApi202301ExternalAccountCampaignsByAccountIdValidateBeforeCall(accountId, postCampaignV202301, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postApiV1ExternalAccountCatalogsByAccountIdValidateBeforeCall(accountId, jsonApiRequestOfCatalogRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for postApiV1ExternalAccountCatalogsByAccountId - * @param accountId The account to request the catalog for. (required) - * @param jsonApiRequestOfCatalogRequest (optional) + * Build call for postApiV2ExternalAccountCreativesSearchByAccountId + * @param accountId External account id to retrieve creatives for (required) + * @param creativeIds Creatives to filter by (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
Status Code Description Response Headers
200 Catalog request successfully created -
200 Creatives found -
*/ - public okhttp3.Call postApiV1ExternalAccountCatalogsByAccountIdCall(String accountId, JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApiV2ExternalAccountCreativesSearchByAccountIdCall(String accountId, List creativeIds, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6356,11 +6510,11 @@ public okhttp3.Call postApiV1ExternalAccountCatalogsByAccountIdCall(String accou basePath = null; } - Object localVarPostBody = jsonApiRequestOfCatalogRequest; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{accountId}/catalogs" - .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/creatives/search" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6368,8 +6522,14 @@ public okhttp3.Call postApiV1ExternalAccountCatalogsByAccountIdCall(String accou Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (creativeIds != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "creative-ids", creativeIds)); + } + final String[] localVarAccepts = { - "application/json" + "text/plain", + "application/json", + "text/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6377,7 +6537,6 @@ public okhttp3.Call postApiV1ExternalAccountCatalogsByAccountIdCall(String accou } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -6389,71 +6548,71 @@ public okhttp3.Call postApiV1ExternalAccountCatalogsByAccountIdCall(String accou } @SuppressWarnings("rawtypes") - private okhttp3.Call postApiV1ExternalAccountCatalogsByAccountIdValidateBeforeCall(String accountId, JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postApiV2ExternalAccountCreativesSearchByAccountIdValidateBeforeCall(String accountId, List creativeIds, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling postApiV1ExternalAccountCatalogsByAccountId(Async)"); + throw new ApiException("Missing the required parameter 'accountId' when calling postApiV2ExternalAccountCreativesSearchByAccountId(Async)"); } - return postApiV1ExternalAccountCatalogsByAccountIdCall(accountId, jsonApiRequestOfCatalogRequest, _callback); + return postApiV2ExternalAccountCreativesSearchByAccountIdCall(accountId, creativeIds, _callback); } /** * - * Create a request for a Catalog available to the indicated account. - * @param accountId The account to request the catalog for. (required) - * @param jsonApiRequestOfCatalogRequest (optional) - * @return JsonApiSingleResponseOfCatalogStatus + * Get account creatives + * @param accountId External account id to retrieve creatives for (required) + * @param creativeIds Creatives to filter by (optional) + * @return CreativeV2ListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 Catalog request successfully created -
200 Creatives found -
*/ - public JsonApiSingleResponseOfCatalogStatus postApiV1ExternalAccountCatalogsByAccountId(String accountId, JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest) throws ApiException { - ApiResponse localVarResp = postApiV1ExternalAccountCatalogsByAccountIdWithHttpInfo(accountId, jsonApiRequestOfCatalogRequest); + public CreativeV2ListResponse postApiV2ExternalAccountCreativesSearchByAccountId(String accountId, List creativeIds) throws ApiException { + ApiResponse localVarResp = postApiV2ExternalAccountCreativesSearchByAccountIdWithHttpInfo(accountId, creativeIds); return localVarResp.getData(); } /** * - * Create a request for a Catalog available to the indicated account. - * @param accountId The account to request the catalog for. (required) - * @param jsonApiRequestOfCatalogRequest (optional) - * @return ApiResponse<JsonApiSingleResponseOfCatalogStatus> + * Get account creatives + * @param accountId External account id to retrieve creatives for (required) + * @param creativeIds Creatives to filter by (optional) + * @return ApiResponse<CreativeV2ListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 Catalog request successfully created -
200 Creatives found -
*/ - public ApiResponse postApiV1ExternalAccountCatalogsByAccountIdWithHttpInfo(String accountId, JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest) throws ApiException { - okhttp3.Call localVarCall = postApiV1ExternalAccountCatalogsByAccountIdValidateBeforeCall(accountId, jsonApiRequestOfCatalogRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse postApiV2ExternalAccountCreativesSearchByAccountIdWithHttpInfo(String accountId, List creativeIds) throws ApiException { + okhttp3.Call localVarCall = postApiV2ExternalAccountCreativesSearchByAccountIdValidateBeforeCall(accountId, creativeIds, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Create a request for a Catalog available to the indicated account. - * @param accountId The account to request the catalog for. (required) - * @param jsonApiRequestOfCatalogRequest (optional) + * Get account creatives + * @param accountId External account id to retrieve creatives for (required) + * @param creativeIds Creatives to filter by (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
Status Code Description Response Headers
200 Catalog request successfully created -
200 Creatives found -
*/ - public okhttp3.Call postApiV1ExternalAccountCatalogsByAccountIdAsync(String accountId, JsonApiRequestOfCatalogRequest jsonApiRequestOfCatalogRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postApiV2ExternalAccountCreativesSearchByAccountIdAsync(String accountId, List creativeIds, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApiV1ExternalAccountCatalogsByAccountIdValidateBeforeCall(accountId, jsonApiRequestOfCatalogRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postApiV2ExternalAccountCreativesSearchByAccountIdValidateBeforeCall(accountId, creativeIds, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6488,7 +6647,7 @@ public okhttp3.Call postApiV2ExternalCampaignAuctionLineItemsByCampaignIdCall(St Object localVarPostBody = auctionLineItemCreateModelRequest; // create path and map variables - String localVarPath = "/2023-07/retail-media/campaigns/{campaign-id}/auction-line-items" + String localVarPath = "/2024-10/retail-media/campaigns/{campaign-id}/auction-line-items" .replace("{" + "campaign-id" + "}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); @@ -6592,7 +6751,7 @@ public okhttp3.Call postApiV2ExternalCampaignAuctionLineItemsByCampaignIdAsync(S /** * Build call for putApi202110ExternalPreferredLineItemByLineItemId * @param lineItemId The given line item id (required) - * @param preferredLineItemUpdateModel202110Request The line item settings to create a line item with (optional) + * @param preferredLineItemUpdateModelV2Request The line item settings to create a line item with (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6603,7 +6762,7 @@ public okhttp3.Call postApiV2ExternalCampaignAuctionLineItemsByCampaignIdAsync(S 400 Bad Request - */ - public okhttp3.Call putApi202110ExternalPreferredLineItemByLineItemIdCall(String lineItemId, PreferredLineItemUpdateModel202110Request preferredLineItemUpdateModel202110Request, final ApiCallback _callback) throws ApiException { + public okhttp3.Call putApi202110ExternalPreferredLineItemByLineItemIdCall(String lineItemId, PreferredLineItemUpdateModelV2Request preferredLineItemUpdateModelV2Request, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6617,10 +6776,10 @@ public okhttp3.Call putApi202110ExternalPreferredLineItemByLineItemIdCall(String basePath = null; } - Object localVarPostBody = preferredLineItemUpdateModel202110Request; + Object localVarPostBody = preferredLineItemUpdateModelV2Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -6650,13 +6809,18 @@ public okhttp3.Call putApi202110ExternalPreferredLineItemByLineItemIdCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call putApi202110ExternalPreferredLineItemByLineItemIdValidateBeforeCall(String lineItemId, PreferredLineItemUpdateModel202110Request preferredLineItemUpdateModel202110Request, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putApi202110ExternalPreferredLineItemByLineItemIdValidateBeforeCall(String lineItemId, PreferredLineItemUpdateModelV2Request preferredLineItemUpdateModelV2Request, final ApiCallback _callback) throws ApiException { // verify the required parameter 'lineItemId' is set if (lineItemId == null) { throw new ApiException("Missing the required parameter 'lineItemId' when calling putApi202110ExternalPreferredLineItemByLineItemId(Async)"); } - return putApi202110ExternalPreferredLineItemByLineItemIdCall(lineItemId, preferredLineItemUpdateModel202110Request, _callback); + // verify the required parameter 'preferredLineItemUpdateModelV2Request' is set + if (preferredLineItemUpdateModelV2Request == null) { + throw new ApiException("Missing the required parameter 'preferredLineItemUpdateModelV2Request' when calling putApi202110ExternalPreferredLineItemByLineItemId(Async)"); + } + + return putApi202110ExternalPreferredLineItemByLineItemIdCall(lineItemId, preferredLineItemUpdateModelV2Request, _callback); } @@ -6664,8 +6828,8 @@ private okhttp3.Call putApi202110ExternalPreferredLineItemByLineItemIdValidateBe * * Updates the preferred line item for the given line item id * @param lineItemId The given line item id (required) - * @param preferredLineItemUpdateModel202110Request The line item settings to create a line item with (optional) - * @return PreferredLineItem202110Response + * @param preferredLineItemUpdateModelV2Request The line item settings to create a line item with (required) + * @return PreferredLineItemV2Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6674,8 +6838,8 @@ private okhttp3.Call putApi202110ExternalPreferredLineItemByLineItemIdValidateBe
400 Bad Request -
*/ - public PreferredLineItem202110Response putApi202110ExternalPreferredLineItemByLineItemId(String lineItemId, PreferredLineItemUpdateModel202110Request preferredLineItemUpdateModel202110Request) throws ApiException { - ApiResponse localVarResp = putApi202110ExternalPreferredLineItemByLineItemIdWithHttpInfo(lineItemId, preferredLineItemUpdateModel202110Request); + public PreferredLineItemV2Response putApi202110ExternalPreferredLineItemByLineItemId(String lineItemId, PreferredLineItemUpdateModelV2Request preferredLineItemUpdateModelV2Request) throws ApiException { + ApiResponse localVarResp = putApi202110ExternalPreferredLineItemByLineItemIdWithHttpInfo(lineItemId, preferredLineItemUpdateModelV2Request); return localVarResp.getData(); } @@ -6683,8 +6847,8 @@ public PreferredLineItem202110Response putApi202110ExternalPreferredLineItemByLi * * Updates the preferred line item for the given line item id * @param lineItemId The given line item id (required) - * @param preferredLineItemUpdateModel202110Request The line item settings to create a line item with (optional) - * @return ApiResponse<PreferredLineItem202110Response> + * @param preferredLineItemUpdateModelV2Request The line item settings to create a line item with (required) + * @return ApiResponse<PreferredLineItemV2Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6693,9 +6857,9 @@ public PreferredLineItem202110Response putApi202110ExternalPreferredLineItemByLi
400 Bad Request -
*/ - public ApiResponse putApi202110ExternalPreferredLineItemByLineItemIdWithHttpInfo(String lineItemId, PreferredLineItemUpdateModel202110Request preferredLineItemUpdateModel202110Request) throws ApiException { - okhttp3.Call localVarCall = putApi202110ExternalPreferredLineItemByLineItemIdValidateBeforeCall(lineItemId, preferredLineItemUpdateModel202110Request, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putApi202110ExternalPreferredLineItemByLineItemIdWithHttpInfo(String lineItemId, PreferredLineItemUpdateModelV2Request preferredLineItemUpdateModelV2Request) throws ApiException { + okhttp3.Call localVarCall = putApi202110ExternalPreferredLineItemByLineItemIdValidateBeforeCall(lineItemId, preferredLineItemUpdateModelV2Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -6703,7 +6867,7 @@ public ApiResponse putApi202110ExternalPreferre * (asynchronously) * Updates the preferred line item for the given line item id * @param lineItemId The given line item id (required) - * @param preferredLineItemUpdateModel202110Request The line item settings to create a line item with (optional) + * @param preferredLineItemUpdateModelV2Request The line item settings to create a line item with (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -6714,10 +6878,10 @@ public ApiResponse putApi202110ExternalPreferre 400 Bad Request - */ - public okhttp3.Call putApi202110ExternalPreferredLineItemByLineItemIdAsync(String lineItemId, PreferredLineItemUpdateModel202110Request preferredLineItemUpdateModel202110Request, final ApiCallback _callback) throws ApiException { + public okhttp3.Call putApi202110ExternalPreferredLineItemByLineItemIdAsync(String lineItemId, PreferredLineItemUpdateModelV2Request preferredLineItemUpdateModelV2Request, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = putApi202110ExternalPreferredLineItemByLineItemIdValidateBeforeCall(lineItemId, preferredLineItemUpdateModel202110Request, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = putApi202110ExternalPreferredLineItemByLineItemIdValidateBeforeCall(lineItemId, preferredLineItemUpdateModelV2Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6752,7 +6916,7 @@ public okhttp3.Call putApi202110ExternalPreferredLineItemTargetingAddToBasketByL Object localVarPostBody = addToBasketTarget202110Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -6884,7 +7048,7 @@ public okhttp3.Call putApi202110ExternalPreferredLineItemTargetingAudiencesByLin Object localVarPostBody = audienceTarget202110Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -7016,7 +7180,7 @@ public okhttp3.Call putApi202110ExternalPreferredLineItemTargetingStoresByLineIt Object localVarPostBody = storeTarget202110Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores" + String localVarPath = "/2024-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -7149,7 +7313,7 @@ public okhttp3.Call putApi202210ExternalAccountByAccountIdCreativescreativeIdCal Object localVarPostBody = creativeUpdateModel202207; // create path and map variables - String localVarPath = "/2023-07/retail-media/accounts/{account-id}/creatives/{creative-id}" + String localVarPath = "/2024-10/retail-media/accounts/{account-id}/creatives/{creative-id}" .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())) .replace("{" + "creative-id" + "}", localVarApiClient.escapeString(creativeId.toString())); @@ -7289,7 +7453,7 @@ public okhttp3.Call putApi202301ExternalCampaignByCampaignIdCall(String campaign Object localVarPostBody = putCampaignV202301; // create path and map variables - String localVarPath = "/2023-07/retail-media/campaigns/{campaignId}" + String localVarPath = "/2024-10/retail-media/campaigns/{campaignId}" .replace("{" + "campaignId" + "}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); @@ -7388,9 +7552,9 @@ public okhttp3.Call putApi202301ExternalCampaignByCampaignIdAsync(String campaig return localVarCall; } /** - * Build call for putApi202301ExternalLineItemBidMultipliersByLineItemId - * @param lineItemId Long external id of the associated line item (required) - * @param lineItemBidMultipliersRequest (optional) + * Build call for putApiV2ExternalAuctionLineItemByLineItemId + * @param lineItemId The given line item id (required) + * @param auctionLineItemUpdateModelRequest The line item settings to create a line item with (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7398,9 +7562,10 @@ public okhttp3.Call putApi202301ExternalCampaignByCampaignIdAsync(String campaig +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call putApi202301ExternalLineItemBidMultipliersByLineItemIdCall(String lineItemId, LineItemBidMultipliersRequest lineItemBidMultipliersRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call putApiV2ExternalAuctionLineItemByLineItemIdCall(String lineItemId, AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7414,10 +7579,10 @@ public okhttp3.Call putApi202301ExternalLineItemBidMultipliersByLineItemIdCall(S basePath = null; } - Object localVarPostBody = lineItemBidMultipliersRequest; + Object localVarPostBody = auctionLineItemUpdateModelRequest; // create path and map variables - String localVarPath = "/2023-07/retail-media/line-items/{line-item-id}/bid-multipliers" + String localVarPath = "/2024-10/retail-media/auction-line-items/{line-item-id}" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -7427,9 +7592,7 @@ public okhttp3.Call putApi202301ExternalLineItemBidMultipliersByLineItemIdCall(S Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7449,58 +7612,60 @@ public okhttp3.Call putApi202301ExternalLineItemBidMultipliersByLineItemIdCall(S } @SuppressWarnings("rawtypes") - private okhttp3.Call putApi202301ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(String lineItemId, LineItemBidMultipliersRequest lineItemBidMultipliersRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putApiV2ExternalAuctionLineItemByLineItemIdValidateBeforeCall(String lineItemId, AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'lineItemId' is set if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling putApi202301ExternalLineItemBidMultipliersByLineItemId(Async)"); + throw new ApiException("Missing the required parameter 'lineItemId' when calling putApiV2ExternalAuctionLineItemByLineItemId(Async)"); } - return putApi202301ExternalLineItemBidMultipliersByLineItemIdCall(lineItemId, lineItemBidMultipliersRequest, _callback); + return putApiV2ExternalAuctionLineItemByLineItemIdCall(lineItemId, auctionLineItemUpdateModelRequest, _callback); } /** * - * Replace bid multipliers on a line item - * @param lineItemId Long external id of the associated line item (required) - * @param lineItemBidMultipliersRequest (optional) - * @return LineItemBidMultipliersResponse + * Updates the auction line item for the given line item id + * @param lineItemId The given line item id (required) + * @param auctionLineItemUpdateModelRequest The line item settings to create a line item with (optional) + * @return AuctionLineItemResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public LineItemBidMultipliersResponse putApi202301ExternalLineItemBidMultipliersByLineItemId(String lineItemId, LineItemBidMultipliersRequest lineItemBidMultipliersRequest) throws ApiException { - ApiResponse localVarResp = putApi202301ExternalLineItemBidMultipliersByLineItemIdWithHttpInfo(lineItemId, lineItemBidMultipliersRequest); + public AuctionLineItemResponse putApiV2ExternalAuctionLineItemByLineItemId(String lineItemId, AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest) throws ApiException { + ApiResponse localVarResp = putApiV2ExternalAuctionLineItemByLineItemIdWithHttpInfo(lineItemId, auctionLineItemUpdateModelRequest); return localVarResp.getData(); } /** * - * Replace bid multipliers on a line item - * @param lineItemId Long external id of the associated line item (required) - * @param lineItemBidMultipliersRequest (optional) - * @return ApiResponse<LineItemBidMultipliersResponse> + * Updates the auction line item for the given line item id + * @param lineItemId The given line item id (required) + * @param auctionLineItemUpdateModelRequest The line item settings to create a line item with (optional) + * @return ApiResponse<AuctionLineItemResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public ApiResponse putApi202301ExternalLineItemBidMultipliersByLineItemIdWithHttpInfo(String lineItemId, LineItemBidMultipliersRequest lineItemBidMultipliersRequest) throws ApiException { - okhttp3.Call localVarCall = putApi202301ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(lineItemId, lineItemBidMultipliersRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putApiV2ExternalAuctionLineItemByLineItemIdWithHttpInfo(String lineItemId, AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest) throws ApiException { + okhttp3.Call localVarCall = putApiV2ExternalAuctionLineItemByLineItemIdValidateBeforeCall(lineItemId, auctionLineItemUpdateModelRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Replace bid multipliers on a line item - * @param lineItemId Long external id of the associated line item (required) - * @param lineItemBidMultipliersRequest (optional) + * Updates the auction line item for the given line item id + * @param lineItemId The given line item id (required) + * @param auctionLineItemUpdateModelRequest The line item settings to create a line item with (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7508,30 +7673,30 @@ public ApiResponse putApi202301ExternalLineItemB +
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ - public okhttp3.Call putApi202301ExternalLineItemBidMultipliersByLineItemIdAsync(String lineItemId, LineItemBidMultipliersRequest lineItemBidMultipliersRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call putApiV2ExternalAuctionLineItemByLineItemIdAsync(String lineItemId, AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = putApi202301ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(lineItemId, lineItemBidMultipliersRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = putApiV2ExternalAuctionLineItemByLineItemIdValidateBeforeCall(lineItemId, auctionLineItemUpdateModelRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for putApiV2ExternalAuctionLineItemByLineItemId - * @param lineItemId The given line item id (required) - * @param auctionLineItemUpdateModelRequest The line item settings to create a line item with (optional) + * Build call for putApiV2ExternalLineItemBidMultipliersByLineItemId + * @param lineItemId External LineItemId for bid multiplier retrieval (required) + * @param lineItemBidMultipliersV2Request New Bid Multipliers to be set (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 BidMultipliers Updated -
*/ - public okhttp3.Call putApiV2ExternalAuctionLineItemByLineItemIdCall(String lineItemId, AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call putApiV2ExternalLineItemBidMultipliersByLineItemIdCall(String lineItemId, LineItemBidMultipliersV2Request lineItemBidMultipliersV2Request, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7545,10 +7710,10 @@ public okhttp3.Call putApiV2ExternalAuctionLineItemByLineItemIdCall(String lineI basePath = null; } - Object localVarPostBody = auctionLineItemUpdateModelRequest; + Object localVarPostBody = lineItemBidMultipliersV2Request; // create path and map variables - String localVarPath = "/2023-07/retail-media/auction-line-items/{line-item-id}" + String localVarPath = "/2024-10/retail-media/line-items/{line-item-id}/bid-multipliers" .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); List localVarQueryParams = new ArrayList(); @@ -7558,7 +7723,9 @@ public okhttp3.Call putApiV2ExternalAuctionLineItemByLineItemIdCall(String lineI Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "text/plain", + "application/json", + "text/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7578,74 +7745,71 @@ public okhttp3.Call putApiV2ExternalAuctionLineItemByLineItemIdCall(String lineI } @SuppressWarnings("rawtypes") - private okhttp3.Call putApiV2ExternalAuctionLineItemByLineItemIdValidateBeforeCall(String lineItemId, AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putApiV2ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(String lineItemId, LineItemBidMultipliersV2Request lineItemBidMultipliersV2Request, final ApiCallback _callback) throws ApiException { // verify the required parameter 'lineItemId' is set if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling putApiV2ExternalAuctionLineItemByLineItemId(Async)"); + throw new ApiException("Missing the required parameter 'lineItemId' when calling putApiV2ExternalLineItemBidMultipliersByLineItemId(Async)"); } - return putApiV2ExternalAuctionLineItemByLineItemIdCall(lineItemId, auctionLineItemUpdateModelRequest, _callback); + return putApiV2ExternalLineItemBidMultipliersByLineItemIdCall(lineItemId, lineItemBidMultipliersV2Request, _callback); } /** * - * Updates the auction line item for the given line item id - * @param lineItemId The given line item id (required) - * @param auctionLineItemUpdateModelRequest The line item settings to create a line item with (optional) - * @return AuctionLineItemResponse + * Updates the bid multipliers for a given line item + * @param lineItemId External LineItemId for bid multiplier retrieval (required) + * @param lineItemBidMultipliersV2Request New Bid Multipliers to be set (optional) + * @return LineItemBidMultipliersV2Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 BidMultipliers Updated -
*/ - public AuctionLineItemResponse putApiV2ExternalAuctionLineItemByLineItemId(String lineItemId, AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest) throws ApiException { - ApiResponse localVarResp = putApiV2ExternalAuctionLineItemByLineItemIdWithHttpInfo(lineItemId, auctionLineItemUpdateModelRequest); + public LineItemBidMultipliersV2Response putApiV2ExternalLineItemBidMultipliersByLineItemId(String lineItemId, LineItemBidMultipliersV2Request lineItemBidMultipliersV2Request) throws ApiException { + ApiResponse localVarResp = putApiV2ExternalLineItemBidMultipliersByLineItemIdWithHttpInfo(lineItemId, lineItemBidMultipliersV2Request); return localVarResp.getData(); } /** * - * Updates the auction line item for the given line item id - * @param lineItemId The given line item id (required) - * @param auctionLineItemUpdateModelRequest The line item settings to create a line item with (optional) - * @return ApiResponse<AuctionLineItemResponse> + * Updates the bid multipliers for a given line item + * @param lineItemId External LineItemId for bid multiplier retrieval (required) + * @param lineItemBidMultipliersV2Request New Bid Multipliers to be set (optional) + * @return ApiResponse<LineItemBidMultipliersV2Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 BidMultipliers Updated -
*/ - public ApiResponse putApiV2ExternalAuctionLineItemByLineItemIdWithHttpInfo(String lineItemId, AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest) throws ApiException { - okhttp3.Call localVarCall = putApiV2ExternalAuctionLineItemByLineItemIdValidateBeforeCall(lineItemId, auctionLineItemUpdateModelRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putApiV2ExternalLineItemBidMultipliersByLineItemIdWithHttpInfo(String lineItemId, LineItemBidMultipliersV2Request lineItemBidMultipliersV2Request) throws ApiException { + okhttp3.Call localVarCall = putApiV2ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(lineItemId, lineItemBidMultipliersV2Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Updates the auction line item for the given line item id - * @param lineItemId The given line item id (required) - * @param auctionLineItemUpdateModelRequest The line item settings to create a line item with (optional) + * Updates the bid multipliers for a given line item + * @param lineItemId External LineItemId for bid multiplier retrieval (required) + * @param lineItemBidMultipliersV2Request New Bid Multipliers to be set (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - +
Status Code Description Response Headers
200 Success -
400 Bad Request -
200 BidMultipliers Updated -
*/ - public okhttp3.Call putApiV2ExternalAuctionLineItemByLineItemIdAsync(String lineItemId, AuctionLineItemUpdateModelRequest auctionLineItemUpdateModelRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call putApiV2ExternalLineItemBidMultipliersByLineItemIdAsync(String lineItemId, LineItemBidMultipliersV2Request lineItemBidMultipliersV2Request, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = putApiV2ExternalAuctionLineItemByLineItemIdValidateBeforeCall(lineItemId, auctionLineItemUpdateModelRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = putApiV2ExternalLineItemBidMultipliersByLineItemIdValidateBeforeCall(lineItemId, lineItemBidMultipliersV2Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7680,7 +7844,7 @@ public okhttp3.Call setKeywordBidsCall(String id, SetBidsModelRequest setBidsMod Object localVarPostBody = setBidsModelRequest; // create path and map variables - String localVarPath = "/2023-07/retail-media/line-items/{id}/keywords/set-bid" + String localVarPath = "/2024-10/retail-media/line-items/{id}/keywords/set-bid" .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -7812,7 +7976,7 @@ public okhttp3.Call submitProposalCall(String id, final ApiCallback _callback) t Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/preferred-deal-line-items/{id}/proposal/submit" + String localVarPath = "/2024-10/retail-media/preferred-deal-line-items/{id}/proposal/submit" .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -7912,4 +8076,398 @@ public okhttp3.Call submitProposalAsync(String id, final ApiCallback + Status Code Description Response Headers + 204 Promoted products un-paused - + 400 Invalid request body - + 403 Invalid external line item ID - + + */ + public okhttp3.Call unpausePromotedProductsCall(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = promotedProductResourceCollectionInput; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/line-items/{line-item-id}/products/unpause" + .replace("{" + "line-item-id" + "}", localVarApiClient.escapeString(lineItemId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call unpausePromotedProductsValidateBeforeCall(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'lineItemId' is set + if (lineItemId == null) { + throw new ApiException("Missing the required parameter 'lineItemId' when calling unpausePromotedProducts(Async)"); + } + + return unpausePromotedProductsCall(lineItemId, promotedProductResourceCollectionInput, _callback); + + } + + /** + * + * Un-pause a collection of promoted products associated with a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Promoted products un-paused -
400 Invalid request body -
403 Invalid external line item ID -
+ */ + public void unpausePromotedProducts(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput) throws ApiException { + unpausePromotedProductsWithHttpInfo(lineItemId, promotedProductResourceCollectionInput); + } + + /** + * + * Un-pause a collection of promoted products associated with a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Promoted products un-paused -
400 Invalid request body -
403 Invalid external line item ID -
+ */ + public ApiResponse unpausePromotedProductsWithHttpInfo(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput) throws ApiException { + okhttp3.Call localVarCall = unpausePromotedProductsValidateBeforeCall(lineItemId, promotedProductResourceCollectionInput, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * Un-pause a collection of promoted products associated with a line item + * @param lineItemId ID of the line item (required) + * @param promotedProductResourceCollectionInput Request body whose {data} contains an array of promoted products. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Promoted products un-paused -
400 Invalid request body -
403 Invalid external line item ID -
+ */ + public okhttp3.Call unpausePromotedProductsAsync(String lineItemId, PromotedProductResourceCollectionInput promotedProductResourceCollectionInput, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = unpausePromotedProductsValidateBeforeCall(lineItemId, promotedProductResourceCollectionInput, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateCampaignBudgetOverrides + * @param campaignId External campaign id. (required) + * @param valueResourceInputOfCampaignBudgetOverrides New campaign budget overrides settings value resource input. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public okhttp3.Call updateCampaignBudgetOverridesCall(Long campaignId, ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = valueResourceInputOfCampaignBudgetOverrides; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/campaigns/{campaignId}/campaign-budget-overrides" + .replace("{" + "campaignId" + "}", localVarApiClient.escapeString(campaignId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateCampaignBudgetOverridesValidateBeforeCall(Long campaignId, ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling updateCampaignBudgetOverrides(Async)"); + } + + return updateCampaignBudgetOverridesCall(campaignId, valueResourceInputOfCampaignBudgetOverrides, _callback); + + } + + /** + * + * Update campaign budget overrides by given external campaign id and new campaign budget overrides settings. + * @param campaignId External campaign id. (required) + * @param valueResourceInputOfCampaignBudgetOverrides New campaign budget overrides settings value resource input. (optional) + * @return ValueResourceOutcomeOfCampaignBudgetOverrides + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public ValueResourceOutcomeOfCampaignBudgetOverrides updateCampaignBudgetOverrides(Long campaignId, ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides) throws ApiException { + ApiResponse localVarResp = updateCampaignBudgetOverridesWithHttpInfo(campaignId, valueResourceInputOfCampaignBudgetOverrides); + return localVarResp.getData(); + } + + /** + * + * Update campaign budget overrides by given external campaign id and new campaign budget overrides settings. + * @param campaignId External campaign id. (required) + * @param valueResourceInputOfCampaignBudgetOverrides New campaign budget overrides settings value resource input. (optional) + * @return ApiResponse<ValueResourceOutcomeOfCampaignBudgetOverrides> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public ApiResponse updateCampaignBudgetOverridesWithHttpInfo(Long campaignId, ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides) throws ApiException { + okhttp3.Call localVarCall = updateCampaignBudgetOverridesValidateBeforeCall(campaignId, valueResourceInputOfCampaignBudgetOverrides, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Update campaign budget overrides by given external campaign id and new campaign budget overrides settings. + * @param campaignId External campaign id. (required) + * @param valueResourceInputOfCampaignBudgetOverrides New campaign budget overrides settings value resource input. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public okhttp3.Call updateCampaignBudgetOverridesAsync(Long campaignId, ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateCampaignBudgetOverridesValidateBeforeCall(campaignId, valueResourceInputOfCampaignBudgetOverrides, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateLineItemBudgetOverrides + * @param lineItemId Line item external id. (required) + * @param valueResourceInputOfLineItemBudgetOverrides New line item budget overrides settings value resource input. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public okhttp3.Call updateLineItemBudgetOverridesCall(String lineItemId, ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = valueResourceInputOfLineItemBudgetOverrides; + + // create path and map variables + String localVarPath = "/2024-10/retail-media/line-items/{lineItemId}/line-item-budget-overrides" + .replace("{" + "lineItemId" + "}", localVarApiClient.escapeString(lineItemId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateLineItemBudgetOverridesValidateBeforeCall(String lineItemId, ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'lineItemId' is set + if (lineItemId == null) { + throw new ApiException("Missing the required parameter 'lineItemId' when calling updateLineItemBudgetOverrides(Async)"); + } + + return updateLineItemBudgetOverridesCall(lineItemId, valueResourceInputOfLineItemBudgetOverrides, _callback); + + } + + /** + * + * Update line item budget overrides by given external line item id and new line item budget overrides settings. + * @param lineItemId Line item external id. (required) + * @param valueResourceInputOfLineItemBudgetOverrides New line item budget overrides settings value resource input. (optional) + * @return ValueResourceOutcomeOfLineItemBudgetOverrides + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public ValueResourceOutcomeOfLineItemBudgetOverrides updateLineItemBudgetOverrides(String lineItemId, ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides) throws ApiException { + ApiResponse localVarResp = updateLineItemBudgetOverridesWithHttpInfo(lineItemId, valueResourceInputOfLineItemBudgetOverrides); + return localVarResp.getData(); + } + + /** + * + * Update line item budget overrides by given external line item id and new line item budget overrides settings. + * @param lineItemId Line item external id. (required) + * @param valueResourceInputOfLineItemBudgetOverrides New line item budget overrides settings value resource input. (optional) + * @return ApiResponse<ValueResourceOutcomeOfLineItemBudgetOverrides> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public ApiResponse updateLineItemBudgetOverridesWithHttpInfo(String lineItemId, ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides) throws ApiException { + okhttp3.Call localVarCall = updateLineItemBudgetOverridesValidateBeforeCall(lineItemId, valueResourceInputOfLineItemBudgetOverrides, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Update line item budget overrides by given external line item id and new line item budget overrides settings. + * @param lineItemId Line item external id. (required) + * @param valueResourceInputOfLineItemBudgetOverrides New line item budget overrides settings value resource input. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Success -
+ */ + public okhttp3.Call updateLineItemBudgetOverridesAsync(String lineItemId, ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateLineItemBudgetOverridesValidateBeforeCall(lineItemId, valueResourceInputOfLineItemBudgetOverrides, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/GatewayApi.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/GatewayApi.java similarity index 90% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/GatewayApi.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/GatewayApi.java index 188d8e00..521a1f3c 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/GatewayApi.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/api/GatewayApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,23 +11,23 @@ */ -package com.criteo.api.retailmedia.v2023_07.api; +package com.criteo.api.retailmedia.v2024_10.api; -import com.criteo.api.retailmedia.v2023_07.ApiCallback; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.ApiResponse; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.Pair; -import com.criteo.api.retailmedia.v2023_07.ProgressRequestBody; -import com.criteo.api.retailmedia.v2023_07.ProgressResponseBody; +import com.criteo.api.retailmedia.v2024_10.ApiCallback; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.ApiResponse; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.Pair; +import com.criteo.api.retailmedia.v2024_10.ProgressRequestBody; +import com.criteo.api.retailmedia.v2024_10.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import com.criteo.api.retailmedia.v2023_07.model.ApplicationSummaryModelResponse; +import com.criteo.api.retailmedia.v2024_10.model.ApplicationSummaryModelResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -102,7 +102,7 @@ public okhttp3.Call getCurrentApplicationCall(final ApiCallback _callback) throw Object localVarPostBody = null; // create path and map variables - String localVarPath = "/2023-07/retail-media/me"; + String localVarPath = "/2024-10/retail-media/me"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/ApiKeyAuth.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/ApiKeyAuth.java similarity index 89% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/ApiKeyAuth.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/ApiKeyAuth.java index 367a3a74..2c13f5d0 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/ApiKeyAuth.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package com.criteo.api.retailmedia.v2023_07.auth; +package com.criteo.api.retailmedia.v2024_10.auth; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Pair; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Pair; import java.net.URI; import java.util.Map; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/Authentication.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/Authentication.java similarity index 81% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/Authentication.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/Authentication.java index 9c6e5c49..fe023ca7 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/Authentication.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/Authentication.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package com.criteo.api.retailmedia.v2023_07.auth; +package com.criteo.api.retailmedia.v2024_10.auth; -import com.criteo.api.retailmedia.v2023_07.Pair; -import com.criteo.api.retailmedia.v2023_07.ApiException; +import com.criteo.api.retailmedia.v2024_10.Pair; +import com.criteo.api.retailmedia.v2024_10.ApiException; import java.net.URI; import java.util.Map; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/HttpBasicAuth.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/HttpBasicAuth.java similarity index 86% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/HttpBasicAuth.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/HttpBasicAuth.java index 83ea8437..9dc56bf2 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/HttpBasicAuth.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package com.criteo.api.retailmedia.v2023_07.auth; +package com.criteo.api.retailmedia.v2024_10.auth; -import com.criteo.api.retailmedia.v2023_07.Pair; -import com.criteo.api.retailmedia.v2023_07.ApiException; +import com.criteo.api.retailmedia.v2024_10.Pair; +import com.criteo.api.retailmedia.v2024_10.ApiException; import okhttp3.Credentials; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/HttpBearerAuth.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/HttpBearerAuth.java similarity index 88% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/HttpBearerAuth.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/HttpBearerAuth.java index 060d9f9c..3ad0a9fc 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/HttpBearerAuth.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/HttpBearerAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package com.criteo.api.retailmedia.v2023_07.auth; +package com.criteo.api.retailmedia.v2024_10.auth; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Pair; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Pair; import java.net.URI; import java.util.Map; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuth.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuth.java similarity index 82% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuth.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuth.java index f7d5481e..0a97242d 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuth.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package com.criteo.api.retailmedia.v2023_07.auth; +package com.criteo.api.retailmedia.v2024_10.auth; -import com.criteo.api.retailmedia.v2023_07.Pair; -import com.criteo.api.retailmedia.v2023_07.ApiException; +import com.criteo.api.retailmedia.v2024_10.Pair; +import com.criteo.api.retailmedia.v2024_10.ApiException; import java.net.URI; import java.util.Map; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuthFlow.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuthFlow.java similarity index 84% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuthFlow.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuthFlow.java index ff903d2c..83af9237 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuthFlow.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuthFlow.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.auth; +package com.criteo.api.retailmedia.v2024_10.auth; /** * OAuth flows that are supported by this client diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuthOkHttpClient.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuthOkHttpClient.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuthOkHttpClient.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuthOkHttpClient.java index 4cfdd6c8..222d8a1e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/OAuthOkHttpClient.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/OAuthOkHttpClient.java @@ -1,4 +1,4 @@ -package com.criteo.api.retailmedia.v2023_07.auth; +package com.criteo.api.retailmedia.v2024_10.auth; import okhttp3.OkHttpClient; import okhttp3.MediaType; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/RetryingOAuth.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/RetryingOAuth.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/RetryingOAuth.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/RetryingOAuth.java index 0158e9ae..3d4233fa 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/auth/RetryingOAuth.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/auth/RetryingOAuth.java @@ -1,7 +1,7 @@ -package com.criteo.api.retailmedia.v2023_07.auth; +package com.criteo.api.retailmedia.v2024_10.auth; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Pair; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.Pair; import okhttp3.Interceptor; import okhttp3.OkHttpClient; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AbstractOpenApiSchema.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AbstractOpenApiSchema.java similarity index 96% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AbstractOpenApiSchema.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AbstractOpenApiSchema.java index 77773a75..c0d5229f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AbstractOpenApiSchema.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AbstractOpenApiSchema.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,9 +11,9 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; -import com.criteo.api.retailmedia.v2023_07.ApiException; +import com.criteo.api.retailmedia.v2024_10.ApiException; import java.util.Objects; import java.lang.reflect.Type; import java.util.Map; diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddFundsToBalanceV2.java similarity index 64% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddFundsToBalanceV2.java index 13c1416c..d380f496 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddFundsToBalanceV2.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -42,65 +43,91 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Used for the /user-profiles/delete endpoint. Contains information about the user profile that we delete + * An object that represents the available options of adding funds to a balance. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class DeleteUserProfileModel { - public static final String SERIALIZED_NAME_USER_PROFILE_ID = "userProfileId"; - @SerializedName(SERIALIZED_NAME_USER_PROFILE_ID) - private String userProfileId; +public class AddFundsToBalanceV2 { + public static final String SERIALIZED_NAME_DELTA_AMOUNT = "deltaAmount"; + @SerializedName(SERIALIZED_NAME_DELTA_AMOUNT) + private BigDecimal deltaAmount; - public static final String SERIALIZED_NAME_USER_PROFILE_LIST_ID = "userProfileListId"; - @SerializedName(SERIALIZED_NAME_USER_PROFILE_LIST_ID) - private String userProfileListId; + public static final String SERIALIZED_NAME_PO_NUMBER = "poNumber"; + @SerializedName(SERIALIZED_NAME_PO_NUMBER) + private String poNumber; - public DeleteUserProfileModel() { + public static final String SERIALIZED_NAME_MEMO = "memo"; + @SerializedName(SERIALIZED_NAME_MEMO) + private String memo; + + public AddFundsToBalanceV2() { } - public DeleteUserProfileModel userProfileId(String userProfileId) { + public AddFundsToBalanceV2 deltaAmount(BigDecimal deltaAmount) { - this.userProfileId = userProfileId; + this.deltaAmount = deltaAmount; return this; } /** - * Get userProfileId - * @return userProfileId + * Amount of billable funds to be added / decreased allotted to the balance. + * @return deltaAmount **/ @javax.annotation.Nonnull - public String getUserProfileId() { - return userProfileId; + public BigDecimal getDeltaAmount() { + return deltaAmount; + } + + + public void setDeltaAmount(BigDecimal deltaAmount) { + this.deltaAmount = deltaAmount; + } + + + public AddFundsToBalanceV2 poNumber(String poNumber) { + + this.poNumber = poNumber; + return this; + } + + /** + * Purchase Order number. + * @return poNumber + **/ + @javax.annotation.Nullable + + public String getPoNumber() { + return poNumber; } - public void setUserProfileId(String userProfileId) { - this.userProfileId = userProfileId; + public void setPoNumber(String poNumber) { + this.poNumber = poNumber; } - public DeleteUserProfileModel userProfileListId(String userProfileListId) { + public AddFundsToBalanceV2 memo(String memo) { - this.userProfileListId = userProfileListId; + this.memo = memo; return this; } /** - * Get userProfileListId - * @return userProfileListId + * Memo + * @return memo **/ @javax.annotation.Nullable - public String getUserProfileListId() { - return userProfileListId; + public String getMemo() { + return memo; } - public void setUserProfileListId(String userProfileListId) { - this.userProfileListId = userProfileListId; + public void setMemo(String memo) { + this.memo = memo; } /** @@ -116,9 +143,9 @@ public void setUserProfileListId(String userProfileListId) { * * @param key name of the property * @param value value of the property - * @return the DeleteUserProfileModel instance itself + * @return the AddFundsToBalanceV2 instance itself */ - public DeleteUserProfileModel putAdditionalProperty(String key, Object value) { + public AddFundsToBalanceV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -157,10 +184,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeleteUserProfileModel deleteUserProfileModel = (DeleteUserProfileModel) o; - return Objects.equals(this.userProfileId, deleteUserProfileModel.userProfileId) && - Objects.equals(this.userProfileListId, deleteUserProfileModel.userProfileListId)&& - Objects.equals(this.additionalProperties, deleteUserProfileModel.additionalProperties); + AddFundsToBalanceV2 addFundsToBalanceV2 = (AddFundsToBalanceV2) o; + return Objects.equals(this.deltaAmount, addFundsToBalanceV2.deltaAmount) && + Objects.equals(this.poNumber, addFundsToBalanceV2.poNumber) && + Objects.equals(this.memo, addFundsToBalanceV2.memo)&& + Objects.equals(this.additionalProperties, addFundsToBalanceV2.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -169,7 +197,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(userProfileId, userProfileListId, additionalProperties); + return Objects.hash(deltaAmount, poNumber, memo, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -182,9 +210,10 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeleteUserProfileModel {\n"); - sb.append(" userProfileId: ").append(toIndentedString(userProfileId)).append("\n"); - sb.append(" userProfileListId: ").append(toIndentedString(userProfileListId)).append("\n"); + sb.append("class AddFundsToBalanceV2 {\n"); + sb.append(" deltaAmount: ").append(toIndentedString(deltaAmount)).append("\n"); + sb.append(" poNumber: ").append(toIndentedString(poNumber)).append("\n"); + sb.append(" memo: ").append(toIndentedString(memo)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -208,38 +237,39 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("userProfileId"); - openapiFields.add("userProfileListId"); + openapiFields.add("deltaAmount"); + openapiFields.add("poNumber"); + openapiFields.add("memo"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userProfileId"); + openapiRequiredFields.add("deltaAmount"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to DeleteUserProfileModel + * @throws IOException if the JSON Object is invalid with respect to AddFundsToBalanceV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!DeleteUserProfileModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DeleteUserProfileModel is not found in the empty JSON string", DeleteUserProfileModel.openapiRequiredFields.toString())); + if (!AddFundsToBalanceV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AddFundsToBalanceV2 is not found in the empty JSON string", AddFundsToBalanceV2.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DeleteUserProfileModel.openapiRequiredFields) { + for (String requiredField : AddFundsToBalanceV2.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (!jsonObj.get("userProfileId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userProfileId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userProfileId").toString())); + if ((jsonObj.get("poNumber") != null && !jsonObj.get("poNumber").isJsonNull()) && !jsonObj.get("poNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `poNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("poNumber").toString())); } - if ((jsonObj.get("userProfileListId") != null && !jsonObj.get("userProfileListId").isJsonNull()) && !jsonObj.get("userProfileListId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userProfileListId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userProfileListId").toString())); + if ((jsonObj.get("memo") != null && !jsonObj.get("memo").isJsonNull()) && !jsonObj.get("memo").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `memo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("memo").toString())); } } @@ -247,16 +277,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteUserProfileModel.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteUserProfileModel' and its subtypes + if (!AddFundsToBalanceV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFundsToBalanceV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteUserProfileModel.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddFundsToBalanceV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, DeleteUserProfileModel value) throws IOException { + public void write(JsonWriter out, AddFundsToBalanceV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -279,11 +309,11 @@ else if (entry.getValue() instanceof Character) } @Override - public DeleteUserProfileModel read(JsonReader in) throws IOException { + public AddFundsToBalanceV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - DeleteUserProfileModel instance = thisAdapter.fromJsonTree(jsonObj); + AddFundsToBalanceV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -310,18 +340,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of DeleteUserProfileModel given an JSON string + * Create an instance of AddFundsToBalanceV2 given an JSON string * * @param jsonString JSON string - * @return An instance of DeleteUserProfileModel - * @throws IOException if the JSON string is invalid with respect to DeleteUserProfileModel + * @return An instance of AddFundsToBalanceV2 + * @throws IOException if the JSON string is invalid with respect to AddFundsToBalanceV2 */ - public static DeleteUserProfileModel fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteUserProfileModel.class); + public static AddFundsToBalanceV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AddFundsToBalanceV2.class); } /** - * Convert an instance of DeleteUserProfileModel to an JSON string + * Convert an instance of AddFundsToBalanceV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateInputEntityV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddFundsToBalanceV2Request.java similarity index 73% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateInputEntityV1.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddFundsToBalanceV2Request.java index 6d7d206f..979d1553 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateInputEntityV1.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddFundsToBalanceV2Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV1Resource; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfAddFundsToBalanceV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,21 +42,21 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Input to create audience. + * A top-level object that encapsulates a Criteo API request for a single entity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceCreateInputEntityV1 { +public class AddFundsToBalanceV2Request { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private RmLegacyAudienceCreateEntityV1Resource data; + private ResourceOfAddFundsToBalanceV2 data; - public RmLegacyAudienceCreateInputEntityV1() { + public AddFundsToBalanceV2Request() { } - public RmLegacyAudienceCreateInputEntityV1 data(RmLegacyAudienceCreateEntityV1Resource data) { + public AddFundsToBalanceV2Request data(ResourceOfAddFundsToBalanceV2 data) { this.data = data; return this; @@ -68,12 +68,12 @@ public RmLegacyAudienceCreateInputEntityV1 data(RmLegacyAudienceCreateEntityV1Re **/ @javax.annotation.Nullable - public RmLegacyAudienceCreateEntityV1Resource getData() { + public ResourceOfAddFundsToBalanceV2 getData() { return data; } - public void setData(RmLegacyAudienceCreateEntityV1Resource data) { + public void setData(ResourceOfAddFundsToBalanceV2 data) { this.data = data; } @@ -90,9 +90,9 @@ public void setData(RmLegacyAudienceCreateEntityV1Resource data) { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceCreateInputEntityV1 instance itself + * @return the AddFundsToBalanceV2Request instance itself */ - public RmLegacyAudienceCreateInputEntityV1 putAdditionalProperty(String key, Object value) { + public AddFundsToBalanceV2Request putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceCreateInputEntityV1 rmLegacyAudienceCreateInputEntityV1 = (RmLegacyAudienceCreateInputEntityV1) o; - return Objects.equals(this.data, rmLegacyAudienceCreateInputEntityV1.data)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceCreateInputEntityV1.additionalProperties); + AddFundsToBalanceV2Request addFundsToBalanceV2Request = (AddFundsToBalanceV2Request) o; + return Objects.equals(this.data, addFundsToBalanceV2Request.data)&& + Objects.equals(this.additionalProperties, addFundsToBalanceV2Request.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceCreateInputEntityV1 {\n"); + sb.append("class AddFundsToBalanceV2Request {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -179,17 +179,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceCreateInputEntityV1 + * @throws IOException if the JSON Object is invalid with respect to AddFundsToBalanceV2Request */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceCreateInputEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceCreateInputEntityV1 is not found in the empty JSON string", RmLegacyAudienceCreateInputEntityV1.openapiRequiredFields.toString())); + if (!AddFundsToBalanceV2Request.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AddFundsToBalanceV2Request is not found in the empty JSON string", AddFundsToBalanceV2Request.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - RmLegacyAudienceCreateEntityV1Resource.validateJsonObject(jsonObj.getAsJsonObject("data")); + ResourceOfAddFundsToBalanceV2.validateJsonObject(jsonObj.getAsJsonObject("data")); } } @@ -197,16 +197,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceCreateInputEntityV1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceCreateInputEntityV1' and its subtypes + if (!AddFundsToBalanceV2Request.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFundsToBalanceV2Request' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceCreateInputEntityV1.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddFundsToBalanceV2Request.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceCreateInputEntityV1 value) throws IOException { + public void write(JsonWriter out, AddFundsToBalanceV2Request value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -229,11 +229,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceCreateInputEntityV1 read(JsonReader in) throws IOException { + public AddFundsToBalanceV2Request read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceCreateInputEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); + AddFundsToBalanceV2Request instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -260,18 +260,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceCreateInputEntityV1 given an JSON string + * Create an instance of AddFundsToBalanceV2Request given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceCreateInputEntityV1 - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceCreateInputEntityV1 + * @return An instance of AddFundsToBalanceV2Request + * @throws IOException if the JSON string is invalid with respect to AddFundsToBalanceV2Request */ - public static RmLegacyAudienceCreateInputEntityV1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceCreateInputEntityV1.class); + public static AddFundsToBalanceV2Request fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AddFundsToBalanceV2Request.class); } /** - * Convert an instance of RmLegacyAudienceCreateInputEntityV1 to an JSON string + * Convert an instance of AddFundsToBalanceV2Request to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordModel.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordModel.java index 6179871d..0ad76834 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.MatchTypeModel; +import com.criteo.api.retailmedia.v2024_10.model.MatchTypeModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A single keyword to be added or removed diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModel.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModel.java index e897b641..72a67d63 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.AddRemoveKeywordModel; +import com.criteo.api.retailmedia.v2024_10.model.AddRemoveKeywordModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model containing keywords to be added or removed from a line item diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModelRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModelRequest.java similarity index 96% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModelRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModelRequest.java index e39327b9..477d2610 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModelRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModelRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.AddRemoveKeywordsModelResource; +import com.criteo.api.retailmedia.v2024_10.model.AddRemoveKeywordsModelResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Request object to add or remove keywords from a line item diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModelResource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModelResource.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModelResource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModelResource.java index dd65bd1f..592438f6 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddRemoveKeywordsModelResource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddRemoveKeywordsModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.AddRemoveKeywordsModel; +import com.criteo.api.retailmedia.v2024_10.model.AddRemoveKeywordsModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Resource object containing keywords to be added or removed from a line item diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketIdsUpdateModel202110Request.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketIdsUpdateModel202110Request.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketIdsUpdateModel202110Request.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketIdsUpdateModel202110Request.java index 3964dae3..792e9027 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketIdsUpdateModel202110Request.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketIdsUpdateModel202110Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfAddToBasketIdsUpdateModel202110; +import com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfAddToBasketIdsUpdateModel202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type input resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketTarget202110Request.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketTarget202110Request.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketTarget202110Request.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketTarget202110Request.java index 11eef2bd..b0abacfe 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketTarget202110Request.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketTarget202110Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfAddToBasketTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfAddToBasketTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type input resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketTarget202110Response.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketTarget202110Response.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketTarget202110Response.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketTarget202110Response.java index 9f2a5a25..ba66d368 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AddToBasketTarget202110Response.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AddToBasketTarget202110Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfAddToBasketTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfAddToBasketTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type resource outcome diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModel.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModel.java index 85de4bbe..8df50861 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Used for the /me endpoint. Contains information about the currently authenticated application that we accept to give to our clients diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModelResource.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModelResource.java index bf9c1776..adbd9078 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ApplicationSummaryModel; +import com.criteo.api.retailmedia.v2024_10.model.ApplicationSummaryModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModelResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModelResponse.java index 632c6a97..06061b40 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApplicationSummaryModelResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ApplicationSummaryModelResource; -import com.criteo.api.retailmedia.v2023_07.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.ApplicationSummaryModelResource; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApprovalStatusModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApprovalStatusModel.java similarity index 94% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApprovalStatusModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApprovalStatusModel.java index 3ee74310..8a1f9635 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApprovalStatusModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ApprovalStatusModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Asset.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Asset.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Asset.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Asset.java index fbe767e0..da7f6ca4 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Asset.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Asset.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Handles pointing towards binary content that advertisers can use later on, for example in their creatives. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AssetResource.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AssetResource.java index 37075f32..15fbdac4 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AssetResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.Asset; +import com.criteo.api.retailmedia.v2024_10.model.Asset; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A class that represents an entity in a guild compliant way diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AssetResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AssetResponse.java index 3832533f..6583ea18 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AssetResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.AssetResource; -import com.criteo.api.retailmedia.v2023_07.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.AssetResource; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A class implementing the response of the Criteo API as described in API Guild Guidelines with a single entity as body diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReport.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReport.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReport.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReport.java index c6457ec6..17e1216c 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReport.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReport.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Async Campaigns report body request diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReportRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReportRequest.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReportRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReportRequest.java index 076f1725..138cf0ec 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReportRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignsReportResource; +import com.criteo.api.retailmedia.v2024_10.model.AsyncCampaignsReportResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API request for a single value diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReportResource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReportResource.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReportResource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReportResource.java index 97fb0653..3c01abc9 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignsReportResource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncCampaignsReportResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignsReport; +import com.criteo.api.retailmedia.v2024_10.model.AsyncCampaignsReport; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReport.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReport.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReport.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReport.java index c3bd2a10..7a2f4cab 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReport.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReport.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Async Line Items report body request diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReportRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReportRequest.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReportRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReportRequest.java index 6fdd5100..c4ee5095 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReportRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemsReportResource; +import com.criteo.api.retailmedia.v2024_10.model.AsyncLineItemsReportResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API request for a single value diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReportResource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReportResource.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReportResource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReportResource.java index 8ac1e828..62862490 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemsReportResource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncLineItemsReportResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemsReport; +import com.criteo.api.retailmedia.v2024_10.model.AsyncLineItemsReport; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncReportResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncReportResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncReportResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncReportResponse.java index 5cc816a3..295904f5 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncReportResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncReportResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonProblem; -import com.criteo.api.retailmedia.v2023_07.model.StatusResponseResource; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.StatusResponseResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Async Report response format diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReport.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReport.java new file mode 100644 index 00000000..6949896f --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReport.java @@ -0,0 +1,1702 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Async Revenue report body request + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AsyncRevenueReport { + public static final String SERIALIZED_NAME_IDS = "ids"; + @SerializedName(SERIALIZED_NAME_IDS) + private List ids = null; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + /** + * Type of report + */ + @JsonAdapter(ReportTypeEnum.Adapter.class) + public enum ReportTypeEnum { + ADVERTISER("advertiser"), + + ENVIRONMENT("environment"), + + PAGETYPE("pageType"), + + PRODUCTCATEGORY("productCategory"), + + BRAND("brand"); + + private String value; + + ReportTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportTypeEnum fromValue(String value) { + for (ReportTypeEnum b : ReportTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReportTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_REPORT_TYPE = "reportType"; + @SerializedName(SERIALIZED_NAME_REPORT_TYPE) + private ReportTypeEnum reportType; + + /** + * Type of revenue + */ + @JsonAdapter(RevenueTypeEnum.Adapter.class) + public enum RevenueTypeEnum { + AUCTION("auction"), + + PREFERRED("preferred"); + + private String value; + + RevenueTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RevenueTypeEnum fromValue(String value) { + for (RevenueTypeEnum b : RevenueTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RevenueTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RevenueTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RevenueTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_REVENUE_TYPE = "revenueType"; + @SerializedName(SERIALIZED_NAME_REVENUE_TYPE) + private RevenueTypeEnum revenueType; + + /** + * Filter on the seller: Indirect Sold, Direct Sold or Private Market + */ + @JsonAdapter(SoldByEnum.Adapter.class) + public enum SoldByEnum { + DIRECTSOLD("directSold"), + + INDIRECTSOLD("indirectSold"), + + PRIVATEMARKET("privateMarket"); + + private String value; + + SoldByEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SoldByEnum fromValue(String value) { + for (SoldByEnum b : SoldByEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SoldByEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SoldByEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SoldByEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_SOLD_BY = "soldBy"; + @SerializedName(SERIALIZED_NAME_SOLD_BY) + private SoldByEnum soldBy; + + /** + * Filter on buy type: Auction, Preferred Deals or Sponsorship + */ + @JsonAdapter(BuyTypeEnum.Adapter.class) + public enum BuyTypeEnum { + AUCTION("auction"), + + PREFERREDDEALS("preferredDeals"), + + SPONSORSHIP("sponsorship"); + + private String value; + + BuyTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static BuyTypeEnum fromValue(String value) { + for (BuyTypeEnum b : BuyTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final BuyTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public BuyTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return BuyTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_BUY_TYPE = "buyType"; + @SerializedName(SERIALIZED_NAME_BUY_TYPE) + private BuyTypeEnum buyType; + + /** + * Gets or Sets advertiserTypes + */ + @JsonAdapter(AdvertiserTypesEnum.Adapter.class) + public enum AdvertiserTypesEnum { + RETAILER("retailer"), + + BRAND("brand"), + + SELLER("seller"); + + private String value; + + AdvertiserTypesEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AdvertiserTypesEnum fromValue(String value) { + for (AdvertiserTypesEnum b : AdvertiserTypesEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AdvertiserTypesEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AdvertiserTypesEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AdvertiserTypesEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ADVERTISER_TYPES = "advertiserTypes"; + @SerializedName(SERIALIZED_NAME_ADVERTISER_TYPES) + private List advertiserTypes = null; + + /** + * Gets or Sets skuRelations + */ + @JsonAdapter(SkuRelationsEnum.Adapter.class) + public enum SkuRelationsEnum { + SAMESKU("sameSku"), + + SAMEPARENTSKU("sameParentSku"), + + SAMECATEGORY("sameCategory"), + + SAMEBRAND("sameBrand"), + + SAMESELLER("sameSeller"); + + private String value; + + SkuRelationsEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SkuRelationsEnum fromValue(String value) { + for (SkuRelationsEnum b : SkuRelationsEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SkuRelationsEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SkuRelationsEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SkuRelationsEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_SKU_RELATIONS = "skuRelations"; + @SerializedName(SERIALIZED_NAME_SKU_RELATIONS) + private List skuRelations = null; + + /** + * Format of the output + */ + @JsonAdapter(FormatEnum.Adapter.class) + public enum FormatEnum { + JSON("json"), + + JSON_COMPACT("json-compact"), + + JSON_NEWLINE("json-newline"), + + CSV("csv"); + + private String value; + + FormatEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static FormatEnum fromValue(String value) { + for (FormatEnum b : FormatEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final FormatEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public FormatEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return FormatEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_FORMAT = "format"; + @SerializedName(SERIALIZED_NAME_FORMAT) + private FormatEnum format; + + /** + * Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays + */ + @JsonAdapter(CampaignTypeEnum.Adapter.class) + public enum CampaignTypeEnum { + ALL("all"), + + SPONSOREDPRODUCTS("sponsoredProducts"), + + ONSITEDISPLAYS("onSiteDisplays"); + + private String value; + + CampaignTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CampaignTypeEnum fromValue(String value) { + for (CampaignTypeEnum b : CampaignTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CampaignTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CampaignTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CampaignTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CAMPAIGN_TYPE = "campaignType"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_TYPE) + private CampaignTypeEnum campaignType = CampaignTypeEnum.ALL; + + /** + * Filter on specific sales channel: offline or online + */ + @JsonAdapter(SalesChannelEnum.Adapter.class) + public enum SalesChannelEnum { + ALL("all"), + + OFFLINE("offline"), + + ONLINE("online"); + + private String value; + + SalesChannelEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SalesChannelEnum fromValue(String value) { + for (SalesChannelEnum b : SalesChannelEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SalesChannelEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SalesChannelEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SalesChannelEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_SALES_CHANNEL = "salesChannel"; + @SerializedName(SERIALIZED_NAME_SALES_CHANNEL) + private SalesChannelEnum salesChannel = SalesChannelEnum.ALL; + + /** + * Click attribution window + */ + @JsonAdapter(ClickAttributionWindowEnum.Adapter.class) + public enum ClickAttributionWindowEnum { + NONE("none"), + + _7D("7D"), + + _14D("14D"), + + _30D("30D"); + + private String value; + + ClickAttributionWindowEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ClickAttributionWindowEnum fromValue(String value) { + for (ClickAttributionWindowEnum b : ClickAttributionWindowEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ClickAttributionWindowEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ClickAttributionWindowEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ClickAttributionWindowEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CLICK_ATTRIBUTION_WINDOW = "clickAttributionWindow"; + @SerializedName(SERIALIZED_NAME_CLICK_ATTRIBUTION_WINDOW) + private ClickAttributionWindowEnum clickAttributionWindow = ClickAttributionWindowEnum.NONE; + + /** + * View attribution window + */ + @JsonAdapter(ViewAttributionWindowEnum.Adapter.class) + public enum ViewAttributionWindowEnum { + NONE("none"), + + _1D("1D"), + + _7D("7D"), + + _14D("14D"), + + _30D("30D"); + + private String value; + + ViewAttributionWindowEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ViewAttributionWindowEnum fromValue(String value) { + for (ViewAttributionWindowEnum b : ViewAttributionWindowEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ViewAttributionWindowEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ViewAttributionWindowEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ViewAttributionWindowEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_VIEW_ATTRIBUTION_WINDOW = "viewAttributionWindow"; + @SerializedName(SERIALIZED_NAME_VIEW_ATTRIBUTION_WINDOW) + private ViewAttributionWindowEnum viewAttributionWindow = ViewAttributionWindowEnum.NONE; + + /** + * Gets or Sets dimensions + */ + @JsonAdapter(DimensionsEnum.Adapter.class) + public enum DimensionsEnum { + DATE("date"), + + HOUR("hour"), + + PARENTACCOUNT("parentAccount"), + + ACCOUNTID("accountId"), + + ACCOUNTNAME("accountName"), + + ACCOUNTTYPENAME("accountTypeName"), + + ADVERTISERTYPE("advertiserType"), + + CAMPAIGNID("campaignId"), + + CAMPAIGNNAME("campaignName"), + + CAMPAIGNTYPENAME("campaignTypeName"), + + CAMPAIGNSTARTDATE("campaignStartDate"), + + CAMPAIGNENDDATE("campaignEndDate"), + + LINEITEMID("lineItemId"), + + LINEITEMNAME("lineItemName"), + + LINEITEMSTARTDATE("lineItemStartDate"), + + LINEITEMENDDATE("lineItemEndDate"), + + LINEITEMSTATUS("lineItemStatus"), + + RETAILERID("retailerId"), + + RETAILERNAME("retailerName"), + + BRANDID("brandId"), + + BRANDNAME("brandName"), + + PLACEMENTID("placementId"), + + PLACEMENTNAME("placementName"), + + PAGETYPENAME("pageTypeName"), + + ENVIRONMENT("environment"), + + PAGECATEGORY("pageCategory"), + + ADVPRODUCTID("advProductId"), + + ADVPRODUCTNAME("advProductName"), + + ADVPRODUCTGTIN("advProductGtin"), + + ADVPRODUCTMPN("advProductMpn"), + + BUYTYPE("buyType"), + + SOLDBY("soldBy"), + + SALECHANNEL("saleChannel"), + + ATTRIBUTIONSETTINGS("attributionSettings"), + + ACTIVITYTYPE("activityType"), + + KEYWORD("keyword"), + + SKURELATION("skuRelation"), + + RETAILERCATEGORYID("retailerCategoryId"), + + RETAILERCATEGORYNAME("retailerCategoryName"), + + TAXONOMYBREADCRUMB("taxonomyBreadcrumb"), + + TAXONOMY1ID("taxonomy1Id"), + + TAXONOMY1NAME("taxonomy1Name"), + + TAXONOMY2ID("taxonomy2Id"), + + TAXONOMY2NAME("taxonomy2Name"), + + TAXONOMY3ID("taxonomy3Id"), + + TAXONOMY3NAME("taxonomy3Name"), + + TAXONOMY4ID("taxonomy4Id"), + + TAXONOMY4NAME("taxonomy4Name"), + + TAXONOMY5ID("taxonomy5Id"), + + TAXONOMY5NAME("taxonomy5Name"), + + TAXONOMY6ID("taxonomy6Id"), + + TAXONOMY6NAME("taxonomy6Name"), + + TAXONOMY7ID("taxonomy7Id"), + + TAXONOMY7NAME("taxonomy7Name"); + + private String value; + + DimensionsEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static DimensionsEnum fromValue(String value) { + for (DimensionsEnum b : DimensionsEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final DimensionsEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public DimensionsEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return DimensionsEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_DIMENSIONS = "dimensions"; + @SerializedName(SERIALIZED_NAME_DIMENSIONS) + private List dimensions = null; + + /** + * Gets or Sets metrics + */ + @JsonAdapter(MetricsEnum.Adapter.class) + public enum MetricsEnum { + NUMBEROFCAMPAIGNS("numberOfCampaigns"), + + NUMBEROFLINEITEMS("numberOfLineItems"), + + NUMBEROFSKUS("numberOfSkus"), + + SKUPRICE("skuPrice"), + + PAGEVIEWS("pageViews"), + + IMPRESSIONS("impressions"), + + PRODUCTCLICKS("productClicks"), + + PLACEMENTCLICKS("placementClicks"), + + CLICKS("clicks"), + + SALES("sales"), + + UNITS("units"), + + TRANSACTIONS("transactions"), + + ASSISTEDSALES("assistedSales"), + + ASSISTEDUNITS("assistedUnits"), + + REVENUE("revenue"), + + OPENAUCTIONREVENUE("openAuctionRevenue"), + + PREFERREDDEALSREVENUE("preferredDealsRevenue"), + + CTR("ctr"), + + CR("cr"), + + CPC("cpc"), + + CPM("cpm"), + + ROAS("roas"), + + WORKINGMEDIA("workingMedia"), + + NETREVENUE("netRevenue"), + + VIDEOVIEWS("videoViews"), + + VIDEOSSTARTED("videosStarted"), + + VIDEOSPLAYEDTO25("videosPlayedTo25"), + + VIDEOSPLAYEDTO50("videosPlayedTo50"), + + VIDEOSPLAYEDTO75("videosPlayedTo75"), + + VIDEOSPLAYEDTO100("videosPlayedTo100"), + + VIDEOPLAYINGRATE("videoPlayingRate"), + + VIDEOCOMPLETIONRATE("videoCompletionRate"), + + UNIQUEVISITORS("uniqueVisitors"), + + FREQUENCY("frequency"); + + private String value; + + MetricsEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MetricsEnum fromValue(String value) { + for (MetricsEnum b : MetricsEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MetricsEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MetricsEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MetricsEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_METRICS = "metrics"; + @SerializedName(SERIALIZED_NAME_METRICS) + private List metrics = null; + + public static final String SERIALIZED_NAME_START_DATE = "startDate"; + @SerializedName(SERIALIZED_NAME_START_DATE) + private OffsetDateTime startDate; + + public static final String SERIALIZED_NAME_END_DATE = "endDate"; + @SerializedName(SERIALIZED_NAME_END_DATE) + private OffsetDateTime endDate; + + public static final String SERIALIZED_NAME_TIMEZONE = "timezone"; + @SerializedName(SERIALIZED_NAME_TIMEZONE) + private String timezone = "UTC"; + + public AsyncRevenueReport() { + } + + public AsyncRevenueReport ids(List ids) { + + this.ids = ids; + return this; + } + + public AsyncRevenueReport addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = null; + } + this.ids.add(idsItem); + return this; + } + + /** + * Supply account ids to report on + * @return ids + **/ + @javax.annotation.Nullable + + public List getIds() { + return ids; + } + + + public void setIds(List ids) { + this.ids = ids; + } + + + public AsyncRevenueReport id(String id) { + + this.id = id; + return this; + } + + /** + * Supply account id to report on + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public AsyncRevenueReport reportType(ReportTypeEnum reportType) { + + this.reportType = reportType; + return this; + } + + /** + * Type of report + * @return reportType + **/ + @javax.annotation.Nullable + + public ReportTypeEnum getReportType() { + return reportType; + } + + + public void setReportType(ReportTypeEnum reportType) { + this.reportType = reportType; + } + + + public AsyncRevenueReport revenueType(RevenueTypeEnum revenueType) { + + this.revenueType = revenueType; + return this; + } + + /** + * Type of revenue + * @return revenueType + **/ + @javax.annotation.Nullable + + public RevenueTypeEnum getRevenueType() { + return revenueType; + } + + + public void setRevenueType(RevenueTypeEnum revenueType) { + this.revenueType = revenueType; + } + + + public AsyncRevenueReport soldBy(SoldByEnum soldBy) { + + this.soldBy = soldBy; + return this; + } + + /** + * Filter on the seller: Indirect Sold, Direct Sold or Private Market + * @return soldBy + **/ + @javax.annotation.Nullable + + public SoldByEnum getSoldBy() { + return soldBy; + } + + + public void setSoldBy(SoldByEnum soldBy) { + this.soldBy = soldBy; + } + + + public AsyncRevenueReport buyType(BuyTypeEnum buyType) { + + this.buyType = buyType; + return this; + } + + /** + * Filter on buy type: Auction, Preferred Deals or Sponsorship + * @return buyType + **/ + @javax.annotation.Nullable + + public BuyTypeEnum getBuyType() { + return buyType; + } + + + public void setBuyType(BuyTypeEnum buyType) { + this.buyType = buyType; + } + + + public AsyncRevenueReport advertiserTypes(List advertiserTypes) { + + this.advertiserTypes = advertiserTypes; + return this; + } + + public AsyncRevenueReport addAdvertiserTypesItem(AdvertiserTypesEnum advertiserTypesItem) { + if (this.advertiserTypes == null) { + this.advertiserTypes = null; + } + this.advertiserTypes.add(advertiserTypesItem); + return this; + } + + /** + * Filter on the type of advertiser: retailer, brand, seller + * @return advertiserTypes + **/ + @javax.annotation.Nullable + + public List getAdvertiserTypes() { + return advertiserTypes; + } + + + public void setAdvertiserTypes(List advertiserTypes) { + this.advertiserTypes = advertiserTypes; + } + + + public AsyncRevenueReport skuRelations(List skuRelations) { + + this.skuRelations = skuRelations; + return this; + } + + public AsyncRevenueReport addSkuRelationsItem(SkuRelationsEnum skuRelationsItem) { + if (this.skuRelations == null) { + this.skuRelations = null; + } + this.skuRelations.add(skuRelationsItem); + return this; + } + + /** + * Filter on sku relations: Same SKU, Same Parent SKU, Same Category, Same Brand or Same Seller + * @return skuRelations + **/ + @javax.annotation.Nullable + + public List getSkuRelations() { + return skuRelations; + } + + + public void setSkuRelations(List skuRelations) { + this.skuRelations = skuRelations; + } + + + public AsyncRevenueReport format(FormatEnum format) { + + this.format = format; + return this; + } + + /** + * Format of the output + * @return format + **/ + @javax.annotation.Nullable + + public FormatEnum getFormat() { + return format; + } + + + public void setFormat(FormatEnum format) { + this.format = format; + } + + + public AsyncRevenueReport campaignType(CampaignTypeEnum campaignType) { + + this.campaignType = campaignType; + return this; + } + + /** + * Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays + * @return campaignType + **/ + @javax.annotation.Nullable + + public CampaignTypeEnum getCampaignType() { + return campaignType; + } + + + public void setCampaignType(CampaignTypeEnum campaignType) { + this.campaignType = campaignType; + } + + + public AsyncRevenueReport salesChannel(SalesChannelEnum salesChannel) { + + this.salesChannel = salesChannel; + return this; + } + + /** + * Filter on specific sales channel: offline or online + * @return salesChannel + **/ + @javax.annotation.Nullable + + public SalesChannelEnum getSalesChannel() { + return salesChannel; + } + + + public void setSalesChannel(SalesChannelEnum salesChannel) { + this.salesChannel = salesChannel; + } + + + public AsyncRevenueReport clickAttributionWindow(ClickAttributionWindowEnum clickAttributionWindow) { + + this.clickAttributionWindow = clickAttributionWindow; + return this; + } + + /** + * Click attribution window + * @return clickAttributionWindow + **/ + @javax.annotation.Nullable + + public ClickAttributionWindowEnum getClickAttributionWindow() { + return clickAttributionWindow; + } + + + public void setClickAttributionWindow(ClickAttributionWindowEnum clickAttributionWindow) { + this.clickAttributionWindow = clickAttributionWindow; + } + + + public AsyncRevenueReport viewAttributionWindow(ViewAttributionWindowEnum viewAttributionWindow) { + + this.viewAttributionWindow = viewAttributionWindow; + return this; + } + + /** + * View attribution window + * @return viewAttributionWindow + **/ + @javax.annotation.Nullable + + public ViewAttributionWindowEnum getViewAttributionWindow() { + return viewAttributionWindow; + } + + + public void setViewAttributionWindow(ViewAttributionWindowEnum viewAttributionWindow) { + this.viewAttributionWindow = viewAttributionWindow; + } + + + public AsyncRevenueReport dimensions(List dimensions) { + + this.dimensions = dimensions; + return this; + } + + public AsyncRevenueReport addDimensionsItem(DimensionsEnum dimensionsItem) { + if (this.dimensions == null) { + this.dimensions = null; + } + this.dimensions.add(dimensionsItem); + return this; + } + + /** + * List of dimensions to report on + * @return dimensions + **/ + @javax.annotation.Nullable + + public List getDimensions() { + return dimensions; + } + + + public void setDimensions(List dimensions) { + this.dimensions = dimensions; + } + + + public AsyncRevenueReport metrics(List metrics) { + + this.metrics = metrics; + return this; + } + + public AsyncRevenueReport addMetricsItem(MetricsEnum metricsItem) { + if (this.metrics == null) { + this.metrics = null; + } + this.metrics.add(metricsItem); + return this; + } + + /** + * List of metrics to report on + * @return metrics + **/ + @javax.annotation.Nullable + + public List getMetrics() { + return metrics; + } + + + public void setMetrics(List metrics) { + this.metrics = metrics; + } + + + public AsyncRevenueReport startDate(OffsetDateTime startDate) { + + this.startDate = startDate; + return this; + } + + /** + * Start date + * @return startDate + **/ + @javax.annotation.Nonnull + + public OffsetDateTime getStartDate() { + return startDate; + } + + + public void setStartDate(OffsetDateTime startDate) { + this.startDate = startDate; + } + + + public AsyncRevenueReport endDate(OffsetDateTime endDate) { + + this.endDate = endDate; + return this; + } + + /** + * End date + * @return endDate + **/ + @javax.annotation.Nonnull + + public OffsetDateTime getEndDate() { + return endDate; + } + + + public void setEndDate(OffsetDateTime endDate) { + this.endDate = endDate; + } + + + public AsyncRevenueReport timezone(String timezone) { + + this.timezone = timezone; + return this; + } + + /** + * Time zone : see criteo developer portal for supported time zones + * @return timezone + **/ + @javax.annotation.Nullable + + public String getTimezone() { + return timezone; + } + + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AsyncRevenueReport instance itself + */ + public AsyncRevenueReport putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AsyncRevenueReport asyncRevenueReport = (AsyncRevenueReport) o; + return Objects.equals(this.ids, asyncRevenueReport.ids) && + Objects.equals(this.id, asyncRevenueReport.id) && + Objects.equals(this.reportType, asyncRevenueReport.reportType) && + Objects.equals(this.revenueType, asyncRevenueReport.revenueType) && + Objects.equals(this.soldBy, asyncRevenueReport.soldBy) && + Objects.equals(this.buyType, asyncRevenueReport.buyType) && + Objects.equals(this.advertiserTypes, asyncRevenueReport.advertiserTypes) && + Objects.equals(this.skuRelations, asyncRevenueReport.skuRelations) && + Objects.equals(this.format, asyncRevenueReport.format) && + Objects.equals(this.campaignType, asyncRevenueReport.campaignType) && + Objects.equals(this.salesChannel, asyncRevenueReport.salesChannel) && + Objects.equals(this.clickAttributionWindow, asyncRevenueReport.clickAttributionWindow) && + Objects.equals(this.viewAttributionWindow, asyncRevenueReport.viewAttributionWindow) && + Objects.equals(this.dimensions, asyncRevenueReport.dimensions) && + Objects.equals(this.metrics, asyncRevenueReport.metrics) && + Objects.equals(this.startDate, asyncRevenueReport.startDate) && + Objects.equals(this.endDate, asyncRevenueReport.endDate) && + Objects.equals(this.timezone, asyncRevenueReport.timezone)&& + Objects.equals(this.additionalProperties, asyncRevenueReport.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(ids, id, reportType, revenueType, soldBy, buyType, advertiserTypes, skuRelations, format, campaignType, salesChannel, clickAttributionWindow, viewAttributionWindow, dimensions, metrics, startDate, endDate, timezone, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AsyncRevenueReport {\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" reportType: ").append(toIndentedString(reportType)).append("\n"); + sb.append(" revenueType: ").append(toIndentedString(revenueType)).append("\n"); + sb.append(" soldBy: ").append(toIndentedString(soldBy)).append("\n"); + sb.append(" buyType: ").append(toIndentedString(buyType)).append("\n"); + sb.append(" advertiserTypes: ").append(toIndentedString(advertiserTypes)).append("\n"); + sb.append(" skuRelations: ").append(toIndentedString(skuRelations)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" campaignType: ").append(toIndentedString(campaignType)).append("\n"); + sb.append(" salesChannel: ").append(toIndentedString(salesChannel)).append("\n"); + sb.append(" clickAttributionWindow: ").append(toIndentedString(clickAttributionWindow)).append("\n"); + sb.append(" viewAttributionWindow: ").append(toIndentedString(viewAttributionWindow)).append("\n"); + sb.append(" dimensions: ").append(toIndentedString(dimensions)).append("\n"); + sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("ids"); + openapiFields.add("id"); + openapiFields.add("reportType"); + openapiFields.add("revenueType"); + openapiFields.add("soldBy"); + openapiFields.add("buyType"); + openapiFields.add("advertiserTypes"); + openapiFields.add("skuRelations"); + openapiFields.add("format"); + openapiFields.add("campaignType"); + openapiFields.add("salesChannel"); + openapiFields.add("clickAttributionWindow"); + openapiFields.add("viewAttributionWindow"); + openapiFields.add("dimensions"); + openapiFields.add("metrics"); + openapiFields.add("startDate"); + openapiFields.add("endDate"); + openapiFields.add("timezone"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("startDate"); + openapiRequiredFields.add("endDate"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AsyncRevenueReport + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!AsyncRevenueReport.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncRevenueReport is not found in the empty JSON string", AsyncRevenueReport.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AsyncRevenueReport.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("ids") != null && !jsonObj.get("ids").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ids` to be an array in the JSON string but got `%s`", jsonObj.get("ids").toString())); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("reportType") != null && !jsonObj.get("reportType").isJsonNull()) && !jsonObj.get("reportType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reportType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reportType").toString())); + } + if ((jsonObj.get("revenueType") != null && !jsonObj.get("revenueType").isJsonNull()) && !jsonObj.get("revenueType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `revenueType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("revenueType").toString())); + } + if ((jsonObj.get("soldBy") != null && !jsonObj.get("soldBy").isJsonNull()) && !jsonObj.get("soldBy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `soldBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("soldBy").toString())); + } + if ((jsonObj.get("buyType") != null && !jsonObj.get("buyType").isJsonNull()) && !jsonObj.get("buyType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `buyType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("buyType").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("advertiserTypes") != null && !jsonObj.get("advertiserTypes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `advertiserTypes` to be an array in the JSON string but got `%s`", jsonObj.get("advertiserTypes").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("skuRelations") != null && !jsonObj.get("skuRelations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `skuRelations` to be an array in the JSON string but got `%s`", jsonObj.get("skuRelations").toString())); + } + if ((jsonObj.get("format") != null && !jsonObj.get("format").isJsonNull()) && !jsonObj.get("format").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `format` to be a primitive type in the JSON string but got `%s`", jsonObj.get("format").toString())); + } + if ((jsonObj.get("campaignType") != null && !jsonObj.get("campaignType").isJsonNull()) && !jsonObj.get("campaignType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `campaignType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("campaignType").toString())); + } + if ((jsonObj.get("salesChannel") != null && !jsonObj.get("salesChannel").isJsonNull()) && !jsonObj.get("salesChannel").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `salesChannel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("salesChannel").toString())); + } + if ((jsonObj.get("clickAttributionWindow") != null && !jsonObj.get("clickAttributionWindow").isJsonNull()) && !jsonObj.get("clickAttributionWindow").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `clickAttributionWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clickAttributionWindow").toString())); + } + if ((jsonObj.get("viewAttributionWindow") != null && !jsonObj.get("viewAttributionWindow").isJsonNull()) && !jsonObj.get("viewAttributionWindow").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `viewAttributionWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("viewAttributionWindow").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("dimensions") != null && !jsonObj.get("dimensions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `dimensions` to be an array in the JSON string but got `%s`", jsonObj.get("dimensions").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("metrics") != null && !jsonObj.get("metrics").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `metrics` to be an array in the JSON string but got `%s`", jsonObj.get("metrics").toString())); + } + if ((jsonObj.get("timezone") != null && !jsonObj.get("timezone").isJsonNull()) && !jsonObj.get("timezone").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `timezone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timezone").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AsyncRevenueReport.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AsyncRevenueReport' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AsyncRevenueReport.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AsyncRevenueReport value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AsyncRevenueReport read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + AsyncRevenueReport instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AsyncRevenueReport given an JSON string + * + * @param jsonString JSON string + * @return An instance of AsyncRevenueReport + * @throws IOException if the JSON string is invalid with respect to AsyncRevenueReport + */ + public static AsyncRevenueReport fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AsyncRevenueReport.class); + } + + /** + * Convert an instance of AsyncRevenueReport to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReportRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReportRequest.java new file mode 100644 index 00000000..00f463d0 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReportRequest.java @@ -0,0 +1,282 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.AsyncRevenueReportResource; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API request for a single value + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AsyncRevenueReportRequest { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private AsyncRevenueReportResource data; + + public AsyncRevenueReportRequest() { + } + + public AsyncRevenueReportRequest data(AsyncRevenueReportResource data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public AsyncRevenueReportResource getData() { + return data; + } + + + public void setData(AsyncRevenueReportResource data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AsyncRevenueReportRequest instance itself + */ + public AsyncRevenueReportRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AsyncRevenueReportRequest asyncRevenueReportRequest = (AsyncRevenueReportRequest) o; + return Objects.equals(this.data, asyncRevenueReportRequest.data)&& + Objects.equals(this.additionalProperties, asyncRevenueReportRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AsyncRevenueReportRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AsyncRevenueReportRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!AsyncRevenueReportRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncRevenueReportRequest is not found in the empty JSON string", AsyncRevenueReportRequest.openapiRequiredFields.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + AsyncRevenueReportResource.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AsyncRevenueReportRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AsyncRevenueReportRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AsyncRevenueReportRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AsyncRevenueReportRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AsyncRevenueReportRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + AsyncRevenueReportRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AsyncRevenueReportRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of AsyncRevenueReportRequest + * @throws IOException if the JSON string is invalid with respect to AsyncRevenueReportRequest + */ + public static AsyncRevenueReportRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AsyncRevenueReportRequest.class); + } + + /** + * Convert an instance of AsyncRevenueReportRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelResource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReportResource.java similarity index 77% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelResource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReportResource.java index 8af25173..6c4b0c13 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelResource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AsyncRevenueReportResource.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.SetUserProfileModel; +import com.criteo.api.retailmedia.v2024_10.model.AsyncRevenueReport; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,25 +43,25 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SetUserProfileModelResource { +public class AsyncRevenueReportResource { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private SetUserProfileModel attributes; + private AsyncRevenueReport attributes; - public SetUserProfileModelResource() { + public AsyncRevenueReportResource() { } - public SetUserProfileModelResource type(String type) { + public AsyncRevenueReportResource type(String type) { this.type = type; return this; @@ -83,7 +83,7 @@ public void setType(String type) { } - public SetUserProfileModelResource attributes(SetUserProfileModel attributes) { + public AsyncRevenueReportResource attributes(AsyncRevenueReport attributes) { this.attributes = attributes; return this; @@ -95,12 +95,12 @@ public SetUserProfileModelResource attributes(SetUserProfileModel attributes) { **/ @javax.annotation.Nullable - public SetUserProfileModel getAttributes() { + public AsyncRevenueReport getAttributes() { return attributes; } - public void setAttributes(SetUserProfileModel attributes) { + public void setAttributes(AsyncRevenueReport attributes) { this.attributes = attributes; } @@ -117,9 +117,9 @@ public void setAttributes(SetUserProfileModel attributes) { * * @param key name of the property * @param value value of the property - * @return the SetUserProfileModelResource instance itself + * @return the AsyncRevenueReportResource instance itself */ - public SetUserProfileModelResource putAdditionalProperty(String key, Object value) { + public AsyncRevenueReportResource putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -158,10 +158,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SetUserProfileModelResource setUserProfileModelResource = (SetUserProfileModelResource) o; - return Objects.equals(this.type, setUserProfileModelResource.type) && - Objects.equals(this.attributes, setUserProfileModelResource.attributes)&& - Objects.equals(this.additionalProperties, setUserProfileModelResource.additionalProperties); + AsyncRevenueReportResource asyncRevenueReportResource = (AsyncRevenueReportResource) o; + return Objects.equals(this.type, asyncRevenueReportResource.type) && + Objects.equals(this.attributes, asyncRevenueReportResource.attributes)&& + Objects.equals(this.additionalProperties, asyncRevenueReportResource.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -183,7 +183,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SetUserProfileModelResource {\n"); + sb.append("class AsyncRevenueReportResource {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -220,12 +220,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to SetUserProfileModelResource + * @throws IOException if the JSON Object is invalid with respect to AsyncRevenueReportResource */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!SetUserProfileModelResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SetUserProfileModelResource is not found in the empty JSON string", SetUserProfileModelResource.openapiRequiredFields.toString())); + if (!AsyncRevenueReportResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncRevenueReportResource is not found in the empty JSON string", AsyncRevenueReportResource.openapiRequiredFields.toString())); } } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { @@ -233,7 +233,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - SetUserProfileModel.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + AsyncRevenueReport.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } } @@ -241,16 +241,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetUserProfileModelResource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetUserProfileModelResource' and its subtypes + if (!AsyncRevenueReportResource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AsyncRevenueReportResource' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetUserProfileModelResource.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AsyncRevenueReportResource.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, SetUserProfileModelResource value) throws IOException { + public void write(JsonWriter out, AsyncRevenueReportResource value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -273,11 +273,11 @@ else if (entry.getValue() instanceof Character) } @Override - public SetUserProfileModelResource read(JsonReader in) throws IOException { + public AsyncRevenueReportResource read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - SetUserProfileModelResource instance = thisAdapter.fromJsonTree(jsonObj); + AsyncRevenueReportResource instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -304,18 +304,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of SetUserProfileModelResource given an JSON string + * Create an instance of AsyncRevenueReportResource given an JSON string * * @param jsonString JSON string - * @return An instance of SetUserProfileModelResource - * @throws IOException if the JSON string is invalid with respect to SetUserProfileModelResource + * @return An instance of AsyncRevenueReportResource + * @throws IOException if the JSON string is invalid with respect to AsyncRevenueReportResource */ - public static SetUserProfileModelResource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SetUserProfileModelResource.class); + public static AsyncRevenueReportResource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AsyncRevenueReportResource.class); } /** - * Convert an instance of SetUserProfileModelResource to an JSON string + * Convert an instance of AsyncRevenueReportResource to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemCreateModelRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemCreateModelRequest.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemCreateModelRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemCreateModelRequest.java index 19f342ce..546b4093 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemCreateModelRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemCreateModelRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.InputResourceOfAuctionLineItemCreateModel; +import com.criteo.api.retailmedia.v2024_10.model.InputResourceOfAuctionLineItemCreateModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a create input resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemPagedListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemPagedListResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemPagedListResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemPagedListResponse.java index ecf384d6..e0147752 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemPagedListResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemPagedListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.PageMetadata; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfAuctionLineItem; +import com.criteo.api.retailmedia.v2024_10.model.PageMetadata; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfAuctionLineItem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a paged list of response resources diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemResponse.java index ebd27f4b..9a3a0732 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfAuctionLineItem; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfAuctionLineItem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for response resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemUpdateModelRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemUpdateModelRequest.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemUpdateModelRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemUpdateModelRequest.java index 9d51f507..eb51a834 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemUpdateModelRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AuctionLineItemUpdateModelRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfAuctionLineItemUpdateModel; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfAuctionLineItemUpdateModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for an input resource diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceError.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceError.java new file mode 100644 index 00000000..2cf71205 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceError.java @@ -0,0 +1,591 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Definition of an audience error + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AudienceError { + public static final String SERIALIZED_NAME_TRACE_ID = "traceId"; + @SerializedName(SERIALIZED_NAME_TRACE_ID) + private String traceId; + + /** + * (REQUIRED) The classification of the error + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + ACCESS_CONTROL("access-control"), + + AUTHENTICATION("authentication"), + + AUTHORIZATION("authorization"), + + AVAILABILITY("availability"), + + DEPRECATION("deprecation"), + + QUOTA("quota"), + + VALIDATION("validation"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private String code; + + public static final String SERIALIZED_NAME_INSTANCE = "instance"; + @SerializedName(SERIALIZED_NAME_INSTANCE) + private String instance; + + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; + + public static final String SERIALIZED_NAME_DETAIL = "detail"; + @SerializedName(SERIALIZED_NAME_DETAIL) + private String detail; + + public static final String SERIALIZED_NAME_SOURCE = "source"; + @SerializedName(SERIALIZED_NAME_SOURCE) + private Object source; + + public static final String SERIALIZED_NAME_STACK_TRACE = "stackTrace"; + @SerializedName(SERIALIZED_NAME_STACK_TRACE) + private List stackTrace = null; + + public AudienceError() { + } + + public AudienceError traceId(String traceId) { + + this.traceId = traceId; + return this; + } + + /** + * (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. + * @return traceId + **/ + @javax.annotation.Nullable + + public String getTraceId() { + return traceId; + } + + + public void setTraceId(String traceId) { + this.traceId = traceId; + } + + + public AudienceError type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * (REQUIRED) The classification of the error + * @return type + **/ + @javax.annotation.Nonnull + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public AudienceError code(String code) { + + this.code = code; + return this; + } + + /** + * (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kebab-case. + * @return code + **/ + @javax.annotation.Nonnull + + public String getCode() { + return code; + } + + + public void setCode(String code) { + this.code = code; + } + + + public AudienceError instance(String instance) { + + this.instance = instance; + return this; + } + + /** + * (REQUIRED) A URI reference that identifies the specific occurrence of the problem + * @return instance + **/ + @javax.annotation.Nonnull + + public String getInstance() { + return instance; + } + + + public void setInstance(String instance) { + this.instance = instance; + } + + + public AudienceError title(String title) { + + this.title = title; + return this; + } + + /** + * (RECOMMENDED) A short, human-readable summary of the problem type + * @return title + **/ + @javax.annotation.Nullable + + public String getTitle() { + return title; + } + + + public void setTitle(String title) { + this.title = title; + } + + + public AudienceError detail(String detail) { + + this.detail = detail; + return this; + } + + /** + * (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem + * @return detail + **/ + @javax.annotation.Nullable + + public String getDetail() { + return detail; + } + + + public void setDetail(String detail) { + this.detail = detail; + } + + + public AudienceError source(Object source) { + + this.source = source; + return this; + } + + /** + * (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s) + * @return source + **/ + @javax.annotation.Nullable + + public Object getSource() { + return source; + } + + + public void setSource(Object source) { + this.source = source; + } + + + public AudienceError stackTrace(List stackTrace) { + + this.stackTrace = stackTrace; + return this; + } + + public AudienceError addStackTraceItem(String stackTraceItem) { + if (this.stackTrace == null) { + this.stackTrace = null; + } + this.stackTrace.add(stackTraceItem); + return this; + } + + /** + * (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology + * @return stackTrace + **/ + @javax.annotation.Nullable + + public List getStackTrace() { + return stackTrace; + } + + + public void setStackTrace(List stackTrace) { + this.stackTrace = stackTrace; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AudienceError instance itself + */ + public AudienceError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AudienceError audienceError = (AudienceError) o; + return Objects.equals(this.traceId, audienceError.traceId) && + Objects.equals(this.type, audienceError.type) && + Objects.equals(this.code, audienceError.code) && + Objects.equals(this.instance, audienceError.instance) && + Objects.equals(this.title, audienceError.title) && + Objects.equals(this.detail, audienceError.detail) && + Objects.equals(this.source, audienceError.source) && + Objects.equals(this.stackTrace, audienceError.stackTrace)&& + Objects.equals(this.additionalProperties, audienceError.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(traceId, type, code, instance, title, detail, source, stackTrace, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AudienceError {\n"); + sb.append(" traceId: ").append(toIndentedString(traceId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("traceId"); + openapiFields.add("type"); + openapiFields.add("code"); + openapiFields.add("instance"); + openapiFields.add("title"); + openapiFields.add("detail"); + openapiFields.add("source"); + openapiFields.add("stackTrace"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + openapiRequiredFields.add("code"); + openapiRequiredFields.add("instance"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AudienceError + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!AudienceError.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AudienceError is not found in the empty JSON string", AudienceError.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AudienceError.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("traceId") != null && !jsonObj.get("traceId").isJsonNull()) && !jsonObj.get("traceId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `traceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("traceId").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if (!jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + if (!jsonObj.get("instance").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `instance` to be a primitive type in the JSON string but got `%s`", jsonObj.get("instance").toString())); + } + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); + } + if ((jsonObj.get("detail") != null && !jsonObj.get("detail").isJsonNull()) && !jsonObj.get("detail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `detail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("detail").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stackTrace") != null && !jsonObj.get("stackTrace").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `stackTrace` to be an array in the JSON string but got `%s`", jsonObj.get("stackTrace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AudienceError.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AudienceError' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AudienceError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AudienceError value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AudienceError read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + AudienceError instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AudienceError given an JSON string + * + * @param jsonString JSON string + * @return An instance of AudienceError + * @throws IOException if the JSON string is invalid with respect to AudienceError + */ + public static AudienceError fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AudienceError.class); + } + + /** + * Convert an instance of AudienceError to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceIdsUpdateModel202110Request.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceIdsUpdateModel202110Request.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceIdsUpdateModel202110Request.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceIdsUpdateModel202110Request.java index be24584a..cd91c4f4 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceIdsUpdateModel202110Request.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceIdsUpdateModel202110Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfAudienceIdsUpdateModel202110; +import com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfAudienceIdsUpdateModel202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type input resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceTarget202110Request.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceTarget202110Request.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceTarget202110Request.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceTarget202110Request.java index 69407ab2..a454a6bc 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceTarget202110Request.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceTarget202110Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfAudienceTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfAudienceTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type input resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceTarget202110Response.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceTarget202110Response.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceTarget202110Response.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceTarget202110Response.java index 2728bbcd..b576bf7f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AudienceTarget202110Response.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceTarget202110Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfAudienceTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfAudienceTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type resource outcome diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceWarning.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceWarning.java new file mode 100644 index 00000000..63104753 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/AudienceWarning.java @@ -0,0 +1,592 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Definition of the warning + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AudienceWarning { + public static final String SERIALIZED_NAME_TRACE_ID = "traceId"; + @SerializedName(SERIALIZED_NAME_TRACE_ID) + private String traceId; + + /** + * (REQUIRED) The classification of the error + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + ACCESS_CONTROL("access-control"), + + AUTHENTICATION("authentication"), + + AUTHORIZATION("authorization"), + + AVAILABILITY("availability"), + + DEPRECATION("deprecation"), + + QUOTA("quota"), + + VALIDATION("validation"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private String code; + + public static final String SERIALIZED_NAME_INSTANCE = "instance"; + @SerializedName(SERIALIZED_NAME_INSTANCE) + private String instance; + + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; + + public static final String SERIALIZED_NAME_DETAIL = "detail"; + @SerializedName(SERIALIZED_NAME_DETAIL) + private String detail; + + public static final String SERIALIZED_NAME_SOURCE = "source"; + @SerializedName(SERIALIZED_NAME_SOURCE) + private Object source; + + public static final String SERIALIZED_NAME_STACK_TRACE = "stackTrace"; + @SerializedName(SERIALIZED_NAME_STACK_TRACE) + private List stackTrace = null; + + public AudienceWarning() { + } + + public AudienceWarning traceId(String traceId) { + + this.traceId = traceId; + return this; + } + + /** + * (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. + * @return traceId + **/ + @javax.annotation.Nullable + + public String getTraceId() { + return traceId; + } + + + public void setTraceId(String traceId) { + this.traceId = traceId; + } + + + public AudienceWarning type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * (REQUIRED) The classification of the error + * @return type + **/ + @javax.annotation.Nonnull + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public AudienceWarning code(String code) { + + this.code = code; + return this; + } + + /** + * (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kebab-case. + * @return code + **/ + @javax.annotation.Nonnull + + public String getCode() { + return code; + } + + + public void setCode(String code) { + this.code = code; + } + + + public AudienceWarning instance(String instance) { + + this.instance = instance; + return this; + } + + /** + * (REQUIRED) A URI reference that identifies the specific occurrence of the problem + * @return instance + **/ + @javax.annotation.Nonnull + + public String getInstance() { + return instance; + } + + + public void setInstance(String instance) { + this.instance = instance; + } + + + public AudienceWarning title(String title) { + + this.title = title; + return this; + } + + /** + * (RECOMMENDED) A short, human-readable summary of the problem type + * @return title + **/ + @javax.annotation.Nullable + + public String getTitle() { + return title; + } + + + public void setTitle(String title) { + this.title = title; + } + + + public AudienceWarning detail(String detail) { + + this.detail = detail; + return this; + } + + /** + * (REQUIRED) A human-readable explanation specific to this occurrence of the problem + * @return detail + **/ + @javax.annotation.Nonnull + + public String getDetail() { + return detail; + } + + + public void setDetail(String detail) { + this.detail = detail; + } + + + public AudienceWarning source(Object source) { + + this.source = source; + return this; + } + + /** + * (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s) + * @return source + **/ + @javax.annotation.Nullable + + public Object getSource() { + return source; + } + + + public void setSource(Object source) { + this.source = source; + } + + + public AudienceWarning stackTrace(List stackTrace) { + + this.stackTrace = stackTrace; + return this; + } + + public AudienceWarning addStackTraceItem(String stackTraceItem) { + if (this.stackTrace == null) { + this.stackTrace = null; + } + this.stackTrace.add(stackTraceItem); + return this; + } + + /** + * (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology + * @return stackTrace + **/ + @javax.annotation.Nullable + + public List getStackTrace() { + return stackTrace; + } + + + public void setStackTrace(List stackTrace) { + this.stackTrace = stackTrace; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AudienceWarning instance itself + */ + public AudienceWarning putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AudienceWarning audienceWarning = (AudienceWarning) o; + return Objects.equals(this.traceId, audienceWarning.traceId) && + Objects.equals(this.type, audienceWarning.type) && + Objects.equals(this.code, audienceWarning.code) && + Objects.equals(this.instance, audienceWarning.instance) && + Objects.equals(this.title, audienceWarning.title) && + Objects.equals(this.detail, audienceWarning.detail) && + Objects.equals(this.source, audienceWarning.source) && + Objects.equals(this.stackTrace, audienceWarning.stackTrace)&& + Objects.equals(this.additionalProperties, audienceWarning.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(traceId, type, code, instance, title, detail, source, stackTrace, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AudienceWarning {\n"); + sb.append(" traceId: ").append(toIndentedString(traceId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("traceId"); + openapiFields.add("type"); + openapiFields.add("code"); + openapiFields.add("instance"); + openapiFields.add("title"); + openapiFields.add("detail"); + openapiFields.add("source"); + openapiFields.add("stackTrace"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + openapiRequiredFields.add("code"); + openapiRequiredFields.add("instance"); + openapiRequiredFields.add("detail"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AudienceWarning + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!AudienceWarning.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AudienceWarning is not found in the empty JSON string", AudienceWarning.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AudienceWarning.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("traceId") != null && !jsonObj.get("traceId").isJsonNull()) && !jsonObj.get("traceId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `traceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("traceId").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if (!jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + if (!jsonObj.get("instance").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `instance` to be a primitive type in the JSON string but got `%s`", jsonObj.get("instance").toString())); + } + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); + } + if (!jsonObj.get("detail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `detail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("detail").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stackTrace") != null && !jsonObj.get("stackTrace").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `stackTrace` to be an array in the JSON string but got `%s`", jsonObj.get("stackTrace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AudienceWarning.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AudienceWarning' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AudienceWarning.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AudienceWarning value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AudienceWarning read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + AudienceWarning instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AudienceWarning given an JSON string + * + * @param jsonString JSON string + * @return An instance of AudienceWarning + * @throws IOException if the JSON string is invalid with respect to AudienceWarning + */ + public static AudienceWarning fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AudienceWarning.class); + } + + /** + * Convert an instance of AudienceWarning to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/BalanceCampaign202110ListRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceCampaign202110ListRequest.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/BalanceCampaign202110ListRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceCampaign202110ListRequest.java index 936f8afd..e6510643 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/BalanceCampaign202110ListRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceCampaign202110ListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfBalanceCampaign202110; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfBalanceCampaign202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A class implementing the request of the Criteo API as described in API Guild Guidelines with a collection of entities as body https://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/BalanceCampaign202110PagedListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceCampaign202110PagedListResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/BalanceCampaign202110PagedListResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceCampaign202110PagedListResponse.java index bb57454d..5a4a460f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/BalanceCampaign202110PagedListResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceCampaign202110PagedListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.PageMetadata; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfBalanceCampaign202110; +import com.criteo.api.retailmedia.v2024_10.model.PageMetadata; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfBalanceCampaign202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a paged list of response resources diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceHistoryChangeDataCaptureV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceHistoryChangeDataCaptureV1.java new file mode 100644 index 00000000..9338197f --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceHistoryChangeDataCaptureV1.java @@ -0,0 +1,419 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ChangeDetailsV1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Data model represents the data change capture of balance history. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BalanceHistoryChangeDataCaptureV1 { + public static final String SERIALIZED_NAME_DATE_OF_MODIFICATION = "dateOfModification"; + @SerializedName(SERIALIZED_NAME_DATE_OF_MODIFICATION) + private OffsetDateTime dateOfModification; + + public static final String SERIALIZED_NAME_MODIFIED_BY_USER = "modifiedByUser"; + @SerializedName(SERIALIZED_NAME_MODIFIED_BY_USER) + private String modifiedByUser; + + /** + * Represent the type of change states of the history. + */ + @JsonAdapter(ChangeTypeEnum.Adapter.class) + public enum ChangeTypeEnum { + BALANCECREATED("BalanceCreated"), + + BALANCEADDED("BalanceAdded"), + + BALANCEREMOVED("BalanceRemoved"), + + BALANCEUNCAPPED("BalanceUncapped"), + + BALANCECAPPED("BalanceCapped"), + + ENDDATE("EndDate"), + + STARTDATE("StartDate"), + + BALANCENAME("BalanceName"), + + PONUMBER("PoNumber"), + + VALUEADD("ValueAdd"), + + UNKNOWN("Unknown"); + + private String value; + + ChangeTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ChangeTypeEnum fromValue(String value) { + for (ChangeTypeEnum b : ChangeTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ChangeTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ChangeTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ChangeTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CHANGE_TYPE = "changeType"; + @SerializedName(SERIALIZED_NAME_CHANGE_TYPE) + private ChangeTypeEnum changeType; + + public static final String SERIALIZED_NAME_CHANGE_DETAILS = "changeDetails"; + @SerializedName(SERIALIZED_NAME_CHANGE_DETAILS) + private ChangeDetailsV1 changeDetails; + + public static final String SERIALIZED_NAME_MEMO = "memo"; + @SerializedName(SERIALIZED_NAME_MEMO) + private String memo; + + public BalanceHistoryChangeDataCaptureV1() { + } + + public BalanceHistoryChangeDataCaptureV1 dateOfModification(OffsetDateTime dateOfModification) { + + this.dateOfModification = dateOfModification; + return this; + } + + /** + * Date when data change has occured. + * @return dateOfModification + **/ + @javax.annotation.Nonnull + + public OffsetDateTime getDateOfModification() { + return dateOfModification; + } + + + public void setDateOfModification(OffsetDateTime dateOfModification) { + this.dateOfModification = dateOfModification; + } + + + public BalanceHistoryChangeDataCaptureV1 modifiedByUser(String modifiedByUser) { + + this.modifiedByUser = modifiedByUser; + return this; + } + + /** + * Username who modified the insertion order. + * @return modifiedByUser + **/ + @javax.annotation.Nonnull + + public String getModifiedByUser() { + return modifiedByUser; + } + + + public void setModifiedByUser(String modifiedByUser) { + this.modifiedByUser = modifiedByUser; + } + + + public BalanceHistoryChangeDataCaptureV1 changeType(ChangeTypeEnum changeType) { + + this.changeType = changeType; + return this; + } + + /** + * Represent the type of change states of the history. + * @return changeType + **/ + @javax.annotation.Nonnull + + public ChangeTypeEnum getChangeType() { + return changeType; + } + + + public void setChangeType(ChangeTypeEnum changeType) { + this.changeType = changeType; + } + + + public BalanceHistoryChangeDataCaptureV1 changeDetails(ChangeDetailsV1 changeDetails) { + + this.changeDetails = changeDetails; + return this; + } + + /** + * Get changeDetails + * @return changeDetails + **/ + @javax.annotation.Nonnull + + public ChangeDetailsV1 getChangeDetails() { + return changeDetails; + } + + + public void setChangeDetails(ChangeDetailsV1 changeDetails) { + this.changeDetails = changeDetails; + } + + + public BalanceHistoryChangeDataCaptureV1 memo(String memo) { + + this.memo = memo; + return this; + } + + /** + * Memo associate with the insertion order modification. + * @return memo + **/ + @javax.annotation.Nullable + + public String getMemo() { + return memo; + } + + + public void setMemo(String memo) { + this.memo = memo; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BalanceHistoryChangeDataCaptureV1 balanceHistoryChangeDataCaptureV1 = (BalanceHistoryChangeDataCaptureV1) o; + return Objects.equals(this.dateOfModification, balanceHistoryChangeDataCaptureV1.dateOfModification) && + Objects.equals(this.modifiedByUser, balanceHistoryChangeDataCaptureV1.modifiedByUser) && + Objects.equals(this.changeType, balanceHistoryChangeDataCaptureV1.changeType) && + Objects.equals(this.changeDetails, balanceHistoryChangeDataCaptureV1.changeDetails) && + Objects.equals(this.memo, balanceHistoryChangeDataCaptureV1.memo); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(dateOfModification, modifiedByUser, changeType, changeDetails, memo); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BalanceHistoryChangeDataCaptureV1 {\n"); + sb.append(" dateOfModification: ").append(toIndentedString(dateOfModification)).append("\n"); + sb.append(" modifiedByUser: ").append(toIndentedString(modifiedByUser)).append("\n"); + sb.append(" changeType: ").append(toIndentedString(changeType)).append("\n"); + sb.append(" changeDetails: ").append(toIndentedString(changeDetails)).append("\n"); + sb.append(" memo: ").append(toIndentedString(memo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("dateOfModification"); + openapiFields.add("modifiedByUser"); + openapiFields.add("changeType"); + openapiFields.add("changeDetails"); + openapiFields.add("memo"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("dateOfModification"); + openapiRequiredFields.add("modifiedByUser"); + openapiRequiredFields.add("changeType"); + openapiRequiredFields.add("changeDetails"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to BalanceHistoryChangeDataCaptureV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!BalanceHistoryChangeDataCaptureV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in BalanceHistoryChangeDataCaptureV1 is not found in the empty JSON string", BalanceHistoryChangeDataCaptureV1.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!BalanceHistoryChangeDataCaptureV1.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `BalanceHistoryChangeDataCaptureV1` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BalanceHistoryChangeDataCaptureV1.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("modifiedByUser").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `modifiedByUser` to be a primitive type in the JSON string but got `%s`", jsonObj.get("modifiedByUser").toString())); + } + if (!jsonObj.get("changeType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `changeType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("changeType").toString())); + } + // validate the required field `changeDetails` + ChangeDetailsV1.validateJsonObject(jsonObj.getAsJsonObject("changeDetails")); + if ((jsonObj.get("memo") != null && !jsonObj.get("memo").isJsonNull()) && !jsonObj.get("memo").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `memo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("memo").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BalanceHistoryChangeDataCaptureV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BalanceHistoryChangeDataCaptureV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BalanceHistoryChangeDataCaptureV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BalanceHistoryChangeDataCaptureV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BalanceHistoryChangeDataCaptureV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BalanceHistoryChangeDataCaptureV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of BalanceHistoryChangeDataCaptureV1 + * @throws IOException if the JSON string is invalid with respect to BalanceHistoryChangeDataCaptureV1 + */ + public static BalanceHistoryChangeDataCaptureV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BalanceHistoryChangeDataCaptureV1.class); + } + + /** + * Convert an instance of BalanceHistoryChangeDataCaptureV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalBalance202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceResponseV2.java similarity index 67% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalBalance202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceResponseV2.java index d0460f95..b95c411b 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalBalance202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceResponseV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -45,13 +45,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A Retail Media Balance used to determine the funds available for any or all campaigns in an account */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ExternalBalance202110 { +public class BalanceResponseV2 { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; @@ -85,7 +85,7 @@ public class ExternalBalance202110 { private LocalDate endDate; /** - * Gets or Sets status + * Status of the balance. */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { @@ -148,7 +148,113 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private OffsetDateTime updatedAt; /** - * Billing type for Private Market. + * Type of the balance. + */ + @JsonAdapter(BalanceTypeEnum.Adapter.class) + public enum BalanceTypeEnum { + UNKNOWN("unknown"), + + CAPPED("capped"), + + UNCAPPED("uncapped"); + + private String value; + + BalanceTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static BalanceTypeEnum fromValue(String value) { + for (BalanceTypeEnum b : BalanceTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final BalanceTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public BalanceTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return BalanceTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_BALANCE_TYPE = "balanceType"; + @SerializedName(SERIALIZED_NAME_BALANCE_TYPE) + private BalanceTypeEnum balanceType; + + /** + * Spend Type of the balance. + */ + @JsonAdapter(SpendTypeEnum.Adapter.class) + public enum SpendTypeEnum { + ONSITE("Onsite"), + + OFFSITE("Offsite"), + + OFFSITEAWARENESS("OffsiteAwareness"); + + private String value; + + SpendTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SpendTypeEnum fromValue(String value) { + for (SpendTypeEnum b : SpendTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SpendTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SpendTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SpendTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_SPEND_TYPE = "spendType"; + @SerializedName(SERIALIZED_NAME_SPEND_TYPE) + private SpendTypeEnum spendType; + + /** + * Billing type for Private Market of the balance. */ @JsonAdapter(PrivateMarketBillingTypeEnum.Adapter.class) public enum PrivateMarketBillingTypeEnum { @@ -202,17 +308,17 @@ public PrivateMarketBillingTypeEnum read(final JsonReader jsonReader) throws IOE @SerializedName(SERIALIZED_NAME_PRIVATE_MARKET_BILLING_TYPE) private PrivateMarketBillingTypeEnum privateMarketBillingType; - public ExternalBalance202110() { + public BalanceResponseV2() { } - public ExternalBalance202110 name(String name) { + public BalanceResponseV2 name(String name) { this.name = name; return this; } /** - * Get name + * Name of the balance. * @return name **/ @javax.annotation.Nonnull @@ -227,17 +333,17 @@ public void setName(String name) { } - public ExternalBalance202110 poNumber(String poNumber) { + public BalanceResponseV2 poNumber(String poNumber) { this.poNumber = poNumber; return this; } /** - * Get poNumber + * Purchase Order number. * @return poNumber **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public String getPoNumber() { return poNumber; @@ -249,17 +355,17 @@ public void setPoNumber(String poNumber) { } - public ExternalBalance202110 memo(String memo) { + public BalanceResponseV2 memo(String memo) { this.memo = memo; return this; } /** - * Get memo + * Memo. * @return memo **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public String getMemo() { return memo; @@ -271,14 +377,14 @@ public void setMemo(String memo) { } - public ExternalBalance202110 deposited(BigDecimal deposited) { + public BalanceResponseV2 deposited(BigDecimal deposited) { this.deposited = deposited; return this; } /** - * Get deposited + * Amount of billable funds allotted to the balance. * @return deposited **/ @javax.annotation.Nullable @@ -293,14 +399,14 @@ public void setDeposited(BigDecimal deposited) { } - public ExternalBalance202110 spent(BigDecimal spent) { + public BalanceResponseV2 spent(BigDecimal spent) { this.spent = spent; return this; } /** - * Get spent + * Amount of spent funds of the balance. * @return spent **/ @javax.annotation.Nullable @@ -315,14 +421,14 @@ public void setSpent(BigDecimal spent) { } - public ExternalBalance202110 remaining(BigDecimal remaining) { + public BalanceResponseV2 remaining(BigDecimal remaining) { this.remaining = remaining; return this; } /** - * Get remaining + * Amount of remaining funds of the balance. * @return remaining **/ @javax.annotation.Nullable @@ -337,14 +443,14 @@ public void setRemaining(BigDecimal remaining) { } - public ExternalBalance202110 startDate(LocalDate startDate) { + public BalanceResponseV2 startDate(LocalDate startDate) { this.startDate = startDate; return this; } /** - * Represents the Date as a year, month, and day in the format YYYY-MM-DD + * Start date of the balance in the format YYYY-MM-DD. * @return startDate **/ @javax.annotation.Nonnull @@ -359,14 +465,14 @@ public void setStartDate(LocalDate startDate) { } - public ExternalBalance202110 endDate(LocalDate endDate) { + public BalanceResponseV2 endDate(LocalDate endDate) { this.endDate = endDate; return this; } /** - * Represents the Date as a year, month, and day in the format YYYY-MM-DD + * End date of the balance in the format YYYY-MM-DD. * @return endDate **/ @javax.annotation.Nullable @@ -381,17 +487,17 @@ public void setEndDate(LocalDate endDate) { } - public ExternalBalance202110 status(StatusEnum status) { + public BalanceResponseV2 status(StatusEnum status) { this.status = status; return this; } /** - * Get status + * Status of the balance. * @return status **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public StatusEnum getStatus() { return status; @@ -403,17 +509,17 @@ public void setStatus(StatusEnum status) { } - public ExternalBalance202110 createdAt(OffsetDateTime createdAt) { + public BalanceResponseV2 createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } /** - * Get createdAt + * Creation time of the balance. * @return createdAt **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public OffsetDateTime getCreatedAt() { return createdAt; @@ -425,17 +531,17 @@ public void setCreatedAt(OffsetDateTime createdAt) { } - public ExternalBalance202110 updatedAt(OffsetDateTime updatedAt) { + public BalanceResponseV2 updatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; } /** - * Get updatedAt + * Update time of the balance. * @return updatedAt **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public OffsetDateTime getUpdatedAt() { return updatedAt; @@ -447,14 +553,58 @@ public void setUpdatedAt(OffsetDateTime updatedAt) { } - public ExternalBalance202110 privateMarketBillingType(PrivateMarketBillingTypeEnum privateMarketBillingType) { + public BalanceResponseV2 balanceType(BalanceTypeEnum balanceType) { + + this.balanceType = balanceType; + return this; + } + + /** + * Type of the balance. + * @return balanceType + **/ + @javax.annotation.Nonnull + + public BalanceTypeEnum getBalanceType() { + return balanceType; + } + + + public void setBalanceType(BalanceTypeEnum balanceType) { + this.balanceType = balanceType; + } + + + public BalanceResponseV2 spendType(SpendTypeEnum spendType) { + + this.spendType = spendType; + return this; + } + + /** + * Spend Type of the balance. + * @return spendType + **/ + @javax.annotation.Nonnull + + public SpendTypeEnum getSpendType() { + return spendType; + } + + + public void setSpendType(SpendTypeEnum spendType) { + this.spendType = spendType; + } + + + public BalanceResponseV2 privateMarketBillingType(PrivateMarketBillingTypeEnum privateMarketBillingType) { this.privateMarketBillingType = privateMarketBillingType; return this; } /** - * Billing type for Private Market. + * Billing type for Private Market of the balance. * @return privateMarketBillingType **/ @javax.annotation.Nonnull @@ -481,9 +631,9 @@ public void setPrivateMarketBillingType(PrivateMarketBillingTypeEnum privateMark * * @param key name of the property * @param value value of the property - * @return the ExternalBalance202110 instance itself + * @return the BalanceResponseV2 instance itself */ - public ExternalBalance202110 putAdditionalProperty(String key, Object value) { + public BalanceResponseV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -522,20 +672,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ExternalBalance202110 externalBalance202110 = (ExternalBalance202110) o; - return Objects.equals(this.name, externalBalance202110.name) && - Objects.equals(this.poNumber, externalBalance202110.poNumber) && - Objects.equals(this.memo, externalBalance202110.memo) && - Objects.equals(this.deposited, externalBalance202110.deposited) && - Objects.equals(this.spent, externalBalance202110.spent) && - Objects.equals(this.remaining, externalBalance202110.remaining) && - Objects.equals(this.startDate, externalBalance202110.startDate) && - Objects.equals(this.endDate, externalBalance202110.endDate) && - Objects.equals(this.status, externalBalance202110.status) && - Objects.equals(this.createdAt, externalBalance202110.createdAt) && - Objects.equals(this.updatedAt, externalBalance202110.updatedAt) && - Objects.equals(this.privateMarketBillingType, externalBalance202110.privateMarketBillingType)&& - Objects.equals(this.additionalProperties, externalBalance202110.additionalProperties); + BalanceResponseV2 balanceResponseV2 = (BalanceResponseV2) o; + return Objects.equals(this.name, balanceResponseV2.name) && + Objects.equals(this.poNumber, balanceResponseV2.poNumber) && + Objects.equals(this.memo, balanceResponseV2.memo) && + Objects.equals(this.deposited, balanceResponseV2.deposited) && + Objects.equals(this.spent, balanceResponseV2.spent) && + Objects.equals(this.remaining, balanceResponseV2.remaining) && + Objects.equals(this.startDate, balanceResponseV2.startDate) && + Objects.equals(this.endDate, balanceResponseV2.endDate) && + Objects.equals(this.status, balanceResponseV2.status) && + Objects.equals(this.createdAt, balanceResponseV2.createdAt) && + Objects.equals(this.updatedAt, balanceResponseV2.updatedAt) && + Objects.equals(this.balanceType, balanceResponseV2.balanceType) && + Objects.equals(this.spendType, balanceResponseV2.spendType) && + Objects.equals(this.privateMarketBillingType, balanceResponseV2.privateMarketBillingType)&& + Objects.equals(this.additionalProperties, balanceResponseV2.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -544,7 +696,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, poNumber, memo, deposited, spent, remaining, startDate, endDate, status, createdAt, updatedAt, privateMarketBillingType, additionalProperties); + return Objects.hash(name, poNumber, memo, deposited, spent, remaining, startDate, endDate, status, createdAt, updatedAt, balanceType, spendType, privateMarketBillingType, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -557,7 +709,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ExternalBalance202110 {\n"); + sb.append("class BalanceResponseV2 {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" poNumber: ").append(toIndentedString(poNumber)).append("\n"); sb.append(" memo: ").append(toIndentedString(memo)).append("\n"); @@ -569,6 +721,8 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" balanceType: ").append(toIndentedString(balanceType)).append("\n"); + sb.append(" spendType: ").append(toIndentedString(spendType)).append("\n"); sb.append(" privateMarketBillingType: ").append(toIndentedString(privateMarketBillingType)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -604,20 +758,16 @@ private String toIndentedString(Object o) { openapiFields.add("status"); openapiFields.add("createdAt"); openapiFields.add("updatedAt"); + openapiFields.add("balanceType"); + openapiFields.add("spendType"); openapiFields.add("privateMarketBillingType"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); openapiRequiredFields.add("name"); - openapiRequiredFields.add("poNumber"); - openapiRequiredFields.add("memo"); - openapiRequiredFields.add("deposited"); - openapiRequiredFields.add("spent"); - openapiRequiredFields.add("remaining"); openapiRequiredFields.add("startDate"); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("createdAt"); - openapiRequiredFields.add("updatedAt"); + openapiRequiredFields.add("balanceType"); + openapiRequiredFields.add("spendType"); openapiRequiredFields.add("privateMarketBillingType"); } @@ -625,17 +775,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ExternalBalance202110 + * @throws IOException if the JSON Object is invalid with respect to BalanceResponseV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ExternalBalance202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalBalance202110 is not found in the empty JSON string", ExternalBalance202110.openapiRequiredFields.toString())); + if (!BalanceResponseV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in BalanceResponseV2 is not found in the empty JSON string", BalanceResponseV2.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ExternalBalance202110.openapiRequiredFields) { + for (String requiredField : BalanceResponseV2.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -643,15 +793,21 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if (!jsonObj.get("poNumber").isJsonPrimitive()) { + if ((jsonObj.get("poNumber") != null && !jsonObj.get("poNumber").isJsonNull()) && !jsonObj.get("poNumber").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `poNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("poNumber").toString())); } - if (!jsonObj.get("memo").isJsonPrimitive()) { + if ((jsonObj.get("memo") != null && !jsonObj.get("memo").isJsonNull()) && !jsonObj.get("memo").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `memo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("memo").toString())); } - if (!jsonObj.get("status").isJsonPrimitive()) { + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } + if (!jsonObj.get("balanceType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `balanceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("balanceType").toString())); + } + if (!jsonObj.get("spendType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `spendType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("spendType").toString())); + } if (!jsonObj.get("privateMarketBillingType").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `privateMarketBillingType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("privateMarketBillingType").toString())); } @@ -661,16 +817,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ExternalBalance202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ExternalBalance202110' and its subtypes + if (!BalanceResponseV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BalanceResponseV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ExternalBalance202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BalanceResponseV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ExternalBalance202110 value) throws IOException { + public void write(JsonWriter out, BalanceResponseV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -693,11 +849,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ExternalBalance202110 read(JsonReader in) throws IOException { + public BalanceResponseV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ExternalBalance202110 instance = thisAdapter.fromJsonTree(jsonObj); + BalanceResponseV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -724,18 +880,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ExternalBalance202110 given an JSON string + * Create an instance of BalanceResponseV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ExternalBalance202110 - * @throws IOException if the JSON string is invalid with respect to ExternalBalance202110 + * @return An instance of BalanceResponseV2 + * @throws IOException if the JSON string is invalid with respect to BalanceResponseV2 */ - public static ExternalBalance202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ExternalBalance202110.class); + public static BalanceResponseV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BalanceResponseV2.class); } /** - * Convert an instance of ExternalBalance202110 to an JSON string + * Convert an instance of BalanceResponseV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceResponseV2Response.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceResponseV2Response.java new file mode 100644 index 00000000..2a00c6c5 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/BalanceResponseV2Response.java @@ -0,0 +1,363 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfBalanceResponseV2; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single entity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BalanceResponseV2Response { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private ResourceOfBalanceResponseV2 data; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public BalanceResponseV2Response() { + } + + + public BalanceResponseV2Response( + List warnings, + List errors + ) { + this(); + this.warnings = warnings; + this.errors = errors; + } + + public BalanceResponseV2Response data(ResourceOfBalanceResponseV2 data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public ResourceOfBalanceResponseV2 getData() { + return data; + } + + + public void setData(ResourceOfBalanceResponseV2 data) { + this.data = data; + } + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the BalanceResponseV2Response instance itself + */ + public BalanceResponseV2Response putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BalanceResponseV2Response balanceResponseV2Response = (BalanceResponseV2Response) o; + return Objects.equals(this.data, balanceResponseV2Response.data) && + Objects.equals(this.warnings, balanceResponseV2Response.warnings) && + Objects.equals(this.errors, balanceResponseV2Response.errors)&& + Objects.equals(this.additionalProperties, balanceResponseV2Response.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, warnings, errors, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BalanceResponseV2Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + openapiFields.add("warnings"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to BalanceResponseV2Response + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!BalanceResponseV2Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in BalanceResponseV2Response is not found in the empty JSON string", BalanceResponseV2Response.openapiRequiredFields.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + ResourceOfBalanceResponseV2.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BalanceResponseV2Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BalanceResponseV2Response' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BalanceResponseV2Response.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BalanceResponseV2Response value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public BalanceResponseV2Response read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + BalanceResponseV2Response instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BalanceResponseV2Response given an JSON string + * + * @param jsonString JSON string + * @return An instance of BalanceResponseV2Response + * @throws IOException if the JSON string is invalid with respect to BalanceResponseV2Response + */ + public static BalanceResponseV2Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BalanceResponseV2Response.class); + } + + /** + * Convert an instance of BalanceResponseV2Response to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignAttributesV202301.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignAttributesV202301.java similarity index 95% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignAttributesV202301.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignAttributesV202301.java index 2fc358ce..11a00393 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignAttributesV202301.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignAttributesV202301.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * An object that represents the available options to set when creating a Retail Media Campaign @@ -366,6 +366,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public CampaignAttributesV202301() { } @@ -684,6 +688,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public CampaignAttributesV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -752,7 +778,8 @@ public boolean equals(Object o) { Objects.equals(this.endDate, campaignAttributesV202301.endDate) && Objects.equals(this.clickAttributionScope, campaignAttributesV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, campaignAttributesV202301.viewAttributionScope) && - Objects.equals(this.companyName, campaignAttributesV202301.companyName)&& + Objects.equals(this.companyName, campaignAttributesV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, campaignAttributesV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, campaignAttributesV202301.additionalProperties); } @@ -762,7 +789,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -790,6 +817,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -827,6 +855,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -880,6 +909,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignBudgetOverrides.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignBudgetOverrides.java similarity index 97% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignBudgetOverrides.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignBudgetOverrides.java index 1de7726b..5c3e7b26 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignBudgetOverrides.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignBudgetOverrides.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.CampaignDailyBudgetOverride; -import com.criteo.api.retailmedia.preview.model.CampaignMonthlyBudgetOverride; +import com.criteo.api.retailmedia.v2024_10.model.CampaignDailyBudgetOverride; +import com.criteo.api.retailmedia.v2024_10.model.CampaignMonthlyBudgetOverride; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Campaign budget overrides including Monthly and Daily budget overrides. diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignDailyBudgetOverride.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignDailyBudgetOverride.java similarity index 98% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignDailyBudgetOverride.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignDailyBudgetOverride.java index 968e6fa3..40e6ecf5 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignDailyBudgetOverride.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignDailyBudgetOverride.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Campaign daily budget override. diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignMonthlyBudgetOverride.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignMonthlyBudgetOverride.java similarity index 98% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignMonthlyBudgetOverride.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignMonthlyBudgetOverride.java index 6f46d722..b89031ae 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignMonthlyBudgetOverride.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignMonthlyBudgetOverride.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Campaign monthly budget override. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignV202301.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignV202301.java similarity index 96% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignV202301.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignV202301.java index a015c265..1ed6797a 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignV202301.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CampaignV202301.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A Retail Media Campaign used to represent an advertiser's marketing objective @@ -447,6 +447,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public CampaignV202301() { } @@ -924,6 +928,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public CampaignV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -999,7 +1025,8 @@ public boolean equals(Object o) { Objects.equals(this.endDate, campaignV202301.endDate) && Objects.equals(this.clickAttributionScope, campaignV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, campaignV202301.viewAttributionScope) && - Objects.equals(this.companyName, campaignV202301.companyName)&& + Objects.equals(this.companyName, campaignV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, campaignV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, campaignV202301.additionalProperties); } @@ -1009,7 +1036,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(accountId, promotedBrandIds, budgetSpent, budgetRemaining, status, createdAt, updatedAt, type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(accountId, promotedBrandIds, budgetSpent, budgetRemaining, status, createdAt, updatedAt, type, drawableBalanceIds, clickAttributionWindow, viewAttributionWindow, name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -1044,6 +1071,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -1088,6 +1116,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -1159,6 +1188,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Category202204.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Category202204.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Category202204.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Category202204.java index 8810081e..9a292b52 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Category202204.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Category202204.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -41,7 +41,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * List of retailer's categories, including the full hierarchy of categories and their parent category ID diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Category202204ListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Category202204ListResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Category202204ListResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Category202204ListResponse.java index de8d7078..c0ae0d10 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Category202204ListResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Category202204ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfCategory202204; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfCategory202204; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a list of response resources diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDatesOfBalanceV2.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDatesOfBalanceV2.java new file mode 100644 index 00000000..64e7189b --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDatesOfBalanceV2.java @@ -0,0 +1,356 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * An object that represents the available options to modify schedule of a balance. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ChangeDatesOfBalanceV2 { + public static final String SERIALIZED_NAME_START_DATE = "startDate"; + @SerializedName(SERIALIZED_NAME_START_DATE) + private String startDate; + + public static final String SERIALIZED_NAME_END_DATE = "endDate"; + @SerializedName(SERIALIZED_NAME_END_DATE) + private String endDate; + + public static final String SERIALIZED_NAME_MEMO = "memo"; + @SerializedName(SERIALIZED_NAME_MEMO) + private String memo; + + public ChangeDatesOfBalanceV2() { + } + + public ChangeDatesOfBalanceV2 startDate(String startDate) { + + this.startDate = startDate; + return this; + } + + /** + * Start date of the balance in the format YYYY-MM-DD. + * @return startDate + **/ + @javax.annotation.Nullable + + public String getStartDate() { + return startDate; + } + + + public void setStartDate(String startDate) { + this.startDate = startDate; + } + + + public ChangeDatesOfBalanceV2 endDate(String endDate) { + + this.endDate = endDate; + return this; + } + + /** + * End date of the balance in the format YYYY-MM-DD. + * @return endDate + **/ + @javax.annotation.Nullable + + public String getEndDate() { + return endDate; + } + + + public void setEndDate(String endDate) { + this.endDate = endDate; + } + + + public ChangeDatesOfBalanceV2 memo(String memo) { + + this.memo = memo; + return this; + } + + /** + * Memo. + * @return memo + **/ + @javax.annotation.Nullable + + public String getMemo() { + return memo; + } + + + public void setMemo(String memo) { + this.memo = memo; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ChangeDatesOfBalanceV2 instance itself + */ + public ChangeDatesOfBalanceV2 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ChangeDatesOfBalanceV2 changeDatesOfBalanceV2 = (ChangeDatesOfBalanceV2) o; + return Objects.equals(this.startDate, changeDatesOfBalanceV2.startDate) && + Objects.equals(this.endDate, changeDatesOfBalanceV2.endDate) && + Objects.equals(this.memo, changeDatesOfBalanceV2.memo)&& + Objects.equals(this.additionalProperties, changeDatesOfBalanceV2.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(startDate, endDate, memo, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeDatesOfBalanceV2 {\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); + sb.append(" memo: ").append(toIndentedString(memo)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("startDate"); + openapiFields.add("endDate"); + openapiFields.add("memo"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ChangeDatesOfBalanceV2 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ChangeDatesOfBalanceV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ChangeDatesOfBalanceV2 is not found in the empty JSON string", ChangeDatesOfBalanceV2.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("memo") != null && !jsonObj.get("memo").isJsonNull()) && !jsonObj.get("memo").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `memo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("memo").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ChangeDatesOfBalanceV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ChangeDatesOfBalanceV2' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ChangeDatesOfBalanceV2.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ChangeDatesOfBalanceV2 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ChangeDatesOfBalanceV2 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ChangeDatesOfBalanceV2 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ChangeDatesOfBalanceV2 given an JSON string + * + * @param jsonString JSON string + * @return An instance of ChangeDatesOfBalanceV2 + * @throws IOException if the JSON string is invalid with respect to ChangeDatesOfBalanceV2 + */ + public static ChangeDatesOfBalanceV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ChangeDatesOfBalanceV2.class); + } + + /** + * Convert an instance of ChangeDatesOfBalanceV2 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliersRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDatesOfBalanceV2Request.java similarity index 77% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliersRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDatesOfBalanceV2Request.java index ad80dcf0..038d8360 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliersRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDatesOfBalanceV2Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfLineItemBidMultipliers; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfChangeDatesOfBalanceV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,21 +42,21 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Data model for an input resource + * A top-level object that encapsulates a Criteo API request for a single entity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class LineItemBidMultipliersRequest { +public class ChangeDatesOfBalanceV2Request { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private ResourceOfLineItemBidMultipliers data; + private ResourceOfChangeDatesOfBalanceV2 data; - public LineItemBidMultipliersRequest() { + public ChangeDatesOfBalanceV2Request() { } - public LineItemBidMultipliersRequest data(ResourceOfLineItemBidMultipliers data) { + public ChangeDatesOfBalanceV2Request data(ResourceOfChangeDatesOfBalanceV2 data) { this.data = data; return this; @@ -68,12 +68,12 @@ public LineItemBidMultipliersRequest data(ResourceOfLineItemBidMultipliers data) **/ @javax.annotation.Nullable - public ResourceOfLineItemBidMultipliers getData() { + public ResourceOfChangeDatesOfBalanceV2 getData() { return data; } - public void setData(ResourceOfLineItemBidMultipliers data) { + public void setData(ResourceOfChangeDatesOfBalanceV2 data) { this.data = data; } @@ -90,9 +90,9 @@ public void setData(ResourceOfLineItemBidMultipliers data) { * * @param key name of the property * @param value value of the property - * @return the LineItemBidMultipliersRequest instance itself + * @return the ChangeDatesOfBalanceV2Request instance itself */ - public LineItemBidMultipliersRequest putAdditionalProperty(String key, Object value) { + public ChangeDatesOfBalanceV2Request putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LineItemBidMultipliersRequest lineItemBidMultipliersRequest = (LineItemBidMultipliersRequest) o; - return Objects.equals(this.data, lineItemBidMultipliersRequest.data)&& - Objects.equals(this.additionalProperties, lineItemBidMultipliersRequest.additionalProperties); + ChangeDatesOfBalanceV2Request changeDatesOfBalanceV2Request = (ChangeDatesOfBalanceV2Request) o; + return Objects.equals(this.data, changeDatesOfBalanceV2Request.data)&& + Objects.equals(this.additionalProperties, changeDatesOfBalanceV2Request.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LineItemBidMultipliersRequest {\n"); + sb.append("class ChangeDatesOfBalanceV2Request {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -179,17 +179,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to LineItemBidMultipliersRequest + * @throws IOException if the JSON Object is invalid with respect to ChangeDatesOfBalanceV2Request */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!LineItemBidMultipliersRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LineItemBidMultipliersRequest is not found in the empty JSON string", LineItemBidMultipliersRequest.openapiRequiredFields.toString())); + if (!ChangeDatesOfBalanceV2Request.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ChangeDatesOfBalanceV2Request is not found in the empty JSON string", ChangeDatesOfBalanceV2Request.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - ResourceOfLineItemBidMultipliers.validateJsonObject(jsonObj.getAsJsonObject("data")); + ResourceOfChangeDatesOfBalanceV2.validateJsonObject(jsonObj.getAsJsonObject("data")); } } @@ -197,16 +197,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!LineItemBidMultipliersRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LineItemBidMultipliersRequest' and its subtypes + if (!ChangeDatesOfBalanceV2Request.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ChangeDatesOfBalanceV2Request' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(LineItemBidMultipliersRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ChangeDatesOfBalanceV2Request.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, LineItemBidMultipliersRequest value) throws IOException { + public void write(JsonWriter out, ChangeDatesOfBalanceV2Request value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -229,11 +229,11 @@ else if (entry.getValue() instanceof Character) } @Override - public LineItemBidMultipliersRequest read(JsonReader in) throws IOException { + public ChangeDatesOfBalanceV2Request read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - LineItemBidMultipliersRequest instance = thisAdapter.fromJsonTree(jsonObj); + ChangeDatesOfBalanceV2Request instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -260,18 +260,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of LineItemBidMultipliersRequest given an JSON string + * Create an instance of ChangeDatesOfBalanceV2Request given an JSON string * * @param jsonString JSON string - * @return An instance of LineItemBidMultipliersRequest - * @throws IOException if the JSON string is invalid with respect to LineItemBidMultipliersRequest + * @return An instance of ChangeDatesOfBalanceV2Request + * @throws IOException if the JSON string is invalid with respect to ChangeDatesOfBalanceV2Request */ - public static LineItemBidMultipliersRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, LineItemBidMultipliersRequest.class); + public static ChangeDatesOfBalanceV2Request fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ChangeDatesOfBalanceV2Request.class); } /** - * Convert an instance of LineItemBidMultipliersRequest to an JSON string + * Convert an instance of ChangeDatesOfBalanceV2Request to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDetailsV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDetailsV1.java new file mode 100644 index 00000000..e4313cae --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChangeDetailsV1.java @@ -0,0 +1,279 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Change details of a property of the balance. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ChangeDetailsV1 { + public static final String SERIALIZED_NAME_PREVIOUS_VALUE = "previousValue"; + @SerializedName(SERIALIZED_NAME_PREVIOUS_VALUE) + private String previousValue; + + public static final String SERIALIZED_NAME_CURRENT_VALUE = "currentValue"; + @SerializedName(SERIALIZED_NAME_CURRENT_VALUE) + private String currentValue; + + public static final String SERIALIZED_NAME_CHANGE_VALUE = "changeValue"; + @SerializedName(SERIALIZED_NAME_CHANGE_VALUE) + private String changeValue; + + public ChangeDetailsV1() { + } + + public ChangeDetailsV1 previousValue(String previousValue) { + + this.previousValue = previousValue; + return this; + } + + /** + * Previous value of a property of the insertion order. + * @return previousValue + **/ + @javax.annotation.Nullable + + public String getPreviousValue() { + return previousValue; + } + + + public void setPreviousValue(String previousValue) { + this.previousValue = previousValue; + } + + + public ChangeDetailsV1 currentValue(String currentValue) { + + this.currentValue = currentValue; + return this; + } + + /** + * Current value of a property of the insertion order. + * @return currentValue + **/ + @javax.annotation.Nullable + + public String getCurrentValue() { + return currentValue; + } + + + public void setCurrentValue(String currentValue) { + this.currentValue = currentValue; + } + + + public ChangeDetailsV1 changeValue(String changeValue) { + + this.changeValue = changeValue; + return this; + } + + /** + * Change detail of a property of the insertion order. + * @return changeValue + **/ + @javax.annotation.Nullable + + public String getChangeValue() { + return changeValue; + } + + + public void setChangeValue(String changeValue) { + this.changeValue = changeValue; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ChangeDetailsV1 changeDetailsV1 = (ChangeDetailsV1) o; + return Objects.equals(this.previousValue, changeDetailsV1.previousValue) && + Objects.equals(this.currentValue, changeDetailsV1.currentValue) && + Objects.equals(this.changeValue, changeDetailsV1.changeValue); + } + + @Override + public int hashCode() { + return Objects.hash(previousValue, currentValue, changeValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeDetailsV1 {\n"); + sb.append(" previousValue: ").append(toIndentedString(previousValue)).append("\n"); + sb.append(" currentValue: ").append(toIndentedString(currentValue)).append("\n"); + sb.append(" changeValue: ").append(toIndentedString(changeValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("previousValue"); + openapiFields.add("currentValue"); + openapiFields.add("changeValue"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("previousValue"); + openapiRequiredFields.add("currentValue"); + openapiRequiredFields.add("changeValue"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ChangeDetailsV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ChangeDetailsV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ChangeDetailsV1 is not found in the empty JSON string", ChangeDetailsV1.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ChangeDetailsV1.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ChangeDetailsV1` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ChangeDetailsV1.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("previousValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `previousValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previousValue").toString())); + } + if (!jsonObj.get("currentValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currentValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currentValue").toString())); + } + if (!jsonObj.get("changeValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `changeValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("changeValue").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ChangeDetailsV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ChangeDetailsV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ChangeDetailsV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ChangeDetailsV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ChangeDetailsV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ChangeDetailsV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of ChangeDetailsV1 + * @throws IOException if the JSON string is invalid with respect to ChangeDetailsV1 + */ + public static ChangeDetailsV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ChangeDetailsV1.class); + } + + /** + * Convert an instance of ChangeDetailsV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceOption.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceOption.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceOption.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceOption.java index 25798c13..0992a15e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceOption.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceOption.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.TemplateVariable; +import com.criteo.api.retailmedia.v2024_10.model.TemplateVariable; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * An option given in a choice diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceVariableSpecification.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceVariableSpecification.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceVariableSpecification.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceVariableSpecification.java index 60c360bf..95c91e11 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceVariableSpecification.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceVariableSpecification.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ChoiceOption; +import com.criteo.api.retailmedia.v2024_10.model.ChoiceOption; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Specification of choice variable diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceVariableValue.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceVariableValue.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceVariableValue.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceVariableValue.java index fa563eba..d2464330 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ChoiceVariableValue.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ChoiceVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A value of a template choice variable (among different accepted options) diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ColorVariableValue.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ColorVariableValue.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ColorVariableValue.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ColorVariableValue.java index d0533455..5ab7c5b4 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ColorVariableValue.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ColorVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -41,7 +41,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A value of a template color variable diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonError.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonError.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonError.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonError.java index 5ef9a469..af692b80 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonError.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonError.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API Common error structure diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonLineItemPagedListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonLineItemPagedListResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonLineItemPagedListResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonLineItemPagedListResponse.java index ee321553..c694b218 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonLineItemPagedListResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonLineItemPagedListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.PageMetadata; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfCommonLineItem; +import com.criteo.api.retailmedia.v2024_10.model.PageMetadata; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfCommonLineItem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a paged list of response resources diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonLineItemResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonLineItemResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonLineItemResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonLineItemResponse.java index 41d06274..c3eafc30 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonLineItemResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonLineItemResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfCommonLineItem; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfCommonLineItem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for response resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonProblem.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonProblem.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonProblem.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonProblem.java index 44782f6a..c97cbf38 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonProblem.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonProblem.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Common problem object. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonWarning.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonWarning.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonWarning.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonWarning.java index eaf2c835..40ab0b6e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonWarning.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CommonWarning.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API Base common warning diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Campaign.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreateBalanceV2.java similarity index 54% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Campaign.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreateBalanceV2.java index 8341c77e..d288ceaf 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Campaign.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreateBalanceV2.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,17 +11,18 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CampaignSpendLimit; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.math.BigDecimal; +import java.time.LocalDate; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -43,43 +44,47 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * campaign read model + * An object that represents the available options to set when creating a Retail Media Balance */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class Campaign { +public class CreateBalanceV2 { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; - public static final String SERIALIZED_NAME_ADVERTISER_ID = "advertiserId"; - @SerializedName(SERIALIZED_NAME_ADVERTISER_ID) - private String advertiserId; + public static final String SERIALIZED_NAME_PO_NUMBER = "poNumber"; + @SerializedName(SERIALIZED_NAME_PO_NUMBER) + private String poNumber; - public static final String SERIALIZED_NAME_OBJECTIVE = "objective"; - @SerializedName(SERIALIZED_NAME_OBJECTIVE) - private String objective; + public static final String SERIALIZED_NAME_DEPOSITED = "deposited"; + @SerializedName(SERIALIZED_NAME_DEPOSITED) + private BigDecimal deposited; - public static final String SERIALIZED_NAME_SPEND_LIMIT = "spendLimit"; - @SerializedName(SERIALIZED_NAME_SPEND_LIMIT) - private CampaignSpendLimit spendLimit; + public static final String SERIALIZED_NAME_START_DATE = "startDate"; + @SerializedName(SERIALIZED_NAME_START_DATE) + private LocalDate startDate; + + public static final String SERIALIZED_NAME_END_DATE = "endDate"; + @SerializedName(SERIALIZED_NAME_END_DATE) + private LocalDate endDate; /** - * Gets or Sets goal + * Type of the balance spend. */ - @JsonAdapter(GoalEnum.Adapter.class) - public enum GoalEnum { - UNSPECIFIED("Unspecified"), + @JsonAdapter(SpendTypeEnum.Adapter.class) + public enum SpendTypeEnum { + ONSITE("Onsite"), - ACQUISITION("Acquisition"), + OFFSITE("Offsite"), - RETENTION("Retention"); + OFFSITEAWARENESS("OffsiteAwareness"); private String value; - GoalEnum(String value) { + SpendTypeEnum(String value) { this.value = value; } @@ -92,47 +97,51 @@ public String toString() { return String.valueOf(value); } - public static GoalEnum fromValue(String value) { - for (GoalEnum b : GoalEnum.values()) { + public static SpendTypeEnum fromValue(String value) { + for (SpendTypeEnum b : SpendTypeEnum.values()) { if (b.value.equals(value)) { return b; } } - return null; + throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - public static class Adapter extends TypeAdapter { + public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final GoalEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final SpendTypeEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public GoalEnum read(final JsonReader jsonReader) throws IOException { + public SpendTypeEnum read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); - return GoalEnum.fromValue(value); + return SpendTypeEnum.fromValue(value); } } } - public static final String SERIALIZED_NAME_GOAL = "goal"; - @SerializedName(SERIALIZED_NAME_GOAL) - private GoalEnum goal; + public static final String SERIALIZED_NAME_SPEND_TYPE = "spendType"; + @SerializedName(SERIALIZED_NAME_SPEND_TYPE) + private SpendTypeEnum spendType; + + public static final String SERIALIZED_NAME_MEMO = "memo"; + @SerializedName(SERIALIZED_NAME_MEMO) + private String memo; - public Campaign() { + public CreateBalanceV2() { } - public Campaign name(String name) { + public CreateBalanceV2 name(String name) { this.name = name; return this; } /** - * Get name + * Name of the balance. * @return name **/ - @javax.annotation.Nullable + @javax.annotation.Nonnull public String getName() { return name; @@ -144,91 +153,135 @@ public void setName(String name) { } - public Campaign advertiserId(String advertiserId) { + public CreateBalanceV2 poNumber(String poNumber) { - this.advertiserId = advertiserId; + this.poNumber = poNumber; return this; } /** - * Get advertiserId - * @return advertiserId + * Purchase Order number. + * @return poNumber **/ @javax.annotation.Nullable - public String getAdvertiserId() { - return advertiserId; + public String getPoNumber() { + return poNumber; } - public void setAdvertiserId(String advertiserId) { - this.advertiserId = advertiserId; + public void setPoNumber(String poNumber) { + this.poNumber = poNumber; } - public Campaign objective(String objective) { + public CreateBalanceV2 deposited(BigDecimal deposited) { - this.objective = objective; + this.deposited = deposited; return this; } /** - * Get objective - * @return objective + * Amount of billable funds allotted to the balance. + * @return deposited **/ @javax.annotation.Nullable - public String getObjective() { - return objective; + public BigDecimal getDeposited() { + return deposited; } - public void setObjective(String objective) { - this.objective = objective; + public void setDeposited(BigDecimal deposited) { + this.deposited = deposited; } - public Campaign spendLimit(CampaignSpendLimit spendLimit) { + public CreateBalanceV2 startDate(LocalDate startDate) { - this.spendLimit = spendLimit; + this.startDate = startDate; return this; } /** - * Get spendLimit - * @return spendLimit + * Start date of the balance in the format YYYY-MM-DD. + * @return startDate + **/ + @javax.annotation.Nonnull + + public LocalDate getStartDate() { + return startDate; + } + + + public void setStartDate(LocalDate startDate) { + this.startDate = startDate; + } + + + public CreateBalanceV2 endDate(LocalDate endDate) { + + this.endDate = endDate; + return this; + } + + /** + * End date of the balance in the format YYYY-MM-DD. + * @return endDate **/ @javax.annotation.Nullable - public CampaignSpendLimit getSpendLimit() { - return spendLimit; + public LocalDate getEndDate() { + return endDate; } - public void setSpendLimit(CampaignSpendLimit spendLimit) { - this.spendLimit = spendLimit; + public void setEndDate(LocalDate endDate) { + this.endDate = endDate; } - public Campaign goal(GoalEnum goal) { + public CreateBalanceV2 spendType(SpendTypeEnum spendType) { - this.goal = goal; + this.spendType = spendType; return this; } /** - * Get goal - * @return goal + * Type of the balance spend. + * @return spendType + **/ + @javax.annotation.Nonnull + + public SpendTypeEnum getSpendType() { + return spendType; + } + + + public void setSpendType(SpendTypeEnum spendType) { + this.spendType = spendType; + } + + + public CreateBalanceV2 memo(String memo) { + + this.memo = memo; + return this; + } + + /** + * Memo + * @return memo **/ @javax.annotation.Nullable - public GoalEnum getGoal() { - return goal; + public String getMemo() { + return memo; } - public void setGoal(GoalEnum goal) { - this.goal = goal; + public void setMemo(String memo) { + this.memo = memo; } /** @@ -244,9 +297,9 @@ public void setGoal(GoalEnum goal) { * * @param key name of the property * @param value value of the property - * @return the Campaign instance itself + * @return the CreateBalanceV2 instance itself */ - public Campaign putAdditionalProperty(String key, Object value) { + public CreateBalanceV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -285,13 +338,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Campaign campaign = (Campaign) o; - return Objects.equals(this.name, campaign.name) && - Objects.equals(this.advertiserId, campaign.advertiserId) && - Objects.equals(this.objective, campaign.objective) && - Objects.equals(this.spendLimit, campaign.spendLimit) && - Objects.equals(this.goal, campaign.goal)&& - Objects.equals(this.additionalProperties, campaign.additionalProperties); + CreateBalanceV2 createBalanceV2 = (CreateBalanceV2) o; + return Objects.equals(this.name, createBalanceV2.name) && + Objects.equals(this.poNumber, createBalanceV2.poNumber) && + Objects.equals(this.deposited, createBalanceV2.deposited) && + Objects.equals(this.startDate, createBalanceV2.startDate) && + Objects.equals(this.endDate, createBalanceV2.endDate) && + Objects.equals(this.spendType, createBalanceV2.spendType) && + Objects.equals(this.memo, createBalanceV2.memo)&& + Objects.equals(this.additionalProperties, createBalanceV2.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -300,7 +355,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, advertiserId, objective, spendLimit, goal, additionalProperties); + return Objects.hash(name, poNumber, deposited, startDate, endDate, spendType, memo, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -313,12 +368,14 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Campaign {\n"); + sb.append("class CreateBalanceV2 {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" advertiserId: ").append(toIndentedString(advertiserId)).append("\n"); - sb.append(" objective: ").append(toIndentedString(objective)).append("\n"); - sb.append(" spendLimit: ").append(toIndentedString(spendLimit)).append("\n"); - sb.append(" goal: ").append(toIndentedString(goal)).append("\n"); + sb.append(" poNumber: ").append(toIndentedString(poNumber)).append("\n"); + sb.append(" deposited: ").append(toIndentedString(deposited)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); + sb.append(" spendType: ").append(toIndentedString(spendType)).append("\n"); + sb.append(" memo: ").append(toIndentedString(memo)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -343,42 +400,50 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("name"); - openapiFields.add("advertiserId"); - openapiFields.add("objective"); - openapiFields.add("spendLimit"); - openapiFields.add("goal"); + openapiFields.add("poNumber"); + openapiFields.add("deposited"); + openapiFields.add("startDate"); + openapiFields.add("endDate"); + openapiFields.add("spendType"); + openapiFields.add("memo"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("startDate"); + openapiRequiredFields.add("spendType"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Campaign + * @throws IOException if the JSON Object is invalid with respect to CreateBalanceV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!Campaign.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Campaign is not found in the empty JSON string", Campaign.openapiRequiredFields.toString())); + if (!CreateBalanceV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateBalanceV2 is not found in the empty JSON string", CreateBalanceV2.openapiRequiredFields.toString())); } } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CreateBalanceV2.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } } - if ((jsonObj.get("advertiserId") != null && !jsonObj.get("advertiserId").isJsonNull()) && !jsonObj.get("advertiserId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `advertiserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("advertiserId").toString())); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("objective") != null && !jsonObj.get("objective").isJsonNull()) && !jsonObj.get("objective").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `objective` to be a primitive type in the JSON string but got `%s`", jsonObj.get("objective").toString())); + if ((jsonObj.get("poNumber") != null && !jsonObj.get("poNumber").isJsonNull()) && !jsonObj.get("poNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `poNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("poNumber").toString())); } - // validate the optional field `spendLimit` - if (jsonObj.get("spendLimit") != null && !jsonObj.get("spendLimit").isJsonNull()) { - CampaignSpendLimit.validateJsonObject(jsonObj.getAsJsonObject("spendLimit")); + if (!jsonObj.get("spendType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `spendType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("spendType").toString())); } - if ((jsonObj.get("goal") != null && !jsonObj.get("goal").isJsonNull()) && !jsonObj.get("goal").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `goal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("goal").toString())); + if ((jsonObj.get("memo") != null && !jsonObj.get("memo").isJsonNull()) && !jsonObj.get("memo").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `memo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("memo").toString())); } } @@ -386,16 +451,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Campaign.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Campaign' and its subtypes + if (!CreateBalanceV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateBalanceV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Campaign.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateBalanceV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, Campaign value) throws IOException { + public void write(JsonWriter out, CreateBalanceV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -418,11 +483,11 @@ else if (entry.getValue() instanceof Character) } @Override - public Campaign read(JsonReader in) throws IOException { + public CreateBalanceV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - Campaign instance = thisAdapter.fromJsonTree(jsonObj); + CreateBalanceV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -449,18 +514,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of Campaign given an JSON string + * Create an instance of CreateBalanceV2 given an JSON string * * @param jsonString JSON string - * @return An instance of Campaign - * @throws IOException if the JSON string is invalid with respect to Campaign + * @return An instance of CreateBalanceV2 + * @throws IOException if the JSON string is invalid with respect to CreateBalanceV2 */ - public static Campaign fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Campaign.class); + public static CreateBalanceV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateBalanceV2.class); } /** - * Convert an instance of Campaign to an JSON string + * Convert an instance of CreateBalanceV2 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreateBalanceV2Request.java similarity index 76% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreateBalanceV2Request.java index 5885c056..d706f4bf 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreateBalanceV2Request.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NewAudience; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfCreateBalanceV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,21 +42,21 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Body of creation of a new audience + * A top-level object that encapsulates a Criteo API request for a single entity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class NewAudienceRequest { +public class CreateBalanceV2Request { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private NewAudience data; + private ResourceOfCreateBalanceV2 data; - public NewAudienceRequest() { + public CreateBalanceV2Request() { } - public NewAudienceRequest data(NewAudience data) { + public CreateBalanceV2Request data(ResourceOfCreateBalanceV2 data) { this.data = data; return this; @@ -68,12 +68,12 @@ public NewAudienceRequest data(NewAudience data) { **/ @javax.annotation.Nullable - public NewAudience getData() { + public ResourceOfCreateBalanceV2 getData() { return data; } - public void setData(NewAudience data) { + public void setData(ResourceOfCreateBalanceV2 data) { this.data = data; } @@ -90,9 +90,9 @@ public void setData(NewAudience data) { * * @param key name of the property * @param value value of the property - * @return the NewAudienceRequest instance itself + * @return the CreateBalanceV2Request instance itself */ - public NewAudienceRequest putAdditionalProperty(String key, Object value) { + public CreateBalanceV2Request putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NewAudienceRequest newAudienceRequest = (NewAudienceRequest) o; - return Objects.equals(this.data, newAudienceRequest.data)&& - Objects.equals(this.additionalProperties, newAudienceRequest.additionalProperties); + CreateBalanceV2Request createBalanceV2Request = (CreateBalanceV2Request) o; + return Objects.equals(this.data, createBalanceV2Request.data)&& + Objects.equals(this.additionalProperties, createBalanceV2Request.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class NewAudienceRequest {\n"); + sb.append("class CreateBalanceV2Request {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -179,17 +179,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to NewAudienceRequest + * @throws IOException if the JSON Object is invalid with respect to CreateBalanceV2Request */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!NewAudienceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NewAudienceRequest is not found in the empty JSON string", NewAudienceRequest.openapiRequiredFields.toString())); + if (!CreateBalanceV2Request.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateBalanceV2Request is not found in the empty JSON string", CreateBalanceV2Request.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - NewAudience.validateJsonObject(jsonObj.getAsJsonObject("data")); + ResourceOfCreateBalanceV2.validateJsonObject(jsonObj.getAsJsonObject("data")); } } @@ -197,16 +197,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!NewAudienceRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NewAudienceRequest' and its subtypes + if (!CreateBalanceV2Request.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateBalanceV2Request' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NewAudienceRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateBalanceV2Request.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, NewAudienceRequest value) throws IOException { + public void write(JsonWriter out, CreateBalanceV2Request value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -229,11 +229,11 @@ else if (entry.getValue() instanceof Character) } @Override - public NewAudienceRequest read(JsonReader in) throws IOException { + public CreateBalanceV2Request read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - NewAudienceRequest instance = thisAdapter.fromJsonTree(jsonObj); + CreateBalanceV2Request instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -260,18 +260,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of NewAudienceRequest given an JSON string + * Create an instance of CreateBalanceV2Request given an JSON string * * @param jsonString JSON string - * @return An instance of NewAudienceRequest - * @throws IOException if the JSON string is invalid with respect to NewAudienceRequest + * @return An instance of CreateBalanceV2Request + * @throws IOException if the JSON string is invalid with respect to CreateBalanceV2Request */ - public static NewAudienceRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NewAudienceRequest.class); + public static CreateBalanceV2Request fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateBalanceV2Request.class); } /** - * Convert an instance of NewAudienceRequest to an JSON string + * Convert an instance of CreateBalanceV2Request to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202110.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202110.java index b78d4b71..54d1db29 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Metadata and usage info of a preferred deals creative diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202110ListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202110ListResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202110ListResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202110ListResponse.java index d2c2b228..7f0f7bba 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202110ListResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202110ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfCreative202110; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfCreative202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a list of response resources diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202210.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202210.java index a27c0fc8..5acc2563 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202210.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.PageTypeEnvironment; -import com.criteo.api.retailmedia.v2023_07.model.TemplateVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.PageTypeEnvironment; +import com.criteo.api.retailmedia.v2024_10.model.TemplateVariableValue; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,7 +47,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A creative entity diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210Response.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202210Response.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210Response.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202210Response.java index fc86eaf3..bcee3857 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Creative202210Response.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Creative202210Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfCreative202210; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfCreative202210; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for response resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreativeCreateModel202207.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeCreateModel202207.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreativeCreateModel202207.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeCreateModel202207.java index 17b5d4ac..b5a490cc 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreativeCreateModel202207.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeCreateModel202207.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.TemplateVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.TemplateVariableValue; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Create model of a creative diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreativeUpdateModel202207.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeUpdateModel202207.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreativeUpdateModel202207.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeUpdateModel202207.java index d9c18ab4..4edeef66 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreativeUpdateModel202207.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeUpdateModel202207.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.TemplateVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.TemplateVariableValue; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Update model of a creative diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2ListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeV2ListResponse.java similarity index 77% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2ListResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeV2ListResponse.java index 500e6d6d..142abc25 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2ListResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeV2ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.CommonProblem; -import com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV2Resource; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfCreativeV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,16 +46,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV2ListResponse { +public class CreativeV2ListResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) @@ -65,11 +65,11 @@ public class RmLegacyAudienceGetEntityV2ListResponse { @SerializedName(SERIALIZED_NAME_ERRORS) private List errors = null; - public RmLegacyAudienceGetEntityV2ListResponse() { + public CreativeV2ListResponse() { } - public RmLegacyAudienceGetEntityV2ListResponse( + public CreativeV2ListResponse( List warnings, List errors ) { @@ -78,13 +78,13 @@ public RmLegacyAudienceGetEntityV2ListResponse( this.errors = errors; } - public RmLegacyAudienceGetEntityV2ListResponse data(List data) { + public CreativeV2ListResponse data(List data) { this.data = data; return this; } - public RmLegacyAudienceGetEntityV2ListResponse addDataItem(RmLegacyAudienceGetEntityV2Resource dataItem) { + public CreativeV2ListResponse addDataItem(ResourceOfCreativeV2 dataItem) { if (this.data == null) { this.data = null; } @@ -98,12 +98,12 @@ public RmLegacyAudienceGetEntityV2ListResponse addDataItem(RmLegacyAudienceGetEn **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -146,9 +146,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceGetEntityV2ListResponse instance itself + * @return the CreativeV2ListResponse instance itself */ - public RmLegacyAudienceGetEntityV2ListResponse putAdditionalProperty(String key, Object value) { + public CreativeV2ListResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -187,11 +187,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceGetEntityV2ListResponse rmLegacyAudienceGetEntityV2ListResponse = (RmLegacyAudienceGetEntityV2ListResponse) o; - return Objects.equals(this.data, rmLegacyAudienceGetEntityV2ListResponse.data) && - Objects.equals(this.warnings, rmLegacyAudienceGetEntityV2ListResponse.warnings) && - Objects.equals(this.errors, rmLegacyAudienceGetEntityV2ListResponse.errors)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV2ListResponse.additionalProperties); + CreativeV2ListResponse creativeV2ListResponse = (CreativeV2ListResponse) o; + return Objects.equals(this.data, creativeV2ListResponse.data) && + Objects.equals(this.warnings, creativeV2ListResponse.warnings) && + Objects.equals(this.errors, creativeV2ListResponse.errors)&& + Objects.equals(this.additionalProperties, creativeV2ListResponse.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -213,7 +213,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV2ListResponse {\n"); + sb.append("class CreativeV2ListResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); @@ -252,12 +252,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV2ListResponse + * @throws IOException if the JSON Object is invalid with respect to CreativeV2ListResponse */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV2ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV2ListResponse is not found in the empty JSON string", RmLegacyAudienceGetEntityV2ListResponse.openapiRequiredFields.toString())); + if (!CreativeV2ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreativeV2ListResponse is not found in the empty JSON string", CreativeV2ListResponse.openapiRequiredFields.toString())); } } if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -270,7 +270,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - RmLegacyAudienceGetEntityV2Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + ResourceOfCreativeV2.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -308,16 +308,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV2ListResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV2ListResponse' and its subtypes + if (!CreativeV2ListResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreativeV2ListResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV2ListResponse.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreativeV2ListResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV2ListResponse value) throws IOException { + public void write(JsonWriter out, CreativeV2ListResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -340,11 +340,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceGetEntityV2ListResponse read(JsonReader in) throws IOException { + public CreativeV2ListResponse read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV2ListResponse instance = thisAdapter.fromJsonTree(jsonObj); + CreativeV2ListResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -371,18 +371,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceGetEntityV2ListResponse given an JSON string + * Create an instance of CreativeV2ListResponse given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV2ListResponse - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV2ListResponse + * @return An instance of CreativeV2ListResponse + * @throws IOException if the JSON string is invalid with respect to CreativeV2ListResponse */ - public static RmLegacyAudienceGetEntityV2ListResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV2ListResponse.class); + public static CreativeV2ListResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreativeV2ListResponse.class); } /** - * Convert an instance of RmLegacyAudienceGetEntityV2ListResponse to an JSON string + * Convert an instance of CreativeV2ListResponse to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeV2Response.java similarity index 81% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeV2Response.java index b4a23439..6a1863fa 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/CreativeV2Response.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.CampaignReadResource; -import com.criteo.api.marketingsolutions.v2023_07.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfCreativeV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,16 +46,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * output resource + * A top-level object that encapsulates a Criteo API response for a single entity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CampaignResponse { +public class CreativeV2Response { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private CampaignReadResource data; + private ResourceOfCreativeV2 data; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) @@ -65,11 +65,11 @@ public class CampaignResponse { @SerializedName(SERIALIZED_NAME_ERRORS) private List errors = null; - public CampaignResponse() { + public CreativeV2Response() { } - public CampaignResponse( + public CreativeV2Response( List warnings, List errors ) { @@ -78,7 +78,7 @@ public CampaignResponse( this.errors = errors; } - public CampaignResponse data(CampaignReadResource data) { + public CreativeV2Response data(ResourceOfCreativeV2 data) { this.data = data; return this; @@ -90,12 +90,12 @@ public CampaignResponse data(CampaignReadResource data) { **/ @javax.annotation.Nullable - public CampaignReadResource getData() { + public ResourceOfCreativeV2 getData() { return data; } - public void setData(CampaignReadResource data) { + public void setData(ResourceOfCreativeV2 data) { this.data = data; } @@ -138,9 +138,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the CampaignResponse instance itself + * @return the CreativeV2Response instance itself */ - public CampaignResponse putAdditionalProperty(String key, Object value) { + public CreativeV2Response putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -179,11 +179,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CampaignResponse campaignResponse = (CampaignResponse) o; - return Objects.equals(this.data, campaignResponse.data) && - Objects.equals(this.warnings, campaignResponse.warnings) && - Objects.equals(this.errors, campaignResponse.errors)&& - Objects.equals(this.additionalProperties, campaignResponse.additionalProperties); + CreativeV2Response creativeV2Response = (CreativeV2Response) o; + return Objects.equals(this.data, creativeV2Response.data) && + Objects.equals(this.warnings, creativeV2Response.warnings) && + Objects.equals(this.errors, creativeV2Response.errors)&& + Objects.equals(this.additionalProperties, creativeV2Response.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -205,7 +205,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CampaignResponse {\n"); + sb.append("class CreativeV2Response {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); @@ -244,17 +244,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CampaignResponse + * @throws IOException if the JSON Object is invalid with respect to CreativeV2Response */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CampaignResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignResponse is not found in the empty JSON string", CampaignResponse.openapiRequiredFields.toString())); + if (!CreativeV2Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreativeV2Response is not found in the empty JSON string", CreativeV2Response.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - CampaignReadResource.validateJsonObject(jsonObj.getAsJsonObject("data")); + ResourceOfCreativeV2.validateJsonObject(jsonObj.getAsJsonObject("data")); } if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); @@ -290,16 +290,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CampaignResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CampaignResponse' and its subtypes + if (!CreativeV2Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreativeV2Response' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CampaignResponse.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreativeV2Response.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CampaignResponse value) throws IOException { + public void write(JsonWriter out, CreativeV2Response value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -322,11 +322,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CampaignResponse read(JsonReader in) throws IOException { + public CreativeV2Response read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CampaignResponse instance = thisAdapter.fromJsonTree(jsonObj); + CreativeV2Response instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -353,18 +353,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CampaignResponse given an JSON string + * Create an instance of CreativeV2Response given an JSON string * * @param jsonString JSON string - * @return An instance of CampaignResponse - * @throws IOException if the JSON string is invalid with respect to CampaignResponse + * @return An instance of CreativeV2Response + * @throws IOException if the JSON string is invalid with respect to CreativeV2Response */ - public static CampaignResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CampaignResponse.class); + public static CreativeV2Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreativeV2Response.class); } /** - * Convert an instance of CampaignResponse to an JSON string + * Convert an instance of CreativeV2Response to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/DailyLineItemBudgetOverride.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/DailyLineItemBudgetOverride.java similarity index 98% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/DailyLineItemBudgetOverride.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/DailyLineItemBudgetOverride.java index 46d7cbe7..38f629d0 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/DailyLineItemBudgetOverride.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/DailyLineItemBudgetOverride.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * The details for a daily budget override diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/EditableCampaignAttributesV202301.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/EditableCampaignAttributesV202301.java similarity index 94% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/EditableCampaignAttributesV202301.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/EditableCampaignAttributesV202301.java index b924d3e9..ef08e5a1 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/EditableCampaignAttributesV202301.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/EditableCampaignAttributesV202301.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * An object that represents the available options to set when editing a Retail Media Campaign @@ -307,6 +307,10 @@ public ViewAttributionScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public EditableCampaignAttributesV202301() { } @@ -573,6 +577,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public EditableCampaignAttributesV202301 onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -639,7 +665,8 @@ public boolean equals(Object o) { Objects.equals(this.viewAttributionWindow, editableCampaignAttributesV202301.viewAttributionWindow) && Objects.equals(this.clickAttributionScope, editableCampaignAttributesV202301.clickAttributionScope) && Objects.equals(this.viewAttributionScope, editableCampaignAttributesV202301.viewAttributionScope) && - Objects.equals(this.companyName, editableCampaignAttributesV202301.companyName)&& + Objects.equals(this.companyName, editableCampaignAttributesV202301.companyName) && + Objects.equals(this.onBehalfCompanyName, editableCampaignAttributesV202301.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, editableCampaignAttributesV202301.additionalProperties); } @@ -649,7 +676,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionWindow, viewAttributionWindow, clickAttributionScope, viewAttributionScope, companyName, additionalProperties); + return Objects.hash(name, budget, monthlyPacing, dailyPacing, isAutoDailyPacing, startDate, endDate, clickAttributionWindow, viewAttributionWindow, clickAttributionScope, viewAttributionScope, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -675,6 +702,7 @@ public String toString() { sb.append(" clickAttributionScope: ").append(toIndentedString(clickAttributionScope)).append("\n"); sb.append(" viewAttributionScope: ").append(toIndentedString(viewAttributionScope)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -710,6 +738,7 @@ private String toIndentedString(Object o) { openapiFields.add("clickAttributionScope"); openapiFields.add("viewAttributionScope"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -758,6 +787,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ErrorCodeResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ErrorCodeResponse.java new file mode 100644 index 00000000..374fd7fc --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ErrorCodeResponse.java @@ -0,0 +1,367 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.AudienceError; +import com.criteo.api.retailmedia.v2024_10.model.AudienceWarning; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Definition of the error code + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ErrorCodeResponse { + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = new ArrayList<>(); + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public ErrorCodeResponse() { + } + + public ErrorCodeResponse errors(List errors) { + + this.errors = errors; + return this; + } + + public ErrorCodeResponse addErrorsItem(AudienceError errorsItem) { + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nonnull + + public List getErrors() { + return errors; + } + + + public void setErrors(List errors) { + this.errors = errors; + } + + + public ErrorCodeResponse warnings(List warnings) { + + this.warnings = warnings; + return this; + } + + public ErrorCodeResponse addWarningsItem(AudienceWarning warningsItem) { + if (this.warnings == null) { + this.warnings = null; + } + this.warnings.add(warningsItem); + return this; + } + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + public void setWarnings(List warnings) { + this.warnings = warnings; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ErrorCodeResponse instance itself + */ + public ErrorCodeResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ErrorCodeResponse errorCodeResponse = (ErrorCodeResponse) o; + return Objects.equals(this.errors, errorCodeResponse.errors) && + Objects.equals(this.warnings, errorCodeResponse.warnings)&& + Objects.equals(this.additionalProperties, errorCodeResponse.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(errors, warnings, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ErrorCodeResponse {\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("errors"); + openapiFields.add("warnings"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("errors"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ErrorCodeResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ErrorCodeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ErrorCodeResponse is not found in the empty JSON string", ErrorCodeResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ErrorCodeResponse.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + // validate the required field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + AudienceError.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + AudienceWarning.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ErrorCodeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ErrorCodeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ErrorCodeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ErrorCodeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ErrorCodeResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ErrorCodeResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ErrorCodeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ErrorCodeResponse + * @throws IOException if the JSON string is invalid with respect to ErrorCodeResponse + */ + public static ErrorCodeResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ErrorCodeResponse.class); + } + + /** + * Convert an instance of ErrorCodeResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAccount.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAccount.java similarity index 92% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAccount.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAccount.java index b35a8219..5efede10 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAccount.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAccount.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A Retail Media Account used to launch campaigns and line items @@ -181,6 +181,10 @@ public SubtypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public ExternalAccount() { } @@ -364,6 +368,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public ExternalAccount onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -426,7 +452,8 @@ public boolean equals(Object o) { Objects.equals(this.currency, externalAccount.currency) && Objects.equals(this.parentAccountLabel, externalAccount.parentAccountLabel) && Objects.equals(this.timeZone, externalAccount.timeZone) && - Objects.equals(this.companyName, externalAccount.companyName)&& + Objects.equals(this.companyName, externalAccount.companyName) && + Objects.equals(this.onBehalfCompanyName, externalAccount.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, externalAccount.additionalProperties); } @@ -436,7 +463,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, additionalProperties); + return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -458,6 +485,7 @@ public String toString() { sb.append(" parentAccountLabel: ").append(toIndentedString(parentAccountLabel)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -489,6 +517,7 @@ private String toIndentedString(Object o) { openapiFields.add("parentAccountLabel"); openapiFields.add("timeZone"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -546,6 +575,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAddToBasketIdsUpdateModel202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAddToBasketIdsUpdateModel202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAddToBasketIdsUpdateModel202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAddToBasketIdsUpdateModel202110.java index 88ec72a2..46a3ae65 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAddToBasketIdsUpdateModel202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAddToBasketIdsUpdateModel202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Update model for updating add to basket target ids diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAddToBasketTarget202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAddToBasketTarget202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAddToBasketTarget202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAddToBasketTarget202110.java index 4535f798..b88b74cf 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAddToBasketTarget202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAddToBasketTarget202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Identifies add to basket targeting for a line item diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItem.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItem.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItem.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItem.java index 8d661f3a..e851ca97 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItem.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItem.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A Retail Media Auction Line Item used to hold bid settings for one or many promoted products on a single retailer diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItemCreateModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItemCreateModel.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItemCreateModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItemCreateModel.java index d40a321d..9909fbb2 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItemCreateModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItemCreateModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Model to create a retail media auction line item diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItemUpdateModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItemUpdateModel.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItemUpdateModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItemUpdateModel.java index 9d86b609..433cba48 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAuctionLineItemUpdateModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAuctionLineItemUpdateModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Model to update a retail media auction line item diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAudienceIdsUpdateModel202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAudienceIdsUpdateModel202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAudienceIdsUpdateModel202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAudienceIdsUpdateModel202110.java index 3fc446fe..6a9e8bae 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAudienceIdsUpdateModel202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAudienceIdsUpdateModel202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Update model for updating audience target ids diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAudienceTarget202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAudienceTarget202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAudienceTarget202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAudienceTarget202110.java index f7c277d9..b609eb5e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAudienceTarget202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalAudienceTarget202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Identifies audience targeting for a line item diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalBrand.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalBrand.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalBrand.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalBrand.java index 9c088702..5141b872 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalBrand.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalBrand.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -41,7 +41,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A Retail Media Brand used to represent a collection of products sold under the same umbrella name diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCatalogRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCatalogRequest.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCatalogRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCatalogRequest.java index a8b6b915..f089797f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCatalogRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCatalogRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A request for a catalog under the specified format. Currently \"json-newline\" is supported. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCatalogStatus.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCatalogStatus.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCatalogStatus.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCatalogStatus.java index fd7751a1..848b2f78 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCatalogStatus.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCatalogStatus.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * The status of an asynchronous request to generate a catalog diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentCustomerList.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalChoiceVariableValue.java similarity index 69% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentCustomerList.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalChoiceVariableValue.java index 30ffdd0f..06282de2 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentCustomerList.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalChoiceVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -21,6 +21,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -41,65 +43,44 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Audience definition of people based on a customer list + * A value of a template choice variable (among different accepted options) */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacySegmentCustomerList { - public static final String SERIALIZED_NAME_SIZE = "size"; - @SerializedName(SERIALIZED_NAME_SIZE) - private String size; - - public static final String SERIALIZED_NAME_IS_SHARED = "isShared"; - @SerializedName(SERIALIZED_NAME_IS_SHARED) - private Boolean isShared; +public class ExternalChoiceVariableValue { + public static final String SERIALIZED_NAME_CHOSEN_OPTIONS = "chosenOptions"; + @SerializedName(SERIALIZED_NAME_CHOSEN_OPTIONS) + private List chosenOptions = new ArrayList<>(); - public RmLegacySegmentCustomerList() { + public ExternalChoiceVariableValue() { } - public RmLegacySegmentCustomerList size(String size) { + public ExternalChoiceVariableValue chosenOptions(List chosenOptions) { - this.size = size; + this.chosenOptions = chosenOptions; return this; } - /** - * Number of users in the customer list audience. - * @return size - **/ - @javax.annotation.Nonnull - - public String getSize() { - return size; - } - - - public void setSize(String size) { - this.size = size; - } - - - public RmLegacySegmentCustomerList isShared(Boolean isShared) { - - this.isShared = isShared; + public ExternalChoiceVariableValue addChosenOptionsItem(String chosenOptionsItem) { + this.chosenOptions.add(chosenOptionsItem); return this; } /** - * Indicate if the audience is shared. - * @return isShared + * The chosen options + * @return chosenOptions **/ @javax.annotation.Nonnull - public Boolean getIsShared() { - return isShared; + public List getChosenOptions() { + return chosenOptions; } - public void setIsShared(Boolean isShared) { - this.isShared = isShared; + public void setChosenOptions(List chosenOptions) { + this.chosenOptions = chosenOptions; } /** @@ -115,9 +96,9 @@ public void setIsShared(Boolean isShared) { * * @param key name of the property * @param value value of the property - * @return the RmLegacySegmentCustomerList instance itself + * @return the ExternalChoiceVariableValue instance itself */ - public RmLegacySegmentCustomerList putAdditionalProperty(String key, Object value) { + public ExternalChoiceVariableValue putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -156,23 +137,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacySegmentCustomerList rmLegacySegmentCustomerList = (RmLegacySegmentCustomerList) o; - return Objects.equals(this.size, rmLegacySegmentCustomerList.size) && - Objects.equals(this.isShared, rmLegacySegmentCustomerList.isShared)&& - Objects.equals(this.additionalProperties, rmLegacySegmentCustomerList.additionalProperties); + ExternalChoiceVariableValue externalChoiceVariableValue = (ExternalChoiceVariableValue) o; + return Objects.equals(this.chosenOptions, externalChoiceVariableValue.chosenOptions)&& + Objects.equals(this.additionalProperties, externalChoiceVariableValue.additionalProperties); } @Override public int hashCode() { - return Objects.hash(size, isShared, additionalProperties); + return Objects.hash(chosenOptions, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacySegmentCustomerList {\n"); - sb.append(" size: ").append(toIndentedString(size)).append("\n"); - sb.append(" isShared: ").append(toIndentedString(isShared)).append("\n"); + sb.append("class ExternalChoiceVariableValue {\n"); + sb.append(" chosenOptions: ").append(toIndentedString(chosenOptions)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -196,36 +175,37 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("size"); - openapiFields.add("isShared"); + openapiFields.add("chosenOptions"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("size"); - openapiRequiredFields.add("isShared"); + openapiRequiredFields.add("chosenOptions"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacySegmentCustomerList + * @throws IOException if the JSON Object is invalid with respect to ExternalChoiceVariableValue */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacySegmentCustomerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacySegmentCustomerList is not found in the empty JSON string", RmLegacySegmentCustomerList.openapiRequiredFields.toString())); + if (!ExternalChoiceVariableValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalChoiceVariableValue is not found in the empty JSON string", ExternalChoiceVariableValue.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacySegmentCustomerList.openapiRequiredFields) { + for (String requiredField : ExternalChoiceVariableValue.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (!jsonObj.get("size").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `size` to be a primitive type in the JSON string but got `%s`", jsonObj.get("size").toString())); + // ensure the required json array is present + if (jsonObj.get("chosenOptions") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("chosenOptions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `chosenOptions` to be an array in the JSON string but got `%s`", jsonObj.get("chosenOptions").toString())); } } @@ -233,16 +213,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacySegmentCustomerList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacySegmentCustomerList' and its subtypes + if (!ExternalChoiceVariableValue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalChoiceVariableValue' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacySegmentCustomerList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalChoiceVariableValue.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacySegmentCustomerList value) throws IOException { + public void write(JsonWriter out, ExternalChoiceVariableValue value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -265,11 +245,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacySegmentCustomerList read(JsonReader in) throws IOException { + public ExternalChoiceVariableValue read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacySegmentCustomerList instance = thisAdapter.fromJsonTree(jsonObj); + ExternalChoiceVariableValue instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -296,18 +276,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacySegmentCustomerList given an JSON string + * Create an instance of ExternalChoiceVariableValue given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacySegmentCustomerList - * @throws IOException if the JSON string is invalid with respect to RmLegacySegmentCustomerList + * @return An instance of ExternalChoiceVariableValue + * @throws IOException if the JSON string is invalid with respect to ExternalChoiceVariableValue */ - public static RmLegacySegmentCustomerList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacySegmentCustomerList.class); + public static ExternalChoiceVariableValue fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalChoiceVariableValue.class); } /** - * Convert an instance of RmLegacySegmentCustomerList to an JSON string + * Convert an instance of ExternalChoiceVariableValue to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalColorVariableValue.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalColorVariableValue.java new file mode 100644 index 00000000..7033ca36 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalColorVariableValue.java @@ -0,0 +1,292 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A value of a template color variable + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExternalColorVariableValue { + public static final String SERIALIZED_NAME_COLOR = "color"; + @SerializedName(SERIALIZED_NAME_COLOR) + private String color; + + public ExternalColorVariableValue() { + } + + public ExternalColorVariableValue color(String color) { + + this.color = color; + return this; + } + + /** + * The displayed color (HEX format) + * @return color + **/ + @javax.annotation.Nullable + + public String getColor() { + return color; + } + + + public void setColor(String color) { + this.color = color; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ExternalColorVariableValue instance itself + */ + public ExternalColorVariableValue putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalColorVariableValue externalColorVariableValue = (ExternalColorVariableValue) o; + return Objects.equals(this.color, externalColorVariableValue.color)&& + Objects.equals(this.additionalProperties, externalColorVariableValue.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(color, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalColorVariableValue {\n"); + sb.append(" color: ").append(toIndentedString(color)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("color"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ExternalColorVariableValue + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ExternalColorVariableValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalColorVariableValue is not found in the empty JSON string", ExternalColorVariableValue.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("color") != null && !jsonObj.get("color").isJsonNull()) && !jsonObj.get("color").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `color` to be a primitive type in the JSON string but got `%s`", jsonObj.get("color").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ExternalColorVariableValue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalColorVariableValue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalColorVariableValue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ExternalColorVariableValue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ExternalColorVariableValue read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ExternalColorVariableValue instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ExternalColorVariableValue given an JSON string + * + * @param jsonString JSON string + * @return An instance of ExternalColorVariableValue + * @throws IOException if the JSON string is invalid with respect to ExternalColorVariableValue + */ + public static ExternalColorVariableValue fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalColorVariableValue.class); + } + + /** + * Convert an instance of ExternalColorVariableValue to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCommonLineItem.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCommonLineItem.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCommonLineItem.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCommonLineItem.java index d1a801bb..054941d6 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalCommonLineItem.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCommonLineItem.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A common line item to hold line item information shared between preferred and auction line items diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCreativeV2.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCreativeV2.java new file mode 100644 index 00000000..33a6a530 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalCreativeV2.java @@ -0,0 +1,787 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ExternalPageTypeEnvironment; +import com.criteo.api.retailmedia.v2024_10.model.ExternalTemplateVariableValue; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A creative entity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExternalCreativeV2 { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + /** + * Creative Status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + READY("Ready"), + + INUSE("InUse"), + + ARCHIVED("Archived"), + + DELETED("Deleted"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private StatusEnum status; + + public static final String SERIALIZED_NAME_BRAND_ID = "brandId"; + @SerializedName(SERIALIZED_NAME_BRAND_ID) + private Long brandId; + + public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; + @SerializedName(SERIALIZED_NAME_RETAILER_ID) + private Integer retailerId; + + public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; + @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) + private Integer templateId; + + public static final String SERIALIZED_NAME_TEMPLATE_NAME = "templateName"; + @SerializedName(SERIALIZED_NAME_TEMPLATE_NAME) + private String templateName; + + public static final String SERIALIZED_NAME_FORMAT_ID = "formatId"; + @SerializedName(SERIALIZED_NAME_FORMAT_ID) + private Integer formatId; + + public static final String SERIALIZED_NAME_ASSOCIATED_LINE_ITEM_IDS = "associatedLineItemIds"; + @SerializedName(SERIALIZED_NAME_ASSOCIATED_LINE_ITEM_IDS) + private List associatedLineItemIds = new ArrayList<>(); + + public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + private OffsetDateTime updatedAt; + + /** + * Creative format type + */ + @JsonAdapter(CreativeFormatTypeEnum.Adapter.class) + public enum CreativeFormatTypeEnum { + UNKNOWN("Unknown"), + + FLAGSHIP("FlagShip"), + + SHOWCASE("Showcase"), + + SPONSOREDPRODUCTS("SponsoredProducts"), + + BUTTERFLY("Butterfly"), + + BUNDLEBOOST("BundleBoost"), + + IAB("IAB"), + + CUSTOM("Custom"), + + DISPLAYPANEL("DisplayPanel"), + + DIGITALSHELFTALKER("DigitalShelfTalker"); + + private String value; + + CreativeFormatTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CreativeFormatTypeEnum fromValue(String value) { + for (CreativeFormatTypeEnum b : CreativeFormatTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CreativeFormatTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CreativeFormatTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CreativeFormatTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CREATIVE_FORMAT_TYPE = "creativeFormatType"; + @SerializedName(SERIALIZED_NAME_CREATIVE_FORMAT_TYPE) + private CreativeFormatTypeEnum creativeFormatType; + + public static final String SERIALIZED_NAME_ENVIRONMENTS = "environments"; + @SerializedName(SERIALIZED_NAME_ENVIRONMENTS) + private List environments = new ArrayList<>(); + + public static final String SERIALIZED_NAME_TEMPLATE_VARIABLE_VALUES = "templateVariableValues"; + @SerializedName(SERIALIZED_NAME_TEMPLATE_VARIABLE_VALUES) + private List templateVariableValues = new ArrayList<>(); + + public ExternalCreativeV2() { + } + + public ExternalCreativeV2 name(String name) { + + this.name = name; + return this; + } + + /** + * Name + * @return name + **/ + @javax.annotation.Nonnull + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public ExternalCreativeV2 status(StatusEnum status) { + + this.status = status; + return this; + } + + /** + * Creative Status + * @return status + **/ + @javax.annotation.Nonnull + + public StatusEnum getStatus() { + return status; + } + + + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public ExternalCreativeV2 brandId(Long brandId) { + + this.brandId = brandId; + return this; + } + + /** + * Brand Id + * @return brandId + **/ + @javax.annotation.Nonnull + + public Long getBrandId() { + return brandId; + } + + + public void setBrandId(Long brandId) { + this.brandId = brandId; + } + + + public ExternalCreativeV2 retailerId(Integer retailerId) { + + this.retailerId = retailerId; + return this; + } + + /** + * Retailer Id + * @return retailerId + **/ + @javax.annotation.Nonnull + + public Integer getRetailerId() { + return retailerId; + } + + + public void setRetailerId(Integer retailerId) { + this.retailerId = retailerId; + } + + + public ExternalCreativeV2 templateId(Integer templateId) { + + this.templateId = templateId; + return this; + } + + /** + * Template Id + * @return templateId + **/ + @javax.annotation.Nonnull + + public Integer getTemplateId() { + return templateId; + } + + + public void setTemplateId(Integer templateId) { + this.templateId = templateId; + } + + + public ExternalCreativeV2 templateName(String templateName) { + + this.templateName = templateName; + return this; + } + + /** + * Template Name + * @return templateName + **/ + @javax.annotation.Nonnull + + public String getTemplateName() { + return templateName; + } + + + public void setTemplateName(String templateName) { + this.templateName = templateName; + } + + + public ExternalCreativeV2 formatId(Integer formatId) { + + this.formatId = formatId; + return this; + } + + /** + * Format Id + * @return formatId + **/ + @javax.annotation.Nonnull + + public Integer getFormatId() { + return formatId; + } + + + public void setFormatId(Integer formatId) { + this.formatId = formatId; + } + + + public ExternalCreativeV2 associatedLineItemIds(List associatedLineItemIds) { + + this.associatedLineItemIds = associatedLineItemIds; + return this; + } + + public ExternalCreativeV2 addAssociatedLineItemIdsItem(String associatedLineItemIdsItem) { + this.associatedLineItemIds.add(associatedLineItemIdsItem); + return this; + } + + /** + * Associated Line Item Ids + * @return associatedLineItemIds + **/ + @javax.annotation.Nonnull + + public List getAssociatedLineItemIds() { + return associatedLineItemIds; + } + + + public void setAssociatedLineItemIds(List associatedLineItemIds) { + this.associatedLineItemIds = associatedLineItemIds; + } + + + public ExternalCreativeV2 updatedAt(OffsetDateTime updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * Updated at time + * @return updatedAt + **/ + @javax.annotation.Nonnull + + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + + public ExternalCreativeV2 creativeFormatType(CreativeFormatTypeEnum creativeFormatType) { + + this.creativeFormatType = creativeFormatType; + return this; + } + + /** + * Creative format type + * @return creativeFormatType + **/ + @javax.annotation.Nonnull + + public CreativeFormatTypeEnum getCreativeFormatType() { + return creativeFormatType; + } + + + public void setCreativeFormatType(CreativeFormatTypeEnum creativeFormatType) { + this.creativeFormatType = creativeFormatType; + } + + + public ExternalCreativeV2 environments(List environments) { + + this.environments = environments; + return this; + } + + public ExternalCreativeV2 addEnvironmentsItem(ExternalPageTypeEnvironment environmentsItem) { + this.environments.add(environmentsItem); + return this; + } + + /** + * Environment type (e.g. mobile, web, app) + * @return environments + **/ + @javax.annotation.Nonnull + + public List getEnvironments() { + return environments; + } + + + public void setEnvironments(List environments) { + this.environments = environments; + } + + + public ExternalCreativeV2 templateVariableValues(List templateVariableValues) { + + this.templateVariableValues = templateVariableValues; + return this; + } + + public ExternalCreativeV2 addTemplateVariableValuesItem(ExternalTemplateVariableValue templateVariableValuesItem) { + this.templateVariableValues.add(templateVariableValuesItem); + return this; + } + + /** + * The template chosen values + * @return templateVariableValues + **/ + @javax.annotation.Nonnull + + public List getTemplateVariableValues() { + return templateVariableValues; + } + + + public void setTemplateVariableValues(List templateVariableValues) { + this.templateVariableValues = templateVariableValues; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ExternalCreativeV2 instance itself + */ + public ExternalCreativeV2 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalCreativeV2 externalCreativeV2 = (ExternalCreativeV2) o; + return Objects.equals(this.name, externalCreativeV2.name) && + Objects.equals(this.status, externalCreativeV2.status) && + Objects.equals(this.brandId, externalCreativeV2.brandId) && + Objects.equals(this.retailerId, externalCreativeV2.retailerId) && + Objects.equals(this.templateId, externalCreativeV2.templateId) && + Objects.equals(this.templateName, externalCreativeV2.templateName) && + Objects.equals(this.formatId, externalCreativeV2.formatId) && + Objects.equals(this.associatedLineItemIds, externalCreativeV2.associatedLineItemIds) && + Objects.equals(this.updatedAt, externalCreativeV2.updatedAt) && + Objects.equals(this.creativeFormatType, externalCreativeV2.creativeFormatType) && + Objects.equals(this.environments, externalCreativeV2.environments) && + Objects.equals(this.templateVariableValues, externalCreativeV2.templateVariableValues)&& + Objects.equals(this.additionalProperties, externalCreativeV2.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, brandId, retailerId, templateId, templateName, formatId, associatedLineItemIds, updatedAt, creativeFormatType, environments, templateVariableValues, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalCreativeV2 {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" brandId: ").append(toIndentedString(brandId)).append("\n"); + sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); + sb.append(" templateId: ").append(toIndentedString(templateId)).append("\n"); + sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n"); + sb.append(" formatId: ").append(toIndentedString(formatId)).append("\n"); + sb.append(" associatedLineItemIds: ").append(toIndentedString(associatedLineItemIds)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" creativeFormatType: ").append(toIndentedString(creativeFormatType)).append("\n"); + sb.append(" environments: ").append(toIndentedString(environments)).append("\n"); + sb.append(" templateVariableValues: ").append(toIndentedString(templateVariableValues)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("status"); + openapiFields.add("brandId"); + openapiFields.add("retailerId"); + openapiFields.add("templateId"); + openapiFields.add("templateName"); + openapiFields.add("formatId"); + openapiFields.add("associatedLineItemIds"); + openapiFields.add("updatedAt"); + openapiFields.add("creativeFormatType"); + openapiFields.add("environments"); + openapiFields.add("templateVariableValues"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("brandId"); + openapiRequiredFields.add("retailerId"); + openapiRequiredFields.add("templateId"); + openapiRequiredFields.add("templateName"); + openapiRequiredFields.add("formatId"); + openapiRequiredFields.add("associatedLineItemIds"); + openapiRequiredFields.add("updatedAt"); + openapiRequiredFields.add("creativeFormatType"); + openapiRequiredFields.add("environments"); + openapiRequiredFields.add("templateVariableValues"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ExternalCreativeV2 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ExternalCreativeV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalCreativeV2 is not found in the empty JSON string", ExternalCreativeV2.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ExternalCreativeV2.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if (!jsonObj.get("templateName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `templateName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("templateName").toString())); + } + // ensure the required json array is present + if (jsonObj.get("associatedLineItemIds") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("associatedLineItemIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `associatedLineItemIds` to be an array in the JSON string but got `%s`", jsonObj.get("associatedLineItemIds").toString())); + } + if (!jsonObj.get("creativeFormatType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `creativeFormatType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("creativeFormatType").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("environments").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `environments` to be an array in the JSON string but got `%s`", jsonObj.get("environments").toString())); + } + + JsonArray jsonArrayenvironments = jsonObj.getAsJsonArray("environments"); + // validate the required field `environments` (array) + for (int i = 0; i < jsonArrayenvironments.size(); i++) { + ExternalPageTypeEnvironment.validateJsonObject(jsonArrayenvironments.get(i).getAsJsonObject()); + }; + // ensure the json data is an array + if (!jsonObj.get("templateVariableValues").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `templateVariableValues` to be an array in the JSON string but got `%s`", jsonObj.get("templateVariableValues").toString())); + } + + JsonArray jsonArraytemplateVariableValues = jsonObj.getAsJsonArray("templateVariableValues"); + // validate the required field `templateVariableValues` (array) + for (int i = 0; i < jsonArraytemplateVariableValues.size(); i++) { + ExternalTemplateVariableValue.validateJsonObject(jsonArraytemplateVariableValues.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ExternalCreativeV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalCreativeV2' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalCreativeV2.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ExternalCreativeV2 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ExternalCreativeV2 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ExternalCreativeV2 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ExternalCreativeV2 given an JSON string + * + * @param jsonString JSON string + * @return An instance of ExternalCreativeV2 + * @throws IOException if the JSON string is invalid with respect to ExternalCreativeV2 + */ + public static ExternalCreativeV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalCreativeV2.class); + } + + /** + * Convert an instance of ExternalCreativeV2 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileIdentifierModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalFilesVariableValue.java similarity index 69% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileIdentifierModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalFilesVariableValue.java index 3e86fb43..033dd90a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileIdentifierModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalFilesVariableValue.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -21,6 +21,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -41,65 +43,44 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Identifier of a user profile + * A value of a template file variable (one or several files), like images in a creative */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class UserProfileIdentifierModel { - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - private String value; +public class ExternalFilesVariableValue { + public static final String SERIALIZED_NAME_ASSET_IDS = "assetIds"; + @SerializedName(SERIALIZED_NAME_ASSET_IDS) + private List assetIds = new ArrayList<>(); - public UserProfileIdentifierModel() { + public ExternalFilesVariableValue() { } - public UserProfileIdentifierModel type(String type) { + public ExternalFilesVariableValue assetIds(List assetIds) { - this.type = type; + this.assetIds = assetIds; return this; } - /** - * Get type - * @return type - **/ - @javax.annotation.Nonnull - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - - public UserProfileIdentifierModel value(String value) { - - this.value = value; + public ExternalFilesVariableValue addAssetIdsItem(String assetIdsItem) { + this.assetIds.add(assetIdsItem); return this; } /** - * Get value - * @return value + * The assets representing the images to be displayed + * @return assetIds **/ @javax.annotation.Nonnull - public String getValue() { - return value; + public List getAssetIds() { + return assetIds; } - public void setValue(String value) { - this.value = value; + public void setAssetIds(List assetIds) { + this.assetIds = assetIds; } /** @@ -115,9 +96,9 @@ public void setValue(String value) { * * @param key name of the property * @param value value of the property - * @return the UserProfileIdentifierModel instance itself + * @return the ExternalFilesVariableValue instance itself */ - public UserProfileIdentifierModel putAdditionalProperty(String key, Object value) { + public ExternalFilesVariableValue putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -156,23 +137,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UserProfileIdentifierModel userProfileIdentifierModel = (UserProfileIdentifierModel) o; - return Objects.equals(this.type, userProfileIdentifierModel.type) && - Objects.equals(this.value, userProfileIdentifierModel.value)&& - Objects.equals(this.additionalProperties, userProfileIdentifierModel.additionalProperties); + ExternalFilesVariableValue externalFilesVariableValue = (ExternalFilesVariableValue) o; + return Objects.equals(this.assetIds, externalFilesVariableValue.assetIds)&& + Objects.equals(this.additionalProperties, externalFilesVariableValue.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, value, additionalProperties); + return Objects.hash(assetIds, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UserProfileIdentifierModel {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("class ExternalFilesVariableValue {\n"); + sb.append(" assetIds: ").append(toIndentedString(assetIds)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -196,39 +175,37 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("value"); + openapiFields.add("assetIds"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("value"); + openapiRequiredFields.add("assetIds"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to UserProfileIdentifierModel + * @throws IOException if the JSON Object is invalid with respect to ExternalFilesVariableValue */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!UserProfileIdentifierModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in UserProfileIdentifierModel is not found in the empty JSON string", UserProfileIdentifierModel.openapiRequiredFields.toString())); + if (!ExternalFilesVariableValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalFilesVariableValue is not found in the empty JSON string", ExternalFilesVariableValue.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UserProfileIdentifierModel.openapiRequiredFields) { + for (String requiredField : ExternalFilesVariableValue.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - if (!jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + // ensure the required json array is present + if (jsonObj.get("assetIds") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("assetIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `assetIds` to be an array in the JSON string but got `%s`", jsonObj.get("assetIds").toString())); } } @@ -236,16 +213,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserProfileIdentifierModel.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserProfileIdentifierModel' and its subtypes + if (!ExternalFilesVariableValue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalFilesVariableValue' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserProfileIdentifierModel.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalFilesVariableValue.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, UserProfileIdentifierModel value) throws IOException { + public void write(JsonWriter out, ExternalFilesVariableValue value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -268,11 +245,11 @@ else if (entry.getValue() instanceof Character) } @Override - public UserProfileIdentifierModel read(JsonReader in) throws IOException { + public ExternalFilesVariableValue read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - UserProfileIdentifierModel instance = thisAdapter.fromJsonTree(jsonObj); + ExternalFilesVariableValue instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -299,18 +276,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of UserProfileIdentifierModel given an JSON string + * Create an instance of ExternalFilesVariableValue given an JSON string * * @param jsonString JSON string - * @return An instance of UserProfileIdentifierModel - * @throws IOException if the JSON string is invalid with respect to UserProfileIdentifierModel + * @return An instance of ExternalFilesVariableValue + * @throws IOException if the JSON string is invalid with respect to ExternalFilesVariableValue */ - public static UserProfileIdentifierModel fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UserProfileIdentifierModel.class); + public static ExternalFilesVariableValue fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalFilesVariableValue.class); } /** - * Convert an instance of UserProfileIdentifierModel to an JSON string + * Convert an instance of ExternalFilesVariableValue to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalHyperlinkVariableValue.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalHyperlinkVariableValue.java new file mode 100644 index 00000000..20d0f59c --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalHyperlinkVariableValue.java @@ -0,0 +1,292 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A value of a template hyperlink variable + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExternalHyperlinkVariableValue { + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; + + public ExternalHyperlinkVariableValue() { + } + + public ExternalHyperlinkVariableValue url(String url) { + + this.url = url; + return this; + } + + /** + * The url to redirect to + * @return url + **/ + @javax.annotation.Nullable + + public String getUrl() { + return url; + } + + + public void setUrl(String url) { + this.url = url; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ExternalHyperlinkVariableValue instance itself + */ + public ExternalHyperlinkVariableValue putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalHyperlinkVariableValue externalHyperlinkVariableValue = (ExternalHyperlinkVariableValue) o; + return Objects.equals(this.url, externalHyperlinkVariableValue.url)&& + Objects.equals(this.additionalProperties, externalHyperlinkVariableValue.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(url, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalHyperlinkVariableValue {\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("url"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ExternalHyperlinkVariableValue + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ExternalHyperlinkVariableValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalHyperlinkVariableValue is not found in the empty JSON string", ExternalHyperlinkVariableValue.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ExternalHyperlinkVariableValue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalHyperlinkVariableValue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalHyperlinkVariableValue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ExternalHyperlinkVariableValue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ExternalHyperlinkVariableValue read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ExternalHyperlinkVariableValue instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ExternalHyperlinkVariableValue given an JSON string + * + * @param jsonString JSON string + * @return An instance of ExternalHyperlinkVariableValue + * @throws IOException if the JSON string is invalid with respect to ExternalHyperlinkVariableValue + */ + public static ExternalHyperlinkVariableValue fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalHyperlinkVariableValue.class); + } + + /** + * Convert an instance of ExternalHyperlinkVariableValue to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalKeywordTarget202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalKeywordTarget202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalKeywordTarget202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalKeywordTarget202110.java index 40cc0e0f..5481f023 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalKeywordTarget202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalKeywordTarget202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Identifies keyword targeting for a line item diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliers.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemBidMultipliersV2.java similarity index 54% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliers.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemBidMultipliersV2.java index 0cc4d637..84daf971 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliers.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemBidMultipliersV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -21,6 +21,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.math.BigDecimal; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -41,223 +43,301 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Data model representing bid multipliers on a line item + * The Bid Multiplier Entity of a LineItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class LineItemBidMultipliers { +public class ExternalLineItemBidMultipliersV2 { public static final String SERIALIZED_NAME_SEARCH = "search"; @SerializedName(SERIALIZED_NAME_SEARCH) - private Double search; + private BigDecimal search; - public static final String SERIALIZED_NAME_HOMEPAGE = "homepage"; - @SerializedName(SERIALIZED_NAME_HOMEPAGE) - private Double homepage; + public static final String SERIALIZED_NAME_HOME = "home"; + @SerializedName(SERIALIZED_NAME_HOME) + private BigDecimal home; - public static final String SERIALIZED_NAME_CATEGORIES = "categories"; - @SerializedName(SERIALIZED_NAME_CATEGORIES) - private Double categories; + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) + private BigDecimal category; public static final String SERIALIZED_NAME_PRODUCT_DETAIL = "productDetail"; @SerializedName(SERIALIZED_NAME_PRODUCT_DETAIL) - private Double productDetail; + private BigDecimal productDetail; public static final String SERIALIZED_NAME_CONFIRMATION = "confirmation"; @SerializedName(SERIALIZED_NAME_CONFIRMATION) - private Double confirmation; + private BigDecimal confirmation; public static final String SERIALIZED_NAME_MERCHANDISING = "merchandising"; @SerializedName(SERIALIZED_NAME_MERCHANDISING) - private Double merchandising; + private BigDecimal merchandising; public static final String SERIALIZED_NAME_DEALS = "deals"; @SerializedName(SERIALIZED_NAME_DEALS) - private Double deals; + private BigDecimal deals; public static final String SERIALIZED_NAME_CHECKOUT = "checkout"; @SerializedName(SERIALIZED_NAME_CHECKOUT) - private Double checkout; + private BigDecimal checkout; - public LineItemBidMultipliers() { + public static final String SERIALIZED_NAME_FAVORITES = "favorites"; + @SerializedName(SERIALIZED_NAME_FAVORITES) + private BigDecimal favorites; + + public static final String SERIALIZED_NAME_SEARCH_BAR = "searchBar"; + @SerializedName(SERIALIZED_NAME_SEARCH_BAR) + private BigDecimal searchBar; + + public static final String SERIALIZED_NAME_CATEGORY_MENU = "categoryMenu"; + @SerializedName(SERIALIZED_NAME_CATEGORY_MENU) + private BigDecimal categoryMenu; + + public ExternalLineItemBidMultipliersV2() { } - public LineItemBidMultipliers search(Double search) { + public ExternalLineItemBidMultipliersV2 search(BigDecimal search) { this.search = search; return this; } /** - * Get search + * Search Page Type Bid Multiplier * @return search **/ @javax.annotation.Nullable - public Double getSearch() { + public BigDecimal getSearch() { return search; } - public void setSearch(Double search) { + public void setSearch(BigDecimal search) { this.search = search; } - public LineItemBidMultipliers homepage(Double homepage) { + public ExternalLineItemBidMultipliersV2 home(BigDecimal home) { - this.homepage = homepage; + this.home = home; return this; } /** - * Get homepage - * @return homepage + * Home Page Type Bid Multiplier + * @return home **/ @javax.annotation.Nullable - public Double getHomepage() { - return homepage; + public BigDecimal getHome() { + return home; } - public void setHomepage(Double homepage) { - this.homepage = homepage; + public void setHome(BigDecimal home) { + this.home = home; } - public LineItemBidMultipliers categories(Double categories) { + public ExternalLineItemBidMultipliersV2 category(BigDecimal category) { - this.categories = categories; + this.category = category; return this; } /** - * Get categories - * @return categories + * Categories Page Type Bid Multiplier + * @return category **/ @javax.annotation.Nullable - public Double getCategories() { - return categories; + public BigDecimal getCategory() { + return category; } - public void setCategories(Double categories) { - this.categories = categories; + public void setCategory(BigDecimal category) { + this.category = category; } - public LineItemBidMultipliers productDetail(Double productDetail) { + public ExternalLineItemBidMultipliersV2 productDetail(BigDecimal productDetail) { this.productDetail = productDetail; return this; } /** - * Get productDetail + * ProductDetail Page Type Bid Multiplier * @return productDetail **/ @javax.annotation.Nullable - public Double getProductDetail() { + public BigDecimal getProductDetail() { return productDetail; } - public void setProductDetail(Double productDetail) { + public void setProductDetail(BigDecimal productDetail) { this.productDetail = productDetail; } - public LineItemBidMultipliers confirmation(Double confirmation) { + public ExternalLineItemBidMultipliersV2 confirmation(BigDecimal confirmation) { this.confirmation = confirmation; return this; } /** - * Get confirmation + * Confirmation Page Type Bid Multiplier * @return confirmation **/ @javax.annotation.Nullable - public Double getConfirmation() { + public BigDecimal getConfirmation() { return confirmation; } - public void setConfirmation(Double confirmation) { + public void setConfirmation(BigDecimal confirmation) { this.confirmation = confirmation; } - public LineItemBidMultipliers merchandising(Double merchandising) { + public ExternalLineItemBidMultipliersV2 merchandising(BigDecimal merchandising) { this.merchandising = merchandising; return this; } /** - * Get merchandising + * Merchandising Page Type Bid Multiplier * @return merchandising **/ @javax.annotation.Nullable - public Double getMerchandising() { + public BigDecimal getMerchandising() { return merchandising; } - public void setMerchandising(Double merchandising) { + public void setMerchandising(BigDecimal merchandising) { this.merchandising = merchandising; } - public LineItemBidMultipliers deals(Double deals) { + public ExternalLineItemBidMultipliersV2 deals(BigDecimal deals) { this.deals = deals; return this; } /** - * Get deals + * Deals Page Type Bid Multiplier * @return deals **/ @javax.annotation.Nullable - public Double getDeals() { + public BigDecimal getDeals() { return deals; } - public void setDeals(Double deals) { + public void setDeals(BigDecimal deals) { this.deals = deals; } - public LineItemBidMultipliers checkout(Double checkout) { + public ExternalLineItemBidMultipliersV2 checkout(BigDecimal checkout) { this.checkout = checkout; return this; } /** - * Get checkout + * Checkout Page Type Bid Multiplier * @return checkout **/ @javax.annotation.Nullable - public Double getCheckout() { + public BigDecimal getCheckout() { return checkout; } - public void setCheckout(Double checkout) { + public void setCheckout(BigDecimal checkout) { this.checkout = checkout; } + + public ExternalLineItemBidMultipliersV2 favorites(BigDecimal favorites) { + + this.favorites = favorites; + return this; + } + + /** + * Favorites Page Type Bid Multiplier + * @return favorites + **/ + @javax.annotation.Nullable + + public BigDecimal getFavorites() { + return favorites; + } + + + public void setFavorites(BigDecimal favorites) { + this.favorites = favorites; + } + + + public ExternalLineItemBidMultipliersV2 searchBar(BigDecimal searchBar) { + + this.searchBar = searchBar; + return this; + } + + /** + * SearchBar Page Type Bid Multiplier + * @return searchBar + **/ + @javax.annotation.Nullable + + public BigDecimal getSearchBar() { + return searchBar; + } + + + public void setSearchBar(BigDecimal searchBar) { + this.searchBar = searchBar; + } + + + public ExternalLineItemBidMultipliersV2 categoryMenu(BigDecimal categoryMenu) { + + this.categoryMenu = categoryMenu; + return this; + } + + /** + * CategoryMenu Page Type Bid Multiplier + * @return categoryMenu + **/ + @javax.annotation.Nullable + + public BigDecimal getCategoryMenu() { + return categoryMenu; + } + + + public void setCategoryMenu(BigDecimal categoryMenu) { + this.categoryMenu = categoryMenu; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -271,9 +351,9 @@ public void setCheckout(Double checkout) { * * @param key name of the property * @param value value of the property - * @return the LineItemBidMultipliers instance itself + * @return the ExternalLineItemBidMultipliersV2 instance itself */ - public LineItemBidMultipliers putAdditionalProperty(String key, Object value) { + public ExternalLineItemBidMultipliersV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -312,35 +392,52 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LineItemBidMultipliers lineItemBidMultipliers = (LineItemBidMultipliers) o; - return Objects.equals(this.search, lineItemBidMultipliers.search) && - Objects.equals(this.homepage, lineItemBidMultipliers.homepage) && - Objects.equals(this.categories, lineItemBidMultipliers.categories) && - Objects.equals(this.productDetail, lineItemBidMultipliers.productDetail) && - Objects.equals(this.confirmation, lineItemBidMultipliers.confirmation) && - Objects.equals(this.merchandising, lineItemBidMultipliers.merchandising) && - Objects.equals(this.deals, lineItemBidMultipliers.deals) && - Objects.equals(this.checkout, lineItemBidMultipliers.checkout)&& - Objects.equals(this.additionalProperties, lineItemBidMultipliers.additionalProperties); + ExternalLineItemBidMultipliersV2 externalLineItemBidMultipliersV2 = (ExternalLineItemBidMultipliersV2) o; + return Objects.equals(this.search, externalLineItemBidMultipliersV2.search) && + Objects.equals(this.home, externalLineItemBidMultipliersV2.home) && + Objects.equals(this.category, externalLineItemBidMultipliersV2.category) && + Objects.equals(this.productDetail, externalLineItemBidMultipliersV2.productDetail) && + Objects.equals(this.confirmation, externalLineItemBidMultipliersV2.confirmation) && + Objects.equals(this.merchandising, externalLineItemBidMultipliersV2.merchandising) && + Objects.equals(this.deals, externalLineItemBidMultipliersV2.deals) && + Objects.equals(this.checkout, externalLineItemBidMultipliersV2.checkout) && + Objects.equals(this.favorites, externalLineItemBidMultipliersV2.favorites) && + Objects.equals(this.searchBar, externalLineItemBidMultipliersV2.searchBar) && + Objects.equals(this.categoryMenu, externalLineItemBidMultipliersV2.categoryMenu)&& + Objects.equals(this.additionalProperties, externalLineItemBidMultipliersV2.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override public int hashCode() { - return Objects.hash(search, homepage, categories, productDetail, confirmation, merchandising, deals, checkout, additionalProperties); + return Objects.hash(search, home, category, productDetail, confirmation, merchandising, deals, checkout, favorites, searchBar, categoryMenu, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LineItemBidMultipliers {\n"); + sb.append("class ExternalLineItemBidMultipliersV2 {\n"); sb.append(" search: ").append(toIndentedString(search)).append("\n"); - sb.append(" homepage: ").append(toIndentedString(homepage)).append("\n"); - sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); + sb.append(" home: ").append(toIndentedString(home)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append(" productDetail: ").append(toIndentedString(productDetail)).append("\n"); sb.append(" confirmation: ").append(toIndentedString(confirmation)).append("\n"); sb.append(" merchandising: ").append(toIndentedString(merchandising)).append("\n"); sb.append(" deals: ").append(toIndentedString(deals)).append("\n"); sb.append(" checkout: ").append(toIndentedString(checkout)).append("\n"); + sb.append(" favorites: ").append(toIndentedString(favorites)).append("\n"); + sb.append(" searchBar: ").append(toIndentedString(searchBar)).append("\n"); + sb.append(" categoryMenu: ").append(toIndentedString(categoryMenu)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -365,13 +462,16 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("search"); - openapiFields.add("homepage"); - openapiFields.add("categories"); + openapiFields.add("home"); + openapiFields.add("category"); openapiFields.add("productDetail"); openapiFields.add("confirmation"); openapiFields.add("merchandising"); openapiFields.add("deals"); openapiFields.add("checkout"); + openapiFields.add("favorites"); + openapiFields.add("searchBar"); + openapiFields.add("categoryMenu"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -381,12 +481,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to LineItemBidMultipliers + * @throws IOException if the JSON Object is invalid with respect to ExternalLineItemBidMultipliersV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!LineItemBidMultipliers.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LineItemBidMultipliers is not found in the empty JSON string", LineItemBidMultipliers.openapiRequiredFields.toString())); + if (!ExternalLineItemBidMultipliersV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalLineItemBidMultipliersV2 is not found in the empty JSON string", ExternalLineItemBidMultipliersV2.openapiRequiredFields.toString())); } } } @@ -395,16 +495,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!LineItemBidMultipliers.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LineItemBidMultipliers' and its subtypes + if (!ExternalLineItemBidMultipliersV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalLineItemBidMultipliersV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(LineItemBidMultipliers.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalLineItemBidMultipliersV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, LineItemBidMultipliers value) throws IOException { + public void write(JsonWriter out, ExternalLineItemBidMultipliersV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -427,11 +527,11 @@ else if (entry.getValue() instanceof Character) } @Override - public LineItemBidMultipliers read(JsonReader in) throws IOException { + public ExternalLineItemBidMultipliersV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - LineItemBidMultipliers instance = thisAdapter.fromJsonTree(jsonObj); + ExternalLineItemBidMultipliersV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -458,18 +558,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of LineItemBidMultipliers given an JSON string + * Create an instance of ExternalLineItemBidMultipliersV2 given an JSON string * * @param jsonString JSON string - * @return An instance of LineItemBidMultipliers - * @throws IOException if the JSON string is invalid with respect to LineItemBidMultipliers + * @return An instance of ExternalLineItemBidMultipliersV2 + * @throws IOException if the JSON string is invalid with respect to ExternalLineItemBidMultipliersV2 */ - public static LineItemBidMultipliers fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, LineItemBidMultipliers.class); + public static ExternalLineItemBidMultipliersV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalLineItemBidMultipliersV2.class); } /** - * Convert an instance of LineItemBidMultipliers to an JSON string + * Convert an instance of ExternalLineItemBidMultipliersV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemCapping202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemCappingV2.java similarity index 82% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemCapping202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemCappingV2.java index 66a0c7d6..26fd21af 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemCapping202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemCappingV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -41,15 +41,15 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Frequency capping for a preferred line item + * Frequency Capping for a Preferred Line Item */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ExternalLineItemCapping202110 { +public class ExternalLineItemCappingV2 { /** - * Gets or Sets type + * Line Item Capping Type Enum */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { @@ -105,17 +105,17 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_COUNT) private Integer count; - public ExternalLineItemCapping202110() { + public ExternalLineItemCappingV2() { } - public ExternalLineItemCapping202110 type(TypeEnum type) { + public ExternalLineItemCappingV2 type(TypeEnum type) { this.type = type; return this; } /** - * Get type + * Line Item Capping Type Enum * @return type **/ @javax.annotation.Nonnull @@ -130,7 +130,7 @@ public void setType(TypeEnum type) { } - public ExternalLineItemCapping202110 count(Integer count) { + public ExternalLineItemCappingV2 count(Integer count) { this.count = count; return this; @@ -164,9 +164,9 @@ public void setCount(Integer count) { * * @param key name of the property * @param value value of the property - * @return the ExternalLineItemCapping202110 instance itself + * @return the ExternalLineItemCappingV2 instance itself */ - public ExternalLineItemCapping202110 putAdditionalProperty(String key, Object value) { + public ExternalLineItemCappingV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -205,10 +205,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ExternalLineItemCapping202110 externalLineItemCapping202110 = (ExternalLineItemCapping202110) o; - return Objects.equals(this.type, externalLineItemCapping202110.type) && - Objects.equals(this.count, externalLineItemCapping202110.count)&& - Objects.equals(this.additionalProperties, externalLineItemCapping202110.additionalProperties); + ExternalLineItemCappingV2 externalLineItemCappingV2 = (ExternalLineItemCappingV2) o; + return Objects.equals(this.type, externalLineItemCappingV2.type) && + Objects.equals(this.count, externalLineItemCappingV2.count)&& + Objects.equals(this.additionalProperties, externalLineItemCappingV2.additionalProperties); } @Override @@ -219,7 +219,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ExternalLineItemCapping202110 {\n"); + sb.append("class ExternalLineItemCappingV2 {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -258,17 +258,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ExternalLineItemCapping202110 + * @throws IOException if the JSON Object is invalid with respect to ExternalLineItemCappingV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ExternalLineItemCapping202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalLineItemCapping202110 is not found in the empty JSON string", ExternalLineItemCapping202110.openapiRequiredFields.toString())); + if (!ExternalLineItemCappingV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalLineItemCappingV2 is not found in the empty JSON string", ExternalLineItemCappingV2.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ExternalLineItemCapping202110.openapiRequiredFields) { + for (String requiredField : ExternalLineItemCappingV2.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -282,16 +282,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ExternalLineItemCapping202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ExternalLineItemCapping202110' and its subtypes + if (!ExternalLineItemCappingV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalLineItemCappingV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ExternalLineItemCapping202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalLineItemCappingV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ExternalLineItemCapping202110 value) throws IOException { + public void write(JsonWriter out, ExternalLineItemCappingV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -314,11 +314,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ExternalLineItemCapping202110 read(JsonReader in) throws IOException { + public ExternalLineItemCappingV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ExternalLineItemCapping202110 instance = thisAdapter.fromJsonTree(jsonObj); + ExternalLineItemCappingV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -345,18 +345,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ExternalLineItemCapping202110 given an JSON string + * Create an instance of ExternalLineItemCappingV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ExternalLineItemCapping202110 - * @throws IOException if the JSON string is invalid with respect to ExternalLineItemCapping202110 + * @return An instance of ExternalLineItemCappingV2 + * @throws IOException if the JSON string is invalid with respect to ExternalLineItemCappingV2 */ - public static ExternalLineItemCapping202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ExternalLineItemCapping202110.class); + public static ExternalLineItemCappingV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalLineItemCappingV2.class); } /** - * Convert an instance of ExternalLineItemCapping202110 to an JSON string + * Convert an instance of ExternalLineItemCappingV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemPageCategory202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemPageCategoryV2.java similarity index 81% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemPageCategory202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemPageCategoryV2.java index 8d073387..307bd38d 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemPageCategory202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemPageCategoryV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -41,13 +41,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Category information for a preferred line item page */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ExternalLineItemPageCategory202110 { +public class ExternalLineItemPageCategoryV2 { public static final String SERIALIZED_NAME_CATEGORY_ID = "categoryId"; @SerializedName(SERIALIZED_NAME_CATEGORY_ID) private String categoryId; @@ -56,10 +56,10 @@ public class ExternalLineItemPageCategory202110 { @SerializedName(SERIALIZED_NAME_INCLUDE_CHILDREN) private Boolean includeChildren = true; - public ExternalLineItemPageCategory202110() { + public ExternalLineItemPageCategoryV2() { } - public ExternalLineItemPageCategory202110 categoryId(String categoryId) { + public ExternalLineItemPageCategoryV2 categoryId(String categoryId) { this.categoryId = categoryId; return this; @@ -81,7 +81,7 @@ public void setCategoryId(String categoryId) { } - public ExternalLineItemPageCategory202110 includeChildren(Boolean includeChildren) { + public ExternalLineItemPageCategoryV2 includeChildren(Boolean includeChildren) { this.includeChildren = includeChildren; return this; @@ -115,9 +115,9 @@ public void setIncludeChildren(Boolean includeChildren) { * * @param key name of the property * @param value value of the property - * @return the ExternalLineItemPageCategory202110 instance itself + * @return the ExternalLineItemPageCategoryV2 instance itself */ - public ExternalLineItemPageCategory202110 putAdditionalProperty(String key, Object value) { + public ExternalLineItemPageCategoryV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -156,10 +156,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ExternalLineItemPageCategory202110 externalLineItemPageCategory202110 = (ExternalLineItemPageCategory202110) o; - return Objects.equals(this.categoryId, externalLineItemPageCategory202110.categoryId) && - Objects.equals(this.includeChildren, externalLineItemPageCategory202110.includeChildren)&& - Objects.equals(this.additionalProperties, externalLineItemPageCategory202110.additionalProperties); + ExternalLineItemPageCategoryV2 externalLineItemPageCategoryV2 = (ExternalLineItemPageCategoryV2) o; + return Objects.equals(this.categoryId, externalLineItemPageCategoryV2.categoryId) && + Objects.equals(this.includeChildren, externalLineItemPageCategoryV2.includeChildren)&& + Objects.equals(this.additionalProperties, externalLineItemPageCategoryV2.additionalProperties); } @Override @@ -170,7 +170,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ExternalLineItemPageCategory202110 {\n"); + sb.append("class ExternalLineItemPageCategoryV2 {\n"); sb.append(" categoryId: ").append(toIndentedString(categoryId)).append("\n"); sb.append(" includeChildren: ").append(toIndentedString(includeChildren)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -208,17 +208,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ExternalLineItemPageCategory202110 + * @throws IOException if the JSON Object is invalid with respect to ExternalLineItemPageCategoryV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ExternalLineItemPageCategory202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalLineItemPageCategory202110 is not found in the empty JSON string", ExternalLineItemPageCategory202110.openapiRequiredFields.toString())); + if (!ExternalLineItemPageCategoryV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalLineItemPageCategoryV2 is not found in the empty JSON string", ExternalLineItemPageCategoryV2.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ExternalLineItemPageCategory202110.openapiRequiredFields) { + for (String requiredField : ExternalLineItemPageCategoryV2.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -232,16 +232,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ExternalLineItemPageCategory202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ExternalLineItemPageCategory202110' and its subtypes + if (!ExternalLineItemPageCategoryV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalLineItemPageCategoryV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ExternalLineItemPageCategory202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalLineItemPageCategoryV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ExternalLineItemPageCategory202110 value) throws IOException { + public void write(JsonWriter out, ExternalLineItemPageCategoryV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -264,11 +264,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ExternalLineItemPageCategory202110 read(JsonReader in) throws IOException { + public ExternalLineItemPageCategoryV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ExternalLineItemPageCategory202110 instance = thisAdapter.fromJsonTree(jsonObj); + ExternalLineItemPageCategoryV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -295,18 +295,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ExternalLineItemPageCategory202110 given an JSON string + * Create an instance of ExternalLineItemPageCategoryV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ExternalLineItemPageCategory202110 - * @throws IOException if the JSON string is invalid with respect to ExternalLineItemPageCategory202110 + * @return An instance of ExternalLineItemPageCategoryV2 + * @throws IOException if the JSON string is invalid with respect to ExternalLineItemPageCategoryV2 */ - public static ExternalLineItemPageCategory202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ExternalLineItemPageCategory202110.class); + public static ExternalLineItemPageCategoryV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalLineItemPageCategoryV2.class); } /** - * Convert an instance of ExternalLineItemPageCategory202110 to an JSON string + * Convert an instance of ExternalLineItemPageCategoryV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemPage202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemPageV2.java similarity index 81% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemPage202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemPageV2.java index ecf5e64f..7f601bbc 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalLineItemPage202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalLineItemPageV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalLineItemPageCategory202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemPageCategoryV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,22 +44,26 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Page information for a preferred line item */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ExternalLineItemPage202110 { +public class ExternalLineItemPageV2 { /** - * Gets or Sets pageType + * Page Type Enum */ @JsonAdapter(PageTypeEnum.Adapter.class) public enum PageTypeEnum { + UNKNOWN("unknown"), + SEARCH("search"), HOME("home"), + BROWSE("browse"), + CHECKOUT("checkout"), CATEGORY("category"), @@ -70,7 +74,13 @@ public enum PageTypeEnum { MERCHANDISING("merchandising"), - DEALS("deals"); + DEALS("deals"), + + FAVORITES("favorites"), + + SEARCHBAR("searchBar"), + + CATEGORYMENU("categoryMenu"); private String value; @@ -116,23 +126,23 @@ public PageTypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) - private List categories = null; + private List categories = null; public static final String SERIALIZED_NAME_SEARCH_KEYWORDS = "searchKeywords"; @SerializedName(SERIALIZED_NAME_SEARCH_KEYWORDS) private List searchKeywords = null; - public ExternalLineItemPage202110() { + public ExternalLineItemPageV2() { } - public ExternalLineItemPage202110 pageType(PageTypeEnum pageType) { + public ExternalLineItemPageV2 pageType(PageTypeEnum pageType) { this.pageType = pageType; return this; } /** - * Get pageType + * Page Type Enum * @return pageType **/ @javax.annotation.Nonnull @@ -147,13 +157,13 @@ public void setPageType(PageTypeEnum pageType) { } - public ExternalLineItemPage202110 categories(List categories) { + public ExternalLineItemPageV2 categories(List categories) { this.categories = categories; return this; } - public ExternalLineItemPage202110 addCategoriesItem(ExternalLineItemPageCategory202110 categoriesItem) { + public ExternalLineItemPageV2 addCategoriesItem(ExternalLineItemPageCategoryV2 categoriesItem) { if (this.categories == null) { this.categories = new ArrayList<>(); } @@ -167,23 +177,23 @@ public ExternalLineItemPage202110 addCategoriesItem(ExternalLineItemPageCategory **/ @javax.annotation.Nullable - public List getCategories() { + public List getCategories() { return categories; } - public void setCategories(List categories) { + public void setCategories(List categories) { this.categories = categories; } - public ExternalLineItemPage202110 searchKeywords(List searchKeywords) { + public ExternalLineItemPageV2 searchKeywords(List searchKeywords) { this.searchKeywords = searchKeywords; return this; } - public ExternalLineItemPage202110 addSearchKeywordsItem(String searchKeywordsItem) { + public ExternalLineItemPageV2 addSearchKeywordsItem(String searchKeywordsItem) { if (this.searchKeywords == null) { this.searchKeywords = new ArrayList<>(); } @@ -219,9 +229,9 @@ public void setSearchKeywords(List searchKeywords) { * * @param key name of the property * @param value value of the property - * @return the ExternalLineItemPage202110 instance itself + * @return the ExternalLineItemPageV2 instance itself */ - public ExternalLineItemPage202110 putAdditionalProperty(String key, Object value) { + public ExternalLineItemPageV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -260,11 +270,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ExternalLineItemPage202110 externalLineItemPage202110 = (ExternalLineItemPage202110) o; - return Objects.equals(this.pageType, externalLineItemPage202110.pageType) && - Objects.equals(this.categories, externalLineItemPage202110.categories) && - Objects.equals(this.searchKeywords, externalLineItemPage202110.searchKeywords)&& - Objects.equals(this.additionalProperties, externalLineItemPage202110.additionalProperties); + ExternalLineItemPageV2 externalLineItemPageV2 = (ExternalLineItemPageV2) o; + return Objects.equals(this.pageType, externalLineItemPageV2.pageType) && + Objects.equals(this.categories, externalLineItemPageV2.categories) && + Objects.equals(this.searchKeywords, externalLineItemPageV2.searchKeywords)&& + Objects.equals(this.additionalProperties, externalLineItemPageV2.additionalProperties); } @Override @@ -275,7 +285,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ExternalLineItemPage202110 {\n"); + sb.append("class ExternalLineItemPageV2 {\n"); sb.append(" pageType: ").append(toIndentedString(pageType)).append("\n"); sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); sb.append(" searchKeywords: ").append(toIndentedString(searchKeywords)).append("\n"); @@ -315,17 +325,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ExternalLineItemPage202110 + * @throws IOException if the JSON Object is invalid with respect to ExternalLineItemPageV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ExternalLineItemPage202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalLineItemPage202110 is not found in the empty JSON string", ExternalLineItemPage202110.openapiRequiredFields.toString())); + if (!ExternalLineItemPageV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalLineItemPageV2 is not found in the empty JSON string", ExternalLineItemPageV2.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ExternalLineItemPage202110.openapiRequiredFields) { + for (String requiredField : ExternalLineItemPageV2.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -343,7 +353,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `categories` (array) for (int i = 0; i < jsonArraycategories.size(); i++) { - ExternalLineItemPageCategory202110.validateJsonObject(jsonArraycategories.get(i).getAsJsonObject()); + ExternalLineItemPageCategoryV2.validateJsonObject(jsonArraycategories.get(i).getAsJsonObject()); }; } } @@ -357,16 +367,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ExternalLineItemPage202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ExternalLineItemPage202110' and its subtypes + if (!ExternalLineItemPageV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalLineItemPageV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ExternalLineItemPage202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalLineItemPageV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ExternalLineItemPage202110 value) throws IOException { + public void write(JsonWriter out, ExternalLineItemPageV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -389,11 +399,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ExternalLineItemPage202110 read(JsonReader in) throws IOException { + public ExternalLineItemPageV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ExternalLineItemPage202110 instance = thisAdapter.fromJsonTree(jsonObj); + ExternalLineItemPageV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -420,18 +430,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ExternalLineItemPage202110 given an JSON string + * Create an instance of ExternalLineItemPageV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ExternalLineItemPage202110 - * @throws IOException if the JSON string is invalid with respect to ExternalLineItemPage202110 + * @return An instance of ExternalLineItemPageV2 + * @throws IOException if the JSON string is invalid with respect to ExternalLineItemPageV2 */ - public static ExternalLineItemPage202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ExternalLineItemPage202110.class); + public static ExternalLineItemPageV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalLineItemPageV2.class); } /** - * Convert an instance of ExternalLineItemPage202110 to an JSON string + * Convert an instance of ExternalLineItemPageV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPageTypeEnvironment.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPageTypeEnvironment.java new file mode 100644 index 00000000..45569478 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPageTypeEnvironment.java @@ -0,0 +1,461 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * The PageType-Environment Tuples for creatives + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExternalPageTypeEnvironment { + /** + * Creative PageType + */ + @JsonAdapter(PageTypeEnum.Adapter.class) + public enum PageTypeEnum { + UNKNOWN("Unknown"), + + SEARCH("Search"), + + HOME("Home"), + + BROWSE("Browse"), + + CHECKOUT("Checkout"), + + CATEGORY("Category"), + + PRODUCTDETAIL("ProductDetail"), + + CONFIRMATION("Confirmation"), + + MERCHANDISING("Merchandising"), + + DEALS("Deals"), + + FAVORITES("Favorites"), + + SEARCHBAR("SearchBar"), + + CATEGORYMENU("CategoryMenu"); + + private String value; + + PageTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PageTypeEnum fromValue(String value) { + for (PageTypeEnum b : PageTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PageTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PageTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PageTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PAGE_TYPE = "pageType"; + @SerializedName(SERIALIZED_NAME_PAGE_TYPE) + private PageTypeEnum pageType; + + /** + * Creative format, defining where the creative can be served + */ + @JsonAdapter(EnvironmentsEnum.Adapter.class) + public enum EnvironmentsEnum { + WEB("Web"), + + MOBILE("Mobile"), + + APP("App"), + + LOCKOUT("Lockout"), + + MIXED("Mixed"), + + IOS("iOS"), + + ANDROID("Android"); + + private String value; + + EnvironmentsEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EnvironmentsEnum fromValue(String value) { + for (EnvironmentsEnum b : EnvironmentsEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EnvironmentsEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EnvironmentsEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EnvironmentsEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ENVIRONMENTS = "environments"; + @SerializedName(SERIALIZED_NAME_ENVIRONMENTS) + private List environments = null; + + public ExternalPageTypeEnvironment() { + } + + public ExternalPageTypeEnvironment pageType(PageTypeEnum pageType) { + + this.pageType = pageType; + return this; + } + + /** + * Creative PageType + * @return pageType + **/ + @javax.annotation.Nullable + + public PageTypeEnum getPageType() { + return pageType; + } + + + public void setPageType(PageTypeEnum pageType) { + this.pageType = pageType; + } + + + public ExternalPageTypeEnvironment environments(List environments) { + + this.environments = environments; + return this; + } + + public ExternalPageTypeEnvironment addEnvironmentsItem(EnvironmentsEnum environmentsItem) { + if (this.environments == null) { + this.environments = null; + } + this.environments.add(environmentsItem); + return this; + } + + /** + * List of environments per PageType + * @return environments + **/ + @javax.annotation.Nullable + + public List getEnvironments() { + return environments; + } + + + public void setEnvironments(List environments) { + this.environments = environments; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ExternalPageTypeEnvironment instance itself + */ + public ExternalPageTypeEnvironment putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalPageTypeEnvironment externalPageTypeEnvironment = (ExternalPageTypeEnvironment) o; + return Objects.equals(this.pageType, externalPageTypeEnvironment.pageType) && + Objects.equals(this.environments, externalPageTypeEnvironment.environments)&& + Objects.equals(this.additionalProperties, externalPageTypeEnvironment.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(pageType, environments, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalPageTypeEnvironment {\n"); + sb.append(" pageType: ").append(toIndentedString(pageType)).append("\n"); + sb.append(" environments: ").append(toIndentedString(environments)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("pageType"); + openapiFields.add("environments"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ExternalPageTypeEnvironment + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ExternalPageTypeEnvironment.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalPageTypeEnvironment is not found in the empty JSON string", ExternalPageTypeEnvironment.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("pageType") != null && !jsonObj.get("pageType").isJsonNull()) && !jsonObj.get("pageType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `pageType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pageType").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("environments") != null && !jsonObj.get("environments").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `environments` to be an array in the JSON string but got `%s`", jsonObj.get("environments").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ExternalPageTypeEnvironment.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalPageTypeEnvironment' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalPageTypeEnvironment.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ExternalPageTypeEnvironment value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ExternalPageTypeEnvironment read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ExternalPageTypeEnvironment instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ExternalPageTypeEnvironment given an JSON string + * + * @param jsonString JSON string + * @return An instance of ExternalPageTypeEnvironment + * @throws IOException if the JSON string is invalid with respect to ExternalPageTypeEnvironment + */ + public static ExternalPageTypeEnvironment fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalPageTypeEnvironment.class); + } + + /** + * Convert an instance of ExternalPageTypeEnvironment to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItemCreateModel202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemCreateModelV2.java similarity index 82% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItemCreateModel202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemCreateModelV2.java index 75330ffa..88f1300f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItemCreateModel202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemCreateModelV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalLineItemCapping202110; -import com.criteo.api.retailmedia.v2023_07.model.ExternalLineItemPage202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemCappingV2; +import com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemPageV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,13 +45,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Model used to create a preferred line item */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ExternalPreferredLineItemCreateModel202110 { +public class ExternalPreferredLineItemCreateModelV2 { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; @@ -65,7 +65,7 @@ public class ExternalPreferredLineItemCreateModel202110 { private LocalDate endDate; /** - * Gets or Sets status + * Line Item Status Enum */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { @@ -130,7 +130,7 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private StatusEnum status; /** - * Gets or Sets pacing + * Line Item Pacing Enum */ @JsonAdapter(PacingEnum.Adapter.class) public enum PacingEnum { @@ -184,11 +184,11 @@ public PacingEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAPPING = "capping"; @SerializedName(SERIALIZED_NAME_CAPPING) - private ExternalLineItemCapping202110 capping; + private ExternalLineItemCappingV2 capping; public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) - private ExternalLineItemPage202110 page; + private ExternalLineItemPageV2 page; public static final String SERIALIZED_NAME_TARGET_RETAILER_ID = "targetRetailerId"; @SerializedName(SERIALIZED_NAME_TARGET_RETAILER_ID) @@ -202,10 +202,10 @@ public PacingEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CREATIVE_ID) private String creativeId; - public ExternalPreferredLineItemCreateModel202110() { + public ExternalPreferredLineItemCreateModelV2() { } - public ExternalPreferredLineItemCreateModel202110 name(String name) { + public ExternalPreferredLineItemCreateModelV2 name(String name) { this.name = name; return this; @@ -227,7 +227,7 @@ public void setName(String name) { } - public ExternalPreferredLineItemCreateModel202110 startDate(LocalDate startDate) { + public ExternalPreferredLineItemCreateModelV2 startDate(LocalDate startDate) { this.startDate = startDate; return this; @@ -249,7 +249,7 @@ public void setStartDate(LocalDate startDate) { } - public ExternalPreferredLineItemCreateModel202110 endDate(LocalDate endDate) { + public ExternalPreferredLineItemCreateModelV2 endDate(LocalDate endDate) { this.endDate = endDate; return this; @@ -271,14 +271,14 @@ public void setEndDate(LocalDate endDate) { } - public ExternalPreferredLineItemCreateModel202110 status(StatusEnum status) { + public ExternalPreferredLineItemCreateModelV2 status(StatusEnum status) { this.status = status; return this; } /** - * Get status + * Line Item Status Enum * @return status **/ @javax.annotation.Nullable @@ -293,14 +293,14 @@ public void setStatus(StatusEnum status) { } - public ExternalPreferredLineItemCreateModel202110 pacing(PacingEnum pacing) { + public ExternalPreferredLineItemCreateModelV2 pacing(PacingEnum pacing) { this.pacing = pacing; return this; } /** - * Get pacing + * Line Item Pacing Enum * @return pacing **/ @javax.annotation.Nonnull @@ -315,7 +315,7 @@ public void setPacing(PacingEnum pacing) { } - public ExternalPreferredLineItemCreateModel202110 capping(ExternalLineItemCapping202110 capping) { + public ExternalPreferredLineItemCreateModelV2 capping(ExternalLineItemCappingV2 capping) { this.capping = capping; return this; @@ -327,17 +327,17 @@ public ExternalPreferredLineItemCreateModel202110 capping(ExternalLineItemCappin **/ @javax.annotation.Nullable - public ExternalLineItemCapping202110 getCapping() { + public ExternalLineItemCappingV2 getCapping() { return capping; } - public void setCapping(ExternalLineItemCapping202110 capping) { + public void setCapping(ExternalLineItemCappingV2 capping) { this.capping = capping; } - public ExternalPreferredLineItemCreateModel202110 page(ExternalLineItemPage202110 page) { + public ExternalPreferredLineItemCreateModelV2 page(ExternalLineItemPageV2 page) { this.page = page; return this; @@ -349,17 +349,17 @@ public ExternalPreferredLineItemCreateModel202110 page(ExternalLineItemPage20211 **/ @javax.annotation.Nonnull - public ExternalLineItemPage202110 getPage() { + public ExternalLineItemPageV2 getPage() { return page; } - public void setPage(ExternalLineItemPage202110 page) { + public void setPage(ExternalLineItemPageV2 page) { this.page = page; } - public ExternalPreferredLineItemCreateModel202110 targetRetailerId(String targetRetailerId) { + public ExternalPreferredLineItemCreateModelV2 targetRetailerId(String targetRetailerId) { this.targetRetailerId = targetRetailerId; return this; @@ -381,7 +381,7 @@ public void setTargetRetailerId(String targetRetailerId) { } - public ExternalPreferredLineItemCreateModel202110 budget(Double budget) { + public ExternalPreferredLineItemCreateModelV2 budget(Double budget) { this.budget = budget; return this; @@ -403,7 +403,7 @@ public void setBudget(Double budget) { } - public ExternalPreferredLineItemCreateModel202110 creativeId(String creativeId) { + public ExternalPreferredLineItemCreateModelV2 creativeId(String creativeId) { this.creativeId = creativeId; return this; @@ -437,9 +437,9 @@ public void setCreativeId(String creativeId) { * * @param key name of the property * @param value value of the property - * @return the ExternalPreferredLineItemCreateModel202110 instance itself + * @return the ExternalPreferredLineItemCreateModelV2 instance itself */ - public ExternalPreferredLineItemCreateModel202110 putAdditionalProperty(String key, Object value) { + public ExternalPreferredLineItemCreateModelV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -478,18 +478,18 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ExternalPreferredLineItemCreateModel202110 externalPreferredLineItemCreateModel202110 = (ExternalPreferredLineItemCreateModel202110) o; - return Objects.equals(this.name, externalPreferredLineItemCreateModel202110.name) && - Objects.equals(this.startDate, externalPreferredLineItemCreateModel202110.startDate) && - Objects.equals(this.endDate, externalPreferredLineItemCreateModel202110.endDate) && - Objects.equals(this.status, externalPreferredLineItemCreateModel202110.status) && - Objects.equals(this.pacing, externalPreferredLineItemCreateModel202110.pacing) && - Objects.equals(this.capping, externalPreferredLineItemCreateModel202110.capping) && - Objects.equals(this.page, externalPreferredLineItemCreateModel202110.page) && - Objects.equals(this.targetRetailerId, externalPreferredLineItemCreateModel202110.targetRetailerId) && - Objects.equals(this.budget, externalPreferredLineItemCreateModel202110.budget) && - Objects.equals(this.creativeId, externalPreferredLineItemCreateModel202110.creativeId)&& - Objects.equals(this.additionalProperties, externalPreferredLineItemCreateModel202110.additionalProperties); + ExternalPreferredLineItemCreateModelV2 externalPreferredLineItemCreateModelV2 = (ExternalPreferredLineItemCreateModelV2) o; + return Objects.equals(this.name, externalPreferredLineItemCreateModelV2.name) && + Objects.equals(this.startDate, externalPreferredLineItemCreateModelV2.startDate) && + Objects.equals(this.endDate, externalPreferredLineItemCreateModelV2.endDate) && + Objects.equals(this.status, externalPreferredLineItemCreateModelV2.status) && + Objects.equals(this.pacing, externalPreferredLineItemCreateModelV2.pacing) && + Objects.equals(this.capping, externalPreferredLineItemCreateModelV2.capping) && + Objects.equals(this.page, externalPreferredLineItemCreateModelV2.page) && + Objects.equals(this.targetRetailerId, externalPreferredLineItemCreateModelV2.targetRetailerId) && + Objects.equals(this.budget, externalPreferredLineItemCreateModelV2.budget) && + Objects.equals(this.creativeId, externalPreferredLineItemCreateModelV2.creativeId)&& + Objects.equals(this.additionalProperties, externalPreferredLineItemCreateModelV2.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -511,7 +511,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ExternalPreferredLineItemCreateModel202110 {\n"); + sb.append("class ExternalPreferredLineItemCreateModelV2 {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); @@ -571,17 +571,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ExternalPreferredLineItemCreateModel202110 + * @throws IOException if the JSON Object is invalid with respect to ExternalPreferredLineItemCreateModelV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ExternalPreferredLineItemCreateModel202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalPreferredLineItemCreateModel202110 is not found in the empty JSON string", ExternalPreferredLineItemCreateModel202110.openapiRequiredFields.toString())); + if (!ExternalPreferredLineItemCreateModelV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalPreferredLineItemCreateModelV2 is not found in the empty JSON string", ExternalPreferredLineItemCreateModelV2.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ExternalPreferredLineItemCreateModel202110.openapiRequiredFields) { + for (String requiredField : ExternalPreferredLineItemCreateModelV2.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -597,10 +597,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `capping` if (jsonObj.get("capping") != null && !jsonObj.get("capping").isJsonNull()) { - ExternalLineItemCapping202110.validateJsonObject(jsonObj.getAsJsonObject("capping")); + ExternalLineItemCappingV2.validateJsonObject(jsonObj.getAsJsonObject("capping")); } // validate the required field `page` - ExternalLineItemPage202110.validateJsonObject(jsonObj.getAsJsonObject("page")); + ExternalLineItemPageV2.validateJsonObject(jsonObj.getAsJsonObject("page")); if (!jsonObj.get("targetRetailerId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `targetRetailerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetRetailerId").toString())); } @@ -613,16 +613,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ExternalPreferredLineItemCreateModel202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ExternalPreferredLineItemCreateModel202110' and its subtypes + if (!ExternalPreferredLineItemCreateModelV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalPreferredLineItemCreateModelV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ExternalPreferredLineItemCreateModel202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalPreferredLineItemCreateModelV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ExternalPreferredLineItemCreateModel202110 value) throws IOException { + public void write(JsonWriter out, ExternalPreferredLineItemCreateModelV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -645,11 +645,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ExternalPreferredLineItemCreateModel202110 read(JsonReader in) throws IOException { + public ExternalPreferredLineItemCreateModelV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ExternalPreferredLineItemCreateModel202110 instance = thisAdapter.fromJsonTree(jsonObj); + ExternalPreferredLineItemCreateModelV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -676,18 +676,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ExternalPreferredLineItemCreateModel202110 given an JSON string + * Create an instance of ExternalPreferredLineItemCreateModelV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ExternalPreferredLineItemCreateModel202110 - * @throws IOException if the JSON string is invalid with respect to ExternalPreferredLineItemCreateModel202110 + * @return An instance of ExternalPreferredLineItemCreateModelV2 + * @throws IOException if the JSON string is invalid with respect to ExternalPreferredLineItemCreateModelV2 */ - public static ExternalPreferredLineItemCreateModel202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ExternalPreferredLineItemCreateModel202110.class); + public static ExternalPreferredLineItemCreateModelV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalPreferredLineItemCreateModelV2.class); } /** - * Convert an instance of ExternalPreferredLineItemCreateModel202110 to an JSON string + * Convert an instance of ExternalPreferredLineItemCreateModelV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItemUpdateModel202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemUpdateModelV2.java similarity index 82% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItemUpdateModel202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemUpdateModelV2.java index dd18ff3b..fc4d71ac 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItemUpdateModel202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemUpdateModelV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalLineItemCapping202110; -import com.criteo.api.retailmedia.v2023_07.model.ExternalLineItemPage202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemCappingV2; +import com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemPageV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,13 +45,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Model used to update a preferred line item */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ExternalPreferredLineItemUpdateModel202110 { +public class ExternalPreferredLineItemUpdateModelV2 { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; @@ -65,7 +65,7 @@ public class ExternalPreferredLineItemUpdateModel202110 { private LocalDate endDate; /** - * Gets or Sets status + * Line Item Status Enum */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { @@ -184,11 +184,11 @@ public PacingEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAPPING = "capping"; @SerializedName(SERIALIZED_NAME_CAPPING) - private ExternalLineItemCapping202110 capping; + private ExternalLineItemCappingV2 capping; public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) - private ExternalLineItemPage202110 page; + private ExternalLineItemPageV2 page; public static final String SERIALIZED_NAME_BUDGET = "budget"; @SerializedName(SERIALIZED_NAME_BUDGET) @@ -198,10 +198,10 @@ public PacingEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CREATIVE_ID) private String creativeId; - public ExternalPreferredLineItemUpdateModel202110() { + public ExternalPreferredLineItemUpdateModelV2() { } - public ExternalPreferredLineItemUpdateModel202110 name(String name) { + public ExternalPreferredLineItemUpdateModelV2 name(String name) { this.name = name; return this; @@ -223,7 +223,7 @@ public void setName(String name) { } - public ExternalPreferredLineItemUpdateModel202110 startDate(LocalDate startDate) { + public ExternalPreferredLineItemUpdateModelV2 startDate(LocalDate startDate) { this.startDate = startDate; return this; @@ -245,7 +245,7 @@ public void setStartDate(LocalDate startDate) { } - public ExternalPreferredLineItemUpdateModel202110 endDate(LocalDate endDate) { + public ExternalPreferredLineItemUpdateModelV2 endDate(LocalDate endDate) { this.endDate = endDate; return this; @@ -267,14 +267,14 @@ public void setEndDate(LocalDate endDate) { } - public ExternalPreferredLineItemUpdateModel202110 status(StatusEnum status) { + public ExternalPreferredLineItemUpdateModelV2 status(StatusEnum status) { this.status = status; return this; } /** - * Get status + * Line Item Status Enum * @return status **/ @javax.annotation.Nonnull @@ -289,7 +289,7 @@ public void setStatus(StatusEnum status) { } - public ExternalPreferredLineItemUpdateModel202110 pacing(PacingEnum pacing) { + public ExternalPreferredLineItemUpdateModelV2 pacing(PacingEnum pacing) { this.pacing = pacing; return this; @@ -311,7 +311,7 @@ public void setPacing(PacingEnum pacing) { } - public ExternalPreferredLineItemUpdateModel202110 capping(ExternalLineItemCapping202110 capping) { + public ExternalPreferredLineItemUpdateModelV2 capping(ExternalLineItemCappingV2 capping) { this.capping = capping; return this; @@ -323,17 +323,17 @@ public ExternalPreferredLineItemUpdateModel202110 capping(ExternalLineItemCappin **/ @javax.annotation.Nullable - public ExternalLineItemCapping202110 getCapping() { + public ExternalLineItemCappingV2 getCapping() { return capping; } - public void setCapping(ExternalLineItemCapping202110 capping) { + public void setCapping(ExternalLineItemCappingV2 capping) { this.capping = capping; } - public ExternalPreferredLineItemUpdateModel202110 page(ExternalLineItemPage202110 page) { + public ExternalPreferredLineItemUpdateModelV2 page(ExternalLineItemPageV2 page) { this.page = page; return this; @@ -345,17 +345,17 @@ public ExternalPreferredLineItemUpdateModel202110 page(ExternalLineItemPage20211 **/ @javax.annotation.Nullable - public ExternalLineItemPage202110 getPage() { + public ExternalLineItemPageV2 getPage() { return page; } - public void setPage(ExternalLineItemPage202110 page) { + public void setPage(ExternalLineItemPageV2 page) { this.page = page; } - public ExternalPreferredLineItemUpdateModel202110 budget(Double budget) { + public ExternalPreferredLineItemUpdateModelV2 budget(Double budget) { this.budget = budget; return this; @@ -377,7 +377,7 @@ public void setBudget(Double budget) { } - public ExternalPreferredLineItemUpdateModel202110 creativeId(String creativeId) { + public ExternalPreferredLineItemUpdateModelV2 creativeId(String creativeId) { this.creativeId = creativeId; return this; @@ -411,9 +411,9 @@ public void setCreativeId(String creativeId) { * * @param key name of the property * @param value value of the property - * @return the ExternalPreferredLineItemUpdateModel202110 instance itself + * @return the ExternalPreferredLineItemUpdateModelV2 instance itself */ - public ExternalPreferredLineItemUpdateModel202110 putAdditionalProperty(String key, Object value) { + public ExternalPreferredLineItemUpdateModelV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -452,17 +452,17 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ExternalPreferredLineItemUpdateModel202110 externalPreferredLineItemUpdateModel202110 = (ExternalPreferredLineItemUpdateModel202110) o; - return Objects.equals(this.name, externalPreferredLineItemUpdateModel202110.name) && - Objects.equals(this.startDate, externalPreferredLineItemUpdateModel202110.startDate) && - Objects.equals(this.endDate, externalPreferredLineItemUpdateModel202110.endDate) && - Objects.equals(this.status, externalPreferredLineItemUpdateModel202110.status) && - Objects.equals(this.pacing, externalPreferredLineItemUpdateModel202110.pacing) && - Objects.equals(this.capping, externalPreferredLineItemUpdateModel202110.capping) && - Objects.equals(this.page, externalPreferredLineItemUpdateModel202110.page) && - Objects.equals(this.budget, externalPreferredLineItemUpdateModel202110.budget) && - Objects.equals(this.creativeId, externalPreferredLineItemUpdateModel202110.creativeId)&& - Objects.equals(this.additionalProperties, externalPreferredLineItemUpdateModel202110.additionalProperties); + ExternalPreferredLineItemUpdateModelV2 externalPreferredLineItemUpdateModelV2 = (ExternalPreferredLineItemUpdateModelV2) o; + return Objects.equals(this.name, externalPreferredLineItemUpdateModelV2.name) && + Objects.equals(this.startDate, externalPreferredLineItemUpdateModelV2.startDate) && + Objects.equals(this.endDate, externalPreferredLineItemUpdateModelV2.endDate) && + Objects.equals(this.status, externalPreferredLineItemUpdateModelV2.status) && + Objects.equals(this.pacing, externalPreferredLineItemUpdateModelV2.pacing) && + Objects.equals(this.capping, externalPreferredLineItemUpdateModelV2.capping) && + Objects.equals(this.page, externalPreferredLineItemUpdateModelV2.page) && + Objects.equals(this.budget, externalPreferredLineItemUpdateModelV2.budget) && + Objects.equals(this.creativeId, externalPreferredLineItemUpdateModelV2.creativeId)&& + Objects.equals(this.additionalProperties, externalPreferredLineItemUpdateModelV2.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -484,7 +484,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ExternalPreferredLineItemUpdateModel202110 {\n"); + sb.append("class ExternalPreferredLineItemUpdateModelV2 {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); @@ -539,17 +539,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ExternalPreferredLineItemUpdateModel202110 + * @throws IOException if the JSON Object is invalid with respect to ExternalPreferredLineItemUpdateModelV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ExternalPreferredLineItemUpdateModel202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalPreferredLineItemUpdateModel202110 is not found in the empty JSON string", ExternalPreferredLineItemUpdateModel202110.openapiRequiredFields.toString())); + if (!ExternalPreferredLineItemUpdateModelV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalPreferredLineItemUpdateModelV2 is not found in the empty JSON string", ExternalPreferredLineItemUpdateModelV2.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ExternalPreferredLineItemUpdateModel202110.openapiRequiredFields) { + for (String requiredField : ExternalPreferredLineItemUpdateModelV2.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -565,11 +565,11 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `capping` if (jsonObj.get("capping") != null && !jsonObj.get("capping").isJsonNull()) { - ExternalLineItemCapping202110.validateJsonObject(jsonObj.getAsJsonObject("capping")); + ExternalLineItemCappingV2.validateJsonObject(jsonObj.getAsJsonObject("capping")); } // validate the optional field `page` if (jsonObj.get("page") != null && !jsonObj.get("page").isJsonNull()) { - ExternalLineItemPage202110.validateJsonObject(jsonObj.getAsJsonObject("page")); + ExternalLineItemPageV2.validateJsonObject(jsonObj.getAsJsonObject("page")); } if ((jsonObj.get("creativeId") != null && !jsonObj.get("creativeId").isJsonNull()) && !jsonObj.get("creativeId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `creativeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("creativeId").toString())); @@ -580,16 +580,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ExternalPreferredLineItemUpdateModel202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ExternalPreferredLineItemUpdateModel202110' and its subtypes + if (!ExternalPreferredLineItemUpdateModelV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalPreferredLineItemUpdateModelV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ExternalPreferredLineItemUpdateModel202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalPreferredLineItemUpdateModelV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ExternalPreferredLineItemUpdateModel202110 value) throws IOException { + public void write(JsonWriter out, ExternalPreferredLineItemUpdateModelV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -612,11 +612,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ExternalPreferredLineItemUpdateModel202110 read(JsonReader in) throws IOException { + public ExternalPreferredLineItemUpdateModelV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ExternalPreferredLineItemUpdateModel202110 instance = thisAdapter.fromJsonTree(jsonObj); + ExternalPreferredLineItemUpdateModelV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -643,18 +643,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ExternalPreferredLineItemUpdateModel202110 given an JSON string + * Create an instance of ExternalPreferredLineItemUpdateModelV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ExternalPreferredLineItemUpdateModel202110 - * @throws IOException if the JSON string is invalid with respect to ExternalPreferredLineItemUpdateModel202110 + * @return An instance of ExternalPreferredLineItemUpdateModelV2 + * @throws IOException if the JSON string is invalid with respect to ExternalPreferredLineItemUpdateModelV2 */ - public static ExternalPreferredLineItemUpdateModel202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ExternalPreferredLineItemUpdateModel202110.class); + public static ExternalPreferredLineItemUpdateModelV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalPreferredLineItemUpdateModelV2.class); } /** - * Convert an instance of ExternalPreferredLineItemUpdateModel202110 to an JSON string + * Convert an instance of ExternalPreferredLineItemUpdateModelV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItem202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemV2.java similarity index 80% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItem202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemV2.java index 4e5348c9..fa04c368 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPreferredLineItem202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalPreferredLineItemV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,18 +11,19 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalLineItemCapping202110; -import com.criteo.api.retailmedia.v2023_07.model.ExternalLineItemPage202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemCappingV2; +import com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemPageV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; @@ -46,13 +47,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A Retail Media Preferred Line Item used to hold bid settings for one or many promoted products on a single retailer */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ExternalPreferredLineItem202110 { +public class ExternalPreferredLineItemV2 { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; @@ -66,7 +67,7 @@ public class ExternalPreferredLineItem202110 { private LocalDate endDate; /** - * Gets or Sets status + * Line Item Status Enum */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { @@ -162,7 +163,7 @@ public static PacingEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -185,11 +186,11 @@ public PacingEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAPPING = "capping"; @SerializedName(SERIALIZED_NAME_CAPPING) - private ExternalLineItemCapping202110 capping; + private ExternalLineItemCappingV2 capping; public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) - private ExternalLineItemPage202110 page; + private ExternalLineItemPageV2 page; public static final String SERIALIZED_NAME_TARGET_RETAILER_ID = "targetRetailerId"; @SerializedName(SERIALIZED_NAME_TARGET_RETAILER_ID) @@ -197,7 +198,7 @@ public PacingEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_BUDGET = "budget"; @SerializedName(SERIALIZED_NAME_BUDGET) - private Double budget; + private BigDecimal budget; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) @@ -205,11 +206,11 @@ public PacingEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_BUDGET_SPENT = "budgetSpent"; @SerializedName(SERIALIZED_NAME_BUDGET_SPENT) - private Double budgetSpent; + private BigDecimal budgetSpent; public static final String SERIALIZED_NAME_BUDGET_REMAINING = "budgetRemaining"; @SerializedName(SERIALIZED_NAME_BUDGET_REMAINING) - private Double budgetRemaining; + private BigDecimal budgetRemaining; public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @@ -223,10 +224,10 @@ public PacingEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CREATIVE_ID) private String creativeId; - public ExternalPreferredLineItem202110() { + public ExternalPreferredLineItemV2() { } - public ExternalPreferredLineItem202110 name(String name) { + public ExternalPreferredLineItemV2 name(String name) { this.name = name; return this; @@ -248,7 +249,7 @@ public void setName(String name) { } - public ExternalPreferredLineItem202110 startDate(LocalDate startDate) { + public ExternalPreferredLineItemV2 startDate(LocalDate startDate) { this.startDate = startDate; return this; @@ -270,7 +271,7 @@ public void setStartDate(LocalDate startDate) { } - public ExternalPreferredLineItem202110 endDate(LocalDate endDate) { + public ExternalPreferredLineItemV2 endDate(LocalDate endDate) { this.endDate = endDate; return this; @@ -292,14 +293,14 @@ public void setEndDate(LocalDate endDate) { } - public ExternalPreferredLineItem202110 status(StatusEnum status) { + public ExternalPreferredLineItemV2 status(StatusEnum status) { this.status = status; return this; } /** - * Get status + * Line Item Status Enum * @return status **/ @javax.annotation.Nonnull @@ -314,7 +315,7 @@ public void setStatus(StatusEnum status) { } - public ExternalPreferredLineItem202110 pacing(PacingEnum pacing) { + public ExternalPreferredLineItemV2 pacing(PacingEnum pacing) { this.pacing = pacing; return this; @@ -324,7 +325,7 @@ public ExternalPreferredLineItem202110 pacing(PacingEnum pacing) { * Get pacing * @return pacing **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public PacingEnum getPacing() { return pacing; @@ -336,7 +337,7 @@ public void setPacing(PacingEnum pacing) { } - public ExternalPreferredLineItem202110 capping(ExternalLineItemCapping202110 capping) { + public ExternalPreferredLineItemV2 capping(ExternalLineItemCappingV2 capping) { this.capping = capping; return this; @@ -348,17 +349,17 @@ public ExternalPreferredLineItem202110 capping(ExternalLineItemCapping202110 cap **/ @javax.annotation.Nullable - public ExternalLineItemCapping202110 getCapping() { + public ExternalLineItemCappingV2 getCapping() { return capping; } - public void setCapping(ExternalLineItemCapping202110 capping) { + public void setCapping(ExternalLineItemCappingV2 capping) { this.capping = capping; } - public ExternalPreferredLineItem202110 page(ExternalLineItemPage202110 page) { + public ExternalPreferredLineItemV2 page(ExternalLineItemPageV2 page) { this.page = page; return this; @@ -368,19 +369,19 @@ public ExternalPreferredLineItem202110 page(ExternalLineItemPage202110 page) { * Get page * @return page **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable - public ExternalLineItemPage202110 getPage() { + public ExternalLineItemPageV2 getPage() { return page; } - public void setPage(ExternalLineItemPage202110 page) { + public void setPage(ExternalLineItemPageV2 page) { this.page = page; } - public ExternalPreferredLineItem202110 targetRetailerId(String targetRetailerId) { + public ExternalPreferredLineItemV2 targetRetailerId(String targetRetailerId) { this.targetRetailerId = targetRetailerId; return this; @@ -402,7 +403,7 @@ public void setTargetRetailerId(String targetRetailerId) { } - public ExternalPreferredLineItem202110 budget(Double budget) { + public ExternalPreferredLineItemV2 budget(BigDecimal budget) { this.budget = budget; return this; @@ -412,19 +413,19 @@ public ExternalPreferredLineItem202110 budget(Double budget) { * Get budget * @return budget **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable - public Double getBudget() { + public BigDecimal getBudget() { return budget; } - public void setBudget(Double budget) { + public void setBudget(BigDecimal budget) { this.budget = budget; } - public ExternalPreferredLineItem202110 campaignId(String campaignId) { + public ExternalPreferredLineItemV2 campaignId(String campaignId) { this.campaignId = campaignId; return this; @@ -446,7 +447,7 @@ public void setCampaignId(String campaignId) { } - public ExternalPreferredLineItem202110 budgetSpent(Double budgetSpent) { + public ExternalPreferredLineItemV2 budgetSpent(BigDecimal budgetSpent) { this.budgetSpent = budgetSpent; return this; @@ -458,17 +459,17 @@ public ExternalPreferredLineItem202110 budgetSpent(Double budgetSpent) { **/ @javax.annotation.Nullable - public Double getBudgetSpent() { + public BigDecimal getBudgetSpent() { return budgetSpent; } - public void setBudgetSpent(Double budgetSpent) { + public void setBudgetSpent(BigDecimal budgetSpent) { this.budgetSpent = budgetSpent; } - public ExternalPreferredLineItem202110 budgetRemaining(Double budgetRemaining) { + public ExternalPreferredLineItemV2 budgetRemaining(BigDecimal budgetRemaining) { this.budgetRemaining = budgetRemaining; return this; @@ -480,17 +481,17 @@ public ExternalPreferredLineItem202110 budgetRemaining(Double budgetRemaining) { **/ @javax.annotation.Nullable - public Double getBudgetRemaining() { + public BigDecimal getBudgetRemaining() { return budgetRemaining; } - public void setBudgetRemaining(Double budgetRemaining) { + public void setBudgetRemaining(BigDecimal budgetRemaining) { this.budgetRemaining = budgetRemaining; } - public ExternalPreferredLineItem202110 createdAt(OffsetDateTime createdAt) { + public ExternalPreferredLineItemV2 createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; return this; @@ -512,7 +513,7 @@ public void setCreatedAt(OffsetDateTime createdAt) { } - public ExternalPreferredLineItem202110 updatedAt(OffsetDateTime updatedAt) { + public ExternalPreferredLineItemV2 updatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; @@ -534,14 +535,14 @@ public void setUpdatedAt(OffsetDateTime updatedAt) { } - public ExternalPreferredLineItem202110 creativeId(String creativeId) { + public ExternalPreferredLineItemV2 creativeId(String creativeId) { this.creativeId = creativeId; return this; } /** - * Get creativeId + * External creative Id * @return creativeId **/ @javax.annotation.Nullable @@ -568,9 +569,9 @@ public void setCreativeId(String creativeId) { * * @param key name of the property * @param value value of the property - * @return the ExternalPreferredLineItem202110 instance itself + * @return the ExternalPreferredLineItemV2 instance itself */ - public ExternalPreferredLineItem202110 putAdditionalProperty(String key, Object value) { + public ExternalPreferredLineItemV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -609,23 +610,23 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ExternalPreferredLineItem202110 externalPreferredLineItem202110 = (ExternalPreferredLineItem202110) o; - return Objects.equals(this.name, externalPreferredLineItem202110.name) && - Objects.equals(this.startDate, externalPreferredLineItem202110.startDate) && - Objects.equals(this.endDate, externalPreferredLineItem202110.endDate) && - Objects.equals(this.status, externalPreferredLineItem202110.status) && - Objects.equals(this.pacing, externalPreferredLineItem202110.pacing) && - Objects.equals(this.capping, externalPreferredLineItem202110.capping) && - Objects.equals(this.page, externalPreferredLineItem202110.page) && - Objects.equals(this.targetRetailerId, externalPreferredLineItem202110.targetRetailerId) && - Objects.equals(this.budget, externalPreferredLineItem202110.budget) && - Objects.equals(this.campaignId, externalPreferredLineItem202110.campaignId) && - Objects.equals(this.budgetSpent, externalPreferredLineItem202110.budgetSpent) && - Objects.equals(this.budgetRemaining, externalPreferredLineItem202110.budgetRemaining) && - Objects.equals(this.createdAt, externalPreferredLineItem202110.createdAt) && - Objects.equals(this.updatedAt, externalPreferredLineItem202110.updatedAt) && - Objects.equals(this.creativeId, externalPreferredLineItem202110.creativeId)&& - Objects.equals(this.additionalProperties, externalPreferredLineItem202110.additionalProperties); + ExternalPreferredLineItemV2 externalPreferredLineItemV2 = (ExternalPreferredLineItemV2) o; + return Objects.equals(this.name, externalPreferredLineItemV2.name) && + Objects.equals(this.startDate, externalPreferredLineItemV2.startDate) && + Objects.equals(this.endDate, externalPreferredLineItemV2.endDate) && + Objects.equals(this.status, externalPreferredLineItemV2.status) && + Objects.equals(this.pacing, externalPreferredLineItemV2.pacing) && + Objects.equals(this.capping, externalPreferredLineItemV2.capping) && + Objects.equals(this.page, externalPreferredLineItemV2.page) && + Objects.equals(this.targetRetailerId, externalPreferredLineItemV2.targetRetailerId) && + Objects.equals(this.budget, externalPreferredLineItemV2.budget) && + Objects.equals(this.campaignId, externalPreferredLineItemV2.campaignId) && + Objects.equals(this.budgetSpent, externalPreferredLineItemV2.budgetSpent) && + Objects.equals(this.budgetRemaining, externalPreferredLineItemV2.budgetRemaining) && + Objects.equals(this.createdAt, externalPreferredLineItemV2.createdAt) && + Objects.equals(this.updatedAt, externalPreferredLineItemV2.updatedAt) && + Objects.equals(this.creativeId, externalPreferredLineItemV2.creativeId)&& + Objects.equals(this.additionalProperties, externalPreferredLineItemV2.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -647,7 +648,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ExternalPreferredLineItem202110 {\n"); + sb.append("class ExternalPreferredLineItemV2 {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); @@ -708,10 +709,7 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("startDate"); openapiRequiredFields.add("endDate"); openapiRequiredFields.add("status"); - openapiRequiredFields.add("pacing"); - openapiRequiredFields.add("page"); openapiRequiredFields.add("targetRetailerId"); - openapiRequiredFields.add("budget"); openapiRequiredFields.add("campaignId"); openapiRequiredFields.add("createdAt"); openapiRequiredFields.add("updatedAt"); @@ -721,17 +719,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ExternalPreferredLineItem202110 + * @throws IOException if the JSON Object is invalid with respect to ExternalPreferredLineItemV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ExternalPreferredLineItem202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalPreferredLineItem202110 is not found in the empty JSON string", ExternalPreferredLineItem202110.openapiRequiredFields.toString())); + if (!ExternalPreferredLineItemV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalPreferredLineItemV2 is not found in the empty JSON string", ExternalPreferredLineItemV2.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ExternalPreferredLineItem202110.openapiRequiredFields) { + for (String requiredField : ExternalPreferredLineItemV2.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -742,15 +740,17 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (!jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } - if (!jsonObj.get("pacing").isJsonPrimitive()) { + if ((jsonObj.get("pacing") != null && !jsonObj.get("pacing").isJsonNull()) && !jsonObj.get("pacing").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `pacing` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pacing").toString())); } // validate the optional field `capping` if (jsonObj.get("capping") != null && !jsonObj.get("capping").isJsonNull()) { - ExternalLineItemCapping202110.validateJsonObject(jsonObj.getAsJsonObject("capping")); + ExternalLineItemCappingV2.validateJsonObject(jsonObj.getAsJsonObject("capping")); + } + // validate the optional field `page` + if (jsonObj.get("page") != null && !jsonObj.get("page").isJsonNull()) { + ExternalLineItemPageV2.validateJsonObject(jsonObj.getAsJsonObject("page")); } - // validate the required field `page` - ExternalLineItemPage202110.validateJsonObject(jsonObj.getAsJsonObject("page")); if (!jsonObj.get("targetRetailerId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `targetRetailerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetRetailerId").toString())); } @@ -766,16 +766,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ExternalPreferredLineItem202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ExternalPreferredLineItem202110' and its subtypes + if (!ExternalPreferredLineItemV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalPreferredLineItemV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ExternalPreferredLineItem202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalPreferredLineItemV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ExternalPreferredLineItem202110 value) throws IOException { + public void write(JsonWriter out, ExternalPreferredLineItemV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -798,11 +798,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ExternalPreferredLineItem202110 read(JsonReader in) throws IOException { + public ExternalPreferredLineItemV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ExternalPreferredLineItem202110 instance = thisAdapter.fromJsonTree(jsonObj); + ExternalPreferredLineItemV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -829,18 +829,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ExternalPreferredLineItem202110 given an JSON string + * Create an instance of ExternalPreferredLineItemV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ExternalPreferredLineItem202110 - * @throws IOException if the JSON string is invalid with respect to ExternalPreferredLineItem202110 + * @return An instance of ExternalPreferredLineItemV2 + * @throws IOException if the JSON string is invalid with respect to ExternalPreferredLineItemV2 */ - public static ExternalPreferredLineItem202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ExternalPreferredLineItem202110.class); + public static ExternalPreferredLineItemV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalPreferredLineItemV2.class); } /** - * Convert an instance of ExternalPreferredLineItem202110 to an JSON string + * Convert an instance of ExternalPreferredLineItemV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalRetailer.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalRetailer.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalRetailer.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalRetailer.java index 40c4c0c1..8f6bd4f3 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalRetailer.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalRetailer.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A Retail Media Retailer used to represent a selection of products from multiple brands diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalRetailerPages202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalRetailerPages202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalRetailerPages202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalRetailerPages202110.java index 8b1218f8..073e4491 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalRetailerPages202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalRetailerPages202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Wraps a list of valid pages for a retailer diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalStoreIdsUpdateModel202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalStoreIdsUpdateModel202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalStoreIdsUpdateModel202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalStoreIdsUpdateModel202110.java index 32f275c4..2eed9fed 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalStoreIdsUpdateModel202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalStoreIdsUpdateModel202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Update model for updating store target ids diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalStoreTarget202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalStoreTarget202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalStoreTarget202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalStoreTarget202110.java index bcdc1f99..33857902 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalStoreTarget202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalStoreTarget202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Identifies store targeting for a line item diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalTemplateVariableValue.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalTemplateVariableValue.java new file mode 100644 index 00000000..dd2e56e5 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalTemplateVariableValue.java @@ -0,0 +1,492 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ExternalChoiceVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.ExternalColorVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.ExternalFilesVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.ExternalHyperlinkVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.ExternalTextVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.ExternalVideoVariableValue; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A value for a variable in a creative template. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExternalTemplateVariableValue { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TEXT_VARIABLE_VALUE = "textVariableValue"; + @SerializedName(SERIALIZED_NAME_TEXT_VARIABLE_VALUE) + private ExternalTextVariableValue textVariableValue; + + public static final String SERIALIZED_NAME_CHOICE_VARIABLE_VALUE = "choiceVariableValue"; + @SerializedName(SERIALIZED_NAME_CHOICE_VARIABLE_VALUE) + private ExternalChoiceVariableValue choiceVariableValue; + + public static final String SERIALIZED_NAME_COLOR_VARIABLE_VALUE = "colorVariableValue"; + @SerializedName(SERIALIZED_NAME_COLOR_VARIABLE_VALUE) + private ExternalColorVariableValue colorVariableValue; + + public static final String SERIALIZED_NAME_FILES_VARIABLE_VALUE = "filesVariableValue"; + @SerializedName(SERIALIZED_NAME_FILES_VARIABLE_VALUE) + private ExternalFilesVariableValue filesVariableValue; + + public static final String SERIALIZED_NAME_HYPERLINK_VARIABLE_VALUE = "hyperlinkVariableValue"; + @SerializedName(SERIALIZED_NAME_HYPERLINK_VARIABLE_VALUE) + private ExternalHyperlinkVariableValue hyperlinkVariableValue; + + public static final String SERIALIZED_NAME_VIDEO_VARIABLE_VALUE = "videoVariableValue"; + @SerializedName(SERIALIZED_NAME_VIDEO_VARIABLE_VALUE) + private ExternalVideoVariableValue videoVariableValue; + + public ExternalTemplateVariableValue() { + } + + public ExternalTemplateVariableValue id(String id) { + + this.id = id; + return this; + } + + /** + * The id of the template variable the value is applied to + * @return id + **/ + @javax.annotation.Nonnull + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public ExternalTemplateVariableValue textVariableValue(ExternalTextVariableValue textVariableValue) { + + this.textVariableValue = textVariableValue; + return this; + } + + /** + * Get textVariableValue + * @return textVariableValue + **/ + @javax.annotation.Nullable + + public ExternalTextVariableValue getTextVariableValue() { + return textVariableValue; + } + + + public void setTextVariableValue(ExternalTextVariableValue textVariableValue) { + this.textVariableValue = textVariableValue; + } + + + public ExternalTemplateVariableValue choiceVariableValue(ExternalChoiceVariableValue choiceVariableValue) { + + this.choiceVariableValue = choiceVariableValue; + return this; + } + + /** + * Get choiceVariableValue + * @return choiceVariableValue + **/ + @javax.annotation.Nullable + + public ExternalChoiceVariableValue getChoiceVariableValue() { + return choiceVariableValue; + } + + + public void setChoiceVariableValue(ExternalChoiceVariableValue choiceVariableValue) { + this.choiceVariableValue = choiceVariableValue; + } + + + public ExternalTemplateVariableValue colorVariableValue(ExternalColorVariableValue colorVariableValue) { + + this.colorVariableValue = colorVariableValue; + return this; + } + + /** + * Get colorVariableValue + * @return colorVariableValue + **/ + @javax.annotation.Nullable + + public ExternalColorVariableValue getColorVariableValue() { + return colorVariableValue; + } + + + public void setColorVariableValue(ExternalColorVariableValue colorVariableValue) { + this.colorVariableValue = colorVariableValue; + } + + + public ExternalTemplateVariableValue filesVariableValue(ExternalFilesVariableValue filesVariableValue) { + + this.filesVariableValue = filesVariableValue; + return this; + } + + /** + * Get filesVariableValue + * @return filesVariableValue + **/ + @javax.annotation.Nullable + + public ExternalFilesVariableValue getFilesVariableValue() { + return filesVariableValue; + } + + + public void setFilesVariableValue(ExternalFilesVariableValue filesVariableValue) { + this.filesVariableValue = filesVariableValue; + } + + + public ExternalTemplateVariableValue hyperlinkVariableValue(ExternalHyperlinkVariableValue hyperlinkVariableValue) { + + this.hyperlinkVariableValue = hyperlinkVariableValue; + return this; + } + + /** + * Get hyperlinkVariableValue + * @return hyperlinkVariableValue + **/ + @javax.annotation.Nullable + + public ExternalHyperlinkVariableValue getHyperlinkVariableValue() { + return hyperlinkVariableValue; + } + + + public void setHyperlinkVariableValue(ExternalHyperlinkVariableValue hyperlinkVariableValue) { + this.hyperlinkVariableValue = hyperlinkVariableValue; + } + + + public ExternalTemplateVariableValue videoVariableValue(ExternalVideoVariableValue videoVariableValue) { + + this.videoVariableValue = videoVariableValue; + return this; + } + + /** + * Get videoVariableValue + * @return videoVariableValue + **/ + @javax.annotation.Nullable + + public ExternalVideoVariableValue getVideoVariableValue() { + return videoVariableValue; + } + + + public void setVideoVariableValue(ExternalVideoVariableValue videoVariableValue) { + this.videoVariableValue = videoVariableValue; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ExternalTemplateVariableValue instance itself + */ + public ExternalTemplateVariableValue putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalTemplateVariableValue externalTemplateVariableValue = (ExternalTemplateVariableValue) o; + return Objects.equals(this.id, externalTemplateVariableValue.id) && + Objects.equals(this.textVariableValue, externalTemplateVariableValue.textVariableValue) && + Objects.equals(this.choiceVariableValue, externalTemplateVariableValue.choiceVariableValue) && + Objects.equals(this.colorVariableValue, externalTemplateVariableValue.colorVariableValue) && + Objects.equals(this.filesVariableValue, externalTemplateVariableValue.filesVariableValue) && + Objects.equals(this.hyperlinkVariableValue, externalTemplateVariableValue.hyperlinkVariableValue) && + Objects.equals(this.videoVariableValue, externalTemplateVariableValue.videoVariableValue)&& + Objects.equals(this.additionalProperties, externalTemplateVariableValue.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(id, textVariableValue, choiceVariableValue, colorVariableValue, filesVariableValue, hyperlinkVariableValue, videoVariableValue, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalTemplateVariableValue {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" textVariableValue: ").append(toIndentedString(textVariableValue)).append("\n"); + sb.append(" choiceVariableValue: ").append(toIndentedString(choiceVariableValue)).append("\n"); + sb.append(" colorVariableValue: ").append(toIndentedString(colorVariableValue)).append("\n"); + sb.append(" filesVariableValue: ").append(toIndentedString(filesVariableValue)).append("\n"); + sb.append(" hyperlinkVariableValue: ").append(toIndentedString(hyperlinkVariableValue)).append("\n"); + sb.append(" videoVariableValue: ").append(toIndentedString(videoVariableValue)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("id"); + openapiFields.add("textVariableValue"); + openapiFields.add("choiceVariableValue"); + openapiFields.add("colorVariableValue"); + openapiFields.add("filesVariableValue"); + openapiFields.add("hyperlinkVariableValue"); + openapiFields.add("videoVariableValue"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("id"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ExternalTemplateVariableValue + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ExternalTemplateVariableValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalTemplateVariableValue is not found in the empty JSON string", ExternalTemplateVariableValue.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ExternalTemplateVariableValue.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + // validate the optional field `textVariableValue` + if (jsonObj.get("textVariableValue") != null && !jsonObj.get("textVariableValue").isJsonNull()) { + ExternalTextVariableValue.validateJsonObject(jsonObj.getAsJsonObject("textVariableValue")); + } + // validate the optional field `choiceVariableValue` + if (jsonObj.get("choiceVariableValue") != null && !jsonObj.get("choiceVariableValue").isJsonNull()) { + ExternalChoiceVariableValue.validateJsonObject(jsonObj.getAsJsonObject("choiceVariableValue")); + } + // validate the optional field `colorVariableValue` + if (jsonObj.get("colorVariableValue") != null && !jsonObj.get("colorVariableValue").isJsonNull()) { + ExternalColorVariableValue.validateJsonObject(jsonObj.getAsJsonObject("colorVariableValue")); + } + // validate the optional field `filesVariableValue` + if (jsonObj.get("filesVariableValue") != null && !jsonObj.get("filesVariableValue").isJsonNull()) { + ExternalFilesVariableValue.validateJsonObject(jsonObj.getAsJsonObject("filesVariableValue")); + } + // validate the optional field `hyperlinkVariableValue` + if (jsonObj.get("hyperlinkVariableValue") != null && !jsonObj.get("hyperlinkVariableValue").isJsonNull()) { + ExternalHyperlinkVariableValue.validateJsonObject(jsonObj.getAsJsonObject("hyperlinkVariableValue")); + } + // validate the optional field `videoVariableValue` + if (jsonObj.get("videoVariableValue") != null && !jsonObj.get("videoVariableValue").isJsonNull()) { + ExternalVideoVariableValue.validateJsonObject(jsonObj.getAsJsonObject("videoVariableValue")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ExternalTemplateVariableValue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalTemplateVariableValue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalTemplateVariableValue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ExternalTemplateVariableValue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ExternalTemplateVariableValue read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ExternalTemplateVariableValue instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ExternalTemplateVariableValue given an JSON string + * + * @param jsonString JSON string + * @return An instance of ExternalTemplateVariableValue + * @throws IOException if the JSON string is invalid with respect to ExternalTemplateVariableValue + */ + public static ExternalTemplateVariableValue fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalTemplateVariableValue.class); + } + + /** + * Convert an instance of ExternalTemplateVariableValue to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalTextVariableValue.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalTextVariableValue.java new file mode 100644 index 00000000..b885aac3 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalTextVariableValue.java @@ -0,0 +1,292 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A value of a template text variable + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExternalTextVariableValue { + public static final String SERIALIZED_NAME_TEXT = "text"; + @SerializedName(SERIALIZED_NAME_TEXT) + private String text; + + public ExternalTextVariableValue() { + } + + public ExternalTextVariableValue text(String text) { + + this.text = text; + return this; + } + + /** + * The displayed text + * @return text + **/ + @javax.annotation.Nullable + + public String getText() { + return text; + } + + + public void setText(String text) { + this.text = text; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ExternalTextVariableValue instance itself + */ + public ExternalTextVariableValue putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalTextVariableValue externalTextVariableValue = (ExternalTextVariableValue) o; + return Objects.equals(this.text, externalTextVariableValue.text)&& + Objects.equals(this.additionalProperties, externalTextVariableValue.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(text, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalTextVariableValue {\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("text"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ExternalTextVariableValue + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ExternalTextVariableValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalTextVariableValue is not found in the empty JSON string", ExternalTextVariableValue.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ExternalTextVariableValue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalTextVariableValue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalTextVariableValue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ExternalTextVariableValue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ExternalTextVariableValue read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ExternalTextVariableValue instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ExternalTextVariableValue given an JSON string + * + * @param jsonString JSON string + * @return An instance of ExternalTextVariableValue + * @throws IOException if the JSON string is invalid with respect to ExternalTextVariableValue + */ + public static ExternalTextVariableValue fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalTextVariableValue.class); + } + + /** + * Convert an instance of ExternalTextVariableValue to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalVideoVariableValue.java similarity index 60% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalVideoVariableValue.java index e568b1ba..8280b82c 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ExternalVideoVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,10 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceUserBehaviorCreateV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,91 +41,117 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Audience definition + * A value of a template video variable */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceCreateEntityV2 { - public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; - @SerializedName(SERIALIZED_NAME_RETAILER_ID) - private Long retailerId; +public class ExternalVideoVariableValue { + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; - public static final String SERIALIZED_NAME_USER_BEHAVIOR_DETAILS = "userBehaviorDetails"; - @SerializedName(SERIALIZED_NAME_USER_BEHAVIOR_DETAILS) - private RmLegacyAudienceUserBehaviorCreateV2 userBehaviorDetails; + public static final String SERIALIZED_NAME_WIDTH = "width"; + @SerializedName(SERIALIZED_NAME_WIDTH) + private Integer width; - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; + public static final String SERIALIZED_NAME_HEIGHT = "height"; + @SerializedName(SERIALIZED_NAME_HEIGHT) + private Integer height; - public RmLegacyAudienceCreateEntityV2() { + public static final String SERIALIZED_NAME_DURATION = "duration"; + @SerializedName(SERIALIZED_NAME_DURATION) + private String duration; + + public ExternalVideoVariableValue() { + } + + public ExternalVideoVariableValue url(String url) { + + this.url = url; + return this; + } + + /** + * The vast video url + * @return url + **/ + @javax.annotation.Nonnull + + public String getUrl() { + return url; + } + + + public void setUrl(String url) { + this.url = url; } - public RmLegacyAudienceCreateEntityV2 retailerId(Long retailerId) { + + public ExternalVideoVariableValue width(Integer width) { - this.retailerId = retailerId; + this.width = width; return this; } /** - * ID of the retailer associated with this audience - * @return retailerId + * The video's width + * @return width **/ @javax.annotation.Nonnull - public Long getRetailerId() { - return retailerId; + public Integer getWidth() { + return width; } - public void setRetailerId(Long retailerId) { - this.retailerId = retailerId; + public void setWidth(Integer width) { + this.width = width; } - public RmLegacyAudienceCreateEntityV2 userBehaviorDetails(RmLegacyAudienceUserBehaviorCreateV2 userBehaviorDetails) { + public ExternalVideoVariableValue height(Integer height) { - this.userBehaviorDetails = userBehaviorDetails; + this.height = height; return this; } /** - * Get userBehaviorDetails - * @return userBehaviorDetails + * The video's height + * @return height **/ @javax.annotation.Nonnull - public RmLegacyAudienceUserBehaviorCreateV2 getUserBehaviorDetails() { - return userBehaviorDetails; + public Integer getHeight() { + return height; } - public void setUserBehaviorDetails(RmLegacyAudienceUserBehaviorCreateV2 userBehaviorDetails) { - this.userBehaviorDetails = userBehaviorDetails; + public void setHeight(Integer height) { + this.height = height; } - public RmLegacyAudienceCreateEntityV2 name(String name) { + public ExternalVideoVariableValue duration(String duration) { - this.name = name; + this.duration = duration; return this; } /** - * Name of the audience - * @return name + * The video's duration + * @return duration **/ @javax.annotation.Nonnull - public String getName() { - return name; + public String getDuration() { + return duration; } - public void setName(String name) { - this.name = name; + public void setDuration(String duration) { + this.duration = duration; } /** @@ -142,9 +167,9 @@ public void setName(String name) { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceCreateEntityV2 instance itself + * @return the ExternalVideoVariableValue instance itself */ - public RmLegacyAudienceCreateEntityV2 putAdditionalProperty(String key, Object value) { + public ExternalVideoVariableValue putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -183,25 +208,27 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceCreateEntityV2 rmLegacyAudienceCreateEntityV2 = (RmLegacyAudienceCreateEntityV2) o; - return Objects.equals(this.retailerId, rmLegacyAudienceCreateEntityV2.retailerId) && - Objects.equals(this.userBehaviorDetails, rmLegacyAudienceCreateEntityV2.userBehaviorDetails) && - Objects.equals(this.name, rmLegacyAudienceCreateEntityV2.name)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceCreateEntityV2.additionalProperties); + ExternalVideoVariableValue externalVideoVariableValue = (ExternalVideoVariableValue) o; + return Objects.equals(this.url, externalVideoVariableValue.url) && + Objects.equals(this.width, externalVideoVariableValue.width) && + Objects.equals(this.height, externalVideoVariableValue.height) && + Objects.equals(this.duration, externalVideoVariableValue.duration)&& + Objects.equals(this.additionalProperties, externalVideoVariableValue.additionalProperties); } @Override public int hashCode() { - return Objects.hash(retailerId, userBehaviorDetails, name, additionalProperties); + return Objects.hash(url, width, height, duration, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceCreateEntityV2 {\n"); - sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); - sb.append(" userBehaviorDetails: ").append(toIndentedString(userBehaviorDetails)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("class ExternalVideoVariableValue {\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" width: ").append(toIndentedString(width)).append("\n"); + sb.append(" height: ").append(toIndentedString(height)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -225,40 +252,43 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("retailerId"); - openapiFields.add("userBehaviorDetails"); - openapiFields.add("name"); + openapiFields.add("url"); + openapiFields.add("width"); + openapiFields.add("height"); + openapiFields.add("duration"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("retailerId"); - openapiRequiredFields.add("userBehaviorDetails"); - openapiRequiredFields.add("name"); + openapiRequiredFields.add("url"); + openapiRequiredFields.add("width"); + openapiRequiredFields.add("height"); + openapiRequiredFields.add("duration"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceCreateEntityV2 + * @throws IOException if the JSON Object is invalid with respect to ExternalVideoVariableValue */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceCreateEntityV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceCreateEntityV2 is not found in the empty JSON string", RmLegacyAudienceCreateEntityV2.openapiRequiredFields.toString())); + if (!ExternalVideoVariableValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalVideoVariableValue is not found in the empty JSON string", ExternalVideoVariableValue.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacyAudienceCreateEntityV2.openapiRequiredFields) { + for (String requiredField : ExternalVideoVariableValue.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - // validate the required field `userBehaviorDetails` - RmLegacyAudienceUserBehaviorCreateV2.validateJsonObject(jsonObj.getAsJsonObject("userBehaviorDetails")); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + if (!jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + if (!jsonObj.get("duration").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } } @@ -266,16 +296,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceCreateEntityV2.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceCreateEntityV2' and its subtypes + if (!ExternalVideoVariableValue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalVideoVariableValue' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceCreateEntityV2.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalVideoVariableValue.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceCreateEntityV2 value) throws IOException { + public void write(JsonWriter out, ExternalVideoVariableValue value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -298,11 +328,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceCreateEntityV2 read(JsonReader in) throws IOException { + public ExternalVideoVariableValue read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceCreateEntityV2 instance = thisAdapter.fromJsonTree(jsonObj); + ExternalVideoVariableValue instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -329,18 +359,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceCreateEntityV2 given an JSON string + * Create an instance of ExternalVideoVariableValue given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceCreateEntityV2 - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceCreateEntityV2 + * @return An instance of ExternalVideoVariableValue + * @throws IOException if the JSON string is invalid with respect to ExternalVideoVariableValue */ - public static RmLegacyAudienceCreateEntityV2 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceCreateEntityV2.class); + public static ExternalVideoVariableValue fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalVideoVariableValue.class); } /** - * Convert an instance of RmLegacyAudienceCreateEntityV2 to an JSON string + * Convert an instance of ExternalVideoVariableValue to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/FilesVariableValue.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/FilesVariableValue.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/FilesVariableValue.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/FilesVariableValue.java index 566b9590..cfd8ff5f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/FilesVariableValue.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/FilesVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A value of a template file variable (one or several files), like images in a creative diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/FilesVariablesSpecification.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/FilesVariablesSpecification.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/FilesVariablesSpecification.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/FilesVariablesSpecification.java index a9d0b6d6..05dfd4b5 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/FilesVariablesSpecification.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/FilesVariablesSpecification.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Specification of a file variable diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/HyperlinkVariableValue.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/HyperlinkVariableValue.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/HyperlinkVariableValue.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/HyperlinkVariableValue.java index 7829a63f..f2e0ee95 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/HyperlinkVariableValue.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/HyperlinkVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -41,7 +41,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A value of a template hyperlink variable diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputKeywordsModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputKeywordsModel.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputKeywordsModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputKeywordsModel.java index 33a344b3..2da050af 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputKeywordsModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputKeywordsModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * The keywords to be added or removed from a line item. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputResourceOfAuctionLineItemCreateModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputResourceOfAuctionLineItemCreateModel.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputResourceOfAuctionLineItemCreateModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputResourceOfAuctionLineItemCreateModel.java index 5d51a12b..9da4f477 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputResourceOfAuctionLineItemCreateModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputResourceOfAuctionLineItemCreateModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalAuctionLineItemCreateModel; +import com.criteo.api.retailmedia.v2024_10.model.ExternalAuctionLineItemCreateModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputResourceOfPreferredLineItemCreateModel202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputResourceOfPreferredLineItemCreateModelV2.java similarity index 79% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputResourceOfPreferredLineItemCreateModel202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputResourceOfPreferredLineItemCreateModelV2.java index e8bf7cb9..e05fad26 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/InputResourceOfPreferredLineItemCreateModel202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/InputResourceOfPreferredLineItemCreateModelV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalPreferredLineItemCreateModel202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalPreferredLineItemCreateModelV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,25 +42,25 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a Resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class InputResourceOfPreferredLineItemCreateModel202110 { +public class InputResourceOfPreferredLineItemCreateModelV2 { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private ExternalPreferredLineItemCreateModel202110 attributes; + private ExternalPreferredLineItemCreateModelV2 attributes; - public InputResourceOfPreferredLineItemCreateModel202110() { + public InputResourceOfPreferredLineItemCreateModelV2() { } - public InputResourceOfPreferredLineItemCreateModel202110 type(String type) { + public InputResourceOfPreferredLineItemCreateModelV2 type(String type) { this.type = type; return this; @@ -82,7 +82,7 @@ public void setType(String type) { } - public InputResourceOfPreferredLineItemCreateModel202110 attributes(ExternalPreferredLineItemCreateModel202110 attributes) { + public InputResourceOfPreferredLineItemCreateModelV2 attributes(ExternalPreferredLineItemCreateModelV2 attributes) { this.attributes = attributes; return this; @@ -94,12 +94,12 @@ public InputResourceOfPreferredLineItemCreateModel202110 attributes(ExternalPref **/ @javax.annotation.Nullable - public ExternalPreferredLineItemCreateModel202110 getAttributes() { + public ExternalPreferredLineItemCreateModelV2 getAttributes() { return attributes; } - public void setAttributes(ExternalPreferredLineItemCreateModel202110 attributes) { + public void setAttributes(ExternalPreferredLineItemCreateModelV2 attributes) { this.attributes = attributes; } @@ -116,9 +116,9 @@ public void setAttributes(ExternalPreferredLineItemCreateModel202110 attributes) * * @param key name of the property * @param value value of the property - * @return the InputResourceOfPreferredLineItemCreateModel202110 instance itself + * @return the InputResourceOfPreferredLineItemCreateModelV2 instance itself */ - public InputResourceOfPreferredLineItemCreateModel202110 putAdditionalProperty(String key, Object value) { + public InputResourceOfPreferredLineItemCreateModelV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -157,10 +157,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InputResourceOfPreferredLineItemCreateModel202110 inputResourceOfPreferredLineItemCreateModel202110 = (InputResourceOfPreferredLineItemCreateModel202110) o; - return Objects.equals(this.type, inputResourceOfPreferredLineItemCreateModel202110.type) && - Objects.equals(this.attributes, inputResourceOfPreferredLineItemCreateModel202110.attributes)&& - Objects.equals(this.additionalProperties, inputResourceOfPreferredLineItemCreateModel202110.additionalProperties); + InputResourceOfPreferredLineItemCreateModelV2 inputResourceOfPreferredLineItemCreateModelV2 = (InputResourceOfPreferredLineItemCreateModelV2) o; + return Objects.equals(this.type, inputResourceOfPreferredLineItemCreateModelV2.type) && + Objects.equals(this.attributes, inputResourceOfPreferredLineItemCreateModelV2.attributes)&& + Objects.equals(this.additionalProperties, inputResourceOfPreferredLineItemCreateModelV2.additionalProperties); } @Override @@ -171,7 +171,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InputResourceOfPreferredLineItemCreateModel202110 {\n"); + sb.append("class InputResourceOfPreferredLineItemCreateModelV2 {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -208,12 +208,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to InputResourceOfPreferredLineItemCreateModel202110 + * @throws IOException if the JSON Object is invalid with respect to InputResourceOfPreferredLineItemCreateModelV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!InputResourceOfPreferredLineItemCreateModel202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in InputResourceOfPreferredLineItemCreateModel202110 is not found in the empty JSON string", InputResourceOfPreferredLineItemCreateModel202110.openapiRequiredFields.toString())); + if (!InputResourceOfPreferredLineItemCreateModelV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in InputResourceOfPreferredLineItemCreateModelV2 is not found in the empty JSON string", InputResourceOfPreferredLineItemCreateModelV2.openapiRequiredFields.toString())); } } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { @@ -221,7 +221,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - ExternalPreferredLineItemCreateModel202110.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + ExternalPreferredLineItemCreateModelV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } } @@ -229,16 +229,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!InputResourceOfPreferredLineItemCreateModel202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'InputResourceOfPreferredLineItemCreateModel202110' and its subtypes + if (!InputResourceOfPreferredLineItemCreateModelV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'InputResourceOfPreferredLineItemCreateModelV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(InputResourceOfPreferredLineItemCreateModel202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(InputResourceOfPreferredLineItemCreateModelV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, InputResourceOfPreferredLineItemCreateModel202110 value) throws IOException { + public void write(JsonWriter out, InputResourceOfPreferredLineItemCreateModelV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -261,11 +261,11 @@ else if (entry.getValue() instanceof Character) } @Override - public InputResourceOfPreferredLineItemCreateModel202110 read(JsonReader in) throws IOException { + public InputResourceOfPreferredLineItemCreateModelV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - InputResourceOfPreferredLineItemCreateModel202110 instance = thisAdapter.fromJsonTree(jsonObj); + InputResourceOfPreferredLineItemCreateModelV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -292,18 +292,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of InputResourceOfPreferredLineItemCreateModel202110 given an JSON string + * Create an instance of InputResourceOfPreferredLineItemCreateModelV2 given an JSON string * * @param jsonString JSON string - * @return An instance of InputResourceOfPreferredLineItemCreateModel202110 - * @throws IOException if the JSON string is invalid with respect to InputResourceOfPreferredLineItemCreateModel202110 + * @return An instance of InputResourceOfPreferredLineItemCreateModelV2 + * @throws IOException if the JSON string is invalid with respect to InputResourceOfPreferredLineItemCreateModelV2 */ - public static InputResourceOfPreferredLineItemCreateModel202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, InputResourceOfPreferredLineItemCreateModel202110.class); + public static InputResourceOfPreferredLineItemCreateModelV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, InputResourceOfPreferredLineItemCreateModelV2.class); } /** - * Convert an instance of InputResourceOfPreferredLineItemCreateModel202110 to an JSON string + * Convert an instance of InputResourceOfPreferredLineItemCreateModelV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.java index 0475d726..8ee7345c 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.EditableCampaignAttributesV202301; +import com.criteo.api.retailmedia.v2024_10.model.EditableCampaignAttributesV202301; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API wrapper class to format a <typeparamref name=\"TAttributes\" /> with external Id, Type, and Attributes properties diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java index 4e1071aa..4f57f219 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalAccount; +import com.criteo.api.retailmedia.v2024_10.model.ExternalAccount; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API wrapper class to format a <typeparamref name=\"TAttributes\" /> with external Id, Type, and Attributes properties diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java index 8e513969..29003a27 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalBrand; +import com.criteo.api.retailmedia.v2024_10.model.ExternalBrand; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API wrapper class to format a <typeparamref name=\"TAttributes\" /> with external Id, Type, and Attributes properties diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.java index 4ad7aa7f..b920a365 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CampaignV202301; +import com.criteo.api.retailmedia.v2024_10.model.CampaignV202301; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API wrapper class to format a <typeparamref name=\"TAttributes\" /> with external Id, Type, and Attributes properties diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java index ec465be7..75a148d4 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalCatalogStatus; +import com.criteo.api.retailmedia.v2024_10.model.ExternalCatalogStatus; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API wrapper class to format a <typeparamref name=\"TAttributes\" /> with external Id, Type, and Attributes properties diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.java similarity index 74% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.java index 2321a6e0..beb8b632 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.LineItemBidMultipliers; +import com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemBidMultipliersV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,13 +42,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Response object for line item bid multiplier calls + * A JSON:API wrapper class to format a <typeparamref name=\"TAttributes\" /> with external Id, Type, and Attributes properties */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers { +public class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; @@ -59,12 +59,12 @@ public class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMult public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private LineItemBidMultipliers attributes; + private ExternalLineItemBidMultipliersV2 attributes; - public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers() { + public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2() { } - public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers id(String id) { + public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 id(String id) { this.id = id; return this; @@ -86,7 +86,7 @@ public void setId(String id) { } - public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers type(String type) { + public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 type(String type) { this.type = type; return this; @@ -108,7 +108,7 @@ public void setType(String type) { } - public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers attributes(LineItemBidMultipliers attributes) { + public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 attributes(ExternalLineItemBidMultipliersV2 attributes) { this.attributes = attributes; return this; @@ -120,12 +120,12 @@ public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultiplier **/ @javax.annotation.Nullable - public LineItemBidMultipliers getAttributes() { + public ExternalLineItemBidMultipliersV2 getAttributes() { return attributes; } - public void setAttributes(LineItemBidMultipliers attributes) { + public void setAttributes(ExternalLineItemBidMultipliersV2 attributes) { this.attributes = attributes; } @@ -142,9 +142,9 @@ public void setAttributes(LineItemBidMultipliers attributes) { * * @param key name of the property * @param value value of the property - * @return the JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers instance itself + * @return the JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 instance itself */ - public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers putAdditionalProperty(String key, Object value) { + public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -183,11 +183,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers jsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers = (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers) o; - return Objects.equals(this.id, jsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.id) && - Objects.equals(this.type, jsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.type) && - Objects.equals(this.attributes, jsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.attributes)&& - Objects.equals(this.additionalProperties, jsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.additionalProperties); + JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 jsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 = (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2) o; + return Objects.equals(this.id, jsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.id) && + Objects.equals(this.type, jsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.type) && + Objects.equals(this.attributes, jsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.attributes)&& + Objects.equals(this.additionalProperties, jsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.additionalProperties); } @Override @@ -198,7 +198,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers {\n"); + sb.append("class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); @@ -239,17 +239,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers + * @throws IOException if the JSON Object is invalid with respect to JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers is not found in the empty JSON string", JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.openapiRequiredFields.toString())); + if (!JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 is not found in the empty JSON string", JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.openapiRequiredFields) { + for (String requiredField : JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -262,7 +262,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - LineItemBidMultipliers.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + ExternalLineItemBidMultipliersV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } } @@ -270,16 +270,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers' and its subtypes + if (!JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers value) throws IOException { + public void write(JsonWriter out, JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -302,11 +302,11 @@ else if (entry.getValue() instanceof Character) } @Override - public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers read(JsonReader in) throws IOException { + public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers instance = thisAdapter.fromJsonTree(jsonObj); + JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -333,18 +333,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers given an JSON string + * Create an instance of JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 given an JSON string * * @param jsonString JSON string - * @return An instance of JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers - * @throws IOException if the JSON string is invalid with respect to JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers + * @return An instance of JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 + * @throws IOException if the JSON string is invalid with respect to JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 */ - public static JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.class); + public static JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.class); } /** - * Convert an instance of JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers to an JSON string + * Convert an instance of JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java index 95a47832..2fe1b023 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalRetailer; +import com.criteo.api.retailmedia.v2024_10.model.ExternalRetailer; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API wrapper class to format a <typeparamref name=\"TAttributes\" /> with external Id, Type, and Attributes properties diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.java index ff20a04f..e93ee35c 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CampaignAttributesV202301; +import com.criteo.api.retailmedia.v2024_10.model.CampaignAttributesV202301; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API wrapper class to format a <typeparamref name=\"TAttributes\" /> with Type, and Attributes properties diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.java index 02a92e77..d3cc3c8e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalCatalogRequest; +import com.criteo.api.retailmedia.v2024_10.model.ExternalCatalogRequest; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API wrapper class to format a <typeparamref name=\"TAttributes\" /> with Type, and Attributes properties diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfAccount.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfAccount.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfAccount.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfAccount.java index 146bf75a..9c4ca36d 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfAccount.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfAccount.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonError; -import com.criteo.api.retailmedia.v2023_07.model.CommonWarning; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndAccountAndAccount; -import com.criteo.api.retailmedia.v2023_07.model.PageMetadata; +import com.criteo.api.retailmedia.v2024_10.model.CommonError; +import com.criteo.api.retailmedia.v2024_10.model.CommonWarning; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndAccountAndAccount; +import com.criteo.api.retailmedia.v2024_10.model.PageMetadata; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,7 +47,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A wrapper class to return a single page of <typeparamref name=\"T\" /> with metadata diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfBrand.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfBrand.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfBrand.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfBrand.java index aa12ce5e..2c0c3b4d 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfBrand.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfBrand.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonError; -import com.criteo.api.retailmedia.v2023_07.model.CommonWarning; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndBrandAndBrand; -import com.criteo.api.retailmedia.v2023_07.model.PageMetadata; +import com.criteo.api.retailmedia.v2024_10.model.CommonError; +import com.criteo.api.retailmedia.v2024_10.model.CommonWarning; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndBrandAndBrand; +import com.criteo.api.retailmedia.v2024_10.model.PageMetadata; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,7 +47,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A wrapper class to return a single page of <typeparamref name=\"T\" /> with metadata diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfCampaignV202301.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfCampaignV202301.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfCampaignV202301.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfCampaignV202301.java index 9f06a0ce..17713c67 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfCampaignV202301.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfCampaignV202301.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonError; -import com.criteo.api.retailmedia.v2023_07.model.CommonWarning; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301; -import com.criteo.api.retailmedia.v2023_07.model.PageMetadata; +import com.criteo.api.retailmedia.v2024_10.model.CommonError; +import com.criteo.api.retailmedia.v2024_10.model.CommonWarning; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301; +import com.criteo.api.retailmedia.v2024_10.model.PageMetadata; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,7 +47,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A wrapper class to return a single page of <typeparamref name=\"T\" /> with metadata diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfRetailer.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfRetailer.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfRetailer.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfRetailer.java index 087cd984..2a346ccc 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiPageResponseOfRetailer.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiPageResponseOfRetailer.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,14 +11,14 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonError; -import com.criteo.api.retailmedia.v2023_07.model.CommonWarning; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndRetailerAndRetailer; -import com.criteo.api.retailmedia.v2023_07.model.PageMetadata; +import com.criteo.api.retailmedia.v2024_10.model.CommonError; +import com.criteo.api.retailmedia.v2024_10.model.CommonWarning; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndRetailerAndRetailer; +import com.criteo.api.retailmedia.v2024_10.model.PageMetadata; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,7 +47,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A wrapper class to return a single page of <typeparamref name=\"T\" /> with metadata diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiRequestOfCatalogRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiRequestOfCatalogRequest.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiRequestOfCatalogRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiRequestOfCatalogRequest.java index e2e9fb8a..b9ce86a5 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiRequestOfCatalogRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiRequestOfCatalogRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API wrapper class to format a <typeparamref name=\"TAttributes\" /> with Type, and Attributes properties diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfCampaignV202301.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfCampaignV202301.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfCampaignV202301.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfCampaignV202301.java index 1c941cce..547e8362 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfCampaignV202301.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfCampaignV202301.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonError; -import com.criteo.api.retailmedia.v2023_07.model.CommonWarning; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301; +import com.criteo.api.retailmedia.v2024_10.model.CommonError; +import com.criteo.api.retailmedia.v2024_10.model.CommonWarning; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API wrapper class to add one JSON:API <typeparamref name=\"T\" /> within a data property diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfCatalogStatus.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfCatalogStatus.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfCatalogStatus.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfCatalogStatus.java index b3e96a0c..b413ef40 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfCatalogStatus.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfCatalogStatus.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonError; -import com.criteo.api.retailmedia.v2023_07.model.CommonWarning; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus; +import com.criteo.api.retailmedia.v2024_10.model.CommonError; +import com.criteo.api.retailmedia.v2024_10.model.CommonWarning; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A JSON:API wrapper class to add one JSON:API <typeparamref name=\"T\" /> within a data property diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfLineItemBidMultipliers.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfLineItemBidMultipliersV2.java similarity index 75% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfLineItemBidMultipliers.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfLineItemBidMultipliersV2.java index 8cf653cd..7c2029bb 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/JsonApiSingleResponseOfLineItemBidMultipliers.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/JsonApiSingleResponseOfLineItemBidMultipliersV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonError; -import com.criteo.api.retailmedia.v2023_07.model.CommonWarning; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers; +import com.criteo.api.retailmedia.v2024_10.model.CommonError; +import com.criteo.api.retailmedia.v2024_10.model.CommonWarning; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,6 +26,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -46,16 +47,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Data model for the response of a line item bid multiplier + * A JSON:API wrapper class to add one JSON:API <typeparamref name=\"T\" /> within a data property */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class JsonApiSingleResponseOfLineItemBidMultipliers { +public class JsonApiSingleResponseOfLineItemBidMultipliersV2 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers data; + private JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 data; public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @@ -65,10 +66,10 @@ public class JsonApiSingleResponseOfLineItemBidMultipliers { @SerializedName(SERIALIZED_NAME_WARNINGS) private List warnings = null; - public JsonApiSingleResponseOfLineItemBidMultipliers() { + public JsonApiSingleResponseOfLineItemBidMultipliersV2() { } - public JsonApiSingleResponseOfLineItemBidMultipliers data(JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers data) { + public JsonApiSingleResponseOfLineItemBidMultipliersV2 data(JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 data) { this.data = data; return this; @@ -80,25 +81,25 @@ public JsonApiSingleResponseOfLineItemBidMultipliers data(JsonApiBodyWithIdOfInt **/ @javax.annotation.Nonnull - public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers getData() { + public JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 getData() { return data; } - public void setData(JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers data) { + public void setData(JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2 data) { this.data = data; } - public JsonApiSingleResponseOfLineItemBidMultipliers errors(List errors) { + public JsonApiSingleResponseOfLineItemBidMultipliersV2 errors(List errors) { this.errors = errors; return this; } - public JsonApiSingleResponseOfLineItemBidMultipliers addErrorsItem(CommonError errorsItem) { + public JsonApiSingleResponseOfLineItemBidMultipliersV2 addErrorsItem(CommonError errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -120,15 +121,15 @@ public void setErrors(List errors) { } - public JsonApiSingleResponseOfLineItemBidMultipliers warnings(List warnings) { + public JsonApiSingleResponseOfLineItemBidMultipliersV2 warnings(List warnings) { this.warnings = warnings; return this; } - public JsonApiSingleResponseOfLineItemBidMultipliers addWarningsItem(CommonWarning warningsItem) { + public JsonApiSingleResponseOfLineItemBidMultipliersV2 addWarningsItem(CommonWarning warningsItem) { if (this.warnings == null) { - this.warnings = new ArrayList<>(); + this.warnings = null; } this.warnings.add(warningsItem); return this; @@ -162,9 +163,9 @@ public void setWarnings(List warnings) { * * @param key name of the property * @param value value of the property - * @return the JsonApiSingleResponseOfLineItemBidMultipliers instance itself + * @return the JsonApiSingleResponseOfLineItemBidMultipliersV2 instance itself */ - public JsonApiSingleResponseOfLineItemBidMultipliers putAdditionalProperty(String key, Object value) { + public JsonApiSingleResponseOfLineItemBidMultipliersV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -203,11 +204,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - JsonApiSingleResponseOfLineItemBidMultipliers jsonApiSingleResponseOfLineItemBidMultipliers = (JsonApiSingleResponseOfLineItemBidMultipliers) o; - return Objects.equals(this.data, jsonApiSingleResponseOfLineItemBidMultipliers.data) && - Objects.equals(this.errors, jsonApiSingleResponseOfLineItemBidMultipliers.errors) && - Objects.equals(this.warnings, jsonApiSingleResponseOfLineItemBidMultipliers.warnings)&& - Objects.equals(this.additionalProperties, jsonApiSingleResponseOfLineItemBidMultipliers.additionalProperties); + JsonApiSingleResponseOfLineItemBidMultipliersV2 jsonApiSingleResponseOfLineItemBidMultipliersV2 = (JsonApiSingleResponseOfLineItemBidMultipliersV2) o; + return Objects.equals(this.data, jsonApiSingleResponseOfLineItemBidMultipliersV2.data) && + Objects.equals(this.errors, jsonApiSingleResponseOfLineItemBidMultipliersV2.errors) && + Objects.equals(this.warnings, jsonApiSingleResponseOfLineItemBidMultipliersV2.warnings)&& + Objects.equals(this.additionalProperties, jsonApiSingleResponseOfLineItemBidMultipliersV2.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override @@ -215,10 +220,17 @@ public int hashCode() { return Objects.hash(data, errors, warnings, additionalProperties); } + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class JsonApiSingleResponseOfLineItemBidMultipliers {\n"); + sb.append("class JsonApiSingleResponseOfLineItemBidMultipliersV2 {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); @@ -258,23 +270,23 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to JsonApiSingleResponseOfLineItemBidMultipliers + * @throws IOException if the JSON Object is invalid with respect to JsonApiSingleResponseOfLineItemBidMultipliersV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!JsonApiSingleResponseOfLineItemBidMultipliers.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in JsonApiSingleResponseOfLineItemBidMultipliers is not found in the empty JSON string", JsonApiSingleResponseOfLineItemBidMultipliers.openapiRequiredFields.toString())); + if (!JsonApiSingleResponseOfLineItemBidMultipliersV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in JsonApiSingleResponseOfLineItemBidMultipliersV2 is not found in the empty JSON string", JsonApiSingleResponseOfLineItemBidMultipliersV2.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : JsonApiSingleResponseOfLineItemBidMultipliers.openapiRequiredFields) { + for (String requiredField : JsonApiSingleResponseOfLineItemBidMultipliersV2.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } // validate the required field `data` - JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.validateJsonObject(jsonObj.getAsJsonObject("data")); + JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2.validateJsonObject(jsonObj.getAsJsonObject("data")); if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -309,16 +321,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!JsonApiSingleResponseOfLineItemBidMultipliers.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'JsonApiSingleResponseOfLineItemBidMultipliers' and its subtypes + if (!JsonApiSingleResponseOfLineItemBidMultipliersV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'JsonApiSingleResponseOfLineItemBidMultipliersV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(JsonApiSingleResponseOfLineItemBidMultipliers.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(JsonApiSingleResponseOfLineItemBidMultipliersV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, JsonApiSingleResponseOfLineItemBidMultipliers value) throws IOException { + public void write(JsonWriter out, JsonApiSingleResponseOfLineItemBidMultipliersV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -341,11 +353,11 @@ else if (entry.getValue() instanceof Character) } @Override - public JsonApiSingleResponseOfLineItemBidMultipliers read(JsonReader in) throws IOException { + public JsonApiSingleResponseOfLineItemBidMultipliersV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - JsonApiSingleResponseOfLineItemBidMultipliers instance = thisAdapter.fromJsonTree(jsonObj); + JsonApiSingleResponseOfLineItemBidMultipliersV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -372,18 +384,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of JsonApiSingleResponseOfLineItemBidMultipliers given an JSON string + * Create an instance of JsonApiSingleResponseOfLineItemBidMultipliersV2 given an JSON string * * @param jsonString JSON string - * @return An instance of JsonApiSingleResponseOfLineItemBidMultipliers - * @throws IOException if the JSON string is invalid with respect to JsonApiSingleResponseOfLineItemBidMultipliers + * @return An instance of JsonApiSingleResponseOfLineItemBidMultipliersV2 + * @throws IOException if the JSON string is invalid with respect to JsonApiSingleResponseOfLineItemBidMultipliersV2 */ - public static JsonApiSingleResponseOfLineItemBidMultipliers fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, JsonApiSingleResponseOfLineItemBidMultipliers.class); + public static JsonApiSingleResponseOfLineItemBidMultipliersV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, JsonApiSingleResponseOfLineItemBidMultipliersV2.class); } /** - * Convert an instance of JsonApiSingleResponseOfLineItemBidMultipliers to an JSON string + * Convert an instance of JsonApiSingleResponseOfLineItemBidMultipliersV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordDataModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordDataModel.java similarity index 96% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordDataModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordDataModel.java index b085b8f8..cfed35dc 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordDataModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordDataModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.InputKeywordsModel; -import com.criteo.api.retailmedia.v2023_07.model.MatchTypeModel; -import com.criteo.api.retailmedia.v2023_07.model.ReviewStateModel; +import com.criteo.api.retailmedia.v2024_10.model.InputKeywordsModel; +import com.criteo.api.retailmedia.v2024_10.model.MatchTypeModel; +import com.criteo.api.retailmedia.v2024_10.model.ReviewStateModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A single keyword and associated bid override diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordTarget202110Request.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordTarget202110Request.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordTarget202110Request.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordTarget202110Request.java index 80a5dbdd..0b6dd8c6 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordTarget202110Request.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordTarget202110Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfKeywordTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfKeywordTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type input resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordTarget202110Response.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordTarget202110Response.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordTarget202110Response.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordTarget202110Response.java index e412a0db..36626760 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordTarget202110Response.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordTarget202110Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfKeywordTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfKeywordTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type resource outcome diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModel.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModel.java index 69ef601f..f8ef6d88 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.KeywordDataModel; +import com.criteo.api.retailmedia.v2024_10.model.KeywordDataModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,7 +47,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * The keywords associated with a line item. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModelResource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModelResource.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModelResource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModelResource.java index 47895e73..452ea339 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModelResource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.KeywordsModel; +import com.criteo.api.retailmedia.v2024_10.model.KeywordsModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Resource object containing keywords associated with a line item. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModelResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModelResponse.java similarity index 96% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModelResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModelResponse.java index 544cffc6..aaf822bc 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordsModelResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/KeywordsModelResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.KeywordsModelResource; -import com.criteo.api.retailmedia.v2023_07.model.RmcaCommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.KeywordsModelResource; +import com.criteo.api.retailmedia.v2024_10.model.RmcaCommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Response object containing keywords associated with a line item. diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBidMultipliersV2Request.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBidMultipliersV2Request.java new file mode 100644 index 00000000..b33f6b10 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBidMultipliersV2Request.java @@ -0,0 +1,282 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfLineItemBidMultipliersV2; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API request for a single entity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class LineItemBidMultipliersV2Request { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private ResourceOfLineItemBidMultipliersV2 data; + + public LineItemBidMultipliersV2Request() { + } + + public LineItemBidMultipliersV2Request data(ResourceOfLineItemBidMultipliersV2 data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public ResourceOfLineItemBidMultipliersV2 getData() { + return data; + } + + + public void setData(ResourceOfLineItemBidMultipliersV2 data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the LineItemBidMultipliersV2Request instance itself + */ + public LineItemBidMultipliersV2Request putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LineItemBidMultipliersV2Request lineItemBidMultipliersV2Request = (LineItemBidMultipliersV2Request) o; + return Objects.equals(this.data, lineItemBidMultipliersV2Request.data)&& + Objects.equals(this.additionalProperties, lineItemBidMultipliersV2Request.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LineItemBidMultipliersV2Request {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LineItemBidMultipliersV2Request + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!LineItemBidMultipliersV2Request.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in LineItemBidMultipliersV2Request is not found in the empty JSON string", LineItemBidMultipliersV2Request.openapiRequiredFields.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + ResourceOfLineItemBidMultipliersV2.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LineItemBidMultipliersV2Request.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LineItemBidMultipliersV2Request' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LineItemBidMultipliersV2Request.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LineItemBidMultipliersV2Request value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public LineItemBidMultipliersV2Request read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + LineItemBidMultipliersV2Request instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of LineItemBidMultipliersV2Request given an JSON string + * + * @param jsonString JSON string + * @return An instance of LineItemBidMultipliersV2Request + * @throws IOException if the JSON string is invalid with respect to LineItemBidMultipliersV2Request + */ + public static LineItemBidMultipliersV2Request fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LineItemBidMultipliersV2Request.class); + } + + /** + * Convert an instance of LineItemBidMultipliersV2Request to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBidMultipliersV2Response.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBidMultipliersV2Response.java new file mode 100644 index 00000000..b6bc409d --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBidMultipliersV2Response.java @@ -0,0 +1,375 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfLineItemBidMultipliersV2; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single entity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class LineItemBidMultipliersV2Response { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private ResourceOfLineItemBidMultipliersV2 data; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public LineItemBidMultipliersV2Response() { + } + + + public LineItemBidMultipliersV2Response( + List warnings, + List errors + ) { + this(); + this.warnings = warnings; + this.errors = errors; + } + + public LineItemBidMultipliersV2Response data(ResourceOfLineItemBidMultipliersV2 data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public ResourceOfLineItemBidMultipliersV2 getData() { + return data; + } + + + public void setData(ResourceOfLineItemBidMultipliersV2 data) { + this.data = data; + } + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the LineItemBidMultipliersV2Response instance itself + */ + public LineItemBidMultipliersV2Response putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LineItemBidMultipliersV2Response lineItemBidMultipliersV2Response = (LineItemBidMultipliersV2Response) o; + return Objects.equals(this.data, lineItemBidMultipliersV2Response.data) && + Objects.equals(this.warnings, lineItemBidMultipliersV2Response.warnings) && + Objects.equals(this.errors, lineItemBidMultipliersV2Response.errors)&& + Objects.equals(this.additionalProperties, lineItemBidMultipliersV2Response.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(data, warnings, errors, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LineItemBidMultipliersV2Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + openapiFields.add("warnings"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LineItemBidMultipliersV2Response + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!LineItemBidMultipliersV2Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in LineItemBidMultipliersV2Response is not found in the empty JSON string", LineItemBidMultipliersV2Response.openapiRequiredFields.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + ResourceOfLineItemBidMultipliersV2.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LineItemBidMultipliersV2Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LineItemBidMultipliersV2Response' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LineItemBidMultipliersV2Response.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LineItemBidMultipliersV2Response value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public LineItemBidMultipliersV2Response read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + LineItemBidMultipliersV2Response instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of LineItemBidMultipliersV2Response given an JSON string + * + * @param jsonString JSON string + * @return An instance of LineItemBidMultipliersV2Response + * @throws IOException if the JSON string is invalid with respect to LineItemBidMultipliersV2Response + */ + public static LineItemBidMultipliersV2Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LineItemBidMultipliersV2Response.class); + } + + /** + * Convert an instance of LineItemBidMultipliersV2Response to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBudgetOverrides.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBudgetOverrides.java similarity index 97% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBudgetOverrides.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBudgetOverrides.java index 62dfe2e7..bdb132f9 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBudgetOverrides.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemBudgetOverrides.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.DailyLineItemBudgetOverride; -import com.criteo.api.retailmedia.preview.model.MonthlyLineItemBudegetOverride; +import com.criteo.api.retailmedia.v2024_10.model.DailyLineItemBudgetOverride; +import com.criteo.api.retailmedia.v2024_10.model.MonthlyLineItemBudegetOverride; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Line item budget overrides including Monthly and Daily budget overrides. diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemProductStatus.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemProductStatus.java new file mode 100644 index 00000000..5dcfefeb --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/LineItemProductStatus.java @@ -0,0 +1,75 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * The status of a promoted product in the context of the line item. + */ +@JsonAdapter(LineItemProductStatus.Adapter.class) +public enum LineItemProductStatus { + + UNKNOWN("Unknown"), + + ACTIVE("Active"), + + PAUSED("Paused"); + + private String value; + + LineItemProductStatus(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LineItemProductStatus fromValue(String value) { + for (LineItemProductStatus b : LineItemProductStatus.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LineItemProductStatus enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LineItemProductStatus read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LineItemProductStatus.fromValue(value); + } + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/MatchTypeModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/MatchTypeModel.java similarity index 94% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/MatchTypeModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/MatchTypeModel.java index d5cd56a2..97057842 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/MatchTypeModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/MatchTypeModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Metadata.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Metadata.java new file mode 100644 index 00000000..ae4c7340 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Metadata.java @@ -0,0 +1,281 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Metadata related to the current request. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Metadata { + public static final String SERIALIZED_NAME_COUNT = "count"; + @SerializedName(SERIALIZED_NAME_COUNT) + private Long count; + + public static final String SERIALIZED_NAME_OFFSET = "offset"; + @SerializedName(SERIALIZED_NAME_OFFSET) + private Integer offset; + + public static final String SERIALIZED_NAME_LIMIT = "limit"; + @SerializedName(SERIALIZED_NAME_LIMIT) + private Integer limit; + + public Metadata() { + } + + public Metadata count(Long count) { + + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @javax.annotation.Nullable + + public Long getCount() { + return count; + } + + + public void setCount(Long count) { + this.count = count; + } + + + public Metadata offset(Integer offset) { + + this.offset = offset; + return this; + } + + /** + * The (zero-based) starting offset in the collection. + * @return offset + **/ + @javax.annotation.Nonnull + + public Integer getOffset() { + return offset; + } + + + public void setOffset(Integer offset) { + this.offset = offset; + } + + + public Metadata limit(Integer limit) { + + this.limit = limit; + return this; + } + + /** + * The number of elements to be returned. + * @return limit + **/ + @javax.annotation.Nonnull + + public Integer getLimit() { + return limit; + } + + + public void setLimit(Integer limit) { + this.limit = limit; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Metadata metadata = (Metadata) o; + return Objects.equals(this.count, metadata.count) && + Objects.equals(this.offset, metadata.offset) && + Objects.equals(this.limit, metadata.limit); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(count, offset, limit); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Metadata {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("count"); + openapiFields.add("offset"); + openapiFields.add("limit"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("offset"); + openapiRequiredFields.add("limit"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Metadata + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!Metadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in Metadata is not found in the empty JSON string", Metadata.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!Metadata.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Metadata` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : Metadata.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Metadata.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Metadata' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Metadata.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Metadata value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Metadata read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Metadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of Metadata + * @throws IOException if the JSON string is invalid with respect to Metadata + */ + public static Metadata fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Metadata.class); + } + + /** + * Convert an instance of Metadata to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MonthlyLineItemBudegetOverride.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/MonthlyLineItemBudegetOverride.java similarity index 98% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MonthlyLineItemBudegetOverride.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/MonthlyLineItemBudegetOverride.java index 07502089..ce8acc13 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MonthlyLineItemBudegetOverride.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/MonthlyLineItemBudegetOverride.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * The details for a monthly budget override diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/NegotiationStateModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/NegotiationStateModel.java similarity index 94% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/NegotiationStateModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/NegotiationStateModel.java index d0145417..6c51f671 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/NegotiationStateModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/NegotiationStateModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPromotedProduct202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/NillableString.java similarity index 72% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPromotedProduct202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/NillableString.java index 751611b8..6beb305d 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalPromotedProduct202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/NillableString.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -21,7 +21,6 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.math.BigDecimal; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -43,39 +42,39 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * identifies a promoted product + * Placeholder object for string value for which \"null\" is a valid business value */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ExternalPromotedProduct202110 { - public static final String SERIALIZED_NAME_BID_OVERRIDE = "bidOverride"; - @SerializedName(SERIALIZED_NAME_BID_OVERRIDE) - private BigDecimal bidOverride; +public class NillableString { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; - public ExternalPromotedProduct202110() { + public NillableString() { } - public ExternalPromotedProduct202110 bidOverride(BigDecimal bidOverride) { + public NillableString value(String value) { - this.bidOverride = bidOverride; + this.value = value; return this; } /** - * Get bidOverride - * @return bidOverride + * The string's value. If missing or null the string's value is set to \"null\" + * @return value **/ @javax.annotation.Nullable - public BigDecimal getBidOverride() { - return bidOverride; + public String getValue() { + return value; } - public void setBidOverride(BigDecimal bidOverride) { - this.bidOverride = bidOverride; + public void setValue(String value) { + this.value = value; } /** @@ -91,9 +90,9 @@ public void setBidOverride(BigDecimal bidOverride) { * * @param key name of the property * @param value value of the property - * @return the ExternalPromotedProduct202110 instance itself + * @return the NillableString instance itself */ - public ExternalPromotedProduct202110 putAdditionalProperty(String key, Object value) { + public NillableString putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -132,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ExternalPromotedProduct202110 externalPromotedProduct202110 = (ExternalPromotedProduct202110) o; - return Objects.equals(this.bidOverride, externalPromotedProduct202110.bidOverride)&& - Objects.equals(this.additionalProperties, externalPromotedProduct202110.additionalProperties); + NillableString nillableString = (NillableString) o; + return Objects.equals(this.value, nillableString.value)&& + Objects.equals(this.additionalProperties, nillableString.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -143,7 +142,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(bidOverride, additionalProperties); + return Objects.hash(value, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -156,8 +155,8 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ExternalPromotedProduct202110 {\n"); - sb.append(" bidOverride: ").append(toIndentedString(bidOverride)).append("\n"); + sb.append("class NillableString {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -181,7 +180,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("bidOverride"); + openapiFields.add("value"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -191,30 +190,33 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ExternalPromotedProduct202110 + * @throws IOException if the JSON Object is invalid with respect to NillableString */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ExternalPromotedProduct202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalPromotedProduct202110 is not found in the empty JSON string", ExternalPromotedProduct202110.openapiRequiredFields.toString())); + if (!NillableString.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in NillableString is not found in the empty JSON string", NillableString.openapiRequiredFields.toString())); } } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ExternalPromotedProduct202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ExternalPromotedProduct202110' and its subtypes + if (!NillableString.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NillableString' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ExternalPromotedProduct202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NillableString.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ExternalPromotedProduct202110 value) throws IOException { + public void write(JsonWriter out, NillableString value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -237,11 +239,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ExternalPromotedProduct202110 read(JsonReader in) throws IOException { + public NillableString read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ExternalPromotedProduct202110 instance = thisAdapter.fromJsonTree(jsonObj); + NillableString instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -268,18 +270,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ExternalPromotedProduct202110 given an JSON string + * Create an instance of NillableString given an JSON string * * @param jsonString JSON string - * @return An instance of ExternalPromotedProduct202110 - * @throws IOException if the JSON string is invalid with respect to ExternalPromotedProduct202110 + * @return An instance of NillableString + * @throws IOException if the JSON string is invalid with respect to NillableString */ - public static ExternalPromotedProduct202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ExternalPromotedProduct202110.class); + public static NillableString fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NillableString.class); } /** - * Convert an instance of ExternalPromotedProduct202110 to an JSON string + * Convert an instance of NillableString to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PageMetadata.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageMetadata.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PageMetadata.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageMetadata.java index 17f7644c..28251355 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PageMetadata.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageMetadata.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Metadata related to the current request diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageOfBalanceHistoryChangeDataCaptureV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageOfBalanceHistoryChangeDataCaptureV1.java new file mode 100644 index 00000000..0ce44500 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageOfBalanceHistoryChangeDataCaptureV1.java @@ -0,0 +1,261 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.BalanceHistoryChangeDataCaptureV1; +import com.criteo.api.retailmedia.v2024_10.model.Metadata; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A wrapper class to return a single page of items with metadata. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PageOfBalanceHistoryChangeDataCaptureV1 { + public static final String SERIALIZED_NAME_META = "meta"; + @SerializedName(SERIALIZED_NAME_META) + private Metadata meta; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList<>(); + + public PageOfBalanceHistoryChangeDataCaptureV1() { + } + + public PageOfBalanceHistoryChangeDataCaptureV1 meta(Metadata meta) { + + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nonnull + + public Metadata getMeta() { + return meta; + } + + + public void setMeta(Metadata meta) { + this.meta = meta; + } + + + public PageOfBalanceHistoryChangeDataCaptureV1 data(List data) { + + this.data = data; + return this; + } + + public PageOfBalanceHistoryChangeDataCaptureV1 addDataItem(BalanceHistoryChangeDataCaptureV1 dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nonnull + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageOfBalanceHistoryChangeDataCaptureV1 pageOfBalanceHistoryChangeDataCaptureV1 = (PageOfBalanceHistoryChangeDataCaptureV1) o; + return Objects.equals(this.meta, pageOfBalanceHistoryChangeDataCaptureV1.meta) && + Objects.equals(this.data, pageOfBalanceHistoryChangeDataCaptureV1.data); + } + + @Override + public int hashCode() { + return Objects.hash(meta, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageOfBalanceHistoryChangeDataCaptureV1 {\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("meta"); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("meta"); + openapiRequiredFields.add("data"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PageOfBalanceHistoryChangeDataCaptureV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!PageOfBalanceHistoryChangeDataCaptureV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PageOfBalanceHistoryChangeDataCaptureV1 is not found in the empty JSON string", PageOfBalanceHistoryChangeDataCaptureV1.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PageOfBalanceHistoryChangeDataCaptureV1.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PageOfBalanceHistoryChangeDataCaptureV1` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PageOfBalanceHistoryChangeDataCaptureV1.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `meta` + Metadata.validateJsonObject(jsonObj.getAsJsonObject("meta")); + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + // validate the required field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + BalanceHistoryChangeDataCaptureV1.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PageOfBalanceHistoryChangeDataCaptureV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PageOfBalanceHistoryChangeDataCaptureV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PageOfBalanceHistoryChangeDataCaptureV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PageOfBalanceHistoryChangeDataCaptureV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PageOfBalanceHistoryChangeDataCaptureV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PageOfBalanceHistoryChangeDataCaptureV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of PageOfBalanceHistoryChangeDataCaptureV1 + * @throws IOException if the JSON string is invalid with respect to PageOfBalanceHistoryChangeDataCaptureV1 + */ + public static PageOfBalanceHistoryChangeDataCaptureV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PageOfBalanceHistoryChangeDataCaptureV1.class); + } + + /** + * Convert an instance of PageOfBalanceHistoryChangeDataCaptureV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PageTypeEnvironment.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageTypeEnvironment.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PageTypeEnvironment.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageTypeEnvironment.java index fee0eb17..cbb9c4ee 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PageTypeEnvironment.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PageTypeEnvironment.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * The PageType-Environment Tuples for creatives diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PromotedProduct202110PagedListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PagedResourceCollectionOutcomeOfBalanceResponseV2.java similarity index 72% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PromotedProduct202110PagedListResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PagedResourceCollectionOutcomeOfBalanceResponseV2.java index 690a6eae..161298ea 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PromotedProduct202110PagedListResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PagedResourceCollectionOutcomeOfBalanceResponseV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.PageMetadata; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfPromotedProduct202110; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.PageMetadata; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfBalanceResponseV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,43 +46,43 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a paged list of response resources */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PromotedProduct202110PagedListResponse { +public class PagedResourceCollectionOutcomeOfBalanceResponseV2 { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) private PageMetadata metadata; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) - private List warnings = null; + private List warnings = null; public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = null; + private List errors = null; - public PromotedProduct202110PagedListResponse() { + public PagedResourceCollectionOutcomeOfBalanceResponseV2() { } - public PromotedProduct202110PagedListResponse( - List warnings, - List errors + public PagedResourceCollectionOutcomeOfBalanceResponseV2( + List warnings, + List errors ) { this(); this.warnings = warnings; this.errors = errors; } - public PromotedProduct202110PagedListResponse metadata(PageMetadata metadata) { + public PagedResourceCollectionOutcomeOfBalanceResponseV2 metadata(PageMetadata metadata) { this.metadata = metadata; return this; @@ -104,13 +104,13 @@ public void setMetadata(PageMetadata metadata) { } - public PromotedProduct202110PagedListResponse data(List data) { + public PagedResourceCollectionOutcomeOfBalanceResponseV2 data(List data) { this.data = data; return this; } - public PromotedProduct202110PagedListResponse addDataItem(ResourceOfPromotedProduct202110 dataItem) { + public PagedResourceCollectionOutcomeOfBalanceResponseV2 addDataItem(ResourceOfBalanceResponseV2 dataItem) { if (this.data == null) { this.data = new ArrayList<>(); } @@ -124,12 +124,12 @@ public PromotedProduct202110PagedListResponse addDataItem(ResourceOfPromotedProd **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -140,7 +140,7 @@ public void setData(List data) { **/ @javax.annotation.Nullable - public List getWarnings() { + public List getWarnings() { return warnings; } @@ -153,7 +153,7 @@ public List getWarnings() { **/ @javax.annotation.Nullable - public List getErrors() { + public List getErrors() { return errors; } @@ -172,9 +172,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the PromotedProduct202110PagedListResponse instance itself + * @return the PagedResourceCollectionOutcomeOfBalanceResponseV2 instance itself */ - public PromotedProduct202110PagedListResponse putAdditionalProperty(String key, Object value) { + public PagedResourceCollectionOutcomeOfBalanceResponseV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -213,12 +213,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PromotedProduct202110PagedListResponse promotedProduct202110PagedListResponse = (PromotedProduct202110PagedListResponse) o; - return Objects.equals(this.metadata, promotedProduct202110PagedListResponse.metadata) && - Objects.equals(this.data, promotedProduct202110PagedListResponse.data) && - Objects.equals(this.warnings, promotedProduct202110PagedListResponse.warnings) && - Objects.equals(this.errors, promotedProduct202110PagedListResponse.errors)&& - Objects.equals(this.additionalProperties, promotedProduct202110PagedListResponse.additionalProperties); + PagedResourceCollectionOutcomeOfBalanceResponseV2 pagedResourceCollectionOutcomeOfBalanceResponseV2 = (PagedResourceCollectionOutcomeOfBalanceResponseV2) o; + return Objects.equals(this.metadata, pagedResourceCollectionOutcomeOfBalanceResponseV2.metadata) && + Objects.equals(this.data, pagedResourceCollectionOutcomeOfBalanceResponseV2.data) && + Objects.equals(this.warnings, pagedResourceCollectionOutcomeOfBalanceResponseV2.warnings) && + Objects.equals(this.errors, pagedResourceCollectionOutcomeOfBalanceResponseV2.errors)&& + Objects.equals(this.additionalProperties, pagedResourceCollectionOutcomeOfBalanceResponseV2.additionalProperties); } @Override @@ -229,7 +229,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PromotedProduct202110PagedListResponse {\n"); + sb.append("class PagedResourceCollectionOutcomeOfBalanceResponseV2 {\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); @@ -270,12 +270,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PromotedProduct202110PagedListResponse + * @throws IOException if the JSON Object is invalid with respect to PagedResourceCollectionOutcomeOfBalanceResponseV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!PromotedProduct202110PagedListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PromotedProduct202110PagedListResponse is not found in the empty JSON string", PromotedProduct202110PagedListResponse.openapiRequiredFields.toString())); + if (!PagedResourceCollectionOutcomeOfBalanceResponseV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PagedResourceCollectionOutcomeOfBalanceResponseV2 is not found in the empty JSON string", PagedResourceCollectionOutcomeOfBalanceResponseV2.openapiRequiredFields.toString())); } } // validate the optional field `metadata` @@ -292,7 +292,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - ResourceOfPromotedProduct202110.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + ResourceOfBalanceResponseV2.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -306,7 +306,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `warnings` (array) for (int i = 0; i < jsonArraywarnings.size(); i++) { - ProblemDetails.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); }; } } @@ -320,7 +320,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `errors` (array) for (int i = 0; i < jsonArrayerrors.size(); i++) { - ProblemDetails.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); }; } } @@ -330,16 +330,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PromotedProduct202110PagedListResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PromotedProduct202110PagedListResponse' and its subtypes + if (!PagedResourceCollectionOutcomeOfBalanceResponseV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PagedResourceCollectionOutcomeOfBalanceResponseV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PromotedProduct202110PagedListResponse.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PagedResourceCollectionOutcomeOfBalanceResponseV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, PromotedProduct202110PagedListResponse value) throws IOException { + public void write(JsonWriter out, PagedResourceCollectionOutcomeOfBalanceResponseV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -362,11 +362,11 @@ else if (entry.getValue() instanceof Character) } @Override - public PromotedProduct202110PagedListResponse read(JsonReader in) throws IOException { + public PagedResourceCollectionOutcomeOfBalanceResponseV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - PromotedProduct202110PagedListResponse instance = thisAdapter.fromJsonTree(jsonObj); + PagedResourceCollectionOutcomeOfBalanceResponseV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -393,18 +393,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of PromotedProduct202110PagedListResponse given an JSON string + * Create an instance of PagedResourceCollectionOutcomeOfBalanceResponseV2 given an JSON string * * @param jsonString JSON string - * @return An instance of PromotedProduct202110PagedListResponse - * @throws IOException if the JSON string is invalid with respect to PromotedProduct202110PagedListResponse + * @return An instance of PagedResourceCollectionOutcomeOfBalanceResponseV2 + * @throws IOException if the JSON string is invalid with respect to PagedResourceCollectionOutcomeOfBalanceResponseV2 */ - public static PromotedProduct202110PagedListResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PromotedProduct202110PagedListResponse.class); + public static PagedResourceCollectionOutcomeOfBalanceResponseV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PagedResourceCollectionOutcomeOfBalanceResponseV2.class); } /** - * Convert an instance of PromotedProduct202110PagedListResponse to an JSON string + * Convert an instance of PagedResourceCollectionOutcomeOfBalanceResponseV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PostCampaignV202301.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PostCampaignV202301.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PostCampaignV202301.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PostCampaignV202301.java index 0882626b..39db7ce4 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PostCampaignV202301.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PostCampaignV202301.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * An object that represents the available options to set when creating a Retail Media Campaign diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItemCreateModel202110Request.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemCreateModelV2Request.java similarity index 76% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItemCreateModel202110Request.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemCreateModelV2Request.java index 1679a7cb..bd31f84c 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItemCreateModel202110Request.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemCreateModelV2Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.InputResourceOfPreferredLineItemCreateModel202110; +import com.criteo.api.retailmedia.v2024_10.model.InputResourceOfPreferredLineItemCreateModelV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,21 +42,21 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a create input resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PreferredLineItemCreateModel202110Request { +public class PreferredLineItemCreateModelV2Request { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private InputResourceOfPreferredLineItemCreateModel202110 data; + private InputResourceOfPreferredLineItemCreateModelV2 data; - public PreferredLineItemCreateModel202110Request() { + public PreferredLineItemCreateModelV2Request() { } - public PreferredLineItemCreateModel202110Request data(InputResourceOfPreferredLineItemCreateModel202110 data) { + public PreferredLineItemCreateModelV2Request data(InputResourceOfPreferredLineItemCreateModelV2 data) { this.data = data; return this; @@ -68,12 +68,12 @@ public PreferredLineItemCreateModel202110Request data(InputResourceOfPreferredLi **/ @javax.annotation.Nullable - public InputResourceOfPreferredLineItemCreateModel202110 getData() { + public InputResourceOfPreferredLineItemCreateModelV2 getData() { return data; } - public void setData(InputResourceOfPreferredLineItemCreateModel202110 data) { + public void setData(InputResourceOfPreferredLineItemCreateModelV2 data) { this.data = data; } @@ -90,9 +90,9 @@ public void setData(InputResourceOfPreferredLineItemCreateModel202110 data) { * * @param key name of the property * @param value value of the property - * @return the PreferredLineItemCreateModel202110Request instance itself + * @return the PreferredLineItemCreateModelV2Request instance itself */ - public PreferredLineItemCreateModel202110Request putAdditionalProperty(String key, Object value) { + public PreferredLineItemCreateModelV2Request putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PreferredLineItemCreateModel202110Request preferredLineItemCreateModel202110Request = (PreferredLineItemCreateModel202110Request) o; - return Objects.equals(this.data, preferredLineItemCreateModel202110Request.data)&& - Objects.equals(this.additionalProperties, preferredLineItemCreateModel202110Request.additionalProperties); + PreferredLineItemCreateModelV2Request preferredLineItemCreateModelV2Request = (PreferredLineItemCreateModelV2Request) o; + return Objects.equals(this.data, preferredLineItemCreateModelV2Request.data)&& + Objects.equals(this.additionalProperties, preferredLineItemCreateModelV2Request.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PreferredLineItemCreateModel202110Request {\n"); + sb.append("class PreferredLineItemCreateModelV2Request {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -179,17 +179,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PreferredLineItemCreateModel202110Request + * @throws IOException if the JSON Object is invalid with respect to PreferredLineItemCreateModelV2Request */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!PreferredLineItemCreateModel202110Request.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PreferredLineItemCreateModel202110Request is not found in the empty JSON string", PreferredLineItemCreateModel202110Request.openapiRequiredFields.toString())); + if (!PreferredLineItemCreateModelV2Request.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PreferredLineItemCreateModelV2Request is not found in the empty JSON string", PreferredLineItemCreateModelV2Request.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - InputResourceOfPreferredLineItemCreateModel202110.validateJsonObject(jsonObj.getAsJsonObject("data")); + InputResourceOfPreferredLineItemCreateModelV2.validateJsonObject(jsonObj.getAsJsonObject("data")); } } @@ -197,16 +197,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PreferredLineItemCreateModel202110Request.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PreferredLineItemCreateModel202110Request' and its subtypes + if (!PreferredLineItemCreateModelV2Request.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PreferredLineItemCreateModelV2Request' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PreferredLineItemCreateModel202110Request.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PreferredLineItemCreateModelV2Request.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, PreferredLineItemCreateModel202110Request value) throws IOException { + public void write(JsonWriter out, PreferredLineItemCreateModelV2Request value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -229,11 +229,11 @@ else if (entry.getValue() instanceof Character) } @Override - public PreferredLineItemCreateModel202110Request read(JsonReader in) throws IOException { + public PreferredLineItemCreateModelV2Request read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - PreferredLineItemCreateModel202110Request instance = thisAdapter.fromJsonTree(jsonObj); + PreferredLineItemCreateModelV2Request instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -260,18 +260,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of PreferredLineItemCreateModel202110Request given an JSON string + * Create an instance of PreferredLineItemCreateModelV2Request given an JSON string * * @param jsonString JSON string - * @return An instance of PreferredLineItemCreateModel202110Request - * @throws IOException if the JSON string is invalid with respect to PreferredLineItemCreateModel202110Request + * @return An instance of PreferredLineItemCreateModelV2Request + * @throws IOException if the JSON string is invalid with respect to PreferredLineItemCreateModelV2Request */ - public static PreferredLineItemCreateModel202110Request fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PreferredLineItemCreateModel202110Request.class); + public static PreferredLineItemCreateModelV2Request fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PreferredLineItemCreateModelV2Request.class); } /** - * Convert an instance of PreferredLineItemCreateModel202110Request to an JSON string + * Convert an instance of PreferredLineItemCreateModelV2Request to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItemUpdateModel202110Request.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemUpdateModelV2Request.java similarity index 75% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItemUpdateModel202110Request.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemUpdateModelV2Request.java index 51e5511b..eb59359c 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItemUpdateModel202110Request.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemUpdateModelV2Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfPreferredLineItemUpdateModel202110; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfPreferredLineItemUpdateModelV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,21 +42,21 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for an input resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PreferredLineItemUpdateModel202110Request { +public class PreferredLineItemUpdateModelV2Request { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private ResourceOfPreferredLineItemUpdateModel202110 data; + private ResourceOfPreferredLineItemUpdateModelV2 data; - public PreferredLineItemUpdateModel202110Request() { + public PreferredLineItemUpdateModelV2Request() { } - public PreferredLineItemUpdateModel202110Request data(ResourceOfPreferredLineItemUpdateModel202110 data) { + public PreferredLineItemUpdateModelV2Request data(ResourceOfPreferredLineItemUpdateModelV2 data) { this.data = data; return this; @@ -68,12 +68,12 @@ public PreferredLineItemUpdateModel202110Request data(ResourceOfPreferredLineIte **/ @javax.annotation.Nullable - public ResourceOfPreferredLineItemUpdateModel202110 getData() { + public ResourceOfPreferredLineItemUpdateModelV2 getData() { return data; } - public void setData(ResourceOfPreferredLineItemUpdateModel202110 data) { + public void setData(ResourceOfPreferredLineItemUpdateModelV2 data) { this.data = data; } @@ -90,9 +90,9 @@ public void setData(ResourceOfPreferredLineItemUpdateModel202110 data) { * * @param key name of the property * @param value value of the property - * @return the PreferredLineItemUpdateModel202110Request instance itself + * @return the PreferredLineItemUpdateModelV2Request instance itself */ - public PreferredLineItemUpdateModel202110Request putAdditionalProperty(String key, Object value) { + public PreferredLineItemUpdateModelV2Request putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PreferredLineItemUpdateModel202110Request preferredLineItemUpdateModel202110Request = (PreferredLineItemUpdateModel202110Request) o; - return Objects.equals(this.data, preferredLineItemUpdateModel202110Request.data)&& - Objects.equals(this.additionalProperties, preferredLineItemUpdateModel202110Request.additionalProperties); + PreferredLineItemUpdateModelV2Request preferredLineItemUpdateModelV2Request = (PreferredLineItemUpdateModelV2Request) o; + return Objects.equals(this.data, preferredLineItemUpdateModelV2Request.data)&& + Objects.equals(this.additionalProperties, preferredLineItemUpdateModelV2Request.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PreferredLineItemUpdateModel202110Request {\n"); + sb.append("class PreferredLineItemUpdateModelV2Request {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -179,17 +179,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PreferredLineItemUpdateModel202110Request + * @throws IOException if the JSON Object is invalid with respect to PreferredLineItemUpdateModelV2Request */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!PreferredLineItemUpdateModel202110Request.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PreferredLineItemUpdateModel202110Request is not found in the empty JSON string", PreferredLineItemUpdateModel202110Request.openapiRequiredFields.toString())); + if (!PreferredLineItemUpdateModelV2Request.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PreferredLineItemUpdateModelV2Request is not found in the empty JSON string", PreferredLineItemUpdateModelV2Request.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - ResourceOfPreferredLineItemUpdateModel202110.validateJsonObject(jsonObj.getAsJsonObject("data")); + ResourceOfPreferredLineItemUpdateModelV2.validateJsonObject(jsonObj.getAsJsonObject("data")); } } @@ -197,16 +197,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PreferredLineItemUpdateModel202110Request.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PreferredLineItemUpdateModel202110Request' and its subtypes + if (!PreferredLineItemUpdateModelV2Request.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PreferredLineItemUpdateModelV2Request' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PreferredLineItemUpdateModel202110Request.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PreferredLineItemUpdateModelV2Request.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, PreferredLineItemUpdateModel202110Request value) throws IOException { + public void write(JsonWriter out, PreferredLineItemUpdateModelV2Request value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -229,11 +229,11 @@ else if (entry.getValue() instanceof Character) } @Override - public PreferredLineItemUpdateModel202110Request read(JsonReader in) throws IOException { + public PreferredLineItemUpdateModelV2Request read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - PreferredLineItemUpdateModel202110Request instance = thisAdapter.fromJsonTree(jsonObj); + PreferredLineItemUpdateModelV2Request instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -260,18 +260,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of PreferredLineItemUpdateModel202110Request given an JSON string + * Create an instance of PreferredLineItemUpdateModelV2Request given an JSON string * * @param jsonString JSON string - * @return An instance of PreferredLineItemUpdateModel202110Request - * @throws IOException if the JSON string is invalid with respect to PreferredLineItemUpdateModel202110Request + * @return An instance of PreferredLineItemUpdateModelV2Request + * @throws IOException if the JSON string is invalid with respect to PreferredLineItemUpdateModelV2Request */ - public static PreferredLineItemUpdateModel202110Request fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PreferredLineItemUpdateModel202110Request.class); + public static PreferredLineItemUpdateModelV2Request fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PreferredLineItemUpdateModelV2Request.class); } /** - * Convert an instance of PreferredLineItemUpdateModel202110Request to an JSON string + * Convert an instance of PreferredLineItemUpdateModelV2Request to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItem202110PagedListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemV2PagedListResponse.java similarity index 75% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItem202110PagedListResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemV2PagedListResponse.java index 040e1854..1bd78750 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItem202110PagedListResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemV2PagedListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.PageMetadata; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfPreferredLineItem202110; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.PageMetadata; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfPreferredLineItemV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,43 +46,43 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a paged list of response resources */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PreferredLineItem202110PagedListResponse { +public class PreferredLineItemV2PagedListResponse { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) private PageMetadata metadata; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) - private List warnings = null; + private List warnings = null; public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = null; + private List errors = null; - public PreferredLineItem202110PagedListResponse() { + public PreferredLineItemV2PagedListResponse() { } - public PreferredLineItem202110PagedListResponse( - List warnings, - List errors + public PreferredLineItemV2PagedListResponse( + List warnings, + List errors ) { this(); this.warnings = warnings; this.errors = errors; } - public PreferredLineItem202110PagedListResponse metadata(PageMetadata metadata) { + public PreferredLineItemV2PagedListResponse metadata(PageMetadata metadata) { this.metadata = metadata; return this; @@ -104,13 +104,13 @@ public void setMetadata(PageMetadata metadata) { } - public PreferredLineItem202110PagedListResponse data(List data) { + public PreferredLineItemV2PagedListResponse data(List data) { this.data = data; return this; } - public PreferredLineItem202110PagedListResponse addDataItem(ResourceOfPreferredLineItem202110 dataItem) { + public PreferredLineItemV2PagedListResponse addDataItem(ResourceOfPreferredLineItemV2 dataItem) { if (this.data == null) { this.data = new ArrayList<>(); } @@ -124,12 +124,12 @@ public PreferredLineItem202110PagedListResponse addDataItem(ResourceOfPreferredL **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -140,7 +140,7 @@ public void setData(List data) { **/ @javax.annotation.Nullable - public List getWarnings() { + public List getWarnings() { return warnings; } @@ -153,7 +153,7 @@ public List getWarnings() { **/ @javax.annotation.Nullable - public List getErrors() { + public List getErrors() { return errors; } @@ -172,9 +172,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the PreferredLineItem202110PagedListResponse instance itself + * @return the PreferredLineItemV2PagedListResponse instance itself */ - public PreferredLineItem202110PagedListResponse putAdditionalProperty(String key, Object value) { + public PreferredLineItemV2PagedListResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -213,12 +213,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PreferredLineItem202110PagedListResponse preferredLineItem202110PagedListResponse = (PreferredLineItem202110PagedListResponse) o; - return Objects.equals(this.metadata, preferredLineItem202110PagedListResponse.metadata) && - Objects.equals(this.data, preferredLineItem202110PagedListResponse.data) && - Objects.equals(this.warnings, preferredLineItem202110PagedListResponse.warnings) && - Objects.equals(this.errors, preferredLineItem202110PagedListResponse.errors)&& - Objects.equals(this.additionalProperties, preferredLineItem202110PagedListResponse.additionalProperties); + PreferredLineItemV2PagedListResponse preferredLineItemV2PagedListResponse = (PreferredLineItemV2PagedListResponse) o; + return Objects.equals(this.metadata, preferredLineItemV2PagedListResponse.metadata) && + Objects.equals(this.data, preferredLineItemV2PagedListResponse.data) && + Objects.equals(this.warnings, preferredLineItemV2PagedListResponse.warnings) && + Objects.equals(this.errors, preferredLineItemV2PagedListResponse.errors)&& + Objects.equals(this.additionalProperties, preferredLineItemV2PagedListResponse.additionalProperties); } @Override @@ -229,7 +229,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PreferredLineItem202110PagedListResponse {\n"); + sb.append("class PreferredLineItemV2PagedListResponse {\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); @@ -270,12 +270,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PreferredLineItem202110PagedListResponse + * @throws IOException if the JSON Object is invalid with respect to PreferredLineItemV2PagedListResponse */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!PreferredLineItem202110PagedListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PreferredLineItem202110PagedListResponse is not found in the empty JSON string", PreferredLineItem202110PagedListResponse.openapiRequiredFields.toString())); + if (!PreferredLineItemV2PagedListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PreferredLineItemV2PagedListResponse is not found in the empty JSON string", PreferredLineItemV2PagedListResponse.openapiRequiredFields.toString())); } } // validate the optional field `metadata` @@ -292,7 +292,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - ResourceOfPreferredLineItem202110.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + ResourceOfPreferredLineItemV2.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -306,7 +306,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `warnings` (array) for (int i = 0; i < jsonArraywarnings.size(); i++) { - ProblemDetails.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); }; } } @@ -320,7 +320,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `errors` (array) for (int i = 0; i < jsonArrayerrors.size(); i++) { - ProblemDetails.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); }; } } @@ -330,16 +330,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PreferredLineItem202110PagedListResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PreferredLineItem202110PagedListResponse' and its subtypes + if (!PreferredLineItemV2PagedListResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PreferredLineItemV2PagedListResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PreferredLineItem202110PagedListResponse.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PreferredLineItemV2PagedListResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, PreferredLineItem202110PagedListResponse value) throws IOException { + public void write(JsonWriter out, PreferredLineItemV2PagedListResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -362,11 +362,11 @@ else if (entry.getValue() instanceof Character) } @Override - public PreferredLineItem202110PagedListResponse read(JsonReader in) throws IOException { + public PreferredLineItemV2PagedListResponse read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - PreferredLineItem202110PagedListResponse instance = thisAdapter.fromJsonTree(jsonObj); + PreferredLineItemV2PagedListResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -393,18 +393,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of PreferredLineItem202110PagedListResponse given an JSON string + * Create an instance of PreferredLineItemV2PagedListResponse given an JSON string * * @param jsonString JSON string - * @return An instance of PreferredLineItem202110PagedListResponse - * @throws IOException if the JSON string is invalid with respect to PreferredLineItem202110PagedListResponse + * @return An instance of PreferredLineItemV2PagedListResponse + * @throws IOException if the JSON string is invalid with respect to PreferredLineItemV2PagedListResponse */ - public static PreferredLineItem202110PagedListResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PreferredLineItem202110PagedListResponse.class); + public static PreferredLineItemV2PagedListResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PreferredLineItemV2PagedListResponse.class); } /** - * Convert an instance of PreferredLineItem202110PagedListResponse to an JSON string + * Convert an instance of PreferredLineItemV2PagedListResponse to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItem202110Response.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemV2Response.java similarity index 76% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItem202110Response.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemV2Response.java index a83d3c39..5ee3249a 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PreferredLineItem202110Response.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PreferredLineItemV2Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfPreferredLineItem202110; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfPreferredLineItemV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,39 +45,39 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Data model for response resource + * A top-level object that encapsulates a Criteo API response for a single entity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PreferredLineItem202110Response { +public class PreferredLineItemV2Response { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private ResourceOfPreferredLineItem202110 data; + private ResourceOfPreferredLineItemV2 data; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) - private List warnings = null; + private List warnings = null; public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = null; + private List errors = null; - public PreferredLineItem202110Response() { + public PreferredLineItemV2Response() { } - public PreferredLineItem202110Response( - List warnings, - List errors + public PreferredLineItemV2Response( + List warnings, + List errors ) { this(); this.warnings = warnings; this.errors = errors; } - public PreferredLineItem202110Response data(ResourceOfPreferredLineItem202110 data) { + public PreferredLineItemV2Response data(ResourceOfPreferredLineItemV2 data) { this.data = data; return this; @@ -89,12 +89,12 @@ public PreferredLineItem202110Response data(ResourceOfPreferredLineItem202110 da **/ @javax.annotation.Nullable - public ResourceOfPreferredLineItem202110 getData() { + public ResourceOfPreferredLineItemV2 getData() { return data; } - public void setData(ResourceOfPreferredLineItem202110 data) { + public void setData(ResourceOfPreferredLineItemV2 data) { this.data = data; } @@ -105,7 +105,7 @@ public void setData(ResourceOfPreferredLineItem202110 data) { **/ @javax.annotation.Nullable - public List getWarnings() { + public List getWarnings() { return warnings; } @@ -118,7 +118,7 @@ public List getWarnings() { **/ @javax.annotation.Nullable - public List getErrors() { + public List getErrors() { return errors; } @@ -137,9 +137,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the PreferredLineItem202110Response instance itself + * @return the PreferredLineItemV2Response instance itself */ - public PreferredLineItem202110Response putAdditionalProperty(String key, Object value) { + public PreferredLineItemV2Response putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -178,11 +178,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PreferredLineItem202110Response preferredLineItem202110Response = (PreferredLineItem202110Response) o; - return Objects.equals(this.data, preferredLineItem202110Response.data) && - Objects.equals(this.warnings, preferredLineItem202110Response.warnings) && - Objects.equals(this.errors, preferredLineItem202110Response.errors)&& - Objects.equals(this.additionalProperties, preferredLineItem202110Response.additionalProperties); + PreferredLineItemV2Response preferredLineItemV2Response = (PreferredLineItemV2Response) o; + return Objects.equals(this.data, preferredLineItemV2Response.data) && + Objects.equals(this.warnings, preferredLineItemV2Response.warnings) && + Objects.equals(this.errors, preferredLineItemV2Response.errors)&& + Objects.equals(this.additionalProperties, preferredLineItemV2Response.additionalProperties); } @Override @@ -193,7 +193,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PreferredLineItem202110Response {\n"); + sb.append("class PreferredLineItemV2Response {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); @@ -232,17 +232,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PreferredLineItem202110Response + * @throws IOException if the JSON Object is invalid with respect to PreferredLineItemV2Response */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!PreferredLineItem202110Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PreferredLineItem202110Response is not found in the empty JSON string", PreferredLineItem202110Response.openapiRequiredFields.toString())); + if (!PreferredLineItemV2Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PreferredLineItemV2Response is not found in the empty JSON string", PreferredLineItemV2Response.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - ResourceOfPreferredLineItem202110.validateJsonObject(jsonObj.getAsJsonObject("data")); + ResourceOfPreferredLineItemV2.validateJsonObject(jsonObj.getAsJsonObject("data")); } if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); @@ -254,7 +254,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `warnings` (array) for (int i = 0; i < jsonArraywarnings.size(); i++) { - ProblemDetails.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); }; } } @@ -268,7 +268,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `errors` (array) for (int i = 0; i < jsonArrayerrors.size(); i++) { - ProblemDetails.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); }; } } @@ -278,16 +278,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PreferredLineItem202110Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PreferredLineItem202110Response' and its subtypes + if (!PreferredLineItemV2Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PreferredLineItemV2Response' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PreferredLineItem202110Response.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PreferredLineItemV2Response.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, PreferredLineItem202110Response value) throws IOException { + public void write(JsonWriter out, PreferredLineItemV2Response value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -310,11 +310,11 @@ else if (entry.getValue() instanceof Character) } @Override - public PreferredLineItem202110Response read(JsonReader in) throws IOException { + public PreferredLineItemV2Response read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - PreferredLineItem202110Response instance = thisAdapter.fromJsonTree(jsonObj); + PreferredLineItemV2Response instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -341,18 +341,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of PreferredLineItem202110Response given an JSON string + * Create an instance of PreferredLineItemV2Response given an JSON string * * @param jsonString JSON string - * @return An instance of PreferredLineItem202110Response - * @throws IOException if the JSON string is invalid with respect to PreferredLineItem202110Response + * @return An instance of PreferredLineItemV2Response + * @throws IOException if the JSON string is invalid with respect to PreferredLineItemV2Response */ - public static PreferredLineItem202110Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PreferredLineItem202110Response.class); + public static PreferredLineItemV2Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PreferredLineItemV2Response.class); } /** - * Convert an instance of PreferredLineItem202110Response to an JSON string + * Convert an instance of PreferredLineItemV2Response to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProblemDetails.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProblemDetails.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProblemDetails.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProblemDetails.java index 40c0153d..a1714884 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProblemDetails.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProblemDetails.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for common error or warning diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProductMetadata.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProductMetadata.java new file mode 100644 index 00000000..2bda522e --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProductMetadata.java @@ -0,0 +1,301 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Metadata about the response. Used for pagination. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ProductMetadata { + public static final String SERIALIZED_NAME_OFFSET = "offset"; + @SerializedName(SERIALIZED_NAME_OFFSET) + private Integer offset; + + public static final String SERIALIZED_NAME_LIMIT = "limit"; + @SerializedName(SERIALIZED_NAME_LIMIT) + private Integer limit; + + public static final String SERIALIZED_NAME_COUNT = "count"; + @SerializedName(SERIALIZED_NAME_COUNT) + private Integer count; + + public static final String SERIALIZED_NAME_RESPONSE_COUNT = "responseCount"; + @SerializedName(SERIALIZED_NAME_RESPONSE_COUNT) + private Integer responseCount; + + public ProductMetadata() { + } + + public ProductMetadata offset(Integer offset) { + + this.offset = offset; + return this; + } + + /** + * Zero based offset of the first item in the response. + * @return offset + **/ + @javax.annotation.Nullable + + public Integer getOffset() { + return offset; + } + + + public void setOffset(Integer offset) { + this.offset = offset; + } + + + public ProductMetadata limit(Integer limit) { + + this.limit = limit; + return this; + } + + /** + * Maximum number of items in the response. + * @return limit + **/ + @javax.annotation.Nullable + + public Integer getLimit() { + return limit; + } + + + public void setLimit(Integer limit) { + this.limit = limit; + } + + + public ProductMetadata count(Integer count) { + + this.count = count; + return this; + } + + /** + * Total number of items available. + * @return count + **/ + @javax.annotation.Nullable + + public Integer getCount() { + return count; + } + + + public void setCount(Integer count) { + this.count = count; + } + + + public ProductMetadata responseCount(Integer responseCount) { + + this.responseCount = responseCount; + return this; + } + + /** + * Number of items in the response. + * @return responseCount + **/ + @javax.annotation.Nullable + + public Integer getResponseCount() { + return responseCount; + } + + + public void setResponseCount(Integer responseCount) { + this.responseCount = responseCount; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductMetadata productMetadata = (ProductMetadata) o; + return Objects.equals(this.offset, productMetadata.offset) && + Objects.equals(this.limit, productMetadata.limit) && + Objects.equals(this.count, productMetadata.count) && + Objects.equals(this.responseCount, productMetadata.responseCount); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(offset, limit, count, responseCount); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductMetadata {\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" responseCount: ").append(toIndentedString(responseCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("offset"); + openapiFields.add("limit"); + openapiFields.add("count"); + openapiFields.add("responseCount"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ProductMetadata + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ProductMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ProductMetadata is not found in the empty JSON string", ProductMetadata.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ProductMetadata.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ProductMetadata` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ProductMetadata.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ProductMetadata' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ProductMetadata.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ProductMetadata value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ProductMetadata read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ProductMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of ProductMetadata + * @throws IOException if the JSON string is invalid with respect to ProductMetadata + */ + public static ProductMetadata fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ProductMetadata.class); + } + + /** + * Convert an instance of ProductMetadata to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProductResourceOutcome.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProductResourceOutcome.java new file mode 100644 index 00000000..e14e1192 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProductResourceOutcome.java @@ -0,0 +1,270 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RmcaCommonProblem; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Outcome object containing errors and warnings. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ProductResourceOutcome { + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public ProductResourceOutcome() { + } + + public ProductResourceOutcome errors(List errors) { + + this.errors = errors; + return this; + } + + public ProductResourceOutcome addErrorsItem(RmcaCommonProblem errorsItem) { + if (this.errors == null) { + this.errors = null; + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + public void setErrors(List errors) { + this.errors = errors; + } + + + public ProductResourceOutcome warnings(List warnings) { + + this.warnings = warnings; + return this; + } + + public ProductResourceOutcome addWarningsItem(RmcaCommonProblem warningsItem) { + if (this.warnings == null) { + this.warnings = null; + } + this.warnings.add(warningsItem); + return this; + } + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + public void setWarnings(List warnings) { + this.warnings = warnings; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductResourceOutcome productResourceOutcome = (ProductResourceOutcome) o; + return Objects.equals(this.errors, productResourceOutcome.errors) && + Objects.equals(this.warnings, productResourceOutcome.warnings); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(errors, warnings); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductResourceOutcome {\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("errors"); + openapiFields.add("warnings"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ProductResourceOutcome + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ProductResourceOutcome.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ProductResourceOutcome is not found in the empty JSON string", ProductResourceOutcome.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ProductResourceOutcome.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ProductResourceOutcome` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ProductResourceOutcome.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ProductResourceOutcome' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ProductResourceOutcome.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ProductResourceOutcome value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ProductResourceOutcome read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ProductResourceOutcome given an JSON string + * + * @param jsonString JSON string + * @return An instance of ProductResourceOutcome + * @throws IOException if the JSON string is invalid with respect to ProductResourceOutcome + */ + public static ProductResourceOutcome fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ProductResourceOutcome.class); + } + + /** + * Convert an instance of ProductResourceOutcome to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProduct.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProduct.java new file mode 100644 index 00000000..d49ae97f --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProduct.java @@ -0,0 +1,277 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.LineItemProductStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.math.BigDecimal; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A promoted product. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PromotedProduct { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_BID_OVERRIDE = "bidOverride"; + @SerializedName(SERIALIZED_NAME_BID_OVERRIDE) + private BigDecimal bidOverride; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private LineItemProductStatus status; + + public PromotedProduct() { + } + + public PromotedProduct id(String id) { + + this.id = id; + return this; + } + + /** + * A retailer defined SKU ID for the promoted product. + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public PromotedProduct bidOverride(BigDecimal bidOverride) { + + this.bidOverride = bidOverride; + return this; + } + + /** + * The bid override for the promoted product for this line item. Ignored unless adding a product. + * @return bidOverride + **/ + @javax.annotation.Nullable + + public BigDecimal getBidOverride() { + return bidOverride; + } + + + public void setBidOverride(BigDecimal bidOverride) { + this.bidOverride = bidOverride; + } + + + public PromotedProduct status(LineItemProductStatus status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + + public LineItemProductStatus getStatus() { + return status; + } + + + public void setStatus(LineItemProductStatus status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PromotedProduct promotedProduct = (PromotedProduct) o; + return Objects.equals(this.id, promotedProduct.id) && + Objects.equals(this.bidOverride, promotedProduct.bidOverride) && + Objects.equals(this.status, promotedProduct.status); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(id, bidOverride, status); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PromotedProduct {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" bidOverride: ").append(toIndentedString(bidOverride)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("id"); + openapiFields.add("bidOverride"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PromotedProduct + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!PromotedProduct.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PromotedProduct is not found in the empty JSON string", PromotedProduct.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PromotedProduct.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PromotedProduct` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PromotedProduct.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PromotedProduct' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PromotedProduct.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PromotedProduct value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PromotedProduct read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PromotedProduct given an JSON string + * + * @param jsonString JSON string + * @return An instance of PromotedProduct + * @throws IOException if the JSON string is invalid with respect to PromotedProduct + */ + public static PromotedProduct fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PromotedProduct.class); + } + + /** + * Convert an instance of PromotedProduct to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResource.java new file mode 100644 index 00000000..8bb44a8f --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResource.java @@ -0,0 +1,283 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.PromotedProduct; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Resource object containing a promoted product. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PromotedProductResource { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private PromotedProduct attributes; + + public PromotedProductResource() { + } + + public PromotedProductResource id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public PromotedProductResource type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public PromotedProductResource attributes(PromotedProduct attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public PromotedProduct getAttributes() { + return attributes; + } + + + public void setAttributes(PromotedProduct attributes) { + this.attributes = attributes; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PromotedProductResource promotedProductResource = (PromotedProductResource) o; + return Objects.equals(this.id, promotedProductResource.id) && + Objects.equals(this.type, promotedProductResource.type) && + Objects.equals(this.attributes, promotedProductResource.attributes); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(id, type, attributes); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PromotedProductResource {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("id"); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PromotedProductResource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!PromotedProductResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PromotedProductResource is not found in the empty JSON string", PromotedProductResource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PromotedProductResource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PromotedProductResource` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + PromotedProduct.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PromotedProductResource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PromotedProductResource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PromotedProductResource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PromotedProductResource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PromotedProductResource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PromotedProductResource given an JSON string + * + * @param jsonString JSON string + * @return An instance of PromotedProductResource + * @throws IOException if the JSON string is invalid with respect to PromotedProductResource + */ + public static PromotedProductResource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PromotedProductResource.class); + } + + /** + * Convert an instance of PromotedProductResource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResourceCollectionInput.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResourceCollectionInput.java new file mode 100644 index 00000000..758a945e --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResourceCollectionInput.java @@ -0,0 +1,239 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.PromotedProductResource; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Request object containing promoted products to be appended, deleted, paused or unpaused. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PromotedProductResourceCollectionInput { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + public PromotedProductResourceCollectionInput() { + } + + public PromotedProductResourceCollectionInput data(List data) { + + this.data = data; + return this; + } + + public PromotedProductResourceCollectionInput addDataItem(PromotedProductResource dataItem) { + if (this.data == null) { + this.data = null; + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PromotedProductResourceCollectionInput promotedProductResourceCollectionInput = (PromotedProductResourceCollectionInput) o; + return Objects.equals(this.data, promotedProductResourceCollectionInput.data); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PromotedProductResourceCollectionInput {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PromotedProductResourceCollectionInput + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!PromotedProductResourceCollectionInput.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PromotedProductResourceCollectionInput is not found in the empty JSON string", PromotedProductResourceCollectionInput.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PromotedProductResourceCollectionInput.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PromotedProductResourceCollectionInput` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + if (jsonArraydata != null) { + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + + // validate the optional field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + PromotedProductResource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PromotedProductResourceCollectionInput.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PromotedProductResourceCollectionInput' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PromotedProductResourceCollectionInput.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PromotedProductResourceCollectionInput value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PromotedProductResourceCollectionInput read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PromotedProductResourceCollectionInput given an JSON string + * + * @param jsonString JSON string + * @return An instance of PromotedProductResourceCollectionInput + * @throws IOException if the JSON string is invalid with respect to PromotedProductResourceCollectionInput + */ + public static PromotedProductResourceCollectionInput fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PromotedProductResourceCollectionInput.class); + } + + /** + * Convert an instance of PromotedProductResourceCollectionInput to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResourceCollectionOutcome.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResourceCollectionOutcome.java new file mode 100644 index 00000000..bbe366d8 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PromotedProductResourceCollectionOutcome.java @@ -0,0 +1,332 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ProductMetadata; +import com.criteo.api.retailmedia.v2024_10.model.PromotedProductResource; +import com.criteo.api.retailmedia.v2024_10.model.RmcaCommonProblem; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Outcome object containing promoted products. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PromotedProductResourceCollectionOutcome { + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private ProductMetadata metadata; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + public PromotedProductResourceCollectionOutcome() { + } + + + public PromotedProductResourceCollectionOutcome( + List errors, + List warnings + ) { + this(); + this.errors = errors; + this.warnings = warnings; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + public PromotedProductResourceCollectionOutcome metadata(ProductMetadata metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + + public ProductMetadata getMetadata() { + return metadata; + } + + + public void setMetadata(ProductMetadata metadata) { + this.metadata = metadata; + } + + + public PromotedProductResourceCollectionOutcome data(List data) { + + this.data = data; + return this; + } + + public PromotedProductResourceCollectionOutcome addDataItem(PromotedProductResource dataItem) { + if (this.data == null) { + this.data = null; + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PromotedProductResourceCollectionOutcome promotedProductResourceCollectionOutcome = (PromotedProductResourceCollectionOutcome) o; + return Objects.equals(this.errors, promotedProductResourceCollectionOutcome.errors) && + Objects.equals(this.warnings, promotedProductResourceCollectionOutcome.warnings) && + Objects.equals(this.metadata, promotedProductResourceCollectionOutcome.metadata) && + Objects.equals(this.data, promotedProductResourceCollectionOutcome.data); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(errors, warnings, metadata, data); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PromotedProductResourceCollectionOutcome {\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("errors"); + openapiFields.add("warnings"); + openapiFields.add("metadata"); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PromotedProductResourceCollectionOutcome + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!PromotedProductResourceCollectionOutcome.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PromotedProductResourceCollectionOutcome is not found in the empty JSON string", PromotedProductResourceCollectionOutcome.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PromotedProductResourceCollectionOutcome.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PromotedProductResourceCollectionOutcome` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + ProductMetadata.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + if (jsonArraydata != null) { + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + + // validate the optional field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + PromotedProductResource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PromotedProductResourceCollectionOutcome.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PromotedProductResourceCollectionOutcome' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PromotedProductResourceCollectionOutcome.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PromotedProductResourceCollectionOutcome value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PromotedProductResourceCollectionOutcome read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PromotedProductResourceCollectionOutcome given an JSON string + * + * @param jsonString JSON string + * @return An instance of PromotedProductResourceCollectionOutcome + * @throws IOException if the JSON string is invalid with respect to PromotedProductResourceCollectionOutcome + */ + public static PromotedProductResourceCollectionOutcome fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PromotedProductResourceCollectionOutcome.class); + } + + /** + * Convert an instance of PromotedProductResourceCollectionOutcome to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModel.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModel.java index dc9a0d55..3fe8b3d6 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ApprovalStatusModel; -import com.criteo.api.retailmedia.v2023_07.model.NegotiationStateModel; +import com.criteo.api.retailmedia.v2024_10.model.ApprovalStatusModel; +import com.criteo.api.retailmedia.v2024_10.model.NegotiationStateModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * The state of a proposal in the context of a line item. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModelResource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModelResource.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModelResource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModelResource.java index 7f6aa9b8..bb8d55a2 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModelResource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProposalStatusModel; +import com.criteo.api.retailmedia.v2024_10.model.ProposalStatusModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Resource object containing the state of a proposal in the context of a line item. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModelResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModelResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModelResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModelResponse.java index 82e0ea91..2d134261 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProposalStatusModelResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ProposalStatusModelResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProposalStatusModelResource; -import com.criteo.api.retailmedia.v2023_07.model.RmcaCommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.ProposalStatusModelResource; +import com.criteo.api.retailmedia.v2024_10.model.RmcaCommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Response object containing the state of a proposal in the context of a line item. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PutCampaignV202301.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PutCampaignV202301.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PutCampaignV202301.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PutCampaignV202301.java index f42bcb6f..a364a2d7 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PutCampaignV202301.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/PutCampaignV202301.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301; +import com.criteo.api.retailmedia.v2024_10.model.JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * An object that represents the available options to set when editing a Retail Media Campaign diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportOutcome.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ReportOutcome.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportOutcome.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ReportOutcome.java index f06f1ace..3f02dd89 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportOutcome.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ReportOutcome.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * The outcome of an API call. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPromotedProduct202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAddFundsToBalanceV2.java similarity index 76% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPromotedProduct202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAddFundsToBalanceV2.java index e469dec0..91446bb2 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPromotedProduct202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAddFundsToBalanceV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalPromotedProduct202110; +import com.criteo.api.retailmedia.v2024_10.model.AddFundsToBalanceV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,13 +43,17 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Data model for a Resource + * A class that represents a domain entity exposed by an API */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ResourceOfPromotedProduct202110 { +public class ResourceOfAddFundsToBalanceV2 { + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private AddFundsToBalanceV2 attributes; + public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; @@ -58,14 +62,32 @@ public class ResourceOfPromotedProduct202110 { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private ExternalPromotedProduct202110 attributes; + public ResourceOfAddFundsToBalanceV2() { + } + + public ResourceOfAddFundsToBalanceV2 attributes(AddFundsToBalanceV2 attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable - public ResourceOfPromotedProduct202110() { + public AddFundsToBalanceV2 getAttributes() { + return attributes; } - public ResourceOfPromotedProduct202110 id(String id) { + + public void setAttributes(AddFundsToBalanceV2 attributes) { + this.attributes = attributes; + } + + + public ResourceOfAddFundsToBalanceV2 id(String id) { this.id = id; return this; @@ -87,7 +109,7 @@ public void setId(String id) { } - public ResourceOfPromotedProduct202110 type(String type) { + public ResourceOfAddFundsToBalanceV2 type(String type) { this.type = type; return this; @@ -108,28 +130,6 @@ public void setType(String type) { this.type = type; } - - public ResourceOfPromotedProduct202110 attributes(ExternalPromotedProduct202110 attributes) { - - this.attributes = attributes; - return this; - } - - /** - * Get attributes - * @return attributes - **/ - @javax.annotation.Nullable - - public ExternalPromotedProduct202110 getAttributes() { - return attributes; - } - - - public void setAttributes(ExternalPromotedProduct202110 attributes) { - this.attributes = attributes; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -143,9 +143,9 @@ public void setAttributes(ExternalPromotedProduct202110 attributes) { * * @param key name of the property * @param value value of the property - * @return the ResourceOfPromotedProduct202110 instance itself + * @return the ResourceOfAddFundsToBalanceV2 instance itself */ - public ResourceOfPromotedProduct202110 putAdditionalProperty(String key, Object value) { + public ResourceOfAddFundsToBalanceV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -184,11 +184,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResourceOfPromotedProduct202110 resourceOfPromotedProduct202110 = (ResourceOfPromotedProduct202110) o; - return Objects.equals(this.id, resourceOfPromotedProduct202110.id) && - Objects.equals(this.type, resourceOfPromotedProduct202110.type) && - Objects.equals(this.attributes, resourceOfPromotedProduct202110.attributes)&& - Objects.equals(this.additionalProperties, resourceOfPromotedProduct202110.additionalProperties); + ResourceOfAddFundsToBalanceV2 resourceOfAddFundsToBalanceV2 = (ResourceOfAddFundsToBalanceV2) o; + return Objects.equals(this.attributes, resourceOfAddFundsToBalanceV2.attributes) && + Objects.equals(this.id, resourceOfAddFundsToBalanceV2.id) && + Objects.equals(this.type, resourceOfAddFundsToBalanceV2.type)&& + Objects.equals(this.additionalProperties, resourceOfAddFundsToBalanceV2.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -197,7 +197,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, type, attributes, additionalProperties); + return Objects.hash(attributes, id, type, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -210,10 +210,10 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ResourceOfPromotedProduct202110 {\n"); + sb.append("class ResourceOfAddFundsToBalanceV2 {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -237,9 +237,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("attributes"); openapiFields.add("id"); openapiFields.add("type"); - openapiFields.add("attributes"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -249,40 +249,40 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ResourceOfPromotedProduct202110 + * @throws IOException if the JSON Object is invalid with respect to ResourceOfAddFundsToBalanceV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ResourceOfPromotedProduct202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfPromotedProduct202110 is not found in the empty JSON string", ResourceOfPromotedProduct202110.openapiRequiredFields.toString())); + if (!ResourceOfAddFundsToBalanceV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfAddFundsToBalanceV2 is not found in the empty JSON string", ResourceOfAddFundsToBalanceV2.openapiRequiredFields.toString())); } } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + AddFundsToBalanceV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - ExternalPromotedProduct202110.validateJsonObject(jsonObj.getAsJsonObject("attributes")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResourceOfPromotedProduct202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResourceOfPromotedProduct202110' and its subtypes + if (!ResourceOfAddFundsToBalanceV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOfAddFundsToBalanceV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfPromotedProduct202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfAddFundsToBalanceV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ResourceOfPromotedProduct202110 value) throws IOException { + public void write(JsonWriter out, ResourceOfAddFundsToBalanceV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -305,11 +305,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ResourceOfPromotedProduct202110 read(JsonReader in) throws IOException { + public ResourceOfAddFundsToBalanceV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ResourceOfPromotedProduct202110 instance = thisAdapter.fromJsonTree(jsonObj); + ResourceOfAddFundsToBalanceV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -336,18 +336,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ResourceOfPromotedProduct202110 given an JSON string + * Create an instance of ResourceOfAddFundsToBalanceV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ResourceOfPromotedProduct202110 - * @throws IOException if the JSON string is invalid with respect to ResourceOfPromotedProduct202110 + * @return An instance of ResourceOfAddFundsToBalanceV2 + * @throws IOException if the JSON string is invalid with respect to ResourceOfAddFundsToBalanceV2 */ - public static ResourceOfPromotedProduct202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ResourceOfPromotedProduct202110.class); + public static ResourceOfAddFundsToBalanceV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOfAddFundsToBalanceV2.class); } /** - * Convert an instance of ResourceOfPromotedProduct202110 to an JSON string + * Convert an instance of ResourceOfAddFundsToBalanceV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItem.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAuctionLineItem.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItem.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAuctionLineItem.java index 533207b0..42e57c9f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItem.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAuctionLineItem.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalAuctionLineItem; +import com.criteo.api.retailmedia.v2024_10.model.ExternalAuctionLineItem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItemUpdateModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAuctionLineItemUpdateModel.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItemUpdateModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAuctionLineItemUpdateModel.java index c1119f59..96d6b882 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItemUpdateModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfAuctionLineItemUpdateModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalAuctionLineItemUpdateModel; +import com.criteo.api.retailmedia.v2024_10.model.ExternalAuctionLineItemUpdateModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalanceCampaign202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfBalanceCampaign202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalanceCampaign202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfBalanceCampaign202110.java index 51cf15c4..a76b9d67 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalanceCampaign202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfBalanceCampaign202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A class that represents an entity in a guild compliant way diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalance202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfBalanceResponseV2.java similarity index 79% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalance202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfBalanceResponseV2.java index 856862b2..b7df975e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalance202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfBalanceResponseV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalBalance202110; +import com.criteo.api.retailmedia.v2024_10.model.BalanceResponseV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,13 +43,17 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * A class that represents an entity in a guild compliant way + * A class that represents a domain entity exposed by an API */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ResourceOfBalance202110 { +public class ResourceOfBalanceResponseV2 { + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private BalanceResponseV2 attributes; + public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; @@ -58,14 +62,32 @@ public class ResourceOfBalance202110 { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private ExternalBalance202110 attributes; + public ResourceOfBalanceResponseV2() { + } + + public ResourceOfBalanceResponseV2 attributes(BalanceResponseV2 attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable - public ResourceOfBalance202110() { + public BalanceResponseV2 getAttributes() { + return attributes; } - public ResourceOfBalance202110 id(String id) { + + public void setAttributes(BalanceResponseV2 attributes) { + this.attributes = attributes; + } + + + public ResourceOfBalanceResponseV2 id(String id) { this.id = id; return this; @@ -87,7 +109,7 @@ public void setId(String id) { } - public ResourceOfBalance202110 type(String type) { + public ResourceOfBalanceResponseV2 type(String type) { this.type = type; return this; @@ -108,28 +130,6 @@ public void setType(String type) { this.type = type; } - - public ResourceOfBalance202110 attributes(ExternalBalance202110 attributes) { - - this.attributes = attributes; - return this; - } - - /** - * Get attributes - * @return attributes - **/ - @javax.annotation.Nullable - - public ExternalBalance202110 getAttributes() { - return attributes; - } - - - public void setAttributes(ExternalBalance202110 attributes) { - this.attributes = attributes; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -143,9 +143,9 @@ public void setAttributes(ExternalBalance202110 attributes) { * * @param key name of the property * @param value value of the property - * @return the ResourceOfBalance202110 instance itself + * @return the ResourceOfBalanceResponseV2 instance itself */ - public ResourceOfBalance202110 putAdditionalProperty(String key, Object value) { + public ResourceOfBalanceResponseV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -184,11 +184,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResourceOfBalance202110 resourceOfBalance202110 = (ResourceOfBalance202110) o; - return Objects.equals(this.id, resourceOfBalance202110.id) && - Objects.equals(this.type, resourceOfBalance202110.type) && - Objects.equals(this.attributes, resourceOfBalance202110.attributes)&& - Objects.equals(this.additionalProperties, resourceOfBalance202110.additionalProperties); + ResourceOfBalanceResponseV2 resourceOfBalanceResponseV2 = (ResourceOfBalanceResponseV2) o; + return Objects.equals(this.attributes, resourceOfBalanceResponseV2.attributes) && + Objects.equals(this.id, resourceOfBalanceResponseV2.id) && + Objects.equals(this.type, resourceOfBalanceResponseV2.type)&& + Objects.equals(this.additionalProperties, resourceOfBalanceResponseV2.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -197,7 +197,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, type, attributes, additionalProperties); + return Objects.hash(attributes, id, type, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -210,10 +210,10 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ResourceOfBalance202110 {\n"); + sb.append("class ResourceOfBalanceResponseV2 {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -237,9 +237,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("attributes"); openapiFields.add("id"); openapiFields.add("type"); - openapiFields.add("attributes"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -249,40 +249,40 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ResourceOfBalance202110 + * @throws IOException if the JSON Object is invalid with respect to ResourceOfBalanceResponseV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ResourceOfBalance202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfBalance202110 is not found in the empty JSON string", ResourceOfBalance202110.openapiRequiredFields.toString())); + if (!ResourceOfBalanceResponseV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfBalanceResponseV2 is not found in the empty JSON string", ResourceOfBalanceResponseV2.openapiRequiredFields.toString())); } } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + BalanceResponseV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - ExternalBalance202110.validateJsonObject(jsonObj.getAsJsonObject("attributes")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResourceOfBalance202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResourceOfBalance202110' and its subtypes + if (!ResourceOfBalanceResponseV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOfBalanceResponseV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfBalance202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfBalanceResponseV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ResourceOfBalance202110 value) throws IOException { + public void write(JsonWriter out, ResourceOfBalanceResponseV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -305,11 +305,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ResourceOfBalance202110 read(JsonReader in) throws IOException { + public ResourceOfBalanceResponseV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ResourceOfBalance202110 instance = thisAdapter.fromJsonTree(jsonObj); + ResourceOfBalanceResponseV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -336,18 +336,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ResourceOfBalance202110 given an JSON string + * Create an instance of ResourceOfBalanceResponseV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ResourceOfBalance202110 - * @throws IOException if the JSON string is invalid with respect to ResourceOfBalance202110 + * @return An instance of ResourceOfBalanceResponseV2 + * @throws IOException if the JSON string is invalid with respect to ResourceOfBalanceResponseV2 */ - public static ResourceOfBalance202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ResourceOfBalance202110.class); + public static ResourceOfBalanceResponseV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOfBalanceResponseV2.class); } /** - * Convert an instance of ResourceOfBalance202110 to an JSON string + * Convert an instance of ResourceOfBalanceResponseV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCategory202204.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCategory202204.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCategory202204.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCategory202204.java index 704921b5..7b90a3b7 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCategory202204.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCategory202204.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.Category202204; +import com.criteo.api.retailmedia.v2024_10.model.Category202204; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfChangeDatesOfBalanceV2.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfChangeDatesOfBalanceV2.java new file mode 100644 index 00000000..f852b5f8 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfChangeDatesOfBalanceV2.java @@ -0,0 +1,358 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ChangeDatesOfBalanceV2; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A class that represents a domain entity exposed by an API + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ResourceOfChangeDatesOfBalanceV2 { + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private ChangeDatesOfBalanceV2 attributes; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public ResourceOfChangeDatesOfBalanceV2() { + } + + public ResourceOfChangeDatesOfBalanceV2 attributes(ChangeDatesOfBalanceV2 attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public ChangeDatesOfBalanceV2 getAttributes() { + return attributes; + } + + + public void setAttributes(ChangeDatesOfBalanceV2 attributes) { + this.attributes = attributes; + } + + + public ResourceOfChangeDatesOfBalanceV2 id(String id) { + + this.id = id; + return this; + } + + /** + * Id of the entity + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public ResourceOfChangeDatesOfBalanceV2 type(String type) { + + this.type = type; + return this; + } + + /** + * Canonical type name of the entity + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ResourceOfChangeDatesOfBalanceV2 instance itself + */ + public ResourceOfChangeDatesOfBalanceV2 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceOfChangeDatesOfBalanceV2 resourceOfChangeDatesOfBalanceV2 = (ResourceOfChangeDatesOfBalanceV2) o; + return Objects.equals(this.attributes, resourceOfChangeDatesOfBalanceV2.attributes) && + Objects.equals(this.id, resourceOfChangeDatesOfBalanceV2.id) && + Objects.equals(this.type, resourceOfChangeDatesOfBalanceV2.type)&& + Objects.equals(this.additionalProperties, resourceOfChangeDatesOfBalanceV2.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceOfChangeDatesOfBalanceV2 {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attributes"); + openapiFields.add("id"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ResourceOfChangeDatesOfBalanceV2 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ResourceOfChangeDatesOfBalanceV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfChangeDatesOfBalanceV2 is not found in the empty JSON string", ResourceOfChangeDatesOfBalanceV2.openapiRequiredFields.toString())); + } + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + ChangeDatesOfBalanceV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ResourceOfChangeDatesOfBalanceV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOfChangeDatesOfBalanceV2' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfChangeDatesOfBalanceV2.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ResourceOfChangeDatesOfBalanceV2 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ResourceOfChangeDatesOfBalanceV2 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ResourceOfChangeDatesOfBalanceV2 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ResourceOfChangeDatesOfBalanceV2 given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResourceOfChangeDatesOfBalanceV2 + * @throws IOException if the JSON string is invalid with respect to ResourceOfChangeDatesOfBalanceV2 + */ + public static ResourceOfChangeDatesOfBalanceV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOfChangeDatesOfBalanceV2.class); + } + + /** + * Convert an instance of ResourceOfChangeDatesOfBalanceV2 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCommonLineItem.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCommonLineItem.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCommonLineItem.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCommonLineItem.java index c40d955a..55c7da6e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCommonLineItem.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCommonLineItem.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalCommonLineItem; +import com.criteo.api.retailmedia.v2024_10.model.ExternalCommonLineItem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreateBalanceV2.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreateBalanceV2.java new file mode 100644 index 00000000..7198bd0a --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreateBalanceV2.java @@ -0,0 +1,358 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.CreateBalanceV2; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A class that represents a domain entity exposed by an API + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ResourceOfCreateBalanceV2 { + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private CreateBalanceV2 attributes; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public ResourceOfCreateBalanceV2() { + } + + public ResourceOfCreateBalanceV2 attributes(CreateBalanceV2 attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public CreateBalanceV2 getAttributes() { + return attributes; + } + + + public void setAttributes(CreateBalanceV2 attributes) { + this.attributes = attributes; + } + + + public ResourceOfCreateBalanceV2 id(String id) { + + this.id = id; + return this; + } + + /** + * Id of the entity + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public ResourceOfCreateBalanceV2 type(String type) { + + this.type = type; + return this; + } + + /** + * Canonical type name of the entity + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ResourceOfCreateBalanceV2 instance itself + */ + public ResourceOfCreateBalanceV2 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceOfCreateBalanceV2 resourceOfCreateBalanceV2 = (ResourceOfCreateBalanceV2) o; + return Objects.equals(this.attributes, resourceOfCreateBalanceV2.attributes) && + Objects.equals(this.id, resourceOfCreateBalanceV2.id) && + Objects.equals(this.type, resourceOfCreateBalanceV2.type)&& + Objects.equals(this.additionalProperties, resourceOfCreateBalanceV2.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceOfCreateBalanceV2 {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attributes"); + openapiFields.add("id"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ResourceOfCreateBalanceV2 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ResourceOfCreateBalanceV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfCreateBalanceV2 is not found in the empty JSON string", ResourceOfCreateBalanceV2.openapiRequiredFields.toString())); + } + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + CreateBalanceV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ResourceOfCreateBalanceV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOfCreateBalanceV2' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfCreateBalanceV2.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ResourceOfCreateBalanceV2 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ResourceOfCreateBalanceV2 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ResourceOfCreateBalanceV2 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ResourceOfCreateBalanceV2 given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResourceOfCreateBalanceV2 + * @throws IOException if the JSON string is invalid with respect to ResourceOfCreateBalanceV2 + */ + public static ResourceOfCreateBalanceV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOfCreateBalanceV2.class); + } + + /** + * Convert an instance of ResourceOfCreateBalanceV2 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreative202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreative202110.java index f261c230..31037fe9 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreative202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.Creative202110; +import com.criteo.api.retailmedia.v2024_10.model.Creative202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202210.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreative202210.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202210.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreative202210.java index f9ea553f..81a881fc 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202210.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreative202210.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.Creative202210; +import com.criteo.api.retailmedia.v2024_10.model.Creative202210; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreativeV2.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreativeV2.java new file mode 100644 index 00000000..ae85e0c9 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfCreativeV2.java @@ -0,0 +1,358 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ExternalCreativeV2; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A class that represents a domain entity exposed by an API + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ResourceOfCreativeV2 { + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private ExternalCreativeV2 attributes; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public ResourceOfCreativeV2() { + } + + public ResourceOfCreativeV2 attributes(ExternalCreativeV2 attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public ExternalCreativeV2 getAttributes() { + return attributes; + } + + + public void setAttributes(ExternalCreativeV2 attributes) { + this.attributes = attributes; + } + + + public ResourceOfCreativeV2 id(String id) { + + this.id = id; + return this; + } + + /** + * Id of the entity + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public ResourceOfCreativeV2 type(String type) { + + this.type = type; + return this; + } + + /** + * Canonical type name of the entity + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ResourceOfCreativeV2 instance itself + */ + public ResourceOfCreativeV2 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceOfCreativeV2 resourceOfCreativeV2 = (ResourceOfCreativeV2) o; + return Objects.equals(this.attributes, resourceOfCreativeV2.attributes) && + Objects.equals(this.id, resourceOfCreativeV2.id) && + Objects.equals(this.type, resourceOfCreativeV2.type)&& + Objects.equals(this.additionalProperties, resourceOfCreativeV2.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceOfCreativeV2 {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attributes"); + openapiFields.add("id"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ResourceOfCreativeV2 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ResourceOfCreativeV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfCreativeV2 is not found in the empty JSON string", ResourceOfCreativeV2.openapiRequiredFields.toString())); + } + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + ExternalCreativeV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ResourceOfCreativeV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOfCreativeV2' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfCreativeV2.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ResourceOfCreativeV2 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ResourceOfCreativeV2 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ResourceOfCreativeV2 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ResourceOfCreativeV2 given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResourceOfCreativeV2 + * @throws IOException if the JSON string is invalid with respect to ResourceOfCreativeV2 + */ + public static ResourceOfCreativeV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOfCreativeV2.class); + } + + /** + * Convert an instance of ResourceOfCreativeV2 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfLineItemBidMultipliers.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfLineItemBidMultipliersV2.java similarity index 80% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfLineItemBidMultipliers.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfLineItemBidMultipliersV2.java index b7ee8d1d..ba87a9ce 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfLineItemBidMultipliers.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfLineItemBidMultipliersV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.LineItemBidMultipliers; +import com.criteo.api.retailmedia.v2024_10.model.ExternalLineItemBidMultipliersV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,16 +43,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Data model for a Resource + * A class that represents a domain entity exposed by an API */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ResourceOfLineItemBidMultipliers { +public class ResourceOfLineItemBidMultipliersV2 { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private LineItemBidMultipliers attributes; + private ExternalLineItemBidMultipliersV2 attributes; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -62,10 +62,10 @@ public class ResourceOfLineItemBidMultipliers { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public ResourceOfLineItemBidMultipliers() { + public ResourceOfLineItemBidMultipliersV2() { } - public ResourceOfLineItemBidMultipliers attributes(LineItemBidMultipliers attributes) { + public ResourceOfLineItemBidMultipliersV2 attributes(ExternalLineItemBidMultipliersV2 attributes) { this.attributes = attributes; return this; @@ -77,17 +77,17 @@ public ResourceOfLineItemBidMultipliers attributes(LineItemBidMultipliers attrib **/ @javax.annotation.Nullable - public LineItemBidMultipliers getAttributes() { + public ExternalLineItemBidMultipliersV2 getAttributes() { return attributes; } - public void setAttributes(LineItemBidMultipliers attributes) { + public void setAttributes(ExternalLineItemBidMultipliersV2 attributes) { this.attributes = attributes; } - public ResourceOfLineItemBidMultipliers id(String id) { + public ResourceOfLineItemBidMultipliersV2 id(String id) { this.id = id; return this; @@ -109,7 +109,7 @@ public void setId(String id) { } - public ResourceOfLineItemBidMultipliers type(String type) { + public ResourceOfLineItemBidMultipliersV2 type(String type) { this.type = type; return this; @@ -143,9 +143,9 @@ public void setType(String type) { * * @param key name of the property * @param value value of the property - * @return the ResourceOfLineItemBidMultipliers instance itself + * @return the ResourceOfLineItemBidMultipliersV2 instance itself */ - public ResourceOfLineItemBidMultipliers putAdditionalProperty(String key, Object value) { + public ResourceOfLineItemBidMultipliersV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -184,11 +184,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResourceOfLineItemBidMultipliers resourceOfLineItemBidMultipliers = (ResourceOfLineItemBidMultipliers) o; - return Objects.equals(this.attributes, resourceOfLineItemBidMultipliers.attributes) && - Objects.equals(this.id, resourceOfLineItemBidMultipliers.id) && - Objects.equals(this.type, resourceOfLineItemBidMultipliers.type)&& - Objects.equals(this.additionalProperties, resourceOfLineItemBidMultipliers.additionalProperties); + ResourceOfLineItemBidMultipliersV2 resourceOfLineItemBidMultipliersV2 = (ResourceOfLineItemBidMultipliersV2) o; + return Objects.equals(this.attributes, resourceOfLineItemBidMultipliersV2.attributes) && + Objects.equals(this.id, resourceOfLineItemBidMultipliersV2.id) && + Objects.equals(this.type, resourceOfLineItemBidMultipliersV2.type)&& + Objects.equals(this.additionalProperties, resourceOfLineItemBidMultipliersV2.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -210,7 +210,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ResourceOfLineItemBidMultipliers {\n"); + sb.append("class ResourceOfLineItemBidMultipliersV2 {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); @@ -249,17 +249,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ResourceOfLineItemBidMultipliers + * @throws IOException if the JSON Object is invalid with respect to ResourceOfLineItemBidMultipliersV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ResourceOfLineItemBidMultipliers.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfLineItemBidMultipliers is not found in the empty JSON string", ResourceOfLineItemBidMultipliers.openapiRequiredFields.toString())); + if (!ResourceOfLineItemBidMultipliersV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfLineItemBidMultipliersV2 is not found in the empty JSON string", ResourceOfLineItemBidMultipliersV2.openapiRequiredFields.toString())); } } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - LineItemBidMultipliers.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + ExternalLineItemBidMultipliersV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -273,16 +273,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResourceOfLineItemBidMultipliers.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResourceOfLineItemBidMultipliers' and its subtypes + if (!ResourceOfLineItemBidMultipliersV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOfLineItemBidMultipliersV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfLineItemBidMultipliers.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfLineItemBidMultipliersV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ResourceOfLineItemBidMultipliers value) throws IOException { + public void write(JsonWriter out, ResourceOfLineItemBidMultipliersV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -305,11 +305,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ResourceOfLineItemBidMultipliers read(JsonReader in) throws IOException { + public ResourceOfLineItemBidMultipliersV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ResourceOfLineItemBidMultipliers instance = thisAdapter.fromJsonTree(jsonObj); + ResourceOfLineItemBidMultipliersV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -336,18 +336,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ResourceOfLineItemBidMultipliers given an JSON string + * Create an instance of ResourceOfLineItemBidMultipliersV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ResourceOfLineItemBidMultipliers - * @throws IOException if the JSON string is invalid with respect to ResourceOfLineItemBidMultipliers + * @return An instance of ResourceOfLineItemBidMultipliersV2 + * @throws IOException if the JSON string is invalid with respect to ResourceOfLineItemBidMultipliersV2 */ - public static ResourceOfLineItemBidMultipliers fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ResourceOfLineItemBidMultipliers.class); + public static ResourceOfLineItemBidMultipliersV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOfLineItemBidMultipliersV2.class); } /** - * Convert an instance of ResourceOfLineItemBidMultipliers to an JSON string + * Convert an instance of ResourceOfLineItemBidMultipliersV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItemUpdateModel202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfPreferredLineItemUpdateModelV2.java similarity index 80% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItemUpdateModel202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfPreferredLineItemUpdateModelV2.java index cd5206e6..45c9d298 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItemUpdateModel202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfPreferredLineItemUpdateModelV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalPreferredLineItemUpdateModel202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalPreferredLineItemUpdateModelV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,13 +43,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a Resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ResourceOfPreferredLineItemUpdateModel202110 { +public class ResourceOfPreferredLineItemUpdateModelV2 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; @@ -60,12 +60,12 @@ public class ResourceOfPreferredLineItemUpdateModel202110 { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private ExternalPreferredLineItemUpdateModel202110 attributes; + private ExternalPreferredLineItemUpdateModelV2 attributes; - public ResourceOfPreferredLineItemUpdateModel202110() { + public ResourceOfPreferredLineItemUpdateModelV2() { } - public ResourceOfPreferredLineItemUpdateModel202110 id(String id) { + public ResourceOfPreferredLineItemUpdateModelV2 id(String id) { this.id = id; return this; @@ -87,7 +87,7 @@ public void setId(String id) { } - public ResourceOfPreferredLineItemUpdateModel202110 type(String type) { + public ResourceOfPreferredLineItemUpdateModelV2 type(String type) { this.type = type; return this; @@ -109,7 +109,7 @@ public void setType(String type) { } - public ResourceOfPreferredLineItemUpdateModel202110 attributes(ExternalPreferredLineItemUpdateModel202110 attributes) { + public ResourceOfPreferredLineItemUpdateModelV2 attributes(ExternalPreferredLineItemUpdateModelV2 attributes) { this.attributes = attributes; return this; @@ -121,12 +121,12 @@ public ResourceOfPreferredLineItemUpdateModel202110 attributes(ExternalPreferred **/ @javax.annotation.Nullable - public ExternalPreferredLineItemUpdateModel202110 getAttributes() { + public ExternalPreferredLineItemUpdateModelV2 getAttributes() { return attributes; } - public void setAttributes(ExternalPreferredLineItemUpdateModel202110 attributes) { + public void setAttributes(ExternalPreferredLineItemUpdateModelV2 attributes) { this.attributes = attributes; } @@ -143,9 +143,9 @@ public void setAttributes(ExternalPreferredLineItemUpdateModel202110 attributes) * * @param key name of the property * @param value value of the property - * @return the ResourceOfPreferredLineItemUpdateModel202110 instance itself + * @return the ResourceOfPreferredLineItemUpdateModelV2 instance itself */ - public ResourceOfPreferredLineItemUpdateModel202110 putAdditionalProperty(String key, Object value) { + public ResourceOfPreferredLineItemUpdateModelV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -184,11 +184,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResourceOfPreferredLineItemUpdateModel202110 resourceOfPreferredLineItemUpdateModel202110 = (ResourceOfPreferredLineItemUpdateModel202110) o; - return Objects.equals(this.id, resourceOfPreferredLineItemUpdateModel202110.id) && - Objects.equals(this.type, resourceOfPreferredLineItemUpdateModel202110.type) && - Objects.equals(this.attributes, resourceOfPreferredLineItemUpdateModel202110.attributes)&& - Objects.equals(this.additionalProperties, resourceOfPreferredLineItemUpdateModel202110.additionalProperties); + ResourceOfPreferredLineItemUpdateModelV2 resourceOfPreferredLineItemUpdateModelV2 = (ResourceOfPreferredLineItemUpdateModelV2) o; + return Objects.equals(this.id, resourceOfPreferredLineItemUpdateModelV2.id) && + Objects.equals(this.type, resourceOfPreferredLineItemUpdateModelV2.type) && + Objects.equals(this.attributes, resourceOfPreferredLineItemUpdateModelV2.attributes)&& + Objects.equals(this.additionalProperties, resourceOfPreferredLineItemUpdateModelV2.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -210,7 +210,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ResourceOfPreferredLineItemUpdateModel202110 {\n"); + sb.append("class ResourceOfPreferredLineItemUpdateModelV2 {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); @@ -249,12 +249,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ResourceOfPreferredLineItemUpdateModel202110 + * @throws IOException if the JSON Object is invalid with respect to ResourceOfPreferredLineItemUpdateModelV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ResourceOfPreferredLineItemUpdateModel202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfPreferredLineItemUpdateModel202110 is not found in the empty JSON string", ResourceOfPreferredLineItemUpdateModel202110.openapiRequiredFields.toString())); + if (!ResourceOfPreferredLineItemUpdateModelV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfPreferredLineItemUpdateModelV2 is not found in the empty JSON string", ResourceOfPreferredLineItemUpdateModelV2.openapiRequiredFields.toString())); } } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { @@ -265,7 +265,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - ExternalPreferredLineItemUpdateModel202110.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + ExternalPreferredLineItemUpdateModelV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } } @@ -273,16 +273,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResourceOfPreferredLineItemUpdateModel202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResourceOfPreferredLineItemUpdateModel202110' and its subtypes + if (!ResourceOfPreferredLineItemUpdateModelV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOfPreferredLineItemUpdateModelV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfPreferredLineItemUpdateModel202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfPreferredLineItemUpdateModelV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ResourceOfPreferredLineItemUpdateModel202110 value) throws IOException { + public void write(JsonWriter out, ResourceOfPreferredLineItemUpdateModelV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -305,11 +305,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ResourceOfPreferredLineItemUpdateModel202110 read(JsonReader in) throws IOException { + public ResourceOfPreferredLineItemUpdateModelV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ResourceOfPreferredLineItemUpdateModel202110 instance = thisAdapter.fromJsonTree(jsonObj); + ResourceOfPreferredLineItemUpdateModelV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -336,18 +336,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ResourceOfPreferredLineItemUpdateModel202110 given an JSON string + * Create an instance of ResourceOfPreferredLineItemUpdateModelV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ResourceOfPreferredLineItemUpdateModel202110 - * @throws IOException if the JSON string is invalid with respect to ResourceOfPreferredLineItemUpdateModel202110 + * @return An instance of ResourceOfPreferredLineItemUpdateModelV2 + * @throws IOException if the JSON string is invalid with respect to ResourceOfPreferredLineItemUpdateModelV2 */ - public static ResourceOfPreferredLineItemUpdateModel202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ResourceOfPreferredLineItemUpdateModel202110.class); + public static ResourceOfPreferredLineItemUpdateModelV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOfPreferredLineItemUpdateModelV2.class); } /** - * Convert an instance of ResourceOfPreferredLineItemUpdateModel202110 to an JSON string + * Convert an instance of ResourceOfPreferredLineItemUpdateModelV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItem202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfPreferredLineItemV2.java similarity index 79% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItem202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfPreferredLineItemV2.java index 55909a14..8cce0dbf 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItem202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfPreferredLineItemV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalPreferredLineItem202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalPreferredLineItemV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,13 +43,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a Resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ResourceOfPreferredLineItem202110 { +public class ResourceOfPreferredLineItemV2 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private String id; @@ -60,12 +60,12 @@ public class ResourceOfPreferredLineItem202110 { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private ExternalPreferredLineItem202110 attributes; + private ExternalPreferredLineItemV2 attributes; - public ResourceOfPreferredLineItem202110() { + public ResourceOfPreferredLineItemV2() { } - public ResourceOfPreferredLineItem202110 id(String id) { + public ResourceOfPreferredLineItemV2 id(String id) { this.id = id; return this; @@ -87,7 +87,7 @@ public void setId(String id) { } - public ResourceOfPreferredLineItem202110 type(String type) { + public ResourceOfPreferredLineItemV2 type(String type) { this.type = type; return this; @@ -109,7 +109,7 @@ public void setType(String type) { } - public ResourceOfPreferredLineItem202110 attributes(ExternalPreferredLineItem202110 attributes) { + public ResourceOfPreferredLineItemV2 attributes(ExternalPreferredLineItemV2 attributes) { this.attributes = attributes; return this; @@ -121,12 +121,12 @@ public ResourceOfPreferredLineItem202110 attributes(ExternalPreferredLineItem202 **/ @javax.annotation.Nullable - public ExternalPreferredLineItem202110 getAttributes() { + public ExternalPreferredLineItemV2 getAttributes() { return attributes; } - public void setAttributes(ExternalPreferredLineItem202110 attributes) { + public void setAttributes(ExternalPreferredLineItemV2 attributes) { this.attributes = attributes; } @@ -143,9 +143,9 @@ public void setAttributes(ExternalPreferredLineItem202110 attributes) { * * @param key name of the property * @param value value of the property - * @return the ResourceOfPreferredLineItem202110 instance itself + * @return the ResourceOfPreferredLineItemV2 instance itself */ - public ResourceOfPreferredLineItem202110 putAdditionalProperty(String key, Object value) { + public ResourceOfPreferredLineItemV2 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -184,11 +184,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResourceOfPreferredLineItem202110 resourceOfPreferredLineItem202110 = (ResourceOfPreferredLineItem202110) o; - return Objects.equals(this.id, resourceOfPreferredLineItem202110.id) && - Objects.equals(this.type, resourceOfPreferredLineItem202110.type) && - Objects.equals(this.attributes, resourceOfPreferredLineItem202110.attributes)&& - Objects.equals(this.additionalProperties, resourceOfPreferredLineItem202110.additionalProperties); + ResourceOfPreferredLineItemV2 resourceOfPreferredLineItemV2 = (ResourceOfPreferredLineItemV2) o; + return Objects.equals(this.id, resourceOfPreferredLineItemV2.id) && + Objects.equals(this.type, resourceOfPreferredLineItemV2.type) && + Objects.equals(this.attributes, resourceOfPreferredLineItemV2.attributes)&& + Objects.equals(this.additionalProperties, resourceOfPreferredLineItemV2.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -210,7 +210,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ResourceOfPreferredLineItem202110 {\n"); + sb.append("class ResourceOfPreferredLineItemV2 {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); @@ -249,12 +249,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ResourceOfPreferredLineItem202110 + * @throws IOException if the JSON Object is invalid with respect to ResourceOfPreferredLineItemV2 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ResourceOfPreferredLineItem202110.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfPreferredLineItem202110 is not found in the empty JSON string", ResourceOfPreferredLineItem202110.openapiRequiredFields.toString())); + if (!ResourceOfPreferredLineItemV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfPreferredLineItemV2 is not found in the empty JSON string", ResourceOfPreferredLineItemV2.openapiRequiredFields.toString())); } } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { @@ -265,7 +265,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - ExternalPreferredLineItem202110.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + ExternalPreferredLineItemV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } } @@ -273,16 +273,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResourceOfPreferredLineItem202110.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResourceOfPreferredLineItem202110' and its subtypes + if (!ResourceOfPreferredLineItemV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOfPreferredLineItemV2' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfPreferredLineItem202110.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfPreferredLineItemV2.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ResourceOfPreferredLineItem202110 value) throws IOException { + public void write(JsonWriter out, ResourceOfPreferredLineItemV2 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -305,11 +305,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ResourceOfPreferredLineItem202110 read(JsonReader in) throws IOException { + public ResourceOfPreferredLineItemV2 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ResourceOfPreferredLineItem202110 instance = thisAdapter.fromJsonTree(jsonObj); + ResourceOfPreferredLineItemV2 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -336,18 +336,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ResourceOfPreferredLineItem202110 given an JSON string + * Create an instance of ResourceOfPreferredLineItemV2 given an JSON string * * @param jsonString JSON string - * @return An instance of ResourceOfPreferredLineItem202110 - * @throws IOException if the JSON string is invalid with respect to ResourceOfPreferredLineItem202110 + * @return An instance of ResourceOfPreferredLineItemV2 + * @throws IOException if the JSON string is invalid with respect to ResourceOfPreferredLineItemV2 */ - public static ResourceOfPreferredLineItem202110 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ResourceOfPreferredLineItem202110.class); + public static ResourceOfPreferredLineItemV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOfPreferredLineItemV2.class); } /** - * Convert an instance of ResourceOfPreferredLineItem202110 to an JSON string + * Convert an instance of ResourceOfPreferredLineItemV2 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfRetailMediaAccount.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfRetailMediaAccount.java new file mode 100644 index 00000000..74a7737c --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfRetailMediaAccount.java @@ -0,0 +1,283 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaAccount; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A class that represents a domain entity exposed by an API. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ResourceOfRetailMediaAccount { + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private RetailMediaAccount attributes; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public ResourceOfRetailMediaAccount() { + } + + public ResourceOfRetailMediaAccount attributes(RetailMediaAccount attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public RetailMediaAccount getAttributes() { + return attributes; + } + + + public void setAttributes(RetailMediaAccount attributes) { + this.attributes = attributes; + } + + + public ResourceOfRetailMediaAccount id(String id) { + + this.id = id; + return this; + } + + /** + * Unique identifier of this resource. + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public ResourceOfRetailMediaAccount type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceOfRetailMediaAccount resourceOfRetailMediaAccount = (ResourceOfRetailMediaAccount) o; + return Objects.equals(this.attributes, resourceOfRetailMediaAccount.attributes) && + Objects.equals(this.id, resourceOfRetailMediaAccount.id) && + Objects.equals(this.type, resourceOfRetailMediaAccount.type); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceOfRetailMediaAccount {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attributes"); + openapiFields.add("id"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ResourceOfRetailMediaAccount + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ResourceOfRetailMediaAccount.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfRetailMediaAccount is not found in the empty JSON string", ResourceOfRetailMediaAccount.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ResourceOfRetailMediaAccount.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ResourceOfRetailMediaAccount` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + RetailMediaAccount.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ResourceOfRetailMediaAccount.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOfRetailMediaAccount' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfRetailMediaAccount.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ResourceOfRetailMediaAccount value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ResourceOfRetailMediaAccount read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ResourceOfRetailMediaAccount given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResourceOfRetailMediaAccount + * @throws IOException if the JSON string is invalid with respect to ResourceOfRetailMediaAccount + */ + public static ResourceOfRetailMediaAccount fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOfRetailMediaAccount.class); + } + + /** + * Convert an instance of ResourceOfRetailMediaAccount to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfTemplate.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfTemplate.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfTemplate.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfTemplate.java index d6f80fc9..8c4ef35a 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfTemplate.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfTemplate.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.Template; +import com.criteo.api.retailmedia.v2024_10.model.Template; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a Resource diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfUpdateBalanceModelV2.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfUpdateBalanceModelV2.java new file mode 100644 index 00000000..044abfb7 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOfUpdateBalanceModelV2.java @@ -0,0 +1,358 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.UpdateBalanceModelV2; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A class that represents a domain entity exposed by an API + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ResourceOfUpdateBalanceModelV2 { + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private UpdateBalanceModelV2 attributes; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public ResourceOfUpdateBalanceModelV2() { + } + + public ResourceOfUpdateBalanceModelV2 attributes(UpdateBalanceModelV2 attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public UpdateBalanceModelV2 getAttributes() { + return attributes; + } + + + public void setAttributes(UpdateBalanceModelV2 attributes) { + this.attributes = attributes; + } + + + public ResourceOfUpdateBalanceModelV2 id(String id) { + + this.id = id; + return this; + } + + /** + * Id of the entity + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public ResourceOfUpdateBalanceModelV2 type(String type) { + + this.type = type; + return this; + } + + /** + * Canonical type name of the entity + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ResourceOfUpdateBalanceModelV2 instance itself + */ + public ResourceOfUpdateBalanceModelV2 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceOfUpdateBalanceModelV2 resourceOfUpdateBalanceModelV2 = (ResourceOfUpdateBalanceModelV2) o; + return Objects.equals(this.attributes, resourceOfUpdateBalanceModelV2.attributes) && + Objects.equals(this.id, resourceOfUpdateBalanceModelV2.id) && + Objects.equals(this.type, resourceOfUpdateBalanceModelV2.type)&& + Objects.equals(this.additionalProperties, resourceOfUpdateBalanceModelV2.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceOfUpdateBalanceModelV2 {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attributes"); + openapiFields.add("id"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ResourceOfUpdateBalanceModelV2 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ResourceOfUpdateBalanceModelV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfUpdateBalanceModelV2 is not found in the empty JSON string", ResourceOfUpdateBalanceModelV2.openapiRequiredFields.toString())); + } + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + UpdateBalanceModelV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ResourceOfUpdateBalanceModelV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOfUpdateBalanceModelV2' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfUpdateBalanceModelV2.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ResourceOfUpdateBalanceModelV2 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ResourceOfUpdateBalanceModelV2 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ResourceOfUpdateBalanceModelV2 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ResourceOfUpdateBalanceModelV2 given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResourceOfUpdateBalanceModelV2 + * @throws IOException if the JSON string is invalid with respect to ResourceOfUpdateBalanceModelV2 + */ + public static ResourceOfUpdateBalanceModelV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOfUpdateBalanceModelV2.class); + } + + /** + * Convert an instance of ResourceOfUpdateBalanceModelV2 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOutcome.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOutcome.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOutcome.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOutcome.java index 5ce91cd8..2f472723 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOutcome.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOutcome.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmcaCommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.RmcaCommonProblem; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Outcome object containing errors and warnings. diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOutcomeOfRetailMediaAccount.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOutcomeOfRetailMediaAccount.java new file mode 100644 index 00000000..730e933a --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ResourceOutcomeOfRetailMediaAccount.java @@ -0,0 +1,300 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfRetailMediaAccount; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single entity. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ResourceOutcomeOfRetailMediaAccount { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private ResourceOfRetailMediaAccount data; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public ResourceOutcomeOfRetailMediaAccount() { + } + + + public ResourceOutcomeOfRetailMediaAccount( + List warnings, + List errors + ) { + this(); + this.warnings = warnings; + this.errors = errors; + } + + public ResourceOutcomeOfRetailMediaAccount data(ResourceOfRetailMediaAccount data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public ResourceOfRetailMediaAccount getData() { + return data; + } + + + public void setData(ResourceOfRetailMediaAccount data) { + this.data = data; + } + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceOutcomeOfRetailMediaAccount resourceOutcomeOfRetailMediaAccount = (ResourceOutcomeOfRetailMediaAccount) o; + return Objects.equals(this.data, resourceOutcomeOfRetailMediaAccount.data) && + Objects.equals(this.warnings, resourceOutcomeOfRetailMediaAccount.warnings) && + Objects.equals(this.errors, resourceOutcomeOfRetailMediaAccount.errors); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(data, warnings, errors); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceOutcomeOfRetailMediaAccount {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + openapiFields.add("warnings"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ResourceOutcomeOfRetailMediaAccount + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ResourceOutcomeOfRetailMediaAccount.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOutcomeOfRetailMediaAccount is not found in the empty JSON string", ResourceOutcomeOfRetailMediaAccount.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ResourceOutcomeOfRetailMediaAccount.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ResourceOutcomeOfRetailMediaAccount` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + ResourceOfRetailMediaAccount.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ResourceOutcomeOfRetailMediaAccount.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOutcomeOfRetailMediaAccount' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOutcomeOfRetailMediaAccount.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ResourceOutcomeOfRetailMediaAccount value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ResourceOutcomeOfRetailMediaAccount read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ResourceOutcomeOfRetailMediaAccount given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResourceOutcomeOfRetailMediaAccount + * @throws IOException if the JSON string is invalid with respect to ResourceOutcomeOfRetailMediaAccount + */ + public static ResourceOutcomeOfRetailMediaAccount fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOutcomeOfRetailMediaAccount.class); + } + + /** + * Convert an instance of ResourceOutcomeOfRetailMediaAccount to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaAccount.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaAccount.java new file mode 100644 index 00000000..608975c9 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaAccount.java @@ -0,0 +1,582 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * The details for a newly created account + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RetailMediaAccount { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_COMPANY_NAME = "companyName"; + @SerializedName(SERIALIZED_NAME_COMPANY_NAME) + private String companyName; + + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + + /** + * Type for the account + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + UNKNOWN("Unknown"), + + SUPPLY("Supply"), + + DEMAND("Demand"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + /** + * subtype for the account + */ + @JsonAdapter(SubTypeEnum.Adapter.class) + public enum SubTypeEnum { + UNKNOWN("Unknown"), + + BRAND("Brand"), + + SELLER("Seller"); + + private String value; + + SubTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SubTypeEnum fromValue(String value) { + for (SubTypeEnum b : SubTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SubTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SubTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SubTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_SUB_TYPE = "subType"; + @SerializedName(SERIALIZED_NAME_SUB_TYPE) + private SubTypeEnum subType; + + public static final String SERIALIZED_NAME_COUNTRY_IDS = "countryIds"; + @SerializedName(SERIALIZED_NAME_COUNTRY_IDS) + private List countryIds = null; + + public static final String SERIALIZED_NAME_CURRENCY_ID = "currencyId"; + @SerializedName(SERIALIZED_NAME_CURRENCY_ID) + private String currencyId; + + public static final String SERIALIZED_NAME_PARENT_ACCOUNT_LABEL = "parentAccountLabel"; + @SerializedName(SERIALIZED_NAME_PARENT_ACCOUNT_LABEL) + private String parentAccountLabel; + + public static final String SERIALIZED_NAME_TIME_ZONE = "timeZone"; + @SerializedName(SERIALIZED_NAME_TIME_ZONE) + private String timeZone; + + public RetailMediaAccount() { + } + + public RetailMediaAccount name(String name) { + + this.name = name; + return this; + } + + /** + * account name + * @return name + **/ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public RetailMediaAccount companyName(String companyName) { + + this.companyName = companyName; + return this; + } + + /** + * Paying entity name of ads for the Digital Services Act + * @return companyName + **/ + @javax.annotation.Nullable + + public String getCompanyName() { + return companyName; + } + + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + + public RetailMediaAccount onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * On behalf entity name of ads for the Digital Services Act + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + + + public RetailMediaAccount type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Type for the account + * @return type + **/ + @javax.annotation.Nullable + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public RetailMediaAccount subType(SubTypeEnum subType) { + + this.subType = subType; + return this; + } + + /** + * subtype for the account + * @return subType + **/ + @javax.annotation.Nullable + + public SubTypeEnum getSubType() { + return subType; + } + + + public void setSubType(SubTypeEnum subType) { + this.subType = subType; + } + + + public RetailMediaAccount countryIds(List countryIds) { + + this.countryIds = countryIds; + return this; + } + + public RetailMediaAccount addCountryIdsItem(String countryIdsItem) { + if (this.countryIds == null) { + this.countryIds = null; + } + this.countryIds.add(countryIdsItem); + return this; + } + + /** + * list of countries associated with the account + * @return countryIds + **/ + @javax.annotation.Nullable + + public List getCountryIds() { + return countryIds; + } + + + public void setCountryIds(List countryIds) { + this.countryIds = countryIds; + } + + + public RetailMediaAccount currencyId(String currencyId) { + + this.currencyId = currencyId; + return this; + } + + /** + * the currency for the account + * @return currencyId + **/ + @javax.annotation.Nullable + + public String getCurrencyId() { + return currencyId; + } + + + public void setCurrencyId(String currencyId) { + this.currencyId = currencyId; + } + + + public RetailMediaAccount parentAccountLabel(String parentAccountLabel) { + + this.parentAccountLabel = parentAccountLabel; + return this; + } + + /** + * parent account label for the account + * @return parentAccountLabel + **/ + @javax.annotation.Nullable + + public String getParentAccountLabel() { + return parentAccountLabel; + } + + + public void setParentAccountLabel(String parentAccountLabel) { + this.parentAccountLabel = parentAccountLabel; + } + + + public RetailMediaAccount timeZone(String timeZone) { + + this.timeZone = timeZone; + return this; + } + + /** + * the timezone for the account + * @return timeZone + **/ + @javax.annotation.Nullable + + public String getTimeZone() { + return timeZone; + } + + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetailMediaAccount retailMediaAccount = (RetailMediaAccount) o; + return Objects.equals(this.name, retailMediaAccount.name) && + Objects.equals(this.companyName, retailMediaAccount.companyName) && + Objects.equals(this.onBehalfCompanyName, retailMediaAccount.onBehalfCompanyName) && + Objects.equals(this.type, retailMediaAccount.type) && + Objects.equals(this.subType, retailMediaAccount.subType) && + Objects.equals(this.countryIds, retailMediaAccount.countryIds) && + Objects.equals(this.currencyId, retailMediaAccount.currencyId) && + Objects.equals(this.parentAccountLabel, retailMediaAccount.parentAccountLabel) && + Objects.equals(this.timeZone, retailMediaAccount.timeZone); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(name, companyName, onBehalfCompanyName, type, subType, countryIds, currencyId, parentAccountLabel, timeZone); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetailMediaAccount {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); + sb.append(" countryIds: ").append(toIndentedString(countryIds)).append("\n"); + sb.append(" currencyId: ").append(toIndentedString(currencyId)).append("\n"); + sb.append(" parentAccountLabel: ").append(toIndentedString(parentAccountLabel)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); + openapiFields.add("type"); + openapiFields.add("subType"); + openapiFields.add("countryIds"); + openapiFields.add("currencyId"); + openapiFields.add("parentAccountLabel"); + openapiFields.add("timeZone"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RetailMediaAccount + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RetailMediaAccount.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RetailMediaAccount is not found in the empty JSON string", RetailMediaAccount.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!RetailMediaAccount.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RetailMediaAccount` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); + } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if ((jsonObj.get("subType") != null && !jsonObj.get("subType").isJsonNull()) && !jsonObj.get("subType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `subType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subType").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("countryIds") != null && !jsonObj.get("countryIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `countryIds` to be an array in the JSON string but got `%s`", jsonObj.get("countryIds").toString())); + } + if ((jsonObj.get("currencyId") != null && !jsonObj.get("currencyId").isJsonNull()) && !jsonObj.get("currencyId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currencyId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currencyId").toString())); + } + if ((jsonObj.get("parentAccountLabel") != null && !jsonObj.get("parentAccountLabel").isJsonNull()) && !jsonObj.get("parentAccountLabel").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `parentAccountLabel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parentAccountLabel").toString())); + } + if ((jsonObj.get("timeZone") != null && !jsonObj.get("timeZone").isJsonNull()) && !jsonObj.get("timeZone").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `timeZone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timeZone").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RetailMediaAccount.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetailMediaAccount' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetailMediaAccount.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RetailMediaAccount value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RetailMediaAccount read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RetailMediaAccount given an JSON string + * + * @param jsonString JSON string + * @return An instance of RetailMediaAccount + * @throws IOException if the JSON string is invalid with respect to RetailMediaAccount + */ + public static RetailMediaAccount fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RetailMediaAccount.class); + } + + /** + * Convert an instance of RetailMediaAccount to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaBrandAccountCreation.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaBrandAccountCreation.java new file mode 100644 index 00000000..781a0b86 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaBrandAccountCreation.java @@ -0,0 +1,324 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * the initial set up and configuration options for a new private market demand brand account + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RetailMediaBrandAccountCreation { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_COMPANY_NAME = "companyName"; + @SerializedName(SERIALIZED_NAME_COMPANY_NAME) + private String companyName; + + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + + public static final String SERIALIZED_NAME_BRANDS = "brands"; + @SerializedName(SERIALIZED_NAME_BRANDS) + private List brands = null; + + public RetailMediaBrandAccountCreation() { + } + + public RetailMediaBrandAccountCreation name(String name) { + + this.name = name; + return this; + } + + /** + * the name of the account, must be unique across all accounts + * @return name + **/ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public RetailMediaBrandAccountCreation companyName(String companyName) { + + this.companyName = companyName; + return this; + } + + /** + * Paying entity name of ads for the Digital Services Act + * @return companyName + **/ + @javax.annotation.Nullable + + public String getCompanyName() { + return companyName; + } + + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + + public RetailMediaBrandAccountCreation onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * On behalf entity name of ads for the Digital Services Act + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + + + public RetailMediaBrandAccountCreation brands(List brands) { + + this.brands = brands; + return this; + } + + public RetailMediaBrandAccountCreation addBrandsItem(Long brandsItem) { + if (this.brands == null) { + this.brands = null; + } + this.brands.add(brandsItem); + return this; + } + + /** + * list of brands to link to the new account + * @return brands + **/ + @javax.annotation.Nullable + + public List getBrands() { + return brands; + } + + + public void setBrands(List brands) { + this.brands = brands; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetailMediaBrandAccountCreation retailMediaBrandAccountCreation = (RetailMediaBrandAccountCreation) o; + return Objects.equals(this.name, retailMediaBrandAccountCreation.name) && + Objects.equals(this.companyName, retailMediaBrandAccountCreation.companyName) && + Objects.equals(this.onBehalfCompanyName, retailMediaBrandAccountCreation.onBehalfCompanyName) && + Objects.equals(this.brands, retailMediaBrandAccountCreation.brands); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(name, companyName, onBehalfCompanyName, brands); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetailMediaBrandAccountCreation {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); + sb.append(" brands: ").append(toIndentedString(brands)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); + openapiFields.add("brands"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RetailMediaBrandAccountCreation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RetailMediaBrandAccountCreation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RetailMediaBrandAccountCreation is not found in the empty JSON string", RetailMediaBrandAccountCreation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!RetailMediaBrandAccountCreation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RetailMediaBrandAccountCreation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); + } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("brands") != null && !jsonObj.get("brands").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `brands` to be an array in the JSON string but got `%s`", jsonObj.get("brands").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RetailMediaBrandAccountCreation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetailMediaBrandAccountCreation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetailMediaBrandAccountCreation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RetailMediaBrandAccountCreation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RetailMediaBrandAccountCreation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RetailMediaBrandAccountCreation given an JSON string + * + * @param jsonString JSON string + * @return An instance of RetailMediaBrandAccountCreation + * @throws IOException if the JSON string is invalid with respect to RetailMediaBrandAccountCreation + */ + public static RetailMediaBrandAccountCreation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RetailMediaBrandAccountCreation.class); + } + + /** + * Convert an instance of RetailMediaBrandAccountCreation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaBrands.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaBrands.java new file mode 100644 index 00000000..1f0adb44 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaBrands.java @@ -0,0 +1,228 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A collection of brand ids + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RetailMediaBrands { + public static final String SERIALIZED_NAME_BRAND_IDS = "brandIds"; + @SerializedName(SERIALIZED_NAME_BRAND_IDS) + private List brandIds = null; + + public RetailMediaBrands() { + } + + public RetailMediaBrands brandIds(List brandIds) { + + this.brandIds = brandIds; + return this; + } + + public RetailMediaBrands addBrandIdsItem(Long brandIdsItem) { + if (this.brandIds == null) { + this.brandIds = null; + } + this.brandIds.add(brandIdsItem); + return this; + } + + /** + * Get brandIds + * @return brandIds + **/ + @javax.annotation.Nullable + + public List getBrandIds() { + return brandIds; + } + + + public void setBrandIds(List brandIds) { + this.brandIds = brandIds; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetailMediaBrands retailMediaBrands = (RetailMediaBrands) o; + return Objects.equals(this.brandIds, retailMediaBrands.brandIds); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(brandIds); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetailMediaBrands {\n"); + sb.append(" brandIds: ").append(toIndentedString(brandIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("brandIds"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RetailMediaBrands + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RetailMediaBrands.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RetailMediaBrands is not found in the empty JSON string", RetailMediaBrands.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!RetailMediaBrands.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RetailMediaBrands` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("brandIds") != null && !jsonObj.get("brandIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `brandIds` to be an array in the JSON string but got `%s`", jsonObj.get("brandIds").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RetailMediaBrands.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetailMediaBrands' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetailMediaBrands.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RetailMediaBrands value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RetailMediaBrands read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RetailMediaBrands given an JSON string + * + * @param jsonString JSON string + * @return An instance of RetailMediaBrands + * @throws IOException if the JSON string is invalid with respect to RetailMediaBrands + */ + public static RetailMediaBrands fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RetailMediaBrands.class); + } + + /** + * Convert an instance of RetailMediaBrands to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendment.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendment.java new file mode 100644 index 00000000..a889e40f --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendment.java @@ -0,0 +1,332 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistAmendmentAttributes; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Request data of retail media contact list amendment + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RetailMediaContactlistAmendment { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private RetailMediaContactlistAmendmentAttributes attributes; + + public RetailMediaContactlistAmendment() { + } + + public RetailMediaContactlistAmendment type(String type) { + + this.type = type; + return this; + } + + /** + * User List + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public RetailMediaContactlistAmendment attributes(RetailMediaContactlistAmendmentAttributes attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nonnull + + public RetailMediaContactlistAmendmentAttributes getAttributes() { + return attributes; + } + + + public void setAttributes(RetailMediaContactlistAmendmentAttributes attributes) { + this.attributes = attributes; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RetailMediaContactlistAmendment instance itself + */ + public RetailMediaContactlistAmendment putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetailMediaContactlistAmendment retailMediaContactlistAmendment = (RetailMediaContactlistAmendment) o; + return Objects.equals(this.type, retailMediaContactlistAmendment.type) && + Objects.equals(this.attributes, retailMediaContactlistAmendment.attributes)&& + Objects.equals(this.additionalProperties, retailMediaContactlistAmendment.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetailMediaContactlistAmendment {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("attributes"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RetailMediaContactlistAmendment + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RetailMediaContactlistAmendment.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RetailMediaContactlistAmendment is not found in the empty JSON string", RetailMediaContactlistAmendment.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : RetailMediaContactlistAmendment.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the required field `attributes` + RetailMediaContactlistAmendmentAttributes.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RetailMediaContactlistAmendment.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetailMediaContactlistAmendment' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetailMediaContactlistAmendment.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RetailMediaContactlistAmendment value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RetailMediaContactlistAmendment read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RetailMediaContactlistAmendment instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RetailMediaContactlistAmendment given an JSON string + * + * @param jsonString JSON string + * @return An instance of RetailMediaContactlistAmendment + * @throws IOException if the JSON string is invalid with respect to RetailMediaContactlistAmendment + */ + public static RetailMediaContactlistAmendment fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RetailMediaContactlistAmendment.class); + } + + /** + * Convert an instance of RetailMediaContactlistAmendment to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorCreateV2.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendmentAttributes.java similarity index 53% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorCreateV2.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendmentAttributes.java index 7ab616a8..dd7445d3 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacySegmentUserBehaviorCreateV2.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendmentAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -21,8 +21,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.util.LinkedHashSet; -import java.util.Set; +import java.util.ArrayList; +import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -44,27 +44,25 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * User Behavior Details. + * Attributes of retail media contact list amendment */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacySegmentUserBehaviorCreateV2 { +public class RetailMediaContactlistAmendmentAttributes { /** - * Type of shopper activity used to generate the audience. + * Whether to add or remove users */ - @JsonAdapter(UserActionEnum.Adapter.class) - public enum UserActionEnum { - BUY("buy"), + @JsonAdapter(OperationEnum.Adapter.class) + public enum OperationEnum { + ADD("add"), - VIEW("view"), - - ADDTOCART("addToCart"); + REMOVE("remove"); private String value; - UserActionEnum(String value) { + OperationEnum(String value) { this.value = value; } @@ -77,8 +75,8 @@ public String toString() { return String.valueOf(value); } - public static UserActionEnum fromValue(String value) { - for (UserActionEnum b : UserActionEnum.values()) { + public static OperationEnum fromValue(String value) { + for (OperationEnum b : OperationEnum.values()) { if (b.value.equals(value)) { return b; } @@ -86,50 +84,44 @@ public static UserActionEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - public static class Adapter extends TypeAdapter { + public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final UserActionEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final OperationEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public UserActionEnum read(final JsonReader jsonReader) throws IOException { + public OperationEnum read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); - return UserActionEnum.fromValue(value); + return OperationEnum.fromValue(value); } } } - public static final String SERIALIZED_NAME_USER_ACTION = "userAction"; - @SerializedName(SERIALIZED_NAME_USER_ACTION) - private UserActionEnum userAction; + public static final String SERIALIZED_NAME_OPERATION = "operation"; + @SerializedName(SERIALIZED_NAME_OPERATION) + private OperationEnum operation; /** - * Length of lookback window + * What type of identifiers are used */ - @JsonAdapter(LookbackWindowEnum.Adapter.class) - public enum LookbackWindowEnum { - P7D("P7D"), - - P14D("P14D"), + @JsonAdapter(IdentifierTypeEnum.Adapter.class) + public enum IdentifierTypeEnum { + EMAIL("Email"), - P30D("P30D"), + USERIDENTIFIER("UserIdentifier"), - P45D("P45D"), + IDENTITYLINK("IdentityLink"), - P60D("P60D"), + GUM("Gum"), - P90D("P90D"), + CUSTOMERID("CustomerId"), - P120D("P120D"), - - P150D("P150D"), - - P180D("P180D"); + PHONENUMBER("PhoneNumber"); private String value; - LookbackWindowEnum(String value) { + IdentifierTypeEnum(String value) { this.value = value; } @@ -142,145 +134,108 @@ public String toString() { return String.valueOf(value); } - public static LookbackWindowEnum fromValue(String value) { - for (LookbackWindowEnum b : LookbackWindowEnum.values()) { + public static IdentifierTypeEnum fromValue(String value) { + for (IdentifierTypeEnum b : IdentifierTypeEnum.values()) { if (b.value.equals(value)) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } - public static class Adapter extends TypeAdapter { + public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final LookbackWindowEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final IdentifierTypeEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public LookbackWindowEnum read(final JsonReader jsonReader) throws IOException { + public IdentifierTypeEnum read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); - return LookbackWindowEnum.fromValue(value); + return IdentifierTypeEnum.fromValue(value); } } } - public static final String SERIALIZED_NAME_LOOKBACK_WINDOW = "lookbackWindow"; - @SerializedName(SERIALIZED_NAME_LOOKBACK_WINDOW) - private LookbackWindowEnum lookbackWindow; - - public static final String SERIALIZED_NAME_CATEGORY_IDS = "categoryIds"; - @SerializedName(SERIALIZED_NAME_CATEGORY_IDS) - private Set categoryIds = null; - - public static final String SERIALIZED_NAME_BRAND_IDS = "brandIds"; - @SerializedName(SERIALIZED_NAME_BRAND_IDS) - private Set brandIds = null; - - public RmLegacySegmentUserBehaviorCreateV2() { - } - - public RmLegacySegmentUserBehaviorCreateV2 userAction(UserActionEnum userAction) { - - this.userAction = userAction; - return this; - } - - /** - * Type of shopper activity used to generate the audience. - * @return userAction - **/ - @javax.annotation.Nonnull - - public UserActionEnum getUserAction() { - return userAction; - } + public static final String SERIALIZED_NAME_IDENTIFIER_TYPE = "identifierType"; + @SerializedName(SERIALIZED_NAME_IDENTIFIER_TYPE) + private IdentifierTypeEnum identifierType; + public static final String SERIALIZED_NAME_IDENTIFIERS = "identifiers"; + @SerializedName(SERIALIZED_NAME_IDENTIFIERS) + private List identifiers = new ArrayList<>(); - public void setUserAction(UserActionEnum userAction) { - this.userAction = userAction; + public RetailMediaContactlistAmendmentAttributes() { } - - public RmLegacySegmentUserBehaviorCreateV2 lookbackWindow(LookbackWindowEnum lookbackWindow) { + public RetailMediaContactlistAmendmentAttributes operation(OperationEnum operation) { - this.lookbackWindow = lookbackWindow; + this.operation = operation; return this; } /** - * Length of lookback window - * @return lookbackWindow + * Whether to add or remove users + * @return operation **/ @javax.annotation.Nonnull - public LookbackWindowEnum getLookbackWindow() { - return lookbackWindow; + public OperationEnum getOperation() { + return operation; } - public void setLookbackWindow(LookbackWindowEnum lookbackWindow) { - this.lookbackWindow = lookbackWindow; + public void setOperation(OperationEnum operation) { + this.operation = operation; } - public RmLegacySegmentUserBehaviorCreateV2 categoryIds(Set categoryIds) { + public RetailMediaContactlistAmendmentAttributes identifierType(IdentifierTypeEnum identifierType) { - this.categoryIds = categoryIds; - return this; - } - - public RmLegacySegmentUserBehaviorCreateV2 addCategoryIdsItem(Integer categoryIdsItem) { - if (this.categoryIds == null) { - this.categoryIds = null; - } - this.categoryIds.add(categoryIdsItem); + this.identifierType = identifierType; return this; } /** - * The categories to target - * @return categoryIds + * What type of identifiers are used + * @return identifierType **/ @javax.annotation.Nullable - public Set getCategoryIds() { - return categoryIds; + public IdentifierTypeEnum getIdentifierType() { + return identifierType; } - public void setCategoryIds(Set categoryIds) { - this.categoryIds = categoryIds; + public void setIdentifierType(IdentifierTypeEnum identifierType) { + this.identifierType = identifierType; } - public RmLegacySegmentUserBehaviorCreateV2 brandIds(Set brandIds) { + public RetailMediaContactlistAmendmentAttributes identifiers(List identifiers) { - this.brandIds = brandIds; + this.identifiers = identifiers; return this; } - public RmLegacySegmentUserBehaviorCreateV2 addBrandIdsItem(Long brandIdsItem) { - if (this.brandIds == null) { - this.brandIds = null; - } - this.brandIds.add(brandIdsItem); + public RetailMediaContactlistAmendmentAttributes addIdentifiersItem(String identifiersItem) { + this.identifiers.add(identifiersItem); return this; } /** - * The brands to target - * @return brandIds + * The users to add or remove, each in the schema specified + * @return identifiers **/ - @javax.annotation.Nullable + @javax.annotation.Nonnull - public Set getBrandIds() { - return brandIds; + public List getIdentifiers() { + return identifiers; } - public void setBrandIds(Set brandIds) { - this.brandIds = brandIds; + public void setIdentifiers(List identifiers) { + this.identifiers = identifiers; } /** @@ -296,9 +251,9 @@ public void setBrandIds(Set brandIds) { * * @param key name of the property * @param value value of the property - * @return the RmLegacySegmentUserBehaviorCreateV2 instance itself + * @return the RetailMediaContactlistAmendmentAttributes instance itself */ - public RmLegacySegmentUserBehaviorCreateV2 putAdditionalProperty(String key, Object value) { + public RetailMediaContactlistAmendmentAttributes putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -337,12 +292,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacySegmentUserBehaviorCreateV2 rmLegacySegmentUserBehaviorCreateV2 = (RmLegacySegmentUserBehaviorCreateV2) o; - return Objects.equals(this.userAction, rmLegacySegmentUserBehaviorCreateV2.userAction) && - Objects.equals(this.lookbackWindow, rmLegacySegmentUserBehaviorCreateV2.lookbackWindow) && - Objects.equals(this.categoryIds, rmLegacySegmentUserBehaviorCreateV2.categoryIds) && - Objects.equals(this.brandIds, rmLegacySegmentUserBehaviorCreateV2.brandIds)&& - Objects.equals(this.additionalProperties, rmLegacySegmentUserBehaviorCreateV2.additionalProperties); + RetailMediaContactlistAmendmentAttributes retailMediaContactlistAmendmentAttributes = (RetailMediaContactlistAmendmentAttributes) o; + return Objects.equals(this.operation, retailMediaContactlistAmendmentAttributes.operation) && + Objects.equals(this.identifierType, retailMediaContactlistAmendmentAttributes.identifierType) && + Objects.equals(this.identifiers, retailMediaContactlistAmendmentAttributes.identifiers)&& + Objects.equals(this.additionalProperties, retailMediaContactlistAmendmentAttributes.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -351,7 +305,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(userAction, lookbackWindow, categoryIds, brandIds, additionalProperties); + return Objects.hash(operation, identifierType, identifiers, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -364,11 +318,10 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacySegmentUserBehaviorCreateV2 {\n"); - sb.append(" userAction: ").append(toIndentedString(userAction)).append("\n"); - sb.append(" lookbackWindow: ").append(toIndentedString(lookbackWindow)).append("\n"); - sb.append(" categoryIds: ").append(toIndentedString(categoryIds)).append("\n"); - sb.append(" brandIds: ").append(toIndentedString(brandIds)).append("\n"); + sb.append("class RetailMediaContactlistAmendmentAttributes {\n"); + sb.append(" operation: ").append(toIndentedString(operation)).append("\n"); + sb.append(" identifierType: ").append(toIndentedString(identifierType)).append("\n"); + sb.append(" identifiers: ").append(toIndentedString(identifiers)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -392,49 +345,46 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("userAction"); - openapiFields.add("lookbackWindow"); - openapiFields.add("categoryIds"); - openapiFields.add("brandIds"); + openapiFields.add("operation"); + openapiFields.add("identifierType"); + openapiFields.add("identifiers"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userAction"); - openapiRequiredFields.add("lookbackWindow"); + openapiRequiredFields.add("operation"); + openapiRequiredFields.add("identifiers"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacySegmentUserBehaviorCreateV2 + * @throws IOException if the JSON Object is invalid with respect to RetailMediaContactlistAmendmentAttributes */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacySegmentUserBehaviorCreateV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacySegmentUserBehaviorCreateV2 is not found in the empty JSON string", RmLegacySegmentUserBehaviorCreateV2.openapiRequiredFields.toString())); + if (!RetailMediaContactlistAmendmentAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RetailMediaContactlistAmendmentAttributes is not found in the empty JSON string", RetailMediaContactlistAmendmentAttributes.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacySegmentUserBehaviorCreateV2.openapiRequiredFields) { + for (String requiredField : RetailMediaContactlistAmendmentAttributes.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (!jsonObj.get("userAction").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userAction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userAction").toString())); - } - if (!jsonObj.get("lookbackWindow").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `lookbackWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lookbackWindow").toString())); + if (!jsonObj.get("operation").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `operation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operation").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("categoryIds") != null && !jsonObj.get("categoryIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `categoryIds` to be an array in the JSON string but got `%s`", jsonObj.get("categoryIds").toString())); + if ((jsonObj.get("identifierType") != null && !jsonObj.get("identifierType").isJsonNull()) && !jsonObj.get("identifierType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `identifierType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierType").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("brandIds") != null && !jsonObj.get("brandIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `brandIds` to be an array in the JSON string but got `%s`", jsonObj.get("brandIds").toString())); + // ensure the required json array is present + if (jsonObj.get("identifiers") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("identifiers").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `identifiers` to be an array in the JSON string but got `%s`", jsonObj.get("identifiers").toString())); } } @@ -442,16 +392,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacySegmentUserBehaviorCreateV2.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacySegmentUserBehaviorCreateV2' and its subtypes + if (!RetailMediaContactlistAmendmentAttributes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetailMediaContactlistAmendmentAttributes' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacySegmentUserBehaviorCreateV2.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetailMediaContactlistAmendmentAttributes.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacySegmentUserBehaviorCreateV2 value) throws IOException { + public void write(JsonWriter out, RetailMediaContactlistAmendmentAttributes value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -474,11 +424,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacySegmentUserBehaviorCreateV2 read(JsonReader in) throws IOException { + public RetailMediaContactlistAmendmentAttributes read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacySegmentUserBehaviorCreateV2 instance = thisAdapter.fromJsonTree(jsonObj); + RetailMediaContactlistAmendmentAttributes instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -505,18 +455,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacySegmentUserBehaviorCreateV2 given an JSON string + * Create an instance of RetailMediaContactlistAmendmentAttributes given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacySegmentUserBehaviorCreateV2 - * @throws IOException if the JSON string is invalid with respect to RmLegacySegmentUserBehaviorCreateV2 + * @return An instance of RetailMediaContactlistAmendmentAttributes + * @throws IOException if the JSON string is invalid with respect to RetailMediaContactlistAmendmentAttributes */ - public static RmLegacySegmentUserBehaviorCreateV2 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacySegmentUserBehaviorCreateV2.class); + public static RetailMediaContactlistAmendmentAttributes fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RetailMediaContactlistAmendmentAttributes.class); } /** - * Convert an instance of RmLegacySegmentUserBehaviorCreateV2 to an JSON string + * Convert an instance of RetailMediaContactlistAmendmentAttributes to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendmentRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendmentRequest.java new file mode 100644 index 00000000..789118fc --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistAmendmentRequest.java @@ -0,0 +1,288 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistAmendment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Request of Retail Media contactlist + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RetailMediaContactlistAmendmentRequest { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private RetailMediaContactlistAmendment data; + + public RetailMediaContactlistAmendmentRequest() { + } + + public RetailMediaContactlistAmendmentRequest data(RetailMediaContactlistAmendment data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nonnull + + public RetailMediaContactlistAmendment getData() { + return data; + } + + + public void setData(RetailMediaContactlistAmendment data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RetailMediaContactlistAmendmentRequest instance itself + */ + public RetailMediaContactlistAmendmentRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetailMediaContactlistAmendmentRequest retailMediaContactlistAmendmentRequest = (RetailMediaContactlistAmendmentRequest) o; + return Objects.equals(this.data, retailMediaContactlistAmendmentRequest.data)&& + Objects.equals(this.additionalProperties, retailMediaContactlistAmendmentRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetailMediaContactlistAmendmentRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("data"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RetailMediaContactlistAmendmentRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RetailMediaContactlistAmendmentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RetailMediaContactlistAmendmentRequest is not found in the empty JSON string", RetailMediaContactlistAmendmentRequest.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : RetailMediaContactlistAmendmentRequest.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `data` + RetailMediaContactlistAmendment.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RetailMediaContactlistAmendmentRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetailMediaContactlistAmendmentRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetailMediaContactlistAmendmentRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RetailMediaContactlistAmendmentRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RetailMediaContactlistAmendmentRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RetailMediaContactlistAmendmentRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RetailMediaContactlistAmendmentRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of RetailMediaContactlistAmendmentRequest + * @throws IOException if the JSON string is invalid with respect to RetailMediaContactlistAmendmentRequest + */ + public static RetailMediaContactlistAmendmentRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RetailMediaContactlistAmendmentRequest.class); + } + + /** + * Convert an instance of RetailMediaContactlistAmendmentRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperation.java similarity index 75% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperation.java index e7092f23..90829955 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperation.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceError; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceWarning; -import com.criteo.api.marketingsolutions.v2023_07.model.BasicAudienceDefinition; +import com.criteo.api.retailmedia.v2024_10.model.AudienceError; +import com.criteo.api.retailmedia.v2024_10.model.AudienceWarning; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistOperationResponseAttributes; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,16 +46,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Response of a newly created audience + * Operation on Retail Media contact list */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class NewAudienceResponse { +public class RetailMediaContactlistOperation { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private BasicAudienceDefinition data; + private RetailMediaContactlistOperationResponseAttributes data; public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @@ -65,10 +65,10 @@ public class NewAudienceResponse { @SerializedName(SERIALIZED_NAME_WARNINGS) private List warnings = new ArrayList<>(); - public NewAudienceResponse() { + public RetailMediaContactlistOperation() { } - public NewAudienceResponse data(BasicAudienceDefinition data) { + public RetailMediaContactlistOperation data(RetailMediaContactlistOperationResponseAttributes data) { this.data = data; return this; @@ -80,23 +80,23 @@ public NewAudienceResponse data(BasicAudienceDefinition data) { **/ @javax.annotation.Nonnull - public BasicAudienceDefinition getData() { + public RetailMediaContactlistOperationResponseAttributes getData() { return data; } - public void setData(BasicAudienceDefinition data) { + public void setData(RetailMediaContactlistOperationResponseAttributes data) { this.data = data; } - public NewAudienceResponse errors(List errors) { + public RetailMediaContactlistOperation errors(List errors) { this.errors = errors; return this; } - public NewAudienceResponse addErrorsItem(AudienceError errorsItem) { + public RetailMediaContactlistOperation addErrorsItem(AudienceError errorsItem) { this.errors.add(errorsItem); return this; } @@ -117,13 +117,13 @@ public void setErrors(List errors) { } - public NewAudienceResponse warnings(List warnings) { + public RetailMediaContactlistOperation warnings(List warnings) { this.warnings = warnings; return this; } - public NewAudienceResponse addWarningsItem(AudienceWarning warningsItem) { + public RetailMediaContactlistOperation addWarningsItem(AudienceWarning warningsItem) { this.warnings.add(warningsItem); return this; } @@ -156,9 +156,9 @@ public void setWarnings(List warnings) { * * @param key name of the property * @param value value of the property - * @return the NewAudienceResponse instance itself + * @return the RetailMediaContactlistOperation instance itself */ - public NewAudienceResponse putAdditionalProperty(String key, Object value) { + public RetailMediaContactlistOperation putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -197,11 +197,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NewAudienceResponse newAudienceResponse = (NewAudienceResponse) o; - return Objects.equals(this.data, newAudienceResponse.data) && - Objects.equals(this.errors, newAudienceResponse.errors) && - Objects.equals(this.warnings, newAudienceResponse.warnings)&& - Objects.equals(this.additionalProperties, newAudienceResponse.additionalProperties); + RetailMediaContactlistOperation retailMediaContactlistOperation = (RetailMediaContactlistOperation) o; + return Objects.equals(this.data, retailMediaContactlistOperation.data) && + Objects.equals(this.errors, retailMediaContactlistOperation.errors) && + Objects.equals(this.warnings, retailMediaContactlistOperation.warnings)&& + Objects.equals(this.additionalProperties, retailMediaContactlistOperation.additionalProperties); } @Override @@ -212,7 +212,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class NewAudienceResponse {\n"); + sb.append("class RetailMediaContactlistOperation {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); @@ -254,23 +254,23 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to NewAudienceResponse + * @throws IOException if the JSON Object is invalid with respect to RetailMediaContactlistOperation */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!NewAudienceResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NewAudienceResponse is not found in the empty JSON string", NewAudienceResponse.openapiRequiredFields.toString())); + if (!RetailMediaContactlistOperation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RetailMediaContactlistOperation is not found in the empty JSON string", RetailMediaContactlistOperation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : NewAudienceResponse.openapiRequiredFields) { + for (String requiredField : RetailMediaContactlistOperation.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } // validate the required field `data` - BasicAudienceDefinition.validateJsonObject(jsonObj.getAsJsonObject("data")); + RetailMediaContactlistOperationResponseAttributes.validateJsonObject(jsonObj.getAsJsonObject("data")); // ensure the json data is an array if (!jsonObj.get("errors").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); @@ -297,16 +297,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!NewAudienceResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NewAudienceResponse' and its subtypes + if (!RetailMediaContactlistOperation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetailMediaContactlistOperation' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NewAudienceResponse.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetailMediaContactlistOperation.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, NewAudienceResponse value) throws IOException { + public void write(JsonWriter out, RetailMediaContactlistOperation value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -329,11 +329,11 @@ else if (entry.getValue() instanceof Character) } @Override - public NewAudienceResponse read(JsonReader in) throws IOException { + public RetailMediaContactlistOperation read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - NewAudienceResponse instance = thisAdapter.fromJsonTree(jsonObj); + RetailMediaContactlistOperation instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -360,18 +360,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of NewAudienceResponse given an JSON string + * Create an instance of RetailMediaContactlistOperation given an JSON string * * @param jsonString JSON string - * @return An instance of NewAudienceResponse - * @throws IOException if the JSON string is invalid with respect to NewAudienceResponse + * @return An instance of RetailMediaContactlistOperation + * @throws IOException if the JSON string is invalid with respect to RetailMediaContactlistOperation */ - public static NewAudienceResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NewAudienceResponse.class); + public static RetailMediaContactlistOperation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RetailMediaContactlistOperation.class); } /** - * Convert an instance of NewAudienceResponse to an JSON string + * Convert an instance of RetailMediaContactlistOperation to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudience.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperationResponseAttributes.java similarity index 70% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudience.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperationResponseAttributes.java index 6ddf3174..ee5ab761 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudience.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperationResponseAttributes.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NewAudienceAttributes; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaContactlistOperationResponseAttributesAttributes; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,25 +42,25 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Body for the creation of a new audience (name, advertiserId, etc) + * Response data of Retail Media contact list operation */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class NewAudience { +public class RetailMediaContactlistOperationResponseAttributes { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private NewAudienceAttributes attributes; + private RetailMediaContactlistOperationResponseAttributesAttributes attributes; - public NewAudience() { + public RetailMediaContactlistOperationResponseAttributes() { } - public NewAudience type(String type) { + public RetailMediaContactlistOperationResponseAttributes type(String type) { this.type = type; return this; @@ -82,7 +82,7 @@ public void setType(String type) { } - public NewAudience attributes(NewAudienceAttributes attributes) { + public RetailMediaContactlistOperationResponseAttributes attributes(RetailMediaContactlistOperationResponseAttributesAttributes attributes) { this.attributes = attributes; return this; @@ -94,12 +94,12 @@ public NewAudience attributes(NewAudienceAttributes attributes) { **/ @javax.annotation.Nonnull - public NewAudienceAttributes getAttributes() { + public RetailMediaContactlistOperationResponseAttributesAttributes getAttributes() { return attributes; } - public void setAttributes(NewAudienceAttributes attributes) { + public void setAttributes(RetailMediaContactlistOperationResponseAttributesAttributes attributes) { this.attributes = attributes; } @@ -116,9 +116,9 @@ public void setAttributes(NewAudienceAttributes attributes) { * * @param key name of the property * @param value value of the property - * @return the NewAudience instance itself + * @return the RetailMediaContactlistOperationResponseAttributes instance itself */ - public NewAudience putAdditionalProperty(String key, Object value) { + public RetailMediaContactlistOperationResponseAttributes putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -157,10 +157,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NewAudience newAudience = (NewAudience) o; - return Objects.equals(this.type, newAudience.type) && - Objects.equals(this.attributes, newAudience.attributes)&& - Objects.equals(this.additionalProperties, newAudience.additionalProperties); + RetailMediaContactlistOperationResponseAttributes retailMediaContactlistOperationResponseAttributes = (RetailMediaContactlistOperationResponseAttributes) o; + return Objects.equals(this.type, retailMediaContactlistOperationResponseAttributes.type) && + Objects.equals(this.attributes, retailMediaContactlistOperationResponseAttributes.attributes)&& + Objects.equals(this.additionalProperties, retailMediaContactlistOperationResponseAttributes.additionalProperties); } @Override @@ -171,7 +171,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class NewAudience {\n"); + sb.append("class RetailMediaContactlistOperationResponseAttributes {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -210,17 +210,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to NewAudience + * @throws IOException if the JSON Object is invalid with respect to RetailMediaContactlistOperationResponseAttributes */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!NewAudience.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NewAudience is not found in the empty JSON string", NewAudience.openapiRequiredFields.toString())); + if (!RetailMediaContactlistOperationResponseAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RetailMediaContactlistOperationResponseAttributes is not found in the empty JSON string", RetailMediaContactlistOperationResponseAttributes.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : NewAudience.openapiRequiredFields) { + for (String requiredField : RetailMediaContactlistOperationResponseAttributes.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } @@ -229,23 +229,23 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } // validate the required field `attributes` - NewAudienceAttributes.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + RetailMediaContactlistOperationResponseAttributesAttributes.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!NewAudience.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NewAudience' and its subtypes + if (!RetailMediaContactlistOperationResponseAttributes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetailMediaContactlistOperationResponseAttributes' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NewAudience.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetailMediaContactlistOperationResponseAttributes.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, NewAudience value) throws IOException { + public void write(JsonWriter out, RetailMediaContactlistOperationResponseAttributes value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -268,11 +268,11 @@ else if (entry.getValue() instanceof Character) } @Override - public NewAudience read(JsonReader in) throws IOException { + public RetailMediaContactlistOperationResponseAttributes read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - NewAudience instance = thisAdapter.fromJsonTree(jsonObj); + RetailMediaContactlistOperationResponseAttributes instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -299,18 +299,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of NewAudience given an JSON string + * Create an instance of RetailMediaContactlistOperationResponseAttributes given an JSON string * * @param jsonString JSON string - * @return An instance of NewAudience - * @throws IOException if the JSON string is invalid with respect to NewAudience + * @return An instance of RetailMediaContactlistOperationResponseAttributes + * @throws IOException if the JSON string is invalid with respect to RetailMediaContactlistOperationResponseAttributes */ - public static NewAudience fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NewAudience.class); + public static RetailMediaContactlistOperationResponseAttributes fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RetailMediaContactlistOperationResponseAttributes.class); } /** - * Convert an instance of NewAudience to an JSON string + * Convert an instance of RetailMediaContactlistOperationResponseAttributes to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperationResponseAttributesAttributes.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperationResponseAttributesAttributes.java new file mode 100644 index 00000000..66bbd579 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaContactlistOperationResponseAttributesAttributes.java @@ -0,0 +1,494 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * The attributes of Retaile Media contact list operation + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RetailMediaContactlistOperationResponseAttributesAttributes { + public static final String SERIALIZED_NAME_CONTACT_LIST_ID = "contactListId"; + @SerializedName(SERIALIZED_NAME_CONTACT_LIST_ID) + private Long contactListId; + + public static final String SERIALIZED_NAME_OPERATION = "operation"; + @SerializedName(SERIALIZED_NAME_OPERATION) + private String operation; + + public static final String SERIALIZED_NAME_REQUEST_DATE = "requestDate"; + @SerializedName(SERIALIZED_NAME_REQUEST_DATE) + private OffsetDateTime requestDate; + + public static final String SERIALIZED_NAME_IDENTIFIER_TYPE = "identifierType"; + @SerializedName(SERIALIZED_NAME_IDENTIFIER_TYPE) + private String identifierType; + + public static final String SERIALIZED_NAME_NB_INVALID_IDENTIFIERS = "nbInvalidIdentifiers"; + @SerializedName(SERIALIZED_NAME_NB_INVALID_IDENTIFIERS) + private Integer nbInvalidIdentifiers; + + public static final String SERIALIZED_NAME_NB_VALID_IDENTIFIERS = "nbValidIdentifiers"; + @SerializedName(SERIALIZED_NAME_NB_VALID_IDENTIFIERS) + private Integer nbValidIdentifiers; + + public static final String SERIALIZED_NAME_SAMPLE_INVALID_IDENTIFIERS = "sampleInvalidIdentifiers"; + @SerializedName(SERIALIZED_NAME_SAMPLE_INVALID_IDENTIFIERS) + private List sampleInvalidIdentifiers = null; + + public RetailMediaContactlistOperationResponseAttributesAttributes() { + } + + public RetailMediaContactlistOperationResponseAttributesAttributes contactListId(Long contactListId) { + + this.contactListId = contactListId; + return this; + } + + /** + * The affected user list id + * @return contactListId + **/ + @javax.annotation.Nonnull + + public Long getContactListId() { + return contactListId; + } + + + public void setContactListId(Long contactListId) { + this.contactListId = contactListId; + } + + + public RetailMediaContactlistOperationResponseAttributesAttributes operation(String operation) { + + this.operation = operation; + return this; + } + + /** + * The action recorded + * @return operation + **/ + @javax.annotation.Nonnull + + public String getOperation() { + return operation; + } + + + public void setOperation(String operation) { + this.operation = operation; + } + + + public RetailMediaContactlistOperationResponseAttributesAttributes requestDate(OffsetDateTime requestDate) { + + this.requestDate = requestDate; + return this; + } + + /** + * When the action was recorded + * @return requestDate + **/ + @javax.annotation.Nonnull + + public OffsetDateTime getRequestDate() { + return requestDate; + } + + + public void setRequestDate(OffsetDateTime requestDate) { + this.requestDate = requestDate; + } + + + public RetailMediaContactlistOperationResponseAttributesAttributes identifierType(String identifierType) { + + this.identifierType = identifierType; + return this; + } + + /** + * The schema specified for of the identifiers + * @return identifierType + **/ + @javax.annotation.Nullable + + public String getIdentifierType() { + return identifierType; + } + + + public void setIdentifierType(String identifierType) { + this.identifierType = identifierType; + } + + + public RetailMediaContactlistOperationResponseAttributesAttributes nbInvalidIdentifiers(Integer nbInvalidIdentifiers) { + + this.nbInvalidIdentifiers = nbInvalidIdentifiers; + return this; + } + + /** + * How many identifiers were invalid for the specified schema + * @return nbInvalidIdentifiers + **/ + @javax.annotation.Nullable + + public Integer getNbInvalidIdentifiers() { + return nbInvalidIdentifiers; + } + + + public void setNbInvalidIdentifiers(Integer nbInvalidIdentifiers) { + this.nbInvalidIdentifiers = nbInvalidIdentifiers; + } + + + public RetailMediaContactlistOperationResponseAttributesAttributes nbValidIdentifiers(Integer nbValidIdentifiers) { + + this.nbValidIdentifiers = nbValidIdentifiers; + return this; + } + + /** + * How many identifiers were valid for the specified schema + * @return nbValidIdentifiers + **/ + @javax.annotation.Nullable + + public Integer getNbValidIdentifiers() { + return nbValidIdentifiers; + } + + + public void setNbValidIdentifiers(Integer nbValidIdentifiers) { + this.nbValidIdentifiers = nbValidIdentifiers; + } + + + public RetailMediaContactlistOperationResponseAttributesAttributes sampleInvalidIdentifiers(List sampleInvalidIdentifiers) { + + this.sampleInvalidIdentifiers = sampleInvalidIdentifiers; + return this; + } + + public RetailMediaContactlistOperationResponseAttributesAttributes addSampleInvalidIdentifiersItem(String sampleInvalidIdentifiersItem) { + if (this.sampleInvalidIdentifiers == null) { + this.sampleInvalidIdentifiers = null; + } + this.sampleInvalidIdentifiers.add(sampleInvalidIdentifiersItem); + return this; + } + + /** + * A sample of invalid identifiers if there is some + * @return sampleInvalidIdentifiers + **/ + @javax.annotation.Nullable + + public List getSampleInvalidIdentifiers() { + return sampleInvalidIdentifiers; + } + + + public void setSampleInvalidIdentifiers(List sampleInvalidIdentifiers) { + this.sampleInvalidIdentifiers = sampleInvalidIdentifiers; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RetailMediaContactlistOperationResponseAttributesAttributes instance itself + */ + public RetailMediaContactlistOperationResponseAttributesAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetailMediaContactlistOperationResponseAttributesAttributes retailMediaContactlistOperationResponseAttributesAttributes = (RetailMediaContactlistOperationResponseAttributesAttributes) o; + return Objects.equals(this.contactListId, retailMediaContactlistOperationResponseAttributesAttributes.contactListId) && + Objects.equals(this.operation, retailMediaContactlistOperationResponseAttributesAttributes.operation) && + Objects.equals(this.requestDate, retailMediaContactlistOperationResponseAttributesAttributes.requestDate) && + Objects.equals(this.identifierType, retailMediaContactlistOperationResponseAttributesAttributes.identifierType) && + Objects.equals(this.nbInvalidIdentifiers, retailMediaContactlistOperationResponseAttributesAttributes.nbInvalidIdentifiers) && + Objects.equals(this.nbValidIdentifiers, retailMediaContactlistOperationResponseAttributesAttributes.nbValidIdentifiers) && + Objects.equals(this.sampleInvalidIdentifiers, retailMediaContactlistOperationResponseAttributesAttributes.sampleInvalidIdentifiers)&& + Objects.equals(this.additionalProperties, retailMediaContactlistOperationResponseAttributesAttributes.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(contactListId, operation, requestDate, identifierType, nbInvalidIdentifiers, nbValidIdentifiers, sampleInvalidIdentifiers, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetailMediaContactlistOperationResponseAttributesAttributes {\n"); + sb.append(" contactListId: ").append(toIndentedString(contactListId)).append("\n"); + sb.append(" operation: ").append(toIndentedString(operation)).append("\n"); + sb.append(" requestDate: ").append(toIndentedString(requestDate)).append("\n"); + sb.append(" identifierType: ").append(toIndentedString(identifierType)).append("\n"); + sb.append(" nbInvalidIdentifiers: ").append(toIndentedString(nbInvalidIdentifiers)).append("\n"); + sb.append(" nbValidIdentifiers: ").append(toIndentedString(nbValidIdentifiers)).append("\n"); + sb.append(" sampleInvalidIdentifiers: ").append(toIndentedString(sampleInvalidIdentifiers)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("contactListId"); + openapiFields.add("operation"); + openapiFields.add("requestDate"); + openapiFields.add("identifierType"); + openapiFields.add("nbInvalidIdentifiers"); + openapiFields.add("nbValidIdentifiers"); + openapiFields.add("sampleInvalidIdentifiers"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("contactListId"); + openapiRequiredFields.add("operation"); + openapiRequiredFields.add("requestDate"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RetailMediaContactlistOperationResponseAttributesAttributes + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RetailMediaContactlistOperationResponseAttributesAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RetailMediaContactlistOperationResponseAttributesAttributes is not found in the empty JSON string", RetailMediaContactlistOperationResponseAttributesAttributes.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : RetailMediaContactlistOperationResponseAttributesAttributes.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("operation").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `operation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operation").toString())); + } + if ((jsonObj.get("identifierType") != null && !jsonObj.get("identifierType").isJsonNull()) && !jsonObj.get("identifierType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `identifierType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierType").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("sampleInvalidIdentifiers") != null && !jsonObj.get("sampleInvalidIdentifiers").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `sampleInvalidIdentifiers` to be an array in the JSON string but got `%s`", jsonObj.get("sampleInvalidIdentifiers").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RetailMediaContactlistOperationResponseAttributesAttributes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetailMediaContactlistOperationResponseAttributesAttributes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetailMediaContactlistOperationResponseAttributesAttributes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RetailMediaContactlistOperationResponseAttributesAttributes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RetailMediaContactlistOperationResponseAttributesAttributes read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RetailMediaContactlistOperationResponseAttributesAttributes instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RetailMediaContactlistOperationResponseAttributesAttributes given an JSON string + * + * @param jsonString JSON string + * @return An instance of RetailMediaContactlistOperationResponseAttributesAttributes + * @throws IOException if the JSON string is invalid with respect to RetailMediaContactlistOperationResponseAttributesAttributes + */ + public static RetailMediaContactlistOperationResponseAttributesAttributes fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RetailMediaContactlistOperationResponseAttributesAttributes.class); + } + + /** + * Convert an instance of RetailMediaContactlistOperationResponseAttributesAttributes to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaSeller.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaSeller.java new file mode 100644 index 00000000..8b30aa50 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaSeller.java @@ -0,0 +1,246 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * used to define the exact seller linked with an account + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RetailMediaSeller { + public static final String SERIALIZED_NAME_SELLER_ID = "sellerId"; + @SerializedName(SERIALIZED_NAME_SELLER_ID) + private String sellerId; + + public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; + @SerializedName(SERIALIZED_NAME_RETAILER_ID) + private Integer retailerId; + + public RetailMediaSeller() { + } + + public RetailMediaSeller sellerId(String sellerId) { + + this.sellerId = sellerId; + return this; + } + + /** + * the seller id + * @return sellerId + **/ + @javax.annotation.Nullable + + public String getSellerId() { + return sellerId; + } + + + public void setSellerId(String sellerId) { + this.sellerId = sellerId; + } + + + public RetailMediaSeller retailerId(Integer retailerId) { + + this.retailerId = retailerId; + return this; + } + + /** + * the retailer id + * @return retailerId + **/ + @javax.annotation.Nullable + + public Integer getRetailerId() { + return retailerId; + } + + + public void setRetailerId(Integer retailerId) { + this.retailerId = retailerId; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetailMediaSeller retailMediaSeller = (RetailMediaSeller) o; + return Objects.equals(this.sellerId, retailMediaSeller.sellerId) && + Objects.equals(this.retailerId, retailMediaSeller.retailerId); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(sellerId, retailerId); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetailMediaSeller {\n"); + sb.append(" sellerId: ").append(toIndentedString(sellerId)).append("\n"); + sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("sellerId"); + openapiFields.add("retailerId"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RetailMediaSeller + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RetailMediaSeller.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RetailMediaSeller is not found in the empty JSON string", RetailMediaSeller.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!RetailMediaSeller.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RetailMediaSeller` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("sellerId") != null && !jsonObj.get("sellerId").isJsonNull()) && !jsonObj.get("sellerId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sellerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sellerId").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RetailMediaSeller.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetailMediaSeller' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetailMediaSeller.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RetailMediaSeller value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RetailMediaSeller read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RetailMediaSeller given an JSON string + * + * @param jsonString JSON string + * @return An instance of RetailMediaSeller + * @throws IOException if the JSON string is invalid with respect to RetailMediaSeller + */ + public static RetailMediaSeller fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RetailMediaSeller.class); + } + + /** + * Convert an instance of RetailMediaSeller to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaSellerAccountCreation.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaSellerAccountCreation.java new file mode 100644 index 00000000..83b2aa5e --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RetailMediaSellerAccountCreation.java @@ -0,0 +1,335 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaSeller; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * the initial set up and configuration options for a new private market demand brand account + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RetailMediaSellerAccountCreation { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_COMPANY_NAME = "companyName"; + @SerializedName(SERIALIZED_NAME_COMPANY_NAME) + private String companyName; + + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + + public static final String SERIALIZED_NAME_SELLERS = "sellers"; + @SerializedName(SERIALIZED_NAME_SELLERS) + private List sellers = null; + + public RetailMediaSellerAccountCreation() { + } + + public RetailMediaSellerAccountCreation name(String name) { + + this.name = name; + return this; + } + + /** + * the name of the account, must be unique across all accounts + * @return name + **/ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public RetailMediaSellerAccountCreation companyName(String companyName) { + + this.companyName = companyName; + return this; + } + + /** + * Paying entity name of ads for the Digital Services Act + * @return companyName + **/ + @javax.annotation.Nullable + + public String getCompanyName() { + return companyName; + } + + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + + public RetailMediaSellerAccountCreation onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * On behalf entity name of ads for the Digital Services Act + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + + + public RetailMediaSellerAccountCreation sellers(List sellers) { + + this.sellers = sellers; + return this; + } + + public RetailMediaSellerAccountCreation addSellersItem(RetailMediaSeller sellersItem) { + if (this.sellers == null) { + this.sellers = null; + } + this.sellers.add(sellersItem); + return this; + } + + /** + * list of sellers to associate to the new account + * @return sellers + **/ + @javax.annotation.Nullable + + public List getSellers() { + return sellers; + } + + + public void setSellers(List sellers) { + this.sellers = sellers; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetailMediaSellerAccountCreation retailMediaSellerAccountCreation = (RetailMediaSellerAccountCreation) o; + return Objects.equals(this.name, retailMediaSellerAccountCreation.name) && + Objects.equals(this.companyName, retailMediaSellerAccountCreation.companyName) && + Objects.equals(this.onBehalfCompanyName, retailMediaSellerAccountCreation.onBehalfCompanyName) && + Objects.equals(this.sellers, retailMediaSellerAccountCreation.sellers); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(name, companyName, onBehalfCompanyName, sellers); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetailMediaSellerAccountCreation {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); + sb.append(" sellers: ").append(toIndentedString(sellers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); + openapiFields.add("sellers"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RetailMediaSellerAccountCreation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RetailMediaSellerAccountCreation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RetailMediaSellerAccountCreation is not found in the empty JSON string", RetailMediaSellerAccountCreation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!RetailMediaSellerAccountCreation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RetailMediaSellerAccountCreation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); + } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } + if (jsonObj.get("sellers") != null && !jsonObj.get("sellers").isJsonNull()) { + JsonArray jsonArraysellers = jsonObj.getAsJsonArray("sellers"); + if (jsonArraysellers != null) { + // ensure the json data is an array + if (!jsonObj.get("sellers").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `sellers` to be an array in the JSON string but got `%s`", jsonObj.get("sellers").toString())); + } + + // validate the optional field `sellers` (array) + for (int i = 0; i < jsonArraysellers.size(); i++) { + RetailMediaSeller.validateJsonObject(jsonArraysellers.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RetailMediaSellerAccountCreation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetailMediaSellerAccountCreation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetailMediaSellerAccountCreation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RetailMediaSellerAccountCreation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RetailMediaSellerAccountCreation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RetailMediaSellerAccountCreation given an JSON string + * + * @param jsonString JSON string + * @return An instance of RetailMediaSellerAccountCreation + * @throws IOException if the JSON string is invalid with respect to RetailMediaSellerAccountCreation + */ + public static RetailMediaSellerAccountCreation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RetailMediaSellerAccountCreation.class); + } + + /** + * Convert an instance of RetailMediaSellerAccountCreation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReviewStateModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ReviewStateModel.java similarity index 94% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReviewStateModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ReviewStateModel.java index ea64d429..9147a7f7 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReviewStateModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ReviewStateModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2Response.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAlgebraNodeV1.java similarity index 56% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2Response.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAlgebraNodeV1.java index b1f78f89..b103c062 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2Response.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAlgebraNodeV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,10 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonProblem; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV2Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,84 +44,134 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * A top-level object that encapsulates a Criteo API response for a single entity + * Node in the audience algebra definition. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceCreateEntityV2Response { - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private RmLegacyAudienceCreateEntityV2Resource data; +public class RmAlgebraNodeV1 { + public static final String SERIALIZED_NAME_AND = "and"; + @SerializedName(SERIALIZED_NAME_AND) + private List and = null; - public static final String SERIALIZED_NAME_WARNINGS = "warnings"; - @SerializedName(SERIALIZED_NAME_WARNINGS) - private List warnings = null; + public static final String SERIALIZED_NAME_OR = "or"; + @SerializedName(SERIALIZED_NAME_OR) + private List or = null; - public static final String SERIALIZED_NAME_ERRORS = "errors"; - @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = null; + public static final String SERIALIZED_NAME_NOT = "not"; + @SerializedName(SERIALIZED_NAME_NOT) + private RmAlgebraNodeV1 not; - public RmLegacyAudienceCreateEntityV2Response() { + public static final String SERIALIZED_NAME_AUDIENCE_SEGMENT_ID = "audienceSegmentId"; + @SerializedName(SERIALIZED_NAME_AUDIENCE_SEGMENT_ID) + private String audienceSegmentId; + + public RmAlgebraNodeV1() { } - - public RmLegacyAudienceCreateEntityV2Response( - List warnings, - List errors - ) { - this(); - this.warnings = warnings; - this.errors = errors; + public RmAlgebraNodeV1 and(List and) { + + this.and = and; + return this; } - public RmLegacyAudienceCreateEntityV2Response data(RmLegacyAudienceCreateEntityV2Resource data) { + public RmAlgebraNodeV1 addAndItem(RmAlgebraNodeV1 andItem) { + if (this.and == null) { + this.and = null; + } + this.and.add(andItem); + return this; + } + + /** + * Get and + * @return and + **/ + @javax.annotation.Nullable + + public List getAnd() { + return and; + } + + + public void setAnd(List and) { + this.and = and; + } + + + public RmAlgebraNodeV1 or(List or) { - this.data = data; + this.or = or; + return this; + } + + public RmAlgebraNodeV1 addOrItem(RmAlgebraNodeV1 orItem) { + if (this.or == null) { + this.or = null; + } + this.or.add(orItem); return this; } /** - * Get data - * @return data + * Get or + * @return or **/ @javax.annotation.Nullable - public RmLegacyAudienceCreateEntityV2Resource getData() { - return data; + public List getOr() { + return or; } - public void setData(RmLegacyAudienceCreateEntityV2Resource data) { - this.data = data; + public void setOr(List or) { + this.or = or; } + public RmAlgebraNodeV1 not(RmAlgebraNodeV1 not) { + + this.not = not; + return this; + } + /** - * Get warnings - * @return warnings + * Get not + * @return not **/ @javax.annotation.Nullable - public List getWarnings() { - return warnings; + public RmAlgebraNodeV1 getNot() { + return not; } + public void setNot(RmAlgebraNodeV1 not) { + this.not = not; + } + public RmAlgebraNodeV1 audienceSegmentId(String audienceSegmentId) { + + this.audienceSegmentId = audienceSegmentId; + return this; + } + /** - * Get errors - * @return errors + * Get audienceSegmentId + * @return audienceSegmentId **/ @javax.annotation.Nullable - public List getErrors() { - return errors; + public String getAudienceSegmentId() { + return audienceSegmentId; } + public void setAudienceSegmentId(String audienceSegmentId) { + this.audienceSegmentId = audienceSegmentId; + } /** * A container for additional, undeclared properties. @@ -138,9 +186,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceCreateEntityV2Response instance itself + * @return the RmAlgebraNodeV1 instance itself */ - public RmLegacyAudienceCreateEntityV2Response putAdditionalProperty(String key, Object value) { + public RmAlgebraNodeV1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -179,11 +227,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceCreateEntityV2Response rmLegacyAudienceCreateEntityV2Response = (RmLegacyAudienceCreateEntityV2Response) o; - return Objects.equals(this.data, rmLegacyAudienceCreateEntityV2Response.data) && - Objects.equals(this.warnings, rmLegacyAudienceCreateEntityV2Response.warnings) && - Objects.equals(this.errors, rmLegacyAudienceCreateEntityV2Response.errors)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceCreateEntityV2Response.additionalProperties); + RmAlgebraNodeV1 rmAlgebraNodeV1 = (RmAlgebraNodeV1) o; + return Objects.equals(this.and, rmAlgebraNodeV1.and) && + Objects.equals(this.or, rmAlgebraNodeV1.or) && + Objects.equals(this.not, rmAlgebraNodeV1.not) && + Objects.equals(this.audienceSegmentId, rmAlgebraNodeV1.audienceSegmentId)&& + Objects.equals(this.additionalProperties, rmAlgebraNodeV1.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -192,7 +241,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(data, warnings, errors, additionalProperties); + return Objects.hash(and, or, not, audienceSegmentId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -205,10 +254,11 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceCreateEntityV2Response {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("class RmAlgebraNodeV1 {\n"); + sb.append(" and: ").append(toIndentedString(and)).append("\n"); + sb.append(" or: ").append(toIndentedString(or)).append("\n"); + sb.append(" not: ").append(toIndentedString(not)).append("\n"); + sb.append(" audienceSegmentId: ").append(toIndentedString(audienceSegmentId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -232,9 +282,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("warnings"); - openapiFields.add("errors"); + openapiFields.add("and"); + openapiFields.add("or"); + openapiFields.add("not"); + openapiFields.add("audienceSegmentId"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -244,62 +295,65 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceCreateEntityV2Response + * @throws IOException if the JSON Object is invalid with respect to RmAlgebraNodeV1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceCreateEntityV2Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceCreateEntityV2Response is not found in the empty JSON string", RmLegacyAudienceCreateEntityV2Response.openapiRequiredFields.toString())); + if (!RmAlgebraNodeV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAlgebraNodeV1 is not found in the empty JSON string", RmAlgebraNodeV1.openapiRequiredFields.toString())); } } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - RmLegacyAudienceCreateEntityV2Resource.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { - JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); - if (jsonArraywarnings != null) { + if (jsonObj.get("and") != null && !jsonObj.get("and").isJsonNull()) { + JsonArray jsonArrayand = jsonObj.getAsJsonArray("and"); + if (jsonArrayand != null) { // ensure the json data is an array - if (!jsonObj.get("warnings").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + if (!jsonObj.get("and").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); } - // validate the optional field `warnings` (array) - for (int i = 0; i < jsonArraywarnings.size(); i++) { - CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + // validate the optional field `and` (array) + for (int i = 0; i < jsonArrayand.size(); i++) { + RmAlgebraNodeV1.validateJsonObject(jsonArrayand.get(i).getAsJsonObject()); }; } } - if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - if (jsonArrayerrors != null) { + if (jsonObj.get("or") != null && !jsonObj.get("or").isJsonNull()) { + JsonArray jsonArrayor = jsonObj.getAsJsonArray("or"); + if (jsonArrayor != null) { // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + if (!jsonObj.get("or").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); } - // validate the optional field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + // validate the optional field `or` (array) + for (int i = 0; i < jsonArrayor.size(); i++) { + RmAlgebraNodeV1.validateJsonObject(jsonArrayor.get(i).getAsJsonObject()); }; } } + // validate the optional field `not` + if (jsonObj.get("not") != null && !jsonObj.get("not").isJsonNull()) { + RmAlgebraNodeV1.validateJsonObject(jsonObj.getAsJsonObject("not")); + } + if ((jsonObj.get("audienceSegmentId") != null && !jsonObj.get("audienceSegmentId").isJsonNull()) && !jsonObj.get("audienceSegmentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `audienceSegmentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("audienceSegmentId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceCreateEntityV2Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceCreateEntityV2Response' and its subtypes + if (!RmAlgebraNodeV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAlgebraNodeV1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceCreateEntityV2Response.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAlgebraNodeV1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceCreateEntityV2Response value) throws IOException { + public void write(JsonWriter out, RmAlgebraNodeV1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -322,11 +376,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceCreateEntityV2Response read(JsonReader in) throws IOException { + public RmAlgebraNodeV1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceCreateEntityV2Response instance = thisAdapter.fromJsonTree(jsonObj); + RmAlgebraNodeV1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -353,18 +407,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceCreateEntityV2Response given an JSON string + * Create an instance of RmAlgebraNodeV1 given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceCreateEntityV2Response - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceCreateEntityV2Response + * @return An instance of RmAlgebraNodeV1 + * @throws IOException if the JSON string is invalid with respect to RmAlgebraNodeV1 */ - public static RmLegacyAudienceCreateEntityV2Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceCreateEntityV2Response.class); + public static RmAlgebraNodeV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAlgebraNodeV1.class); } /** - * Convert an instance of RmLegacyAudienceCreateEntityV2Response to an JSON string + * Convert an instance of RmAlgebraNodeV1 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1.java new file mode 100644 index 00000000..ad95243b --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1.java @@ -0,0 +1,605 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RmAlgebraNodeV1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Audience of people of interest for a marketer. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceEntityV1 { + public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; + @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + private String accountId; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; + @SerializedName(SERIALIZED_NAME_RETAILER_ID) + private String retailerId; + + public static final String SERIALIZED_NAME_CREATED_BY_ID = "createdById"; + @SerializedName(SERIALIZED_NAME_CREATED_BY_ID) + private String createdById; + + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + private OffsetDateTime updatedAt; + + /** + * Gets or Sets channels + */ + @JsonAdapter(ChannelsEnum.Adapter.class) + public enum ChannelsEnum { + UNKNOWN("Unknown"), + + ONSITE("Onsite"), + + OFFSITE("Offsite"); + + private String value; + + ChannelsEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ChannelsEnum fromValue(String value) { + for (ChannelsEnum b : ChannelsEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ChannelsEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ChannelsEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ChannelsEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CHANNELS = "channels"; + @SerializedName(SERIALIZED_NAME_CHANNELS) + private List channels = null; + + public static final String SERIALIZED_NAME_ALGEBRA = "algebra"; + @SerializedName(SERIALIZED_NAME_ALGEBRA) + private RmAlgebraNodeV1 algebra; + + public RmAudienceEntityV1() { + } + + public RmAudienceEntityV1 accountId(String accountId) { + + this.accountId = accountId; + return this; + } + + /** + * Account associated to the audience + * @return accountId + **/ + @javax.annotation.Nullable + + public String getAccountId() { + return accountId; + } + + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + + public RmAudienceEntityV1 name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the audience + * @return name + **/ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public RmAudienceEntityV1 description(String description) { + + this.description = description; + return this; + } + + /** + * Description of the audience + * @return description + **/ + @javax.annotation.Nullable + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + public RmAudienceEntityV1 retailerId(String retailerId) { + + this.retailerId = retailerId; + return this; + } + + /** + * Retailer associated to the audience + * @return retailerId + **/ + @javax.annotation.Nullable + + public String getRetailerId() { + return retailerId; + } + + + public void setRetailerId(String retailerId) { + this.retailerId = retailerId; + } + + + public RmAudienceEntityV1 createdById(String createdById) { + + this.createdById = createdById; + return this; + } + + /** + * User that created the audience + * @return createdById + **/ + @javax.annotation.Nullable + + public String getCreatedById() { + return createdById; + } + + + public void setCreatedById(String createdById) { + this.createdById = createdById; + } + + + public RmAudienceEntityV1 createdAt(OffsetDateTime createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * ISO-8601 timestamp in UTC of audience creation (read-only) + * @return createdAt + **/ + @javax.annotation.Nullable + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public RmAudienceEntityV1 updatedAt(OffsetDateTime updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * ISO-8601 timestamp in UTC of audience update (read-only) + * @return updatedAt + **/ + @javax.annotation.Nullable + + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + + public RmAudienceEntityV1 channels(List channels) { + + this.channels = channels; + return this; + } + + public RmAudienceEntityV1 addChannelsItem(ChannelsEnum channelsItem) { + if (this.channels == null) { + this.channels = null; + } + this.channels.add(channelsItem); + return this; + } + + /** + * Channels associated to the audience (read-only) + * @return channels + **/ + @javax.annotation.Nullable + + public List getChannels() { + return channels; + } + + + public void setChannels(List channels) { + this.channels = channels; + } + + + public RmAudienceEntityV1 algebra(RmAlgebraNodeV1 algebra) { + + this.algebra = algebra; + return this; + } + + /** + * Get algebra + * @return algebra + **/ + @javax.annotation.Nullable + + public RmAlgebraNodeV1 getAlgebra() { + return algebra; + } + + + public void setAlgebra(RmAlgebraNodeV1 algebra) { + this.algebra = algebra; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceEntityV1 instance itself + */ + public RmAudienceEntityV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceEntityV1 rmAudienceEntityV1 = (RmAudienceEntityV1) o; + return Objects.equals(this.accountId, rmAudienceEntityV1.accountId) && + Objects.equals(this.name, rmAudienceEntityV1.name) && + Objects.equals(this.description, rmAudienceEntityV1.description) && + Objects.equals(this.retailerId, rmAudienceEntityV1.retailerId) && + Objects.equals(this.createdById, rmAudienceEntityV1.createdById) && + Objects.equals(this.createdAt, rmAudienceEntityV1.createdAt) && + Objects.equals(this.updatedAt, rmAudienceEntityV1.updatedAt) && + Objects.equals(this.channels, rmAudienceEntityV1.channels) && + Objects.equals(this.algebra, rmAudienceEntityV1.algebra)&& + Objects.equals(this.additionalProperties, rmAudienceEntityV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, name, description, retailerId, createdById, createdAt, updatedAt, channels, algebra, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceEntityV1 {\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); + sb.append(" createdById: ").append(toIndentedString(createdById)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); + sb.append(" algebra: ").append(toIndentedString(algebra)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("accountId"); + openapiFields.add("name"); + openapiFields.add("description"); + openapiFields.add("retailerId"); + openapiFields.add("createdById"); + openapiFields.add("createdAt"); + openapiFields.add("updatedAt"); + openapiFields.add("channels"); + openapiFields.add("algebra"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceEntityV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceEntityV1 is not found in the empty JSON string", RmAudienceEntityV1.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("accountId") != null && !jsonObj.get("accountId").isJsonNull()) && !jsonObj.get("accountId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `accountId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("retailerId") != null && !jsonObj.get("retailerId").isJsonNull()) && !jsonObj.get("retailerId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `retailerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("retailerId").toString())); + } + if ((jsonObj.get("createdById") != null && !jsonObj.get("createdById").isJsonNull()) && !jsonObj.get("createdById").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `createdById` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdById").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("channels") != null && !jsonObj.get("channels").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `channels` to be an array in the JSON string but got `%s`", jsonObj.get("channels").toString())); + } + // validate the optional field `algebra` + if (jsonObj.get("algebra") != null && !jsonObj.get("algebra").isJsonNull()) { + RmAlgebraNodeV1.validateJsonObject(jsonObj.getAsJsonObject("algebra")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceEntityV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceEntityV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceEntityV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceEntityV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceEntityV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceEntityV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceEntityV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceEntityV1 + */ + public static RmAudienceEntityV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceEntityV1.class); + } + + /** + * Convert an instance of RmAudienceEntityV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1Resource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1Resource.java new file mode 100644 index 00000000..318283e4 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1Resource.java @@ -0,0 +1,358 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceEntityV1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A class that represents a domain entity exposed by an API + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceEntityV1Resource { + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private RmAudienceEntityV1 attributes; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public RmAudienceEntityV1Resource() { + } + + public RmAudienceEntityV1Resource attributes(RmAudienceEntityV1 attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public RmAudienceEntityV1 getAttributes() { + return attributes; + } + + + public void setAttributes(RmAudienceEntityV1 attributes) { + this.attributes = attributes; + } + + + public RmAudienceEntityV1Resource id(String id) { + + this.id = id; + return this; + } + + /** + * Id of the entity + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public RmAudienceEntityV1Resource type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceEntityV1Resource instance itself + */ + public RmAudienceEntityV1Resource putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceEntityV1Resource rmAudienceEntityV1Resource = (RmAudienceEntityV1Resource) o; + return Objects.equals(this.attributes, rmAudienceEntityV1Resource.attributes) && + Objects.equals(this.id, rmAudienceEntityV1Resource.id) && + Objects.equals(this.type, rmAudienceEntityV1Resource.type)&& + Objects.equals(this.additionalProperties, rmAudienceEntityV1Resource.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceEntityV1Resource {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attributes"); + openapiFields.add("id"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceEntityV1Resource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceEntityV1Resource is not found in the empty JSON string", RmAudienceEntityV1Resource.openapiRequiredFields.toString())); + } + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + RmAudienceEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceEntityV1Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceEntityV1Resource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceEntityV1Resource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceEntityV1Resource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceEntityV1Resource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceEntityV1Resource given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceEntityV1Resource + * @throws IOException if the JSON string is invalid with respect to RmAudienceEntityV1Resource + */ + public static RmAudienceEntityV1Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceEntityV1Resource.class); + } + + /** + * Convert an instance of RmAudienceEntityV1Resource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.java new file mode 100644 index 00000000..e8dc0763 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.java @@ -0,0 +1,427 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceEntityV1Resource; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSearchMetadataV1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for several entities and metadata + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse { + public static final String SERIALIZED_NAME_META = "meta"; + @SerializedName(SERIALIZED_NAME_META) + private RmAudienceSearchMetadataV1 meta; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse() { + } + + + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse( + List warnings, + List errors + ) { + this(); + this.warnings = warnings; + this.errors = errors; + } + + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse meta(RmAudienceSearchMetadataV1 meta) { + + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + + public RmAudienceSearchMetadataV1 getMeta() { + return meta; + } + + + public void setMeta(RmAudienceSearchMetadataV1 meta) { + this.meta = meta; + } + + + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse data(List data) { + + this.data = data; + return this; + } + + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse addDataItem(RmAudienceEntityV1Resource dataItem) { + if (this.data == null) { + this.data = null; + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse instance itself + */ + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse = (RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse) o; + return Objects.equals(this.meta, rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.meta) && + Objects.equals(this.data, rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.data) && + Objects.equals(this.warnings, rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.warnings) && + Objects.equals(this.errors, rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.errors)&& + Objects.equals(this.additionalProperties, rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(meta, data, warnings, errors, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse {\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("meta"); + openapiFields.add("data"); + openapiFields.add("warnings"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse is not found in the empty JSON string", RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.openapiRequiredFields.toString())); + } + } + // validate the optional field `meta` + if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { + RmAudienceSearchMetadataV1.validateJsonObject(jsonObj.getAsJsonObject("meta")); + } + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + if (jsonArraydata != null) { + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + + // validate the optional field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + RmAudienceEntityV1Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse + * @throws IOException if the JSON string is invalid with respect to RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse + */ + public static RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.class); + } + + /** + * Convert an instance of RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchEntityV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchEntityV1.java new file mode 100644 index 00000000..2879968c --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchEntityV1.java @@ -0,0 +1,385 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Available filters to perform a search on audiences. If present, the filters are AND'ed together when applied. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSearchEntityV1 { + public static final String SERIALIZED_NAME_AUDIENCE_IDS = "audienceIds"; + @SerializedName(SERIALIZED_NAME_AUDIENCE_IDS) + private List audienceIds = null; + + public static final String SERIALIZED_NAME_RETAILER_IDS = "retailerIds"; + @SerializedName(SERIALIZED_NAME_RETAILER_IDS) + private List retailerIds = null; + + public static final String SERIALIZED_NAME_AUDIENCE_SEGMENT_IDS = "audienceSegmentIds"; + @SerializedName(SERIALIZED_NAME_AUDIENCE_SEGMENT_IDS) + private List audienceSegmentIds = null; + + public RmAudienceSearchEntityV1() { + } + + public RmAudienceSearchEntityV1 audienceIds(List audienceIds) { + + this.audienceIds = audienceIds; + return this; + } + + public RmAudienceSearchEntityV1 addAudienceIdsItem(String audienceIdsItem) { + if (this.audienceIds == null) { + this.audienceIds = null; + } + this.audienceIds.add(audienceIdsItem); + return this; + } + + /** + * List of audience ids + * @return audienceIds + **/ + @javax.annotation.Nullable + + public List getAudienceIds() { + return audienceIds; + } + + + public void setAudienceIds(List audienceIds) { + this.audienceIds = audienceIds; + } + + + public RmAudienceSearchEntityV1 retailerIds(List retailerIds) { + + this.retailerIds = retailerIds; + return this; + } + + public RmAudienceSearchEntityV1 addRetailerIdsItem(String retailerIdsItem) { + if (this.retailerIds == null) { + this.retailerIds = null; + } + this.retailerIds.add(retailerIdsItem); + return this; + } + + /** + * List of retailer ids + * @return retailerIds + **/ + @javax.annotation.Nullable + + public List getRetailerIds() { + return retailerIds; + } + + + public void setRetailerIds(List retailerIds) { + this.retailerIds = retailerIds; + } + + + public RmAudienceSearchEntityV1 audienceSegmentIds(List audienceSegmentIds) { + + this.audienceSegmentIds = audienceSegmentIds; + return this; + } + + public RmAudienceSearchEntityV1 addAudienceSegmentIdsItem(String audienceSegmentIdsItem) { + if (this.audienceSegmentIds == null) { + this.audienceSegmentIds = null; + } + this.audienceSegmentIds.add(audienceSegmentIdsItem); + return this; + } + + /** + * List of segment ids (linked to the result audiences) + * @return audienceSegmentIds + **/ + @javax.annotation.Nullable + + public List getAudienceSegmentIds() { + return audienceSegmentIds; + } + + + public void setAudienceSegmentIds(List audienceSegmentIds) { + this.audienceSegmentIds = audienceSegmentIds; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSearchEntityV1 instance itself + */ + public RmAudienceSearchEntityV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSearchEntityV1 rmAudienceSearchEntityV1 = (RmAudienceSearchEntityV1) o; + return Objects.equals(this.audienceIds, rmAudienceSearchEntityV1.audienceIds) && + Objects.equals(this.retailerIds, rmAudienceSearchEntityV1.retailerIds) && + Objects.equals(this.audienceSegmentIds, rmAudienceSearchEntityV1.audienceSegmentIds)&& + Objects.equals(this.additionalProperties, rmAudienceSearchEntityV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(audienceIds, retailerIds, audienceSegmentIds, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSearchEntityV1 {\n"); + sb.append(" audienceIds: ").append(toIndentedString(audienceIds)).append("\n"); + sb.append(" retailerIds: ").append(toIndentedString(retailerIds)).append("\n"); + sb.append(" audienceSegmentIds: ").append(toIndentedString(audienceSegmentIds)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("audienceIds"); + openapiFields.add("retailerIds"); + openapiFields.add("audienceSegmentIds"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSearchEntityV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSearchEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSearchEntityV1 is not found in the empty JSON string", RmAudienceSearchEntityV1.openapiRequiredFields.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("audienceIds") != null && !jsonObj.get("audienceIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `audienceIds` to be an array in the JSON string but got `%s`", jsonObj.get("audienceIds").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("retailerIds") != null && !jsonObj.get("retailerIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `retailerIds` to be an array in the JSON string but got `%s`", jsonObj.get("retailerIds").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("audienceSegmentIds") != null && !jsonObj.get("audienceSegmentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `audienceSegmentIds` to be an array in the JSON string but got `%s`", jsonObj.get("audienceSegmentIds").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSearchEntityV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSearchEntityV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSearchEntityV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSearchEntityV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSearchEntityV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSearchEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSearchEntityV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSearchEntityV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSearchEntityV1 + */ + public static RmAudienceSearchEntityV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSearchEntityV1.class); + } + + /** + * Convert an instance of RmAudienceSearchEntityV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchEntityV1Resource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchEntityV1Resource.java new file mode 100644 index 00000000..84c9f787 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchEntityV1Resource.java @@ -0,0 +1,326 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSearchEntityV1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single value + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSearchEntityV1Resource { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private RmAudienceSearchEntityV1 attributes; + + public RmAudienceSearchEntityV1Resource() { + } + + public RmAudienceSearchEntityV1Resource type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public RmAudienceSearchEntityV1Resource attributes(RmAudienceSearchEntityV1 attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public RmAudienceSearchEntityV1 getAttributes() { + return attributes; + } + + + public void setAttributes(RmAudienceSearchEntityV1 attributes) { + this.attributes = attributes; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSearchEntityV1Resource instance itself + */ + public RmAudienceSearchEntityV1Resource putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSearchEntityV1Resource rmAudienceSearchEntityV1Resource = (RmAudienceSearchEntityV1Resource) o; + return Objects.equals(this.type, rmAudienceSearchEntityV1Resource.type) && + Objects.equals(this.attributes, rmAudienceSearchEntityV1Resource.attributes)&& + Objects.equals(this.additionalProperties, rmAudienceSearchEntityV1Resource.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSearchEntityV1Resource {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSearchEntityV1Resource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSearchEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSearchEntityV1Resource is not found in the empty JSON string", RmAudienceSearchEntityV1Resource.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + RmAudienceSearchEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSearchEntityV1Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSearchEntityV1Resource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSearchEntityV1Resource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSearchEntityV1Resource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSearchEntityV1Resource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSearchEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSearchEntityV1Resource given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSearchEntityV1Resource + * @throws IOException if the JSON string is invalid with respect to RmAudienceSearchEntityV1Resource + */ + public static RmAudienceSearchEntityV1Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSearchEntityV1Resource.class); + } + + /** + * Convert an instance of RmAudienceSearchEntityV1Resource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchInputV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchInputV1.java new file mode 100644 index 00000000..588e7a9c --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchInputV1.java @@ -0,0 +1,282 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSearchEntityV1Resource; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API request for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSearchInputV1 { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private RmAudienceSearchEntityV1Resource data; + + public RmAudienceSearchInputV1() { + } + + public RmAudienceSearchInputV1 data(RmAudienceSearchEntityV1Resource data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public RmAudienceSearchEntityV1Resource getData() { + return data; + } + + + public void setData(RmAudienceSearchEntityV1Resource data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSearchInputV1 instance itself + */ + public RmAudienceSearchInputV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSearchInputV1 rmAudienceSearchInputV1 = (RmAudienceSearchInputV1) o; + return Objects.equals(this.data, rmAudienceSearchInputV1.data)&& + Objects.equals(this.additionalProperties, rmAudienceSearchInputV1.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSearchInputV1 {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSearchInputV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSearchInputV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSearchInputV1 is not found in the empty JSON string", RmAudienceSearchInputV1.openapiRequiredFields.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + RmAudienceSearchEntityV1Resource.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSearchInputV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSearchInputV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSearchInputV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSearchInputV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSearchInputV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSearchInputV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSearchInputV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSearchInputV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSearchInputV1 + */ + public static RmAudienceSearchInputV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSearchInputV1.class); + } + + /** + * Convert an instance of RmAudienceSearchInputV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchMetadataV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchMetadataV1.java new file mode 100644 index 00000000..97c682b5 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSearchMetadataV1.java @@ -0,0 +1,347 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Metadata for the audience search response. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSearchMetadataV1 { + public static final String SERIALIZED_NAME_TOTAL_ITEMS = "totalItems"; + @SerializedName(SERIALIZED_NAME_TOTAL_ITEMS) + private Integer totalItems; + + public static final String SERIALIZED_NAME_LIMIT = "limit"; + @SerializedName(SERIALIZED_NAME_LIMIT) + private Integer limit; + + public static final String SERIALIZED_NAME_OFFSET = "offset"; + @SerializedName(SERIALIZED_NAME_OFFSET) + private Integer offset; + + public RmAudienceSearchMetadataV1() { + } + + public RmAudienceSearchMetadataV1 totalItems(Integer totalItems) { + + this.totalItems = totalItems; + return this; + } + + /** + * Total number of items + * @return totalItems + **/ + @javax.annotation.Nullable + + public Integer getTotalItems() { + return totalItems; + } + + + public void setTotalItems(Integer totalItems) { + this.totalItems = totalItems; + } + + + public RmAudienceSearchMetadataV1 limit(Integer limit) { + + this.limit = limit; + return this; + } + + /** + * Max item of the current page + * @return limit + **/ + @javax.annotation.Nullable + + public Integer getLimit() { + return limit; + } + + + public void setLimit(Integer limit) { + this.limit = limit; + } + + + public RmAudienceSearchMetadataV1 offset(Integer offset) { + + this.offset = offset; + return this; + } + + /** + * Number of item to skip + * @return offset + **/ + @javax.annotation.Nullable + + public Integer getOffset() { + return offset; + } + + + public void setOffset(Integer offset) { + this.offset = offset; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSearchMetadataV1 instance itself + */ + public RmAudienceSearchMetadataV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSearchMetadataV1 rmAudienceSearchMetadataV1 = (RmAudienceSearchMetadataV1) o; + return Objects.equals(this.totalItems, rmAudienceSearchMetadataV1.totalItems) && + Objects.equals(this.limit, rmAudienceSearchMetadataV1.limit) && + Objects.equals(this.offset, rmAudienceSearchMetadataV1.offset)&& + Objects.equals(this.additionalProperties, rmAudienceSearchMetadataV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(totalItems, limit, offset, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSearchMetadataV1 {\n"); + sb.append(" totalItems: ").append(toIndentedString(totalItems)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("totalItems"); + openapiFields.add("limit"); + openapiFields.add("offset"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSearchMetadataV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSearchMetadataV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSearchMetadataV1 is not found in the empty JSON string", RmAudienceSearchMetadataV1.openapiRequiredFields.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSearchMetadataV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSearchMetadataV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSearchMetadataV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSearchMetadataV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSearchMetadataV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSearchMetadataV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSearchMetadataV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSearchMetadataV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSearchMetadataV1 + */ + public static RmAudienceSearchMetadataV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSearchMetadataV1.class); + } + + /** + * Convert an instance of RmAudienceSearchMetadataV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelListRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkCreateInputV1.java similarity index 75% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelListRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkCreateInputV1.java index 34d4e005..db4bc28a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelListRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkCreateInputV1.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.DeleteUserProfileModelResource; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentCreateEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,27 +45,27 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * A top-level object that encapsulates a Criteo API request for several values + * A top-level object that encapsulates a Criteo API request for several values. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class DeleteUserProfileModelListRequest { +public class RmAudienceSegmentBulkCreateInputV1 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; - public DeleteUserProfileModelListRequest() { + public RmAudienceSegmentBulkCreateInputV1() { } - public DeleteUserProfileModelListRequest data(List data) { + public RmAudienceSegmentBulkCreateInputV1 data(List data) { this.data = data; return this; } - public DeleteUserProfileModelListRequest addDataItem(DeleteUserProfileModelResource dataItem) { + public RmAudienceSegmentBulkCreateInputV1 addDataItem(RmAudienceSegmentCreateEntityV1Resource dataItem) { if (this.data == null) { this.data = null; } @@ -79,12 +79,12 @@ public DeleteUserProfileModelListRequest addDataItem(DeleteUserProfileModelResou **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -101,9 +101,9 @@ public void setData(List data) { * * @param key name of the property * @param value value of the property - * @return the DeleteUserProfileModelListRequest instance itself + * @return the RmAudienceSegmentBulkCreateInputV1 instance itself */ - public DeleteUserProfileModelListRequest putAdditionalProperty(String key, Object value) { + public RmAudienceSegmentBulkCreateInputV1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -142,9 +142,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeleteUserProfileModelListRequest deleteUserProfileModelListRequest = (DeleteUserProfileModelListRequest) o; - return Objects.equals(this.data, deleteUserProfileModelListRequest.data)&& - Objects.equals(this.additionalProperties, deleteUserProfileModelListRequest.additionalProperties); + RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1 = (RmAudienceSegmentBulkCreateInputV1) o; + return Objects.equals(this.data, rmAudienceSegmentBulkCreateInputV1.data)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentBulkCreateInputV1.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -166,7 +166,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeleteUserProfileModelListRequest {\n"); + sb.append("class RmAudienceSegmentBulkCreateInputV1 {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -201,12 +201,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to DeleteUserProfileModelListRequest + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentBulkCreateInputV1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!DeleteUserProfileModelListRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DeleteUserProfileModelListRequest is not found in the empty JSON string", DeleteUserProfileModelListRequest.openapiRequiredFields.toString())); + if (!RmAudienceSegmentBulkCreateInputV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentBulkCreateInputV1 is not found in the empty JSON string", RmAudienceSegmentBulkCreateInputV1.openapiRequiredFields.toString())); } } if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -219,7 +219,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - DeleteUserProfileModelResource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + RmAudienceSegmentCreateEntityV1Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -229,16 +229,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteUserProfileModelListRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteUserProfileModelListRequest' and its subtypes + if (!RmAudienceSegmentBulkCreateInputV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentBulkCreateInputV1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteUserProfileModelListRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentBulkCreateInputV1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, DeleteUserProfileModelListRequest value) throws IOException { + public void write(JsonWriter out, RmAudienceSegmentBulkCreateInputV1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -261,11 +261,11 @@ else if (entry.getValue() instanceof Character) } @Override - public DeleteUserProfileModelListRequest read(JsonReader in) throws IOException { + public RmAudienceSegmentBulkCreateInputV1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - DeleteUserProfileModelListRequest instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceSegmentBulkCreateInputV1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -292,18 +292,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of DeleteUserProfileModelListRequest given an JSON string + * Create an instance of RmAudienceSegmentBulkCreateInputV1 given an JSON string * * @param jsonString JSON string - * @return An instance of DeleteUserProfileModelListRequest - * @throws IOException if the JSON string is invalid with respect to DeleteUserProfileModelListRequest + * @return An instance of RmAudienceSegmentBulkCreateInputV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentBulkCreateInputV1 */ - public static DeleteUserProfileModelListRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteUserProfileModelListRequest.class); + public static RmAudienceSegmentBulkCreateInputV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentBulkCreateInputV1.class); } /** - * Convert an instance of DeleteUserProfileModelListRequest to an JSON string + * Convert an instance of RmAudienceSegmentBulkCreateInputV1 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelListRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkDeleteInputV1.java similarity index 75% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelListRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkDeleteInputV1.java index 0aed9fcc..bf9ae707 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelListRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkDeleteInputV1.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.SetUserProfileModelResource; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentDeleteEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,27 +45,27 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * A top-level object that encapsulates a Criteo API request for several values + * A top-level object that encapsulates a Criteo API request for several entities. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SetUserProfileModelListRequest { +public class RmAudienceSegmentBulkDeleteInputV1 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; - public SetUserProfileModelListRequest() { + public RmAudienceSegmentBulkDeleteInputV1() { } - public SetUserProfileModelListRequest data(List data) { + public RmAudienceSegmentBulkDeleteInputV1 data(List data) { this.data = data; return this; } - public SetUserProfileModelListRequest addDataItem(SetUserProfileModelResource dataItem) { + public RmAudienceSegmentBulkDeleteInputV1 addDataItem(RmAudienceSegmentDeleteEntityV1Resource dataItem) { if (this.data == null) { this.data = null; } @@ -79,12 +79,12 @@ public SetUserProfileModelListRequest addDataItem(SetUserProfileModelResource da **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -101,9 +101,9 @@ public void setData(List data) { * * @param key name of the property * @param value value of the property - * @return the SetUserProfileModelListRequest instance itself + * @return the RmAudienceSegmentBulkDeleteInputV1 instance itself */ - public SetUserProfileModelListRequest putAdditionalProperty(String key, Object value) { + public RmAudienceSegmentBulkDeleteInputV1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -142,9 +142,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SetUserProfileModelListRequest setUserProfileModelListRequest = (SetUserProfileModelListRequest) o; - return Objects.equals(this.data, setUserProfileModelListRequest.data)&& - Objects.equals(this.additionalProperties, setUserProfileModelListRequest.additionalProperties); + RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1 = (RmAudienceSegmentBulkDeleteInputV1) o; + return Objects.equals(this.data, rmAudienceSegmentBulkDeleteInputV1.data)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentBulkDeleteInputV1.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -166,7 +166,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SetUserProfileModelListRequest {\n"); + sb.append("class RmAudienceSegmentBulkDeleteInputV1 {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -201,12 +201,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to SetUserProfileModelListRequest + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentBulkDeleteInputV1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!SetUserProfileModelListRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SetUserProfileModelListRequest is not found in the empty JSON string", SetUserProfileModelListRequest.openapiRequiredFields.toString())); + if (!RmAudienceSegmentBulkDeleteInputV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentBulkDeleteInputV1 is not found in the empty JSON string", RmAudienceSegmentBulkDeleteInputV1.openapiRequiredFields.toString())); } } if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -219,7 +219,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - SetUserProfileModelResource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + RmAudienceSegmentDeleteEntityV1Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -229,16 +229,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetUserProfileModelListRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetUserProfileModelListRequest' and its subtypes + if (!RmAudienceSegmentBulkDeleteInputV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentBulkDeleteInputV1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetUserProfileModelListRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentBulkDeleteInputV1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, SetUserProfileModelListRequest value) throws IOException { + public void write(JsonWriter out, RmAudienceSegmentBulkDeleteInputV1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -261,11 +261,11 @@ else if (entry.getValue() instanceof Character) } @Override - public SetUserProfileModelListRequest read(JsonReader in) throws IOException { + public RmAudienceSegmentBulkDeleteInputV1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - SetUserProfileModelListRequest instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceSegmentBulkDeleteInputV1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -292,18 +292,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of SetUserProfileModelListRequest given an JSON string + * Create an instance of RmAudienceSegmentBulkDeleteInputV1 given an JSON string * * @param jsonString JSON string - * @return An instance of SetUserProfileModelListRequest - * @throws IOException if the JSON string is invalid with respect to SetUserProfileModelListRequest + * @return An instance of RmAudienceSegmentBulkDeleteInputV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentBulkDeleteInputV1 */ - public static SetUserProfileModelListRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SetUserProfileModelListRequest.class); + public static RmAudienceSegmentBulkDeleteInputV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentBulkDeleteInputV1.class); } /** - * Convert an instance of SetUserProfileModelListRequest to an JSON string + * Convert an instance of RmAudienceSegmentBulkDeleteInputV1 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PromotedProduct202110ListRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkUpdateInputV1.java similarity index 70% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PromotedProduct202110ListRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkUpdateInputV1.java index 786d7c6c..289153f4 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/PromotedProduct202110ListRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentBulkUpdateInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfPromotedProduct202110; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentUpdateEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -24,6 +24,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -44,29 +45,29 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Data model for a list of input resources + * A top-level object that encapsulates a Criteo API request for several entities. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class PromotedProduct202110ListRequest { +public class RmAudienceSegmentBulkUpdateInputV1 { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; - public PromotedProduct202110ListRequest() { + public RmAudienceSegmentBulkUpdateInputV1() { } - public PromotedProduct202110ListRequest data(List data) { + public RmAudienceSegmentBulkUpdateInputV1 data(List data) { this.data = data; return this; } - public PromotedProduct202110ListRequest addDataItem(ResourceOfPromotedProduct202110 dataItem) { + public RmAudienceSegmentBulkUpdateInputV1 addDataItem(RmAudienceSegmentUpdateEntityV1Resource dataItem) { if (this.data == null) { - this.data = new ArrayList<>(); + this.data = null; } this.data.add(dataItem); return this; @@ -78,12 +79,12 @@ public PromotedProduct202110ListRequest addDataItem(ResourceOfPromotedProduct202 **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -100,9 +101,9 @@ public void setData(List data) { * * @param key name of the property * @param value value of the property - * @return the PromotedProduct202110ListRequest instance itself + * @return the RmAudienceSegmentBulkUpdateInputV1 instance itself */ - public PromotedProduct202110ListRequest putAdditionalProperty(String key, Object value) { + public RmAudienceSegmentBulkUpdateInputV1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -141,9 +142,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PromotedProduct202110ListRequest promotedProduct202110ListRequest = (PromotedProduct202110ListRequest) o; - return Objects.equals(this.data, promotedProduct202110ListRequest.data)&& - Objects.equals(this.additionalProperties, promotedProduct202110ListRequest.additionalProperties); + RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1 = (RmAudienceSegmentBulkUpdateInputV1) o; + return Objects.equals(this.data, rmAudienceSegmentBulkUpdateInputV1.data)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentBulkUpdateInputV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override @@ -151,10 +156,17 @@ public int hashCode() { return Objects.hash(data, additionalProperties); } + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PromotedProduct202110ListRequest {\n"); + sb.append("class RmAudienceSegmentBulkUpdateInputV1 {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -189,12 +201,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to PromotedProduct202110ListRequest + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentBulkUpdateInputV1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!PromotedProduct202110ListRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in PromotedProduct202110ListRequest is not found in the empty JSON string", PromotedProduct202110ListRequest.openapiRequiredFields.toString())); + if (!RmAudienceSegmentBulkUpdateInputV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentBulkUpdateInputV1 is not found in the empty JSON string", RmAudienceSegmentBulkUpdateInputV1.openapiRequiredFields.toString())); } } if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -207,7 +219,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - ResourceOfPromotedProduct202110.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + RmAudienceSegmentUpdateEntityV1Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -217,16 +229,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PromotedProduct202110ListRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PromotedProduct202110ListRequest' and its subtypes + if (!RmAudienceSegmentBulkUpdateInputV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentBulkUpdateInputV1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PromotedProduct202110ListRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentBulkUpdateInputV1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, PromotedProduct202110ListRequest value) throws IOException { + public void write(JsonWriter out, RmAudienceSegmentBulkUpdateInputV1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -249,11 +261,11 @@ else if (entry.getValue() instanceof Character) } @Override - public PromotedProduct202110ListRequest read(JsonReader in) throws IOException { + public RmAudienceSegmentBulkUpdateInputV1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - PromotedProduct202110ListRequest instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceSegmentBulkUpdateInputV1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -280,18 +292,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of PromotedProduct202110ListRequest given an JSON string + * Create an instance of RmAudienceSegmentBulkUpdateInputV1 given an JSON string * * @param jsonString JSON string - * @return An instance of PromotedProduct202110ListRequest - * @throws IOException if the JSON string is invalid with respect to PromotedProduct202110ListRequest + * @return An instance of RmAudienceSegmentBulkUpdateInputV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentBulkUpdateInputV1 */ - public static PromotedProduct202110ListRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PromotedProduct202110ListRequest.class); + public static RmAudienceSegmentBulkUpdateInputV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentBulkUpdateInputV1.class); } /** - * Convert an instance of PromotedProduct202110ListRequest to an JSON string + * Convert an instance of RmAudienceSegmentBulkUpdateInputV1 to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceAttributes.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentCreateEntityV1.java similarity index 67% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceAttributes.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentCreateEntityV1.java index fa7e6a3b..c916fff0 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceAttributes.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentCreateEntityV1.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RmContactListCreateV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,17 +43,13 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * NewAudienceAttributes + * Set of rules that defines specific people to target. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class NewAudienceAttributes { - public static final String SERIALIZED_NAME_ADVERTISER_ID = "advertiserId"; - @SerializedName(SERIALIZED_NAME_ADVERTISER_ID) - private String advertiserId; - +public class RmAudienceSegmentCreateEntityV1 { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; @@ -61,39 +58,25 @@ public class NewAudienceAttributes { @SerializedName(SERIALIZED_NAME_DESCRIPTION) private String description; - public NewAudienceAttributes() { - } - - public NewAudienceAttributes advertiserId(String advertiserId) { - - this.advertiserId = advertiserId; - return this; - } - - /** - * The advertiser id to create the audience for - * @return advertiserId - **/ - @javax.annotation.Nullable - - public String getAdvertiserId() { - return advertiserId; - } + public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; + @SerializedName(SERIALIZED_NAME_RETAILER_ID) + private String retailerId; + public static final String SERIALIZED_NAME_CONTACT_LIST = "contactList"; + @SerializedName(SERIALIZED_NAME_CONTACT_LIST) + private RmContactListCreateV1 contactList; - public void setAdvertiserId(String advertiserId) { - this.advertiserId = advertiserId; + public RmAudienceSegmentCreateEntityV1() { } - - public NewAudienceAttributes name(String name) { + public RmAudienceSegmentCreateEntityV1 name(String name) { this.name = name; return this; } /** - * The name of the new audience + * Name of the segment * @return name **/ @javax.annotation.Nonnull @@ -108,14 +91,14 @@ public void setName(String name) { } - public NewAudienceAttributes description(String description) { + public RmAudienceSegmentCreateEntityV1 description(String description) { this.description = description; return this; } /** - * The description of the audience + * Description of the segment * @return description **/ @javax.annotation.Nullable @@ -129,6 +112,50 @@ public void setDescription(String description) { this.description = description; } + + public RmAudienceSegmentCreateEntityV1 retailerId(String retailerId) { + + this.retailerId = retailerId; + return this; + } + + /** + * Retailer associated to the segment + * @return retailerId + **/ + @javax.annotation.Nonnull + + public String getRetailerId() { + return retailerId; + } + + + public void setRetailerId(String retailerId) { + this.retailerId = retailerId; + } + + + public RmAudienceSegmentCreateEntityV1 contactList(RmContactListCreateV1 contactList) { + + this.contactList = contactList; + return this; + } + + /** + * Get contactList + * @return contactList + **/ + @javax.annotation.Nullable + + public RmContactListCreateV1 getContactList() { + return contactList; + } + + + public void setContactList(RmContactListCreateV1 contactList) { + this.contactList = contactList; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -142,9 +169,9 @@ public void setDescription(String description) { * * @param key name of the property * @param value value of the property - * @return the NewAudienceAttributes instance itself + * @return the RmAudienceSegmentCreateEntityV1 instance itself */ - public NewAudienceAttributes putAdditionalProperty(String key, Object value) { + public RmAudienceSegmentCreateEntityV1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -183,11 +210,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - NewAudienceAttributes newAudienceAttributes = (NewAudienceAttributes) o; - return Objects.equals(this.advertiserId, newAudienceAttributes.advertiserId) && - Objects.equals(this.name, newAudienceAttributes.name) && - Objects.equals(this.description, newAudienceAttributes.description)&& - Objects.equals(this.additionalProperties, newAudienceAttributes.additionalProperties); + RmAudienceSegmentCreateEntityV1 rmAudienceSegmentCreateEntityV1 = (RmAudienceSegmentCreateEntityV1) o; + return Objects.equals(this.name, rmAudienceSegmentCreateEntityV1.name) && + Objects.equals(this.description, rmAudienceSegmentCreateEntityV1.description) && + Objects.equals(this.retailerId, rmAudienceSegmentCreateEntityV1.retailerId) && + Objects.equals(this.contactList, rmAudienceSegmentCreateEntityV1.contactList)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentCreateEntityV1.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -196,7 +224,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(advertiserId, name, description, additionalProperties); + return Objects.hash(name, description, retailerId, contactList, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -209,10 +237,11 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class NewAudienceAttributes {\n"); - sb.append(" advertiserId: ").append(toIndentedString(advertiserId)).append("\n"); + sb.append("class RmAudienceSegmentCreateEntityV1 {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); + sb.append(" contactList: ").append(toIndentedString(contactList)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -236,59 +265,65 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("advertiserId"); openapiFields.add("name"); openapiFields.add("description"); + openapiFields.add("retailerId"); + openapiFields.add("contactList"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); openapiRequiredFields.add("name"); + openapiRequiredFields.add("retailerId"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to NewAudienceAttributes + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentCreateEntityV1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!NewAudienceAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NewAudienceAttributes is not found in the empty JSON string", NewAudienceAttributes.openapiRequiredFields.toString())); + if (!RmAudienceSegmentCreateEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentCreateEntityV1 is not found in the empty JSON string", RmAudienceSegmentCreateEntityV1.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : NewAudienceAttributes.openapiRequiredFields) { + for (String requiredField : RmAudienceSegmentCreateEntityV1.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if ((jsonObj.get("advertiserId") != null && !jsonObj.get("advertiserId").isJsonNull()) && !jsonObj.get("advertiserId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `advertiserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("advertiserId").toString())); - } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } + if (!jsonObj.get("retailerId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `retailerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("retailerId").toString())); + } + // validate the optional field `contactList` + if (jsonObj.get("contactList") != null && !jsonObj.get("contactList").isJsonNull()) { + RmContactListCreateV1.validateJsonObject(jsonObj.getAsJsonObject("contactList")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!NewAudienceAttributes.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NewAudienceAttributes' and its subtypes + if (!RmAudienceSegmentCreateEntityV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentCreateEntityV1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NewAudienceAttributes.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentCreateEntityV1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, NewAudienceAttributes value) throws IOException { + public void write(JsonWriter out, RmAudienceSegmentCreateEntityV1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -311,11 +346,11 @@ else if (entry.getValue() instanceof Character) } @Override - public NewAudienceAttributes read(JsonReader in) throws IOException { + public RmAudienceSegmentCreateEntityV1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - NewAudienceAttributes instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceSegmentCreateEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -342,18 +377,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of NewAudienceAttributes given an JSON string + * Create an instance of RmAudienceSegmentCreateEntityV1 given an JSON string * * @param jsonString JSON string - * @return An instance of NewAudienceAttributes - * @throws IOException if the JSON string is invalid with respect to NewAudienceAttributes + * @return An instance of RmAudienceSegmentCreateEntityV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentCreateEntityV1 */ - public static NewAudienceAttributes fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NewAudienceAttributes.class); + public static RmAudienceSegmentCreateEntityV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentCreateEntityV1.class); } /** - * Convert an instance of NewAudienceAttributes to an JSON string + * Convert an instance of RmAudienceSegmentCreateEntityV1 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentCreateEntityV1Resource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentCreateEntityV1Resource.java new file mode 100644 index 00000000..25cea175 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentCreateEntityV1Resource.java @@ -0,0 +1,326 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentCreateEntityV1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single value + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSegmentCreateEntityV1Resource { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private RmAudienceSegmentCreateEntityV1 attributes; + + public RmAudienceSegmentCreateEntityV1Resource() { + } + + public RmAudienceSegmentCreateEntityV1Resource type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public RmAudienceSegmentCreateEntityV1Resource attributes(RmAudienceSegmentCreateEntityV1 attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public RmAudienceSegmentCreateEntityV1 getAttributes() { + return attributes; + } + + + public void setAttributes(RmAudienceSegmentCreateEntityV1 attributes) { + this.attributes = attributes; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSegmentCreateEntityV1Resource instance itself + */ + public RmAudienceSegmentCreateEntityV1Resource putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSegmentCreateEntityV1Resource rmAudienceSegmentCreateEntityV1Resource = (RmAudienceSegmentCreateEntityV1Resource) o; + return Objects.equals(this.type, rmAudienceSegmentCreateEntityV1Resource.type) && + Objects.equals(this.attributes, rmAudienceSegmentCreateEntityV1Resource.attributes)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentCreateEntityV1Resource.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSegmentCreateEntityV1Resource {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentCreateEntityV1Resource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSegmentCreateEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentCreateEntityV1Resource is not found in the empty JSON string", RmAudienceSegmentCreateEntityV1Resource.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + RmAudienceSegmentCreateEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSegmentCreateEntityV1Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentCreateEntityV1Resource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentCreateEntityV1Resource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSegmentCreateEntityV1Resource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSegmentCreateEntityV1Resource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSegmentCreateEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSegmentCreateEntityV1Resource given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSegmentCreateEntityV1Resource + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentCreateEntityV1Resource + */ + public static RmAudienceSegmentCreateEntityV1Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentCreateEntityV1Resource.class); + } + + /** + * Convert an instance of RmAudienceSegmentCreateEntityV1Resource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentDeleteEntityV1Resource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentDeleteEntityV1Resource.java new file mode 100644 index 00000000..a5105ce5 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentDeleteEntityV1Resource.java @@ -0,0 +1,353 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A class that represents a domain entity exposed by an API + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSegmentDeleteEntityV1Resource { + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private Object attributes; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public RmAudienceSegmentDeleteEntityV1Resource() { + } + + public RmAudienceSegmentDeleteEntityV1Resource attributes(Object attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Segment to delete + * @return attributes + **/ + @javax.annotation.Nullable + + public Object getAttributes() { + return attributes; + } + + + public void setAttributes(Object attributes) { + this.attributes = attributes; + } + + + public RmAudienceSegmentDeleteEntityV1Resource id(String id) { + + this.id = id; + return this; + } + + /** + * Id of the entity + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public RmAudienceSegmentDeleteEntityV1Resource type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSegmentDeleteEntityV1Resource instance itself + */ + public RmAudienceSegmentDeleteEntityV1Resource putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSegmentDeleteEntityV1Resource rmAudienceSegmentDeleteEntityV1Resource = (RmAudienceSegmentDeleteEntityV1Resource) o; + return Objects.equals(this.attributes, rmAudienceSegmentDeleteEntityV1Resource.attributes) && + Objects.equals(this.id, rmAudienceSegmentDeleteEntityV1Resource.id) && + Objects.equals(this.type, rmAudienceSegmentDeleteEntityV1Resource.type)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentDeleteEntityV1Resource.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSegmentDeleteEntityV1Resource {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attributes"); + openapiFields.add("id"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentDeleteEntityV1Resource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSegmentDeleteEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentDeleteEntityV1Resource is not found in the empty JSON string", RmAudienceSegmentDeleteEntityV1Resource.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSegmentDeleteEntityV1Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentDeleteEntityV1Resource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentDeleteEntityV1Resource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSegmentDeleteEntityV1Resource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSegmentDeleteEntityV1Resource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSegmentDeleteEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSegmentDeleteEntityV1Resource given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSegmentDeleteEntityV1Resource + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentDeleteEntityV1Resource + */ + public static RmAudienceSegmentDeleteEntityV1Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentDeleteEntityV1Resource.class); + } + + /** + * Convert an instance of RmAudienceSegmentDeleteEntityV1Resource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1.java new file mode 100644 index 00000000..14564d3d --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1.java @@ -0,0 +1,720 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RmContactListV1; +import com.criteo.api.retailmedia.v2024_10.model.RmEventsV1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Set of rules that defines specific people to target. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSegmentEntityV1 { + public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; + @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + private String accountId; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; + @SerializedName(SERIALIZED_NAME_RETAILER_ID) + private String retailerId; + + /** + * Type of segment (read-only) + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + UNKNOWN("Unknown"), + + CONTACTLIST("ContactList"), + + EVENTS("Events"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + private OffsetDateTime updatedAt; + + public static final String SERIALIZED_NAME_CREATED_BY_ID = "createdById"; + @SerializedName(SERIALIZED_NAME_CREATED_BY_ID) + private String createdById; + + public static final String SERIALIZED_NAME_CONTACT_LIST = "contactList"; + @SerializedName(SERIALIZED_NAME_CONTACT_LIST) + private RmContactListV1 contactList; + + public static final String SERIALIZED_NAME_EVENTS = "events"; + @SerializedName(SERIALIZED_NAME_EVENTS) + private RmEventsV1 events; + + /** + * Gets or Sets channels + */ + @JsonAdapter(ChannelsEnum.Adapter.class) + public enum ChannelsEnum { + UNKNOWN("Unknown"), + + ONSITE("Onsite"), + + OFFSITE("Offsite"); + + private String value; + + ChannelsEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ChannelsEnum fromValue(String value) { + for (ChannelsEnum b : ChannelsEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ChannelsEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ChannelsEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ChannelsEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CHANNELS = "channels"; + @SerializedName(SERIALIZED_NAME_CHANNELS) + private List channels = null; + + public RmAudienceSegmentEntityV1() { + } + + public RmAudienceSegmentEntityV1 accountId(String accountId) { + + this.accountId = accountId; + return this; + } + + /** + * Account associated to the segment + * @return accountId + **/ + @javax.annotation.Nullable + + public String getAccountId() { + return accountId; + } + + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + + public RmAudienceSegmentEntityV1 name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the segment + * @return name + **/ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public RmAudienceSegmentEntityV1 description(String description) { + + this.description = description; + return this; + } + + /** + * Description of the segment + * @return description + **/ + @javax.annotation.Nullable + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + public RmAudienceSegmentEntityV1 retailerId(String retailerId) { + + this.retailerId = retailerId; + return this; + } + + /** + * Retailer associated to the segment + * @return retailerId + **/ + @javax.annotation.Nullable + + public String getRetailerId() { + return retailerId; + } + + + public void setRetailerId(String retailerId) { + this.retailerId = retailerId; + } + + + public RmAudienceSegmentEntityV1 type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Type of segment (read-only) + * @return type + **/ + @javax.annotation.Nullable + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public RmAudienceSegmentEntityV1 createdAt(OffsetDateTime createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * ISO-8601 timestamp in UTC of segment creation (read-only) + * @return createdAt + **/ + @javax.annotation.Nullable + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public RmAudienceSegmentEntityV1 updatedAt(OffsetDateTime updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * ISO-8601 timestamp in UTC of segment update (read-only) + * @return updatedAt + **/ + @javax.annotation.Nullable + + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + + public RmAudienceSegmentEntityV1 createdById(String createdById) { + + this.createdById = createdById; + return this; + } + + /** + * User that created the segment + * @return createdById + **/ + @javax.annotation.Nullable + + public String getCreatedById() { + return createdById; + } + + + public void setCreatedById(String createdById) { + this.createdById = createdById; + } + + + public RmAudienceSegmentEntityV1 contactList(RmContactListV1 contactList) { + + this.contactList = contactList; + return this; + } + + /** + * Get contactList + * @return contactList + **/ + @javax.annotation.Nullable + + public RmContactListV1 getContactList() { + return contactList; + } + + + public void setContactList(RmContactListV1 contactList) { + this.contactList = contactList; + } + + + public RmAudienceSegmentEntityV1 events(RmEventsV1 events) { + + this.events = events; + return this; + } + + /** + * Get events + * @return events + **/ + @javax.annotation.Nullable + + public RmEventsV1 getEvents() { + return events; + } + + + public void setEvents(RmEventsV1 events) { + this.events = events; + } + + + public RmAudienceSegmentEntityV1 channels(List channels) { + + this.channels = channels; + return this; + } + + public RmAudienceSegmentEntityV1 addChannelsItem(ChannelsEnum channelsItem) { + if (this.channels == null) { + this.channels = null; + } + this.channels.add(channelsItem); + return this; + } + + /** + * Channels associated to the segment (read-only) + * @return channels + **/ + @javax.annotation.Nullable + + public List getChannels() { + return channels; + } + + + public void setChannels(List channels) { + this.channels = channels; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSegmentEntityV1 instance itself + */ + public RmAudienceSegmentEntityV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSegmentEntityV1 rmAudienceSegmentEntityV1 = (RmAudienceSegmentEntityV1) o; + return Objects.equals(this.accountId, rmAudienceSegmentEntityV1.accountId) && + Objects.equals(this.name, rmAudienceSegmentEntityV1.name) && + Objects.equals(this.description, rmAudienceSegmentEntityV1.description) && + Objects.equals(this.retailerId, rmAudienceSegmentEntityV1.retailerId) && + Objects.equals(this.type, rmAudienceSegmentEntityV1.type) && + Objects.equals(this.createdAt, rmAudienceSegmentEntityV1.createdAt) && + Objects.equals(this.updatedAt, rmAudienceSegmentEntityV1.updatedAt) && + Objects.equals(this.createdById, rmAudienceSegmentEntityV1.createdById) && + Objects.equals(this.contactList, rmAudienceSegmentEntityV1.contactList) && + Objects.equals(this.events, rmAudienceSegmentEntityV1.events) && + Objects.equals(this.channels, rmAudienceSegmentEntityV1.channels)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentEntityV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, name, description, retailerId, type, createdAt, updatedAt, createdById, contactList, events, channels, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSegmentEntityV1 {\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" createdById: ").append(toIndentedString(createdById)).append("\n"); + sb.append(" contactList: ").append(toIndentedString(contactList)).append("\n"); + sb.append(" events: ").append(toIndentedString(events)).append("\n"); + sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("accountId"); + openapiFields.add("name"); + openapiFields.add("description"); + openapiFields.add("retailerId"); + openapiFields.add("type"); + openapiFields.add("createdAt"); + openapiFields.add("updatedAt"); + openapiFields.add("createdById"); + openapiFields.add("contactList"); + openapiFields.add("events"); + openapiFields.add("channels"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentEntityV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSegmentEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentEntityV1 is not found in the empty JSON string", RmAudienceSegmentEntityV1.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("accountId") != null && !jsonObj.get("accountId").isJsonNull()) && !jsonObj.get("accountId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `accountId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("retailerId") != null && !jsonObj.get("retailerId").isJsonNull()) && !jsonObj.get("retailerId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `retailerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("retailerId").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if ((jsonObj.get("createdById") != null && !jsonObj.get("createdById").isJsonNull()) && !jsonObj.get("createdById").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `createdById` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdById").toString())); + } + // validate the optional field `contactList` + if (jsonObj.get("contactList") != null && !jsonObj.get("contactList").isJsonNull()) { + RmContactListV1.validateJsonObject(jsonObj.getAsJsonObject("contactList")); + } + // validate the optional field `events` + if (jsonObj.get("events") != null && !jsonObj.get("events").isJsonNull()) { + RmEventsV1.validateJsonObject(jsonObj.getAsJsonObject("events")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("channels") != null && !jsonObj.get("channels").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `channels` to be an array in the JSON string but got `%s`", jsonObj.get("channels").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSegmentEntityV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentEntityV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentEntityV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSegmentEntityV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSegmentEntityV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSegmentEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSegmentEntityV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSegmentEntityV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentEntityV1 + */ + public static RmAudienceSegmentEntityV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentEntityV1.class); + } + + /** + * Convert an instance of RmAudienceSegmentEntityV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2ListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1ListResponse.java similarity index 77% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2ListResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1ListResponse.java index 0d61aca1..04f6636c 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2ListResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonProblem; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV2Resource; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,16 +46,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for several entities */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV2ListResponse { +public class RmAudienceSegmentEntityV1ListResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) @@ -65,11 +65,11 @@ public class RmLegacyAudienceGetEntityV2ListResponse { @SerializedName(SERIALIZED_NAME_ERRORS) private List errors = null; - public RmLegacyAudienceGetEntityV2ListResponse() { + public RmAudienceSegmentEntityV1ListResponse() { } - public RmLegacyAudienceGetEntityV2ListResponse( + public RmAudienceSegmentEntityV1ListResponse( List warnings, List errors ) { @@ -78,13 +78,13 @@ public RmLegacyAudienceGetEntityV2ListResponse( this.errors = errors; } - public RmLegacyAudienceGetEntityV2ListResponse data(List data) { + public RmAudienceSegmentEntityV1ListResponse data(List data) { this.data = data; return this; } - public RmLegacyAudienceGetEntityV2ListResponse addDataItem(RmLegacyAudienceGetEntityV2Resource dataItem) { + public RmAudienceSegmentEntityV1ListResponse addDataItem(RmAudienceSegmentEntityV1Resource dataItem) { if (this.data == null) { this.data = null; } @@ -98,12 +98,12 @@ public RmLegacyAudienceGetEntityV2ListResponse addDataItem(RmLegacyAudienceGetEn **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -146,9 +146,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceGetEntityV2ListResponse instance itself + * @return the RmAudienceSegmentEntityV1ListResponse instance itself */ - public RmLegacyAudienceGetEntityV2ListResponse putAdditionalProperty(String key, Object value) { + public RmAudienceSegmentEntityV1ListResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -187,11 +187,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceGetEntityV2ListResponse rmLegacyAudienceGetEntityV2ListResponse = (RmLegacyAudienceGetEntityV2ListResponse) o; - return Objects.equals(this.data, rmLegacyAudienceGetEntityV2ListResponse.data) && - Objects.equals(this.warnings, rmLegacyAudienceGetEntityV2ListResponse.warnings) && - Objects.equals(this.errors, rmLegacyAudienceGetEntityV2ListResponse.errors)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV2ListResponse.additionalProperties); + RmAudienceSegmentEntityV1ListResponse rmAudienceSegmentEntityV1ListResponse = (RmAudienceSegmentEntityV1ListResponse) o; + return Objects.equals(this.data, rmAudienceSegmentEntityV1ListResponse.data) && + Objects.equals(this.warnings, rmAudienceSegmentEntityV1ListResponse.warnings) && + Objects.equals(this.errors, rmAudienceSegmentEntityV1ListResponse.errors)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentEntityV1ListResponse.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -213,7 +213,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV2ListResponse {\n"); + sb.append("class RmAudienceSegmentEntityV1ListResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); @@ -252,12 +252,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV2ListResponse + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentEntityV1ListResponse */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV2ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV2ListResponse is not found in the empty JSON string", RmLegacyAudienceGetEntityV2ListResponse.openapiRequiredFields.toString())); + if (!RmAudienceSegmentEntityV1ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentEntityV1ListResponse is not found in the empty JSON string", RmAudienceSegmentEntityV1ListResponse.openapiRequiredFields.toString())); } } if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -270,7 +270,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - RmLegacyAudienceGetEntityV2Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + RmAudienceSegmentEntityV1Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -308,16 +308,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV2ListResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV2ListResponse' and its subtypes + if (!RmAudienceSegmentEntityV1ListResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentEntityV1ListResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV2ListResponse.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentEntityV1ListResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV2ListResponse value) throws IOException { + public void write(JsonWriter out, RmAudienceSegmentEntityV1ListResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -340,11 +340,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceGetEntityV2ListResponse read(JsonReader in) throws IOException { + public RmAudienceSegmentEntityV1ListResponse read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV2ListResponse instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceSegmentEntityV1ListResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -371,18 +371,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceGetEntityV2ListResponse given an JSON string + * Create an instance of RmAudienceSegmentEntityV1ListResponse given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV2ListResponse - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV2ListResponse + * @return An instance of RmAudienceSegmentEntityV1ListResponse + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentEntityV1ListResponse */ - public static RmLegacyAudienceGetEntityV2ListResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV2ListResponse.class); + public static RmAudienceSegmentEntityV1ListResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentEntityV1ListResponse.class); } /** - * Convert an instance of RmLegacyAudienceGetEntityV2ListResponse to an JSON string + * Convert an instance of RmAudienceSegmentEntityV1ListResponse to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2Resource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1Resource.java similarity index 76% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2Resource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1Resource.java index 6a3995b5..49fbc50e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV2Resource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV2; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,16 +43,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV2Resource { +public class RmAudienceSegmentEntityV1Resource { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private RmLegacyAudienceGetEntityV2 attributes; + private RmAudienceSegmentEntityV1 attributes; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -62,10 +62,10 @@ public class RmLegacyAudienceGetEntityV2Resource { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public RmLegacyAudienceGetEntityV2Resource() { + public RmAudienceSegmentEntityV1Resource() { } - public RmLegacyAudienceGetEntityV2Resource attributes(RmLegacyAudienceGetEntityV2 attributes) { + public RmAudienceSegmentEntityV1Resource attributes(RmAudienceSegmentEntityV1 attributes) { this.attributes = attributes; return this; @@ -77,17 +77,17 @@ public RmLegacyAudienceGetEntityV2Resource attributes(RmLegacyAudienceGetEntityV **/ @javax.annotation.Nullable - public RmLegacyAudienceGetEntityV2 getAttributes() { + public RmAudienceSegmentEntityV1 getAttributes() { return attributes; } - public void setAttributes(RmLegacyAudienceGetEntityV2 attributes) { + public void setAttributes(RmAudienceSegmentEntityV1 attributes) { this.attributes = attributes; } - public RmLegacyAudienceGetEntityV2Resource id(String id) { + public RmAudienceSegmentEntityV1Resource id(String id) { this.id = id; return this; @@ -109,7 +109,7 @@ public void setId(String id) { } - public RmLegacyAudienceGetEntityV2Resource type(String type) { + public RmAudienceSegmentEntityV1Resource type(String type) { this.type = type; return this; @@ -143,9 +143,9 @@ public void setType(String type) { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceGetEntityV2Resource instance itself + * @return the RmAudienceSegmentEntityV1Resource instance itself */ - public RmLegacyAudienceGetEntityV2Resource putAdditionalProperty(String key, Object value) { + public RmAudienceSegmentEntityV1Resource putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -184,11 +184,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceGetEntityV2Resource rmLegacyAudienceGetEntityV2Resource = (RmLegacyAudienceGetEntityV2Resource) o; - return Objects.equals(this.attributes, rmLegacyAudienceGetEntityV2Resource.attributes) && - Objects.equals(this.id, rmLegacyAudienceGetEntityV2Resource.id) && - Objects.equals(this.type, rmLegacyAudienceGetEntityV2Resource.type)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV2Resource.additionalProperties); + RmAudienceSegmentEntityV1Resource rmAudienceSegmentEntityV1Resource = (RmAudienceSegmentEntityV1Resource) o; + return Objects.equals(this.attributes, rmAudienceSegmentEntityV1Resource.attributes) && + Objects.equals(this.id, rmAudienceSegmentEntityV1Resource.id) && + Objects.equals(this.type, rmAudienceSegmentEntityV1Resource.type)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentEntityV1Resource.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -210,7 +210,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV2Resource {\n"); + sb.append("class RmAudienceSegmentEntityV1Resource {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); @@ -249,17 +249,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV2Resource + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentEntityV1Resource */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV2Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV2Resource is not found in the empty JSON string", RmLegacyAudienceGetEntityV2Resource.openapiRequiredFields.toString())); + if (!RmAudienceSegmentEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentEntityV1Resource is not found in the empty JSON string", RmAudienceSegmentEntityV1Resource.openapiRequiredFields.toString())); } } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - RmLegacyAudienceGetEntityV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + RmAudienceSegmentEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -273,16 +273,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV2Resource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV2Resource' and its subtypes + if (!RmAudienceSegmentEntityV1Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentEntityV1Resource' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV2Resource.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentEntityV1Resource.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV2Resource value) throws IOException { + public void write(JsonWriter out, RmAudienceSegmentEntityV1Resource value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -305,11 +305,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceGetEntityV2Resource read(JsonReader in) throws IOException { + public RmAudienceSegmentEntityV1Resource read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV2Resource instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceSegmentEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -336,18 +336,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceGetEntityV2Resource given an JSON string + * Create an instance of RmAudienceSegmentEntityV1Resource given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV2Resource - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV2Resource + * @return An instance of RmAudienceSegmentEntityV1Resource + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentEntityV1Resource */ - public static RmLegacyAudienceGetEntityV2Resource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV2Resource.class); + public static RmAudienceSegmentEntityV1Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentEntityV1Resource.class); } /** - * Convert an instance of RmLegacyAudienceGetEntityV2Resource to an JSON string + * Convert an instance of RmAudienceSegmentEntityV1Resource to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.java new file mode 100644 index 00000000..3c3b448e --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.java @@ -0,0 +1,427 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentEntityV1Resource; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentSearchMetadataV1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for several entities and metadata + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse { + public static final String SERIALIZED_NAME_META = "meta"; + @SerializedName(SERIALIZED_NAME_META) + private RmAudienceSegmentSearchMetadataV1 meta; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse() { + } + + + public RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse( + List warnings, + List errors + ) { + this(); + this.warnings = warnings; + this.errors = errors; + } + + public RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse meta(RmAudienceSegmentSearchMetadataV1 meta) { + + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + + public RmAudienceSegmentSearchMetadataV1 getMeta() { + return meta; + } + + + public void setMeta(RmAudienceSegmentSearchMetadataV1 meta) { + this.meta = meta; + } + + + public RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse data(List data) { + + this.data = data; + return this; + } + + public RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse addDataItem(RmAudienceSegmentEntityV1Resource dataItem) { + if (this.data == null) { + this.data = null; + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse instance itself + */ + public RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse rmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse = (RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse) o; + return Objects.equals(this.meta, rmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.meta) && + Objects.equals(this.data, rmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.data) && + Objects.equals(this.warnings, rmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.warnings) && + Objects.equals(this.errors, rmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.errors)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(meta, data, warnings, errors, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse {\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("meta"); + openapiFields.add("data"); + openapiFields.add("warnings"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse is not found in the empty JSON string", RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.openapiRequiredFields.toString())); + } + } + // validate the optional field `meta` + if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { + RmAudienceSegmentSearchMetadataV1.validateJsonObject(jsonObj.getAsJsonObject("meta")); + } + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + if (jsonArraydata != null) { + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + + // validate the optional field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + RmAudienceSegmentEntityV1Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse + */ + public static RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.class); + } + + /** + * Convert an instance of RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1ListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentIdEntityV1ListResponse.java similarity index 81% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1ListResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentIdEntityV1ListResponse.java index befd0a23..c244782e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1ListResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentIdEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.CommonProblem; -import com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV1Resource; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentIdEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,16 +46,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * A top-level object that encapsulates a Criteo API response for several entities and metadata + * A top-level object that encapsulates a Criteo API response for several entities */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV1ListResponse { +public class RmAudienceSegmentIdEntityV1ListResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) @@ -65,11 +65,11 @@ public class RmLegacyAudienceGetEntityV1ListResponse { @SerializedName(SERIALIZED_NAME_ERRORS) private List errors = null; - public RmLegacyAudienceGetEntityV1ListResponse() { + public RmAudienceSegmentIdEntityV1ListResponse() { } - public RmLegacyAudienceGetEntityV1ListResponse( + public RmAudienceSegmentIdEntityV1ListResponse( List warnings, List errors ) { @@ -78,13 +78,13 @@ public RmLegacyAudienceGetEntityV1ListResponse( this.errors = errors; } - public RmLegacyAudienceGetEntityV1ListResponse data(List data) { + public RmAudienceSegmentIdEntityV1ListResponse data(List data) { this.data = data; return this; } - public RmLegacyAudienceGetEntityV1ListResponse addDataItem(RmLegacyAudienceGetEntityV1Resource dataItem) { + public RmAudienceSegmentIdEntityV1ListResponse addDataItem(RmAudienceSegmentIdEntityV1Resource dataItem) { if (this.data == null) { this.data = null; } @@ -98,12 +98,12 @@ public RmLegacyAudienceGetEntityV1ListResponse addDataItem(RmLegacyAudienceGetEn **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -146,9 +146,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceGetEntityV1ListResponse instance itself + * @return the RmAudienceSegmentIdEntityV1ListResponse instance itself */ - public RmLegacyAudienceGetEntityV1ListResponse putAdditionalProperty(String key, Object value) { + public RmAudienceSegmentIdEntityV1ListResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -187,11 +187,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceGetEntityV1ListResponse rmLegacyAudienceGetEntityV1ListResponse = (RmLegacyAudienceGetEntityV1ListResponse) o; - return Objects.equals(this.data, rmLegacyAudienceGetEntityV1ListResponse.data) && - Objects.equals(this.warnings, rmLegacyAudienceGetEntityV1ListResponse.warnings) && - Objects.equals(this.errors, rmLegacyAudienceGetEntityV1ListResponse.errors)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV1ListResponse.additionalProperties); + RmAudienceSegmentIdEntityV1ListResponse rmAudienceSegmentIdEntityV1ListResponse = (RmAudienceSegmentIdEntityV1ListResponse) o; + return Objects.equals(this.data, rmAudienceSegmentIdEntityV1ListResponse.data) && + Objects.equals(this.warnings, rmAudienceSegmentIdEntityV1ListResponse.warnings) && + Objects.equals(this.errors, rmAudienceSegmentIdEntityV1ListResponse.errors)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentIdEntityV1ListResponse.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -213,7 +213,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV1ListResponse {\n"); + sb.append("class RmAudienceSegmentIdEntityV1ListResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); @@ -252,12 +252,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV1ListResponse + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentIdEntityV1ListResponse */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV1ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV1ListResponse is not found in the empty JSON string", RmLegacyAudienceGetEntityV1ListResponse.openapiRequiredFields.toString())); + if (!RmAudienceSegmentIdEntityV1ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentIdEntityV1ListResponse is not found in the empty JSON string", RmAudienceSegmentIdEntityV1ListResponse.openapiRequiredFields.toString())); } } if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -270,7 +270,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - RmLegacyAudienceGetEntityV1Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + RmAudienceSegmentIdEntityV1Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -308,16 +308,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV1ListResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV1ListResponse' and its subtypes + if (!RmAudienceSegmentIdEntityV1ListResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentIdEntityV1ListResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV1ListResponse.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentIdEntityV1ListResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV1ListResponse value) throws IOException { + public void write(JsonWriter out, RmAudienceSegmentIdEntityV1ListResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -340,11 +340,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceGetEntityV1ListResponse read(JsonReader in) throws IOException { + public RmAudienceSegmentIdEntityV1ListResponse read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV1ListResponse instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceSegmentIdEntityV1ListResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -371,18 +371,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceGetEntityV1ListResponse given an JSON string + * Create an instance of RmAudienceSegmentIdEntityV1ListResponse given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV1ListResponse - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV1ListResponse + * @return An instance of RmAudienceSegmentIdEntityV1ListResponse + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentIdEntityV1ListResponse */ - public static RmLegacyAudienceGetEntityV1ListResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV1ListResponse.class); + public static RmAudienceSegmentIdEntityV1ListResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentIdEntityV1ListResponse.class); } /** - * Convert an instance of RmLegacyAudienceGetEntityV1ListResponse to an JSON string + * Convert an instance of RmAudienceSegmentIdEntityV1ListResponse to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2Resource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentIdEntityV1Resource.java similarity index 77% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2Resource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentIdEntityV1Resource.java index e74e9608..85f6dec5 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2Resource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentIdEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,10 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV2; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,16 +42,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV2Resource { +public class RmAudienceSegmentIdEntityV1Resource { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private RmLegacyAudienceGetEntityV2 attributes; + private Object attributes; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -62,32 +61,32 @@ public class RmLegacyAudienceGetEntityV2Resource { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public RmLegacyAudienceGetEntityV2Resource() { + public RmAudienceSegmentIdEntityV1Resource() { } - public RmLegacyAudienceGetEntityV2Resource attributes(RmLegacyAudienceGetEntityV2 attributes) { + public RmAudienceSegmentIdEntityV1Resource attributes(Object attributes) { this.attributes = attributes; return this; } /** - * Get attributes + * Audience Segment entity only with its ID * @return attributes **/ @javax.annotation.Nullable - public RmLegacyAudienceGetEntityV2 getAttributes() { + public Object getAttributes() { return attributes; } - public void setAttributes(RmLegacyAudienceGetEntityV2 attributes) { + public void setAttributes(Object attributes) { this.attributes = attributes; } - public RmLegacyAudienceGetEntityV2Resource id(String id) { + public RmAudienceSegmentIdEntityV1Resource id(String id) { this.id = id; return this; @@ -109,7 +108,7 @@ public void setId(String id) { } - public RmLegacyAudienceGetEntityV2Resource type(String type) { + public RmAudienceSegmentIdEntityV1Resource type(String type) { this.type = type; return this; @@ -143,9 +142,9 @@ public void setType(String type) { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceGetEntityV2Resource instance itself + * @return the RmAudienceSegmentIdEntityV1Resource instance itself */ - public RmLegacyAudienceGetEntityV2Resource putAdditionalProperty(String key, Object value) { + public RmAudienceSegmentIdEntityV1Resource putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -184,11 +183,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceGetEntityV2Resource rmLegacyAudienceGetEntityV2Resource = (RmLegacyAudienceGetEntityV2Resource) o; - return Objects.equals(this.attributes, rmLegacyAudienceGetEntityV2Resource.attributes) && - Objects.equals(this.id, rmLegacyAudienceGetEntityV2Resource.id) && - Objects.equals(this.type, rmLegacyAudienceGetEntityV2Resource.type)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV2Resource.additionalProperties); + RmAudienceSegmentIdEntityV1Resource rmAudienceSegmentIdEntityV1Resource = (RmAudienceSegmentIdEntityV1Resource) o; + return Objects.equals(this.attributes, rmAudienceSegmentIdEntityV1Resource.attributes) && + Objects.equals(this.id, rmAudienceSegmentIdEntityV1Resource.id) && + Objects.equals(this.type, rmAudienceSegmentIdEntityV1Resource.type)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentIdEntityV1Resource.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -210,7 +209,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV2Resource {\n"); + sb.append("class RmAudienceSegmentIdEntityV1Resource {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); @@ -249,18 +248,14 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV2Resource + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentIdEntityV1Resource */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV2Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV2Resource is not found in the empty JSON string", RmLegacyAudienceGetEntityV2Resource.openapiRequiredFields.toString())); + if (!RmAudienceSegmentIdEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentIdEntityV1Resource is not found in the empty JSON string", RmAudienceSegmentIdEntityV1Resource.openapiRequiredFields.toString())); } } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - RmLegacyAudienceGetEntityV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); - } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } @@ -273,16 +268,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV2Resource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV2Resource' and its subtypes + if (!RmAudienceSegmentIdEntityV1Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentIdEntityV1Resource' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV2Resource.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentIdEntityV1Resource.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV2Resource value) throws IOException { + public void write(JsonWriter out, RmAudienceSegmentIdEntityV1Resource value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -305,11 +300,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceGetEntityV2Resource read(JsonReader in) throws IOException { + public RmAudienceSegmentIdEntityV1Resource read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV2Resource instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceSegmentIdEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -336,18 +331,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceGetEntityV2Resource given an JSON string + * Create an instance of RmAudienceSegmentIdEntityV1Resource given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV2Resource - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV2Resource + * @return An instance of RmAudienceSegmentIdEntityV1Resource + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentIdEntityV1Resource */ - public static RmLegacyAudienceGetEntityV2Resource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV2Resource.class); + public static RmAudienceSegmentIdEntityV1Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentIdEntityV1Resource.class); } /** - * Convert an instance of RmLegacyAudienceGetEntityV2Resource to an JSON string + * Convert an instance of RmAudienceSegmentIdEntityV1Resource to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1Resource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchEntityV1.java similarity index 54% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1Resource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchEntityV1.java index 7d2d2fa6..ab1c83ad 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1Resource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,17 +11,18 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -43,33 +44,35 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * A class that represents a domain entity exposed by an API + * Available filters to perform a search on audience segments. If present, the filters are AND'ed together when applied. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV1Resource { - public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private RmLegacyAudienceGetEntityV1 attributes; +public class RmAudienceSegmentSearchEntityV1 { + public static final String SERIALIZED_NAME_AUDIENCE_SEGMENT_IDS = "audienceSegmentIds"; + @SerializedName(SERIALIZED_NAME_AUDIENCE_SEGMENT_IDS) + private List audienceSegmentIds = null; - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; + public static final String SERIALIZED_NAME_RETAILER_IDS = "retailerIds"; + @SerializedName(SERIALIZED_NAME_RETAILER_IDS) + private List retailerIds = null; /** - * Gets or Sets audienceType + * Gets or Sets audienceSegmentTypes */ - @JsonAdapter(AudienceTypeEnum.Adapter.class) - public enum AudienceTypeEnum { - CUSTOMERLIST("customerList"), + @JsonAdapter(AudienceSegmentTypesEnum.Adapter.class) + public enum AudienceSegmentTypesEnum { + UNKNOWN("Unknown"), + + CONTACTLIST("ContactList"), - USERBEHAVIOR("userBehavior"); + EVENTS("Events"); private String value; - AudienceTypeEnum(String value) { + AudienceSegmentTypesEnum(String value) { this.value = value; } @@ -82,125 +85,123 @@ public String toString() { return String.valueOf(value); } - public static AudienceTypeEnum fromValue(String value) { - for (AudienceTypeEnum b : AudienceTypeEnum.values()) { + public static AudienceSegmentTypesEnum fromValue(String value) { + for (AudienceSegmentTypesEnum b : AudienceSegmentTypesEnum.values()) { if (b.value.equals(value)) { return b; } } - return null; + throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - public static class Adapter extends TypeAdapter { + public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final AudienceTypeEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final AudienceSegmentTypesEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public AudienceTypeEnum read(final JsonReader jsonReader) throws IOException { + public AudienceSegmentTypesEnum read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); - return AudienceTypeEnum.fromValue(value); + return AudienceSegmentTypesEnum.fromValue(value); } } } - public static final String SERIALIZED_NAME_AUDIENCE_TYPE = "audienceType"; - @SerializedName(SERIALIZED_NAME_AUDIENCE_TYPE) - private AudienceTypeEnum audienceType; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; + public static final String SERIALIZED_NAME_AUDIENCE_SEGMENT_TYPES = "audienceSegmentTypes"; + @SerializedName(SERIALIZED_NAME_AUDIENCE_SEGMENT_TYPES) + private List audienceSegmentTypes = null; - public RmLegacyAudienceGetEntityV1Resource() { + public RmAudienceSegmentSearchEntityV1() { } - public RmLegacyAudienceGetEntityV1Resource attributes(RmLegacyAudienceGetEntityV1 attributes) { + public RmAudienceSegmentSearchEntityV1 audienceSegmentIds(List audienceSegmentIds) { - this.attributes = attributes; + this.audienceSegmentIds = audienceSegmentIds; return this; } - /** - * Get attributes - * @return attributes - **/ - @javax.annotation.Nullable - - public RmLegacyAudienceGetEntityV1 getAttributes() { - return attributes; - } - - - public void setAttributes(RmLegacyAudienceGetEntityV1 attributes) { - this.attributes = attributes; - } - - - public RmLegacyAudienceGetEntityV1Resource id(String id) { - - this.id = id; + public RmAudienceSegmentSearchEntityV1 addAudienceSegmentIdsItem(String audienceSegmentIdsItem) { + if (this.audienceSegmentIds == null) { + this.audienceSegmentIds = null; + } + this.audienceSegmentIds.add(audienceSegmentIdsItem); return this; } /** - * Get id - * @return id + * List of segment ids + * @return audienceSegmentIds **/ @javax.annotation.Nullable - public String getId() { - return id; + public List getAudienceSegmentIds() { + return audienceSegmentIds; } - public void setId(String id) { - this.id = id; + public void setAudienceSegmentIds(List audienceSegmentIds) { + this.audienceSegmentIds = audienceSegmentIds; } - public RmLegacyAudienceGetEntityV1Resource audienceType(AudienceTypeEnum audienceType) { + public RmAudienceSegmentSearchEntityV1 retailerIds(List retailerIds) { - this.audienceType = audienceType; + this.retailerIds = retailerIds; + return this; + } + + public RmAudienceSegmentSearchEntityV1 addRetailerIdsItem(String retailerIdsItem) { + if (this.retailerIds == null) { + this.retailerIds = null; + } + this.retailerIds.add(retailerIdsItem); return this; } /** - * Get audienceType - * @return audienceType + * List of retailer ids + * @return retailerIds **/ @javax.annotation.Nullable - public AudienceTypeEnum getAudienceType() { - return audienceType; + public List getRetailerIds() { + return retailerIds; } - public void setAudienceType(AudienceTypeEnum audienceType) { - this.audienceType = audienceType; + public void setRetailerIds(List retailerIds) { + this.retailerIds = retailerIds; } - public RmLegacyAudienceGetEntityV1Resource type(String type) { + public RmAudienceSegmentSearchEntityV1 audienceSegmentTypes(List audienceSegmentTypes) { - this.type = type; + this.audienceSegmentTypes = audienceSegmentTypes; + return this; + } + + public RmAudienceSegmentSearchEntityV1 addAudienceSegmentTypesItem(AudienceSegmentTypesEnum audienceSegmentTypesItem) { + if (this.audienceSegmentTypes == null) { + this.audienceSegmentTypes = null; + } + this.audienceSegmentTypes.add(audienceSegmentTypesItem); return this; } /** - * Get type - * @return type + * List of segment types + * @return audienceSegmentTypes **/ @javax.annotation.Nullable - public String getType() { - return type; + public List getAudienceSegmentTypes() { + return audienceSegmentTypes; } - public void setType(String type) { - this.type = type; + public void setAudienceSegmentTypes(List audienceSegmentTypes) { + this.audienceSegmentTypes = audienceSegmentTypes; } /** @@ -216,9 +217,9 @@ public void setType(String type) { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceGetEntityV1Resource instance itself + * @return the RmAudienceSegmentSearchEntityV1 instance itself */ - public RmLegacyAudienceGetEntityV1Resource putAdditionalProperty(String key, Object value) { + public RmAudienceSegmentSearchEntityV1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -257,12 +258,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceGetEntityV1Resource rmLegacyAudienceGetEntityV1Resource = (RmLegacyAudienceGetEntityV1Resource) o; - return Objects.equals(this.attributes, rmLegacyAudienceGetEntityV1Resource.attributes) && - Objects.equals(this.id, rmLegacyAudienceGetEntityV1Resource.id) && - Objects.equals(this.audienceType, rmLegacyAudienceGetEntityV1Resource.audienceType) && - Objects.equals(this.type, rmLegacyAudienceGetEntityV1Resource.type)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV1Resource.additionalProperties); + RmAudienceSegmentSearchEntityV1 rmAudienceSegmentSearchEntityV1 = (RmAudienceSegmentSearchEntityV1) o; + return Objects.equals(this.audienceSegmentIds, rmAudienceSegmentSearchEntityV1.audienceSegmentIds) && + Objects.equals(this.retailerIds, rmAudienceSegmentSearchEntityV1.retailerIds) && + Objects.equals(this.audienceSegmentTypes, rmAudienceSegmentSearchEntityV1.audienceSegmentTypes)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentSearchEntityV1.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -271,7 +271,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(attributes, id, audienceType, type, additionalProperties); + return Objects.hash(audienceSegmentIds, retailerIds, audienceSegmentTypes, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -284,11 +284,10 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV1Resource {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" audienceType: ").append(toIndentedString(audienceType)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("class RmAudienceSegmentSearchEntityV1 {\n"); + sb.append(" audienceSegmentIds: ").append(toIndentedString(audienceSegmentIds)).append("\n"); + sb.append(" retailerIds: ").append(toIndentedString(retailerIds)).append("\n"); + sb.append(" audienceSegmentTypes: ").append(toIndentedString(audienceSegmentTypes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -312,10 +311,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("attributes"); - openapiFields.add("id"); - openapiFields.add("audienceType"); - openapiFields.add("type"); + openapiFields.add("audienceSegmentIds"); + openapiFields.add("retailerIds"); + openapiFields.add("audienceSegmentTypes"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -325,26 +323,25 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV1Resource + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentSearchEntityV1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV1Resource is not found in the empty JSON string", RmLegacyAudienceGetEntityV1Resource.openapiRequiredFields.toString())); + if (!RmAudienceSegmentSearchEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentSearchEntityV1 is not found in the empty JSON string", RmAudienceSegmentSearchEntityV1.openapiRequiredFields.toString())); } } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - RmLegacyAudienceGetEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); - } - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + // ensure the optional json data is an array if present + if (jsonObj.get("audienceSegmentIds") != null && !jsonObj.get("audienceSegmentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `audienceSegmentIds` to be an array in the JSON string but got `%s`", jsonObj.get("audienceSegmentIds").toString())); } - if ((jsonObj.get("audienceType") != null && !jsonObj.get("audienceType").isJsonNull()) && !jsonObj.get("audienceType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `audienceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("audienceType").toString())); + // ensure the optional json data is an array if present + if (jsonObj.get("retailerIds") != null && !jsonObj.get("retailerIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `retailerIds` to be an array in the JSON string but got `%s`", jsonObj.get("retailerIds").toString())); } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + // ensure the optional json data is an array if present + if (jsonObj.get("audienceSegmentTypes") != null && !jsonObj.get("audienceSegmentTypes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `audienceSegmentTypes` to be an array in the JSON string but got `%s`", jsonObj.get("audienceSegmentTypes").toString())); } } @@ -352,16 +349,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV1Resource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV1Resource' and its subtypes + if (!RmAudienceSegmentSearchEntityV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentSearchEntityV1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV1Resource.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentSearchEntityV1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV1Resource value) throws IOException { + public void write(JsonWriter out, RmAudienceSegmentSearchEntityV1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -384,11 +381,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceGetEntityV1Resource read(JsonReader in) throws IOException { + public RmAudienceSegmentSearchEntityV1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceSegmentSearchEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -415,18 +412,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceGetEntityV1Resource given an JSON string + * Create an instance of RmAudienceSegmentSearchEntityV1 given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV1Resource - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV1Resource + * @return An instance of RmAudienceSegmentSearchEntityV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentSearchEntityV1 */ - public static RmLegacyAudienceGetEntityV1Resource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV1Resource.class); + public static RmAudienceSegmentSearchEntityV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentSearchEntityV1.class); } /** - * Convert an instance of RmLegacyAudienceGetEntityV1Resource to an JSON string + * Convert an instance of RmAudienceSegmentSearchEntityV1 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchEntityV1Resource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchEntityV1Resource.java new file mode 100644 index 00000000..d56dcde0 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchEntityV1Resource.java @@ -0,0 +1,326 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentSearchEntityV1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single value + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSegmentSearchEntityV1Resource { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private RmAudienceSegmentSearchEntityV1 attributes; + + public RmAudienceSegmentSearchEntityV1Resource() { + } + + public RmAudienceSegmentSearchEntityV1Resource type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public RmAudienceSegmentSearchEntityV1Resource attributes(RmAudienceSegmentSearchEntityV1 attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public RmAudienceSegmentSearchEntityV1 getAttributes() { + return attributes; + } + + + public void setAttributes(RmAudienceSegmentSearchEntityV1 attributes) { + this.attributes = attributes; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSegmentSearchEntityV1Resource instance itself + */ + public RmAudienceSegmentSearchEntityV1Resource putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSegmentSearchEntityV1Resource rmAudienceSegmentSearchEntityV1Resource = (RmAudienceSegmentSearchEntityV1Resource) o; + return Objects.equals(this.type, rmAudienceSegmentSearchEntityV1Resource.type) && + Objects.equals(this.attributes, rmAudienceSegmentSearchEntityV1Resource.attributes)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentSearchEntityV1Resource.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSegmentSearchEntityV1Resource {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentSearchEntityV1Resource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSegmentSearchEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentSearchEntityV1Resource is not found in the empty JSON string", RmAudienceSegmentSearchEntityV1Resource.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + RmAudienceSegmentSearchEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSegmentSearchEntityV1Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentSearchEntityV1Resource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentSearchEntityV1Resource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSegmentSearchEntityV1Resource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSegmentSearchEntityV1Resource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSegmentSearchEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSegmentSearchEntityV1Resource given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSegmentSearchEntityV1Resource + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentSearchEntityV1Resource + */ + public static RmAudienceSegmentSearchEntityV1Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentSearchEntityV1Resource.class); + } + + /** + * Convert an instance of RmAudienceSegmentSearchEntityV1Resource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchInputV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchInputV1.java new file mode 100644 index 00000000..990cc5d5 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchInputV1.java @@ -0,0 +1,282 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentSearchEntityV1Resource; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API request for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSegmentSearchInputV1 { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private RmAudienceSegmentSearchEntityV1Resource data; + + public RmAudienceSegmentSearchInputV1() { + } + + public RmAudienceSegmentSearchInputV1 data(RmAudienceSegmentSearchEntityV1Resource data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public RmAudienceSegmentSearchEntityV1Resource getData() { + return data; + } + + + public void setData(RmAudienceSegmentSearchEntityV1Resource data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSegmentSearchInputV1 instance itself + */ + public RmAudienceSegmentSearchInputV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1 = (RmAudienceSegmentSearchInputV1) o; + return Objects.equals(this.data, rmAudienceSegmentSearchInputV1.data)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentSearchInputV1.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSegmentSearchInputV1 {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentSearchInputV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSegmentSearchInputV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentSearchInputV1 is not found in the empty JSON string", RmAudienceSegmentSearchInputV1.openapiRequiredFields.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + RmAudienceSegmentSearchEntityV1Resource.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSegmentSearchInputV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentSearchInputV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentSearchInputV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSegmentSearchInputV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSegmentSearchInputV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSegmentSearchInputV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSegmentSearchInputV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSegmentSearchInputV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentSearchInputV1 + */ + public static RmAudienceSegmentSearchInputV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentSearchInputV1.class); + } + + /** + * Convert an instance of RmAudienceSegmentSearchInputV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchMetadataV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchMetadataV1.java new file mode 100644 index 00000000..f8ac6072 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentSearchMetadataV1.java @@ -0,0 +1,347 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Metadata for the audience segment search response. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSegmentSearchMetadataV1 { + public static final String SERIALIZED_NAME_TOTAL_ITEMS = "totalItems"; + @SerializedName(SERIALIZED_NAME_TOTAL_ITEMS) + private Integer totalItems; + + public static final String SERIALIZED_NAME_LIMIT = "limit"; + @SerializedName(SERIALIZED_NAME_LIMIT) + private Integer limit; + + public static final String SERIALIZED_NAME_OFFSET = "offset"; + @SerializedName(SERIALIZED_NAME_OFFSET) + private Integer offset; + + public RmAudienceSegmentSearchMetadataV1() { + } + + public RmAudienceSegmentSearchMetadataV1 totalItems(Integer totalItems) { + + this.totalItems = totalItems; + return this; + } + + /** + * Total number of items + * @return totalItems + **/ + @javax.annotation.Nullable + + public Integer getTotalItems() { + return totalItems; + } + + + public void setTotalItems(Integer totalItems) { + this.totalItems = totalItems; + } + + + public RmAudienceSegmentSearchMetadataV1 limit(Integer limit) { + + this.limit = limit; + return this; + } + + /** + * Max item of the current page + * @return limit + **/ + @javax.annotation.Nullable + + public Integer getLimit() { + return limit; + } + + + public void setLimit(Integer limit) { + this.limit = limit; + } + + + public RmAudienceSegmentSearchMetadataV1 offset(Integer offset) { + + this.offset = offset; + return this; + } + + /** + * Number of item to skip + * @return offset + **/ + @javax.annotation.Nullable + + public Integer getOffset() { + return offset; + } + + + public void setOffset(Integer offset) { + this.offset = offset; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSegmentSearchMetadataV1 instance itself + */ + public RmAudienceSegmentSearchMetadataV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSegmentSearchMetadataV1 rmAudienceSegmentSearchMetadataV1 = (RmAudienceSegmentSearchMetadataV1) o; + return Objects.equals(this.totalItems, rmAudienceSegmentSearchMetadataV1.totalItems) && + Objects.equals(this.limit, rmAudienceSegmentSearchMetadataV1.limit) && + Objects.equals(this.offset, rmAudienceSegmentSearchMetadataV1.offset)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentSearchMetadataV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(totalItems, limit, offset, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSegmentSearchMetadataV1 {\n"); + sb.append(" totalItems: ").append(toIndentedString(totalItems)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("totalItems"); + openapiFields.add("limit"); + openapiFields.add("offset"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentSearchMetadataV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSegmentSearchMetadataV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentSearchMetadataV1 is not found in the empty JSON string", RmAudienceSegmentSearchMetadataV1.openapiRequiredFields.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSegmentSearchMetadataV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentSearchMetadataV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentSearchMetadataV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSegmentSearchMetadataV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSegmentSearchMetadataV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSegmentSearchMetadataV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSegmentSearchMetadataV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSegmentSearchMetadataV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentSearchMetadataV1 + */ + public static RmAudienceSegmentSearchMetadataV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentSearchMetadataV1.class); + } + + /** + * Convert an instance of RmAudienceSegmentSearchMetadataV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentUpdateEntityV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentUpdateEntityV1.java new file mode 100644 index 00000000..e885c12a --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentUpdateEntityV1.java @@ -0,0 +1,355 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.NillableString; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Set of rules that defines specific people to target. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSegmentUpdateEntityV1 { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private NillableString description; + + public static final String SERIALIZED_NAME_CONTACT_LIST = "contactList"; + @SerializedName(SERIALIZED_NAME_CONTACT_LIST) + private Object contactList; + + public RmAudienceSegmentUpdateEntityV1() { + } + + public RmAudienceSegmentUpdateEntityV1 name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the segment + * @return name + **/ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public RmAudienceSegmentUpdateEntityV1 description(NillableString description) { + + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + + public NillableString getDescription() { + return description; + } + + + public void setDescription(NillableString description) { + this.description = description; + } + + + public RmAudienceSegmentUpdateEntityV1 contactList(Object contactList) { + + this.contactList = contactList; + return this; + } + + /** + * Settings to update the contact list of the segment + * @return contactList + **/ + @javax.annotation.Nullable + + public Object getContactList() { + return contactList; + } + + + public void setContactList(Object contactList) { + this.contactList = contactList; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSegmentUpdateEntityV1 instance itself + */ + public RmAudienceSegmentUpdateEntityV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSegmentUpdateEntityV1 rmAudienceSegmentUpdateEntityV1 = (RmAudienceSegmentUpdateEntityV1) o; + return Objects.equals(this.name, rmAudienceSegmentUpdateEntityV1.name) && + Objects.equals(this.description, rmAudienceSegmentUpdateEntityV1.description) && + Objects.equals(this.contactList, rmAudienceSegmentUpdateEntityV1.contactList)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentUpdateEntityV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, contactList, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSegmentUpdateEntityV1 {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" contactList: ").append(toIndentedString(contactList)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("description"); + openapiFields.add("contactList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentUpdateEntityV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSegmentUpdateEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentUpdateEntityV1 is not found in the empty JSON string", RmAudienceSegmentUpdateEntityV1.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `description` + if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) { + NillableString.validateJsonObject(jsonObj.getAsJsonObject("description")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSegmentUpdateEntityV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentUpdateEntityV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentUpdateEntityV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSegmentUpdateEntityV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSegmentUpdateEntityV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSegmentUpdateEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSegmentUpdateEntityV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSegmentUpdateEntityV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentUpdateEntityV1 + */ + public static RmAudienceSegmentUpdateEntityV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentUpdateEntityV1.class); + } + + /** + * Convert an instance of RmAudienceSegmentUpdateEntityV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1Resource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentUpdateEntityV1Resource.java similarity index 75% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1Resource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentUpdateEntityV1Resource.java index 006ed0da..2dd9ddb2 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1Resource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmAudienceSegmentUpdateEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV1; +import com.criteo.api.retailmedia.v2024_10.model.RmAudienceSegmentUpdateEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,16 +43,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceCreateEntityV1Resource { +public class RmAudienceSegmentUpdateEntityV1Resource { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private RmLegacyAudienceCreateEntityV1 attributes; + private RmAudienceSegmentUpdateEntityV1 attributes; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -62,10 +62,10 @@ public class RmLegacyAudienceCreateEntityV1Resource { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public RmLegacyAudienceCreateEntityV1Resource() { + public RmAudienceSegmentUpdateEntityV1Resource() { } - public RmLegacyAudienceCreateEntityV1Resource attributes(RmLegacyAudienceCreateEntityV1 attributes) { + public RmAudienceSegmentUpdateEntityV1Resource attributes(RmAudienceSegmentUpdateEntityV1 attributes) { this.attributes = attributes; return this; @@ -77,17 +77,17 @@ public RmLegacyAudienceCreateEntityV1Resource attributes(RmLegacyAudienceCreateE **/ @javax.annotation.Nullable - public RmLegacyAudienceCreateEntityV1 getAttributes() { + public RmAudienceSegmentUpdateEntityV1 getAttributes() { return attributes; } - public void setAttributes(RmLegacyAudienceCreateEntityV1 attributes) { + public void setAttributes(RmAudienceSegmentUpdateEntityV1 attributes) { this.attributes = attributes; } - public RmLegacyAudienceCreateEntityV1Resource id(String id) { + public RmAudienceSegmentUpdateEntityV1Resource id(String id) { this.id = id; return this; @@ -109,7 +109,7 @@ public void setId(String id) { } - public RmLegacyAudienceCreateEntityV1Resource type(String type) { + public RmAudienceSegmentUpdateEntityV1Resource type(String type) { this.type = type; return this; @@ -143,9 +143,9 @@ public void setType(String type) { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceCreateEntityV1Resource instance itself + * @return the RmAudienceSegmentUpdateEntityV1Resource instance itself */ - public RmLegacyAudienceCreateEntityV1Resource putAdditionalProperty(String key, Object value) { + public RmAudienceSegmentUpdateEntityV1Resource putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -184,11 +184,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceCreateEntityV1Resource rmLegacyAudienceCreateEntityV1Resource = (RmLegacyAudienceCreateEntityV1Resource) o; - return Objects.equals(this.attributes, rmLegacyAudienceCreateEntityV1Resource.attributes) && - Objects.equals(this.id, rmLegacyAudienceCreateEntityV1Resource.id) && - Objects.equals(this.type, rmLegacyAudienceCreateEntityV1Resource.type)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceCreateEntityV1Resource.additionalProperties); + RmAudienceSegmentUpdateEntityV1Resource rmAudienceSegmentUpdateEntityV1Resource = (RmAudienceSegmentUpdateEntityV1Resource) o; + return Objects.equals(this.attributes, rmAudienceSegmentUpdateEntityV1Resource.attributes) && + Objects.equals(this.id, rmAudienceSegmentUpdateEntityV1Resource.id) && + Objects.equals(this.type, rmAudienceSegmentUpdateEntityV1Resource.type)&& + Objects.equals(this.additionalProperties, rmAudienceSegmentUpdateEntityV1Resource.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -210,7 +210,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceCreateEntityV1Resource {\n"); + sb.append("class RmAudienceSegmentUpdateEntityV1Resource {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); @@ -249,17 +249,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceCreateEntityV1Resource + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSegmentUpdateEntityV1Resource */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceCreateEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceCreateEntityV1Resource is not found in the empty JSON string", RmLegacyAudienceCreateEntityV1Resource.openapiRequiredFields.toString())); + if (!RmAudienceSegmentUpdateEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentUpdateEntityV1Resource is not found in the empty JSON string", RmAudienceSegmentUpdateEntityV1Resource.openapiRequiredFields.toString())); } } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - RmLegacyAudienceCreateEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + RmAudienceSegmentUpdateEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -273,16 +273,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceCreateEntityV1Resource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceCreateEntityV1Resource' and its subtypes + if (!RmAudienceSegmentUpdateEntityV1Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSegmentUpdateEntityV1Resource' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceCreateEntityV1Resource.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSegmentUpdateEntityV1Resource.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceCreateEntityV1Resource value) throws IOException { + public void write(JsonWriter out, RmAudienceSegmentUpdateEntityV1Resource value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -305,11 +305,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceCreateEntityV1Resource read(JsonReader in) throws IOException { + public RmAudienceSegmentUpdateEntityV1Resource read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceCreateEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceSegmentUpdateEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -336,18 +336,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceCreateEntityV1Resource given an JSON string + * Create an instance of RmAudienceSegmentUpdateEntityV1Resource given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceCreateEntityV1Resource - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceCreateEntityV1Resource + * @return An instance of RmAudienceSegmentUpdateEntityV1Resource + * @throws IOException if the JSON string is invalid with respect to RmAudienceSegmentUpdateEntityV1Resource */ - public static RmLegacyAudienceCreateEntityV1Resource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceCreateEntityV1Resource.class); + public static RmAudienceSegmentUpdateEntityV1Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSegmentUpdateEntityV1Resource.class); } /** - * Convert an instance of RmLegacyAudienceCreateEntityV1Resource to an JSON string + * Convert an instance of RmAudienceSegmentUpdateEntityV1Resource to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListCreateV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListCreateV1.java new file mode 100644 index 00000000..424c9eeb --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListCreateV1.java @@ -0,0 +1,343 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Settings to target users with your contact lists. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmContactListCreateV1 { + /** + * Indicates contact list type + */ + @JsonAdapter(IdentifierTypeEnum.Adapter.class) + public enum IdentifierTypeEnum { + EMAIL("Email"), + + USERIDENTIFIER("UserIdentifier"), + + IDENTITYLINK("IdentityLink"), + + CUSTOMERID("CustomerId"); + + private String value; + + IdentifierTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static IdentifierTypeEnum fromValue(String value) { + for (IdentifierTypeEnum b : IdentifierTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final IdentifierTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public IdentifierTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return IdentifierTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_IDENTIFIER_TYPE = "identifierType"; + @SerializedName(SERIALIZED_NAME_IDENTIFIER_TYPE) + private IdentifierTypeEnum identifierType; + + public RmContactListCreateV1() { + } + + public RmContactListCreateV1 identifierType(IdentifierTypeEnum identifierType) { + + this.identifierType = identifierType; + return this; + } + + /** + * Indicates contact list type + * @return identifierType + **/ + @javax.annotation.Nullable + + public IdentifierTypeEnum getIdentifierType() { + return identifierType; + } + + + public void setIdentifierType(IdentifierTypeEnum identifierType) { + this.identifierType = identifierType; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmContactListCreateV1 instance itself + */ + public RmContactListCreateV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmContactListCreateV1 rmContactListCreateV1 = (RmContactListCreateV1) o; + return Objects.equals(this.identifierType, rmContactListCreateV1.identifierType)&& + Objects.equals(this.additionalProperties, rmContactListCreateV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(identifierType, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmContactListCreateV1 {\n"); + sb.append(" identifierType: ").append(toIndentedString(identifierType)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("identifierType"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmContactListCreateV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmContactListCreateV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmContactListCreateV1 is not found in the empty JSON string", RmContactListCreateV1.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("identifierType") != null && !jsonObj.get("identifierType").isJsonNull()) && !jsonObj.get("identifierType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `identifierType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierType").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmContactListCreateV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmContactListCreateV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmContactListCreateV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmContactListCreateV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmContactListCreateV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmContactListCreateV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmContactListCreateV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmContactListCreateV1 + * @throws IOException if the JSON string is invalid with respect to RmContactListCreateV1 + */ + public static RmContactListCreateV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmContactListCreateV1.class); + } + + /** + * Convert an instance of RmContactListCreateV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1.java new file mode 100644 index 00000000..172a0e85 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1.java @@ -0,0 +1,347 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * Contact list statistics. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmContactListStatisticsEntityV1 { + public static final String SERIALIZED_NAME_NUMBER_OF_IDENTIFIERS = "numberOfIdentifiers"; + @SerializedName(SERIALIZED_NAME_NUMBER_OF_IDENTIFIERS) + private Integer numberOfIdentifiers; + + public static final String SERIALIZED_NAME_NUMBER_OF_MATCHES = "numberOfMatches"; + @SerializedName(SERIALIZED_NAME_NUMBER_OF_MATCHES) + private Integer numberOfMatches; + + public static final String SERIALIZED_NAME_MATCH_RATE = "matchRate"; + @SerializedName(SERIALIZED_NAME_MATCH_RATE) + private Double matchRate; + + public RmContactListStatisticsEntityV1() { + } + + public RmContactListStatisticsEntityV1 numberOfIdentifiers(Integer numberOfIdentifiers) { + + this.numberOfIdentifiers = numberOfIdentifiers; + return this; + } + + /** + * Number of identifiers in the contact list. + * @return numberOfIdentifiers + **/ + @javax.annotation.Nullable + + public Integer getNumberOfIdentifiers() { + return numberOfIdentifiers; + } + + + public void setNumberOfIdentifiers(Integer numberOfIdentifiers) { + this.numberOfIdentifiers = numberOfIdentifiers; + } + + + public RmContactListStatisticsEntityV1 numberOfMatches(Integer numberOfMatches) { + + this.numberOfMatches = numberOfMatches; + return this; + } + + /** + * Number of matched identifiers in the contact list. + * @return numberOfMatches + **/ + @javax.annotation.Nullable + + public Integer getNumberOfMatches() { + return numberOfMatches; + } + + + public void setNumberOfMatches(Integer numberOfMatches) { + this.numberOfMatches = numberOfMatches; + } + + + public RmContactListStatisticsEntityV1 matchRate(Double matchRate) { + + this.matchRate = matchRate; + return this; + } + + /** + * Percentage of matched identifiers in the contact list. Can differ from matches/identifiers depending on the contact list type. + * @return matchRate + **/ + @javax.annotation.Nullable + + public Double getMatchRate() { + return matchRate; + } + + + public void setMatchRate(Double matchRate) { + this.matchRate = matchRate; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmContactListStatisticsEntityV1 instance itself + */ + public RmContactListStatisticsEntityV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmContactListStatisticsEntityV1 rmContactListStatisticsEntityV1 = (RmContactListStatisticsEntityV1) o; + return Objects.equals(this.numberOfIdentifiers, rmContactListStatisticsEntityV1.numberOfIdentifiers) && + Objects.equals(this.numberOfMatches, rmContactListStatisticsEntityV1.numberOfMatches) && + Objects.equals(this.matchRate, rmContactListStatisticsEntityV1.matchRate)&& + Objects.equals(this.additionalProperties, rmContactListStatisticsEntityV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(numberOfIdentifiers, numberOfMatches, matchRate, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmContactListStatisticsEntityV1 {\n"); + sb.append(" numberOfIdentifiers: ").append(toIndentedString(numberOfIdentifiers)).append("\n"); + sb.append(" numberOfMatches: ").append(toIndentedString(numberOfMatches)).append("\n"); + sb.append(" matchRate: ").append(toIndentedString(matchRate)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("numberOfIdentifiers"); + openapiFields.add("numberOfMatches"); + openapiFields.add("matchRate"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmContactListStatisticsEntityV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmContactListStatisticsEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmContactListStatisticsEntityV1 is not found in the empty JSON string", RmContactListStatisticsEntityV1.openapiRequiredFields.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmContactListStatisticsEntityV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmContactListStatisticsEntityV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmContactListStatisticsEntityV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmContactListStatisticsEntityV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmContactListStatisticsEntityV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmContactListStatisticsEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmContactListStatisticsEntityV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmContactListStatisticsEntityV1 + * @throws IOException if the JSON string is invalid with respect to RmContactListStatisticsEntityV1 + */ + public static RmContactListStatisticsEntityV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmContactListStatisticsEntityV1.class); + } + + /** + * Convert an instance of RmContactListStatisticsEntityV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2Resource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1Resource.java similarity index 75% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2Resource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1Resource.java index 803e1866..50bec7e7 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV2Resource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV2; +import com.criteo.api.retailmedia.v2024_10.model.RmContactListStatisticsEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,16 +43,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceCreateEntityV2Resource { +public class RmContactListStatisticsEntityV1Resource { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private RmLegacyAudienceCreateEntityV2 attributes; + private RmContactListStatisticsEntityV1 attributes; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -62,10 +62,10 @@ public class RmLegacyAudienceCreateEntityV2Resource { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public RmLegacyAudienceCreateEntityV2Resource() { + public RmContactListStatisticsEntityV1Resource() { } - public RmLegacyAudienceCreateEntityV2Resource attributes(RmLegacyAudienceCreateEntityV2 attributes) { + public RmContactListStatisticsEntityV1Resource attributes(RmContactListStatisticsEntityV1 attributes) { this.attributes = attributes; return this; @@ -77,17 +77,17 @@ public RmLegacyAudienceCreateEntityV2Resource attributes(RmLegacyAudienceCreateE **/ @javax.annotation.Nullable - public RmLegacyAudienceCreateEntityV2 getAttributes() { + public RmContactListStatisticsEntityV1 getAttributes() { return attributes; } - public void setAttributes(RmLegacyAudienceCreateEntityV2 attributes) { + public void setAttributes(RmContactListStatisticsEntityV1 attributes) { this.attributes = attributes; } - public RmLegacyAudienceCreateEntityV2Resource id(String id) { + public RmContactListStatisticsEntityV1Resource id(String id) { this.id = id; return this; @@ -109,7 +109,7 @@ public void setId(String id) { } - public RmLegacyAudienceCreateEntityV2Resource type(String type) { + public RmContactListStatisticsEntityV1Resource type(String type) { this.type = type; return this; @@ -143,9 +143,9 @@ public void setType(String type) { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceCreateEntityV2Resource instance itself + * @return the RmContactListStatisticsEntityV1Resource instance itself */ - public RmLegacyAudienceCreateEntityV2Resource putAdditionalProperty(String key, Object value) { + public RmContactListStatisticsEntityV1Resource putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -184,11 +184,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceCreateEntityV2Resource rmLegacyAudienceCreateEntityV2Resource = (RmLegacyAudienceCreateEntityV2Resource) o; - return Objects.equals(this.attributes, rmLegacyAudienceCreateEntityV2Resource.attributes) && - Objects.equals(this.id, rmLegacyAudienceCreateEntityV2Resource.id) && - Objects.equals(this.type, rmLegacyAudienceCreateEntityV2Resource.type)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceCreateEntityV2Resource.additionalProperties); + RmContactListStatisticsEntityV1Resource rmContactListStatisticsEntityV1Resource = (RmContactListStatisticsEntityV1Resource) o; + return Objects.equals(this.attributes, rmContactListStatisticsEntityV1Resource.attributes) && + Objects.equals(this.id, rmContactListStatisticsEntityV1Resource.id) && + Objects.equals(this.type, rmContactListStatisticsEntityV1Resource.type)&& + Objects.equals(this.additionalProperties, rmContactListStatisticsEntityV1Resource.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -210,7 +210,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceCreateEntityV2Resource {\n"); + sb.append("class RmContactListStatisticsEntityV1Resource {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); @@ -249,17 +249,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceCreateEntityV2Resource + * @throws IOException if the JSON Object is invalid with respect to RmContactListStatisticsEntityV1Resource */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceCreateEntityV2Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceCreateEntityV2Resource is not found in the empty JSON string", RmLegacyAudienceCreateEntityV2Resource.openapiRequiredFields.toString())); + if (!RmContactListStatisticsEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmContactListStatisticsEntityV1Resource is not found in the empty JSON string", RmContactListStatisticsEntityV1Resource.openapiRequiredFields.toString())); } } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - RmLegacyAudienceCreateEntityV2.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + RmContactListStatisticsEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); @@ -273,16 +273,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceCreateEntityV2Resource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceCreateEntityV2Resource' and its subtypes + if (!RmContactListStatisticsEntityV1Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmContactListStatisticsEntityV1Resource' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceCreateEntityV2Resource.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmContactListStatisticsEntityV1Resource.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceCreateEntityV2Resource value) throws IOException { + public void write(JsonWriter out, RmContactListStatisticsEntityV1Resource value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -305,11 +305,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceCreateEntityV2Resource read(JsonReader in) throws IOException { + public RmContactListStatisticsEntityV1Resource read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceCreateEntityV2Resource instance = thisAdapter.fromJsonTree(jsonObj); + RmContactListStatisticsEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -336,18 +336,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceCreateEntityV2Resource given an JSON string + * Create an instance of RmContactListStatisticsEntityV1Resource given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceCreateEntityV2Resource - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceCreateEntityV2Resource + * @return An instance of RmContactListStatisticsEntityV1Resource + * @throws IOException if the JSON string is invalid with respect to RmContactListStatisticsEntityV1Resource */ - public static RmLegacyAudienceCreateEntityV2Resource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceCreateEntityV2Resource.class); + public static RmContactListStatisticsEntityV1Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmContactListStatisticsEntityV1Resource.class); } /** - * Convert an instance of RmLegacyAudienceCreateEntityV2Resource to an JSON string + * Convert an instance of RmContactListStatisticsEntityV1Resource to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1Response.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1Response.java similarity index 77% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1Response.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1Response.java index 56e54ba9..0806afb2 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1Response.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListStatisticsEntityV1Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonProblem; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceCreateEntityV1Resource; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.RmContactListStatisticsEntityV1Resource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,16 +46,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single entity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceCreateEntityV1Response { +public class RmContactListStatisticsEntityV1Response { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private RmLegacyAudienceCreateEntityV1Resource data; + private RmContactListStatisticsEntityV1Resource data; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) @@ -65,11 +65,11 @@ public class RmLegacyAudienceCreateEntityV1Response { @SerializedName(SERIALIZED_NAME_ERRORS) private List errors = null; - public RmLegacyAudienceCreateEntityV1Response() { + public RmContactListStatisticsEntityV1Response() { } - public RmLegacyAudienceCreateEntityV1Response( + public RmContactListStatisticsEntityV1Response( List warnings, List errors ) { @@ -78,7 +78,7 @@ public RmLegacyAudienceCreateEntityV1Response( this.errors = errors; } - public RmLegacyAudienceCreateEntityV1Response data(RmLegacyAudienceCreateEntityV1Resource data) { + public RmContactListStatisticsEntityV1Response data(RmContactListStatisticsEntityV1Resource data) { this.data = data; return this; @@ -90,12 +90,12 @@ public RmLegacyAudienceCreateEntityV1Response data(RmLegacyAudienceCreateEntityV **/ @javax.annotation.Nullable - public RmLegacyAudienceCreateEntityV1Resource getData() { + public RmContactListStatisticsEntityV1Resource getData() { return data; } - public void setData(RmLegacyAudienceCreateEntityV1Resource data) { + public void setData(RmContactListStatisticsEntityV1Resource data) { this.data = data; } @@ -138,9 +138,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceCreateEntityV1Response instance itself + * @return the RmContactListStatisticsEntityV1Response instance itself */ - public RmLegacyAudienceCreateEntityV1Response putAdditionalProperty(String key, Object value) { + public RmContactListStatisticsEntityV1Response putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -179,11 +179,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceCreateEntityV1Response rmLegacyAudienceCreateEntityV1Response = (RmLegacyAudienceCreateEntityV1Response) o; - return Objects.equals(this.data, rmLegacyAudienceCreateEntityV1Response.data) && - Objects.equals(this.warnings, rmLegacyAudienceCreateEntityV1Response.warnings) && - Objects.equals(this.errors, rmLegacyAudienceCreateEntityV1Response.errors)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceCreateEntityV1Response.additionalProperties); + RmContactListStatisticsEntityV1Response rmContactListStatisticsEntityV1Response = (RmContactListStatisticsEntityV1Response) o; + return Objects.equals(this.data, rmContactListStatisticsEntityV1Response.data) && + Objects.equals(this.warnings, rmContactListStatisticsEntityV1Response.warnings) && + Objects.equals(this.errors, rmContactListStatisticsEntityV1Response.errors)&& + Objects.equals(this.additionalProperties, rmContactListStatisticsEntityV1Response.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -205,7 +205,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceCreateEntityV1Response {\n"); + sb.append("class RmContactListStatisticsEntityV1Response {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); @@ -244,17 +244,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceCreateEntityV1Response + * @throws IOException if the JSON Object is invalid with respect to RmContactListStatisticsEntityV1Response */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceCreateEntityV1Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceCreateEntityV1Response is not found in the empty JSON string", RmLegacyAudienceCreateEntityV1Response.openapiRequiredFields.toString())); + if (!RmContactListStatisticsEntityV1Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmContactListStatisticsEntityV1Response is not found in the empty JSON string", RmContactListStatisticsEntityV1Response.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - RmLegacyAudienceCreateEntityV1Resource.validateJsonObject(jsonObj.getAsJsonObject("data")); + RmContactListStatisticsEntityV1Resource.validateJsonObject(jsonObj.getAsJsonObject("data")); } if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); @@ -290,16 +290,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceCreateEntityV1Response.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceCreateEntityV1Response' and its subtypes + if (!RmContactListStatisticsEntityV1Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmContactListStatisticsEntityV1Response' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceCreateEntityV1Response.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmContactListStatisticsEntityV1Response.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceCreateEntityV1Response value) throws IOException { + public void write(JsonWriter out, RmContactListStatisticsEntityV1Response value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -322,11 +322,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceCreateEntityV1Response read(JsonReader in) throws IOException { + public RmContactListStatisticsEntityV1Response read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceCreateEntityV1Response instance = thisAdapter.fromJsonTree(jsonObj); + RmContactListStatisticsEntityV1Response instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -353,18 +353,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceCreateEntityV1Response given an JSON string + * Create an instance of RmContactListStatisticsEntityV1Response given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceCreateEntityV1Response - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceCreateEntityV1Response + * @return An instance of RmContactListStatisticsEntityV1Response + * @throws IOException if the JSON string is invalid with respect to RmContactListStatisticsEntityV1Response */ - public static RmLegacyAudienceCreateEntityV1Response fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceCreateEntityV1Response.class); + public static RmContactListStatisticsEntityV1Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmContactListStatisticsEntityV1Response.class); } /** - * Convert an instance of RmLegacyAudienceCreateEntityV1Response to an JSON string + * Convert an instance of RmContactListStatisticsEntityV1Response to an JSON string * * @return JSON string */ diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimit.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListV1.java similarity index 58% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimit.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListV1.java index 6735362e..c2097c3f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimit.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmContactListV1.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,10 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.NillableDecimal; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,25 +42,35 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * campaign spend limit model + * Settings to target users with your contact lists. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CampaignSpendLimit { +public class RmContactListV1 { + public static final String SERIALIZED_NAME_IS_READ_ONLY = "isReadOnly"; + @SerializedName(SERIALIZED_NAME_IS_READ_ONLY) + private Boolean isReadOnly; + /** - * Gets or Sets spendLimitType + * Indicates contact list identifier's type */ - @JsonAdapter(SpendLimitTypeEnum.Adapter.class) - public enum SpendLimitTypeEnum { - CAPPED("capped"), + @JsonAdapter(IdentifierTypeEnum.Adapter.class) + public enum IdentifierTypeEnum { + UNKNOWN("Unknown"), + + EMAIL("Email"), + + USERIDENTIFIER("UserIdentifier"), - UNCAPPED("uncapped"); + IDENTITYLINK("IdentityLink"), + + CUSTOMERID("CustomerId"); private String value; - SpendLimitTypeEnum(String value) { + IdentifierTypeEnum(String value) { this.value = value; } @@ -74,8 +83,8 @@ public String toString() { return String.valueOf(value); } - public static SpendLimitTypeEnum fromValue(String value) { - for (SpendLimitTypeEnum b : SpendLimitTypeEnum.values()) { + public static IdentifierTypeEnum fromValue(String value) { + for (IdentifierTypeEnum b : IdentifierTypeEnum.values()) { if (b.value.equals(value)) { return b; } @@ -83,40 +92,40 @@ public static SpendLimitTypeEnum fromValue(String value) { return null; } - public static class Adapter extends TypeAdapter { + public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final SpendLimitTypeEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final IdentifierTypeEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public SpendLimitTypeEnum read(final JsonReader jsonReader) throws IOException { + public IdentifierTypeEnum read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); - return SpendLimitTypeEnum.fromValue(value); + return IdentifierTypeEnum.fromValue(value); } } } - public static final String SERIALIZED_NAME_SPEND_LIMIT_TYPE = "spendLimitType"; - @SerializedName(SERIALIZED_NAME_SPEND_LIMIT_TYPE) - private SpendLimitTypeEnum spendLimitType; + public static final String SERIALIZED_NAME_IDENTIFIER_TYPE = "identifierType"; + @SerializedName(SERIALIZED_NAME_IDENTIFIER_TYPE) + private IdentifierTypeEnum identifierType; /** - * Gets or Sets spendLimitRenewal + * Indicates if the contact list is shared with other accounts */ - @JsonAdapter(SpendLimitRenewalEnum.Adapter.class) - public enum SpendLimitRenewalEnum { - UNDEFINED("undefined"), + @JsonAdapter(SharingStatusEnum.Adapter.class) + public enum SharingStatusEnum { + UNKNOWN("Unknown"), - DAILY("daily"), + NOTSHARED("NotShared"), - MONTHLY("monthly"), + SHAREDWITHALL("SharedWithAll"), - LIFETIME("lifetime"); + SHAREDWITHDEMANDACCOUNTS("SharedWithDemandAccounts"); private String value; - SpendLimitRenewalEnum(String value) { + SharingStatusEnum(String value) { this.value = value; } @@ -129,8 +138,8 @@ public String toString() { return String.valueOf(value); } - public static SpendLimitRenewalEnum fromValue(String value) { - for (SpendLimitRenewalEnum b : SpendLimitRenewalEnum.values()) { + public static SharingStatusEnum fromValue(String value) { + for (SharingStatusEnum b : SharingStatusEnum.values()) { if (b.value.equals(value)) { return b; } @@ -138,94 +147,90 @@ public static SpendLimitRenewalEnum fromValue(String value) { return null; } - public static class Adapter extends TypeAdapter { + public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final SpendLimitRenewalEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final SharingStatusEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public SpendLimitRenewalEnum read(final JsonReader jsonReader) throws IOException { + public SharingStatusEnum read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); - return SpendLimitRenewalEnum.fromValue(value); + return SharingStatusEnum.fromValue(value); } } } - public static final String SERIALIZED_NAME_SPEND_LIMIT_RENEWAL = "spendLimitRenewal"; - @SerializedName(SERIALIZED_NAME_SPEND_LIMIT_RENEWAL) - private SpendLimitRenewalEnum spendLimitRenewal; - - public static final String SERIALIZED_NAME_SPEND_LIMIT_AMOUNT = "spendLimitAmount"; - @SerializedName(SERIALIZED_NAME_SPEND_LIMIT_AMOUNT) - private NillableDecimal spendLimitAmount; + public static final String SERIALIZED_NAME_SHARING_STATUS = "sharingStatus"; + @SerializedName(SERIALIZED_NAME_SHARING_STATUS) + private SharingStatusEnum sharingStatus; - public CampaignSpendLimit() { + public RmContactListV1() { } - public CampaignSpendLimit spendLimitType(SpendLimitTypeEnum spendLimitType) { + public RmContactListV1 isReadOnly(Boolean isReadOnly) { - this.spendLimitType = spendLimitType; + this.isReadOnly = isReadOnly; return this; } /** - * Get spendLimitType - * @return spendLimitType + * Is the segment read-only + * @return isReadOnly **/ @javax.annotation.Nullable - public SpendLimitTypeEnum getSpendLimitType() { - return spendLimitType; + public Boolean getIsReadOnly() { + return isReadOnly; } - public void setSpendLimitType(SpendLimitTypeEnum spendLimitType) { - this.spendLimitType = spendLimitType; + public void setIsReadOnly(Boolean isReadOnly) { + this.isReadOnly = isReadOnly; } - public CampaignSpendLimit spendLimitRenewal(SpendLimitRenewalEnum spendLimitRenewal) { + public RmContactListV1 identifierType(IdentifierTypeEnum identifierType) { - this.spendLimitRenewal = spendLimitRenewal; + this.identifierType = identifierType; return this; } /** - * Get spendLimitRenewal - * @return spendLimitRenewal + * Indicates contact list identifier's type + * @return identifierType **/ @javax.annotation.Nullable - public SpendLimitRenewalEnum getSpendLimitRenewal() { - return spendLimitRenewal; + public IdentifierTypeEnum getIdentifierType() { + return identifierType; } - public void setSpendLimitRenewal(SpendLimitRenewalEnum spendLimitRenewal) { - this.spendLimitRenewal = spendLimitRenewal; + public void setIdentifierType(IdentifierTypeEnum identifierType) { + this.identifierType = identifierType; } - public CampaignSpendLimit spendLimitAmount(NillableDecimal spendLimitAmount) { + public RmContactListV1 sharingStatus(SharingStatusEnum sharingStatus) { - this.spendLimitAmount = spendLimitAmount; + this.sharingStatus = sharingStatus; return this; } /** - * Get spendLimitAmount - * @return spendLimitAmount + * Indicates if the contact list is shared with other accounts + * @return sharingStatus **/ @javax.annotation.Nullable - public NillableDecimal getSpendLimitAmount() { - return spendLimitAmount; + public SharingStatusEnum getSharingStatus() { + return sharingStatus; } - public void setSpendLimitAmount(NillableDecimal spendLimitAmount) { - this.spendLimitAmount = spendLimitAmount; + public void setSharingStatus(SharingStatusEnum sharingStatus) { + this.sharingStatus = sharingStatus; } /** @@ -241,9 +246,9 @@ public void setSpendLimitAmount(NillableDecimal spendLimitAmount) { * * @param key name of the property * @param value value of the property - * @return the CampaignSpendLimit instance itself + * @return the RmContactListV1 instance itself */ - public CampaignSpendLimit putAdditionalProperty(String key, Object value) { + public RmContactListV1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -282,11 +287,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CampaignSpendLimit campaignSpendLimit = (CampaignSpendLimit) o; - return Objects.equals(this.spendLimitType, campaignSpendLimit.spendLimitType) && - Objects.equals(this.spendLimitRenewal, campaignSpendLimit.spendLimitRenewal) && - Objects.equals(this.spendLimitAmount, campaignSpendLimit.spendLimitAmount)&& - Objects.equals(this.additionalProperties, campaignSpendLimit.additionalProperties); + RmContactListV1 rmContactListV1 = (RmContactListV1) o; + return Objects.equals(this.isReadOnly, rmContactListV1.isReadOnly) && + Objects.equals(this.identifierType, rmContactListV1.identifierType) && + Objects.equals(this.sharingStatus, rmContactListV1.sharingStatus)&& + Objects.equals(this.additionalProperties, rmContactListV1.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -295,7 +300,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(spendLimitType, spendLimitRenewal, spendLimitAmount, additionalProperties); + return Objects.hash(isReadOnly, identifierType, sharingStatus, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -308,10 +313,10 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CampaignSpendLimit {\n"); - sb.append(" spendLimitType: ").append(toIndentedString(spendLimitType)).append("\n"); - sb.append(" spendLimitRenewal: ").append(toIndentedString(spendLimitRenewal)).append("\n"); - sb.append(" spendLimitAmount: ").append(toIndentedString(spendLimitAmount)).append("\n"); + sb.append("class RmContactListV1 {\n"); + sb.append(" isReadOnly: ").append(toIndentedString(isReadOnly)).append("\n"); + sb.append(" identifierType: ").append(toIndentedString(identifierType)).append("\n"); + sb.append(" sharingStatus: ").append(toIndentedString(sharingStatus)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -335,9 +340,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("spendLimitType"); - openapiFields.add("spendLimitRenewal"); - openapiFields.add("spendLimitAmount"); + openapiFields.add("isReadOnly"); + openapiFields.add("identifierType"); + openapiFields.add("sharingStatus"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -347,23 +352,19 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CampaignSpendLimit + * @throws IOException if the JSON Object is invalid with respect to RmContactListV1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CampaignSpendLimit.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignSpendLimit is not found in the empty JSON string", CampaignSpendLimit.openapiRequiredFields.toString())); + if (!RmContactListV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmContactListV1 is not found in the empty JSON string", RmContactListV1.openapiRequiredFields.toString())); } } - if ((jsonObj.get("spendLimitType") != null && !jsonObj.get("spendLimitType").isJsonNull()) && !jsonObj.get("spendLimitType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `spendLimitType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("spendLimitType").toString())); - } - if ((jsonObj.get("spendLimitRenewal") != null && !jsonObj.get("spendLimitRenewal").isJsonNull()) && !jsonObj.get("spendLimitRenewal").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `spendLimitRenewal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("spendLimitRenewal").toString())); + if ((jsonObj.get("identifierType") != null && !jsonObj.get("identifierType").isJsonNull()) && !jsonObj.get("identifierType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `identifierType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierType").toString())); } - // validate the optional field `spendLimitAmount` - if (jsonObj.get("spendLimitAmount") != null && !jsonObj.get("spendLimitAmount").isJsonNull()) { - NillableDecimal.validateJsonObject(jsonObj.getAsJsonObject("spendLimitAmount")); + if ((jsonObj.get("sharingStatus") != null && !jsonObj.get("sharingStatus").isJsonNull()) && !jsonObj.get("sharingStatus").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sharingStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sharingStatus").toString())); } } @@ -371,16 +372,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CampaignSpendLimit.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CampaignSpendLimit' and its subtypes + if (!RmContactListV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmContactListV1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CampaignSpendLimit.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmContactListV1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CampaignSpendLimit value) throws IOException { + public void write(JsonWriter out, RmContactListV1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -403,11 +404,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CampaignSpendLimit read(JsonReader in) throws IOException { + public RmContactListV1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CampaignSpendLimit instance = thisAdapter.fromJsonTree(jsonObj); + RmContactListV1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -434,18 +435,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CampaignSpendLimit given an JSON string + * Create an instance of RmContactListV1 given an JSON string * * @param jsonString JSON string - * @return An instance of CampaignSpendLimit - * @throws IOException if the JSON string is invalid with respect to CampaignSpendLimit + * @return An instance of RmContactListV1 + * @throws IOException if the JSON string is invalid with respect to RmContactListV1 */ - public static CampaignSpendLimit fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CampaignSpendLimit.class); + public static RmContactListV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmContactListV1.class); } /** - * Convert an instance of CampaignSpendLimit to an JSON string + * Convert an instance of RmContactListV1 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentUserBehaviorV2.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmEventsV1.java similarity index 61% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentUserBehaviorV2.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmEventsV1.java index 69db58da..2e0cbfa5 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentUserBehaviorV2.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmEventsV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -21,8 +21,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.util.LinkedHashSet; -import java.util.Set; +import java.util.ArrayList; +import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -44,27 +44,29 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** - * Audience definition of people based on what they visited + * Settings to target users based on their behavior */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacySegmentUserBehaviorV2 { +public class RmEventsV1 { /** - * Type of shopper activity used to generate the audience. + * Reach people who performed specific action */ - @JsonAdapter(UserActionEnum.Adapter.class) - public enum UserActionEnum { - BUY("buy"), + @JsonAdapter(ShopperActivityEnum.Adapter.class) + public enum ShopperActivityEnum { + UNKNOWN("Unknown"), + + VIEW("View"), - VIEW("view"), + BUY("Buy"), - ADDTOCART("addToCart"); + ADDTOCART("AddToCart"); private String value; - UserActionEnum(String value) { + ShopperActivityEnum(String value) { this.value = value; } @@ -77,59 +79,61 @@ public String toString() { return String.valueOf(value); } - public static UserActionEnum fromValue(String value) { - for (UserActionEnum b : UserActionEnum.values()) { + public static ShopperActivityEnum fromValue(String value) { + for (ShopperActivityEnum b : ShopperActivityEnum.values()) { if (b.value.equals(value)) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } - public static class Adapter extends TypeAdapter { + public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final UserActionEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final ShopperActivityEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public UserActionEnum read(final JsonReader jsonReader) throws IOException { + public ShopperActivityEnum read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); - return UserActionEnum.fromValue(value); + return ShopperActivityEnum.fromValue(value); } } } - public static final String SERIALIZED_NAME_USER_ACTION = "userAction"; - @SerializedName(SERIALIZED_NAME_USER_ACTION) - private UserActionEnum userAction; + public static final String SERIALIZED_NAME_SHOPPER_ACTIVITY = "shopperActivity"; + @SerializedName(SERIALIZED_NAME_SHOPPER_ACTIVITY) + private ShopperActivityEnum shopperActivity; /** - * Length of lookback window + * The number of days to look back */ - @JsonAdapter(LookbackWindowEnum.Adapter.class) - public enum LookbackWindowEnum { - P7D("P7D"), + @JsonAdapter(LookbackDaysEnum.Adapter.class) + public enum LookbackDaysEnum { + UNKNOWN("Unknown"), - P14D("P14D"), + LAST7DAYS("Last7Days"), - P30D("P30D"), + LAST14DAYS("Last14Days"), - P45D("P45D"), + LAST30DAYS("Last30Days"), - P60D("P60D"), + LAST45DAYS("Last45Days"), - P90D("P90D"), + LAST60DAYS("Last60Days"), - P120D("P120D"), + LAST90DAYS("Last90Days"), - P150D("P150D"), + LAST120DAYS("Last120Days"), - P180D("P180D"); + LAST150DAYS("Last150Days"), + + LAST180DAYS("Last180Days"); private String value; - LookbackWindowEnum(String value) { + LookbackDaysEnum(String value) { this.value = value; } @@ -142,40 +146,40 @@ public String toString() { return String.valueOf(value); } - public static LookbackWindowEnum fromValue(String value) { - for (LookbackWindowEnum b : LookbackWindowEnum.values()) { + public static LookbackDaysEnum fromValue(String value) { + for (LookbackDaysEnum b : LookbackDaysEnum.values()) { if (b.value.equals(value)) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } - public static class Adapter extends TypeAdapter { + public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final LookbackWindowEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final LookbackDaysEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public LookbackWindowEnum read(final JsonReader jsonReader) throws IOException { + public LookbackDaysEnum read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); - return LookbackWindowEnum.fromValue(value); + return LookbackDaysEnum.fromValue(value); } } } - public static final String SERIALIZED_NAME_LOOKBACK_WINDOW = "lookbackWindow"; - @SerializedName(SERIALIZED_NAME_LOOKBACK_WINDOW) - private LookbackWindowEnum lookbackWindow; + public static final String SERIALIZED_NAME_LOOKBACK_DAYS = "lookbackDays"; + @SerializedName(SERIALIZED_NAME_LOOKBACK_DAYS) + private LookbackDaysEnum lookbackDays; public static final String SERIALIZED_NAME_CATEGORY_IDS = "categoryIds"; @SerializedName(SERIALIZED_NAME_CATEGORY_IDS) - private Set categoryIds = null; + private List categoryIds = null; public static final String SERIALIZED_NAME_BRAND_IDS = "brandIds"; @SerializedName(SERIALIZED_NAME_BRAND_IDS) - private Set brandIds = null; + private List brandIds = null; public static final String SERIALIZED_NAME_MIN_PRICE = "minPrice"; @SerializedName(SERIALIZED_NAME_MIN_PRICE) @@ -185,60 +189,60 @@ public LookbackWindowEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_MAX_PRICE) private Double maxPrice; - public RmLegacySegmentUserBehaviorV2() { + public RmEventsV1() { } - public RmLegacySegmentUserBehaviorV2 userAction(UserActionEnum userAction) { + public RmEventsV1 shopperActivity(ShopperActivityEnum shopperActivity) { - this.userAction = userAction; + this.shopperActivity = shopperActivity; return this; } /** - * Type of shopper activity used to generate the audience. - * @return userAction + * Reach people who performed specific action + * @return shopperActivity **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable - public UserActionEnum getUserAction() { - return userAction; + public ShopperActivityEnum getShopperActivity() { + return shopperActivity; } - public void setUserAction(UserActionEnum userAction) { - this.userAction = userAction; + public void setShopperActivity(ShopperActivityEnum shopperActivity) { + this.shopperActivity = shopperActivity; } - public RmLegacySegmentUserBehaviorV2 lookbackWindow(LookbackWindowEnum lookbackWindow) { + public RmEventsV1 lookbackDays(LookbackDaysEnum lookbackDays) { - this.lookbackWindow = lookbackWindow; + this.lookbackDays = lookbackDays; return this; } /** - * Length of lookback window - * @return lookbackWindow + * The number of days to look back + * @return lookbackDays **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable - public LookbackWindowEnum getLookbackWindow() { - return lookbackWindow; + public LookbackDaysEnum getLookbackDays() { + return lookbackDays; } - public void setLookbackWindow(LookbackWindowEnum lookbackWindow) { - this.lookbackWindow = lookbackWindow; + public void setLookbackDays(LookbackDaysEnum lookbackDays) { + this.lookbackDays = lookbackDays; } - public RmLegacySegmentUserBehaviorV2 categoryIds(Set categoryIds) { + public RmEventsV1 categoryIds(List categoryIds) { this.categoryIds = categoryIds; return this; } - public RmLegacySegmentUserBehaviorV2 addCategoryIdsItem(Integer categoryIdsItem) { + public RmEventsV1 addCategoryIdsItem(String categoryIdsItem) { if (this.categoryIds == null) { this.categoryIds = null; } @@ -247,28 +251,28 @@ public RmLegacySegmentUserBehaviorV2 addCategoryIdsItem(Integer categoryIdsItem) } /** - * The categories to target + * The list of category ids * @return categoryIds **/ @javax.annotation.Nullable - public Set getCategoryIds() { + public List getCategoryIds() { return categoryIds; } - public void setCategoryIds(Set categoryIds) { + public void setCategoryIds(List categoryIds) { this.categoryIds = categoryIds; } - public RmLegacySegmentUserBehaviorV2 brandIds(Set brandIds) { + public RmEventsV1 brandIds(List brandIds) { this.brandIds = brandIds; return this; } - public RmLegacySegmentUserBehaviorV2 addBrandIdsItem(Long brandIdsItem) { + public RmEventsV1 addBrandIdsItem(String brandIdsItem) { if (this.brandIds == null) { this.brandIds = null; } @@ -277,29 +281,29 @@ public RmLegacySegmentUserBehaviorV2 addBrandIdsItem(Long brandIdsItem) { } /** - * The brands to target + * The list of brand ids * @return brandIds **/ @javax.annotation.Nullable - public Set getBrandIds() { + public List getBrandIds() { return brandIds; } - public void setBrandIds(Set brandIds) { + public void setBrandIds(List brandIds) { this.brandIds = brandIds; } - public RmLegacySegmentUserBehaviorV2 minPrice(Double minPrice) { + public RmEventsV1 minPrice(Double minPrice) { this.minPrice = minPrice; return this; } /** - * The min price of targeted skus. + * Minimum price of the products * @return minPrice **/ @javax.annotation.Nullable @@ -314,14 +318,14 @@ public void setMinPrice(Double minPrice) { } - public RmLegacySegmentUserBehaviorV2 maxPrice(Double maxPrice) { + public RmEventsV1 maxPrice(Double maxPrice) { this.maxPrice = maxPrice; return this; } /** - * The max price of targeted skus. + * Maximum price of the products * @return maxPrice **/ @javax.annotation.Nullable @@ -348,9 +352,9 @@ public void setMaxPrice(Double maxPrice) { * * @param key name of the property * @param value value of the property - * @return the RmLegacySegmentUserBehaviorV2 instance itself + * @return the RmEventsV1 instance itself */ - public RmLegacySegmentUserBehaviorV2 putAdditionalProperty(String key, Object value) { + public RmEventsV1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -389,14 +393,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacySegmentUserBehaviorV2 rmLegacySegmentUserBehaviorV2 = (RmLegacySegmentUserBehaviorV2) o; - return Objects.equals(this.userAction, rmLegacySegmentUserBehaviorV2.userAction) && - Objects.equals(this.lookbackWindow, rmLegacySegmentUserBehaviorV2.lookbackWindow) && - Objects.equals(this.categoryIds, rmLegacySegmentUserBehaviorV2.categoryIds) && - Objects.equals(this.brandIds, rmLegacySegmentUserBehaviorV2.brandIds) && - Objects.equals(this.minPrice, rmLegacySegmentUserBehaviorV2.minPrice) && - Objects.equals(this.maxPrice, rmLegacySegmentUserBehaviorV2.maxPrice)&& - Objects.equals(this.additionalProperties, rmLegacySegmentUserBehaviorV2.additionalProperties); + RmEventsV1 rmEventsV1 = (RmEventsV1) o; + return Objects.equals(this.shopperActivity, rmEventsV1.shopperActivity) && + Objects.equals(this.lookbackDays, rmEventsV1.lookbackDays) && + Objects.equals(this.categoryIds, rmEventsV1.categoryIds) && + Objects.equals(this.brandIds, rmEventsV1.brandIds) && + Objects.equals(this.minPrice, rmEventsV1.minPrice) && + Objects.equals(this.maxPrice, rmEventsV1.maxPrice)&& + Objects.equals(this.additionalProperties, rmEventsV1.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -405,7 +409,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(userAction, lookbackWindow, categoryIds, brandIds, minPrice, maxPrice, additionalProperties); + return Objects.hash(shopperActivity, lookbackDays, categoryIds, brandIds, minPrice, maxPrice, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -418,9 +422,9 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacySegmentUserBehaviorV2 {\n"); - sb.append(" userAction: ").append(toIndentedString(userAction)).append("\n"); - sb.append(" lookbackWindow: ").append(toIndentedString(lookbackWindow)).append("\n"); + sb.append("class RmEventsV1 {\n"); + sb.append(" shopperActivity: ").append(toIndentedString(shopperActivity)).append("\n"); + sb.append(" lookbackDays: ").append(toIndentedString(lookbackDays)).append("\n"); sb.append(" categoryIds: ").append(toIndentedString(categoryIds)).append("\n"); sb.append(" brandIds: ").append(toIndentedString(brandIds)).append("\n"); sb.append(" minPrice: ").append(toIndentedString(minPrice)).append("\n"); @@ -448,8 +452,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("userAction"); - openapiFields.add("lookbackWindow"); + openapiFields.add("shopperActivity"); + openapiFields.add("lookbackDays"); openapiFields.add("categoryIds"); openapiFields.add("brandIds"); openapiFields.add("minPrice"); @@ -457,34 +461,25 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userAction"); - openapiRequiredFields.add("lookbackWindow"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacySegmentUserBehaviorV2 + * @throws IOException if the JSON Object is invalid with respect to RmEventsV1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacySegmentUserBehaviorV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacySegmentUserBehaviorV2 is not found in the empty JSON string", RmLegacySegmentUserBehaviorV2.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacySegmentUserBehaviorV2.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + if (!RmEventsV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmEventsV1 is not found in the empty JSON string", RmEventsV1.openapiRequiredFields.toString())); } } - if (!jsonObj.get("userAction").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userAction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userAction").toString())); + if ((jsonObj.get("shopperActivity") != null && !jsonObj.get("shopperActivity").isJsonNull()) && !jsonObj.get("shopperActivity").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `shopperActivity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shopperActivity").toString())); } - if (!jsonObj.get("lookbackWindow").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `lookbackWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lookbackWindow").toString())); + if ((jsonObj.get("lookbackDays") != null && !jsonObj.get("lookbackDays").isJsonNull()) && !jsonObj.get("lookbackDays").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `lookbackDays` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lookbackDays").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("categoryIds") != null && !jsonObj.get("categoryIds").isJsonArray()) { @@ -500,16 +495,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacySegmentUserBehaviorV2.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacySegmentUserBehaviorV2' and its subtypes + if (!RmEventsV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmEventsV1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacySegmentUserBehaviorV2.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmEventsV1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacySegmentUserBehaviorV2 value) throws IOException { + public void write(JsonWriter out, RmEventsV1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -532,11 +527,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacySegmentUserBehaviorV2 read(JsonReader in) throws IOException { + public RmEventsV1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacySegmentUserBehaviorV2 instance = thisAdapter.fromJsonTree(jsonObj); + RmEventsV1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -563,18 +558,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacySegmentUserBehaviorV2 given an JSON string + * Create an instance of RmEventsV1 given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacySegmentUserBehaviorV2 - * @throws IOException if the JSON string is invalid with respect to RmLegacySegmentUserBehaviorV2 + * @return An instance of RmEventsV1 + * @throws IOException if the JSON string is invalid with respect to RmEventsV1 */ - public static RmLegacySegmentUserBehaviorV2 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacySegmentUserBehaviorV2.class); + public static RmEventsV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmEventsV1.class); } /** - * Convert an instance of RmLegacySegmentUserBehaviorV2 to an JSON string + * Convert an instance of RmEventsV1 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmcaCommonProblem.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmcaCommonProblem.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmcaCommonProblem.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmcaCommonProblem.java index 21dc3998..51722932 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmcaCommonProblem.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/RmcaCommonProblem.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Common problem object. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Section.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Section.java similarity index 93% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Section.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Section.java index 8fd8dc20..d01f6f49 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Section.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Section.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.TemplateVariable; +import com.criteo.api.retailmedia.v2024_10.model.TemplateVariable; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -24,6 +24,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -44,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Section object that hold template variables @@ -72,7 +73,7 @@ public Section title(String title) { * Get title * @return title **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public String getTitle() { return title; @@ -170,11 +171,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, section.additionalProperties); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { return Objects.hash(title, templateVariables, additionalProperties); } + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -209,7 +221,6 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("title"); openapiRequiredFields.add("templateVariables"); } @@ -232,7 +243,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (!jsonObj.get("title").isJsonPrimitive()) { + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); } // ensure the json data is an array diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidModel.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidModel.java index 8e399406..4941dd68 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A single keyword and associated bid override diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModel.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModel.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModel.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModel.java index afac3f4a..8cae4b39 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModel.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.SetBidModel; +import com.criteo.api.retailmedia.v2024_10.model.SetBidModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model containing keywords and their associated bid overrides diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModelRequest.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModelRequest.java similarity index 96% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModelRequest.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModelRequest.java index 822df649..4bf7fc1e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModelRequest.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModelRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.SetBidsModelResource; +import com.criteo.api.retailmedia.v2024_10.model.SetBidsModelResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Request object to set bid overrides for keywords associated with a line item diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModelResource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModelResource.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModelResource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModelResource.java index 39476fc1..2b294e93 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/SetBidsModelResource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/SetBidsModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.SetBidsModel; +import com.criteo.api.retailmedia.v2024_10.model.SetBidsModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Resource object containing keywords and their associated bid overrides diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StatusResponse.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StatusResponse.java index 2ae45431..c28b184f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StatusResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Status of an async report request diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponseResource.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StatusResponseResource.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponseResource.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StatusResponseResource.java index 354f8c01..a52725a0 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponseResource.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StatusResponseResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.StatusResponse; +import com.criteo.api.retailmedia.v2024_10.model.StatusResponse; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A class that represents a domain entity exposed by an API diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreIdsUpdateModel202110Request.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreIdsUpdateModel202110Request.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreIdsUpdateModel202110Request.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreIdsUpdateModel202110Request.java index 5989a748..d2cefa10 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreIdsUpdateModel202110Request.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreIdsUpdateModel202110Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfStoreIdsUpdateModel202110; +import com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfStoreIdsUpdateModel202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type input resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreTarget202110Request.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreTarget202110Request.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreTarget202110Request.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreTarget202110Request.java index 2d43d11c..5892168e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreTarget202110Request.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreTarget202110Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfStoreTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfStoreTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type input resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreTarget202110Response.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreTarget202110Response.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreTarget202110Response.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreTarget202110Response.java index 7deb1d8e..4a8d05e2 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StoreTarget202110Response.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/StoreTarget202110Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ValueTypeResourceOfStoreTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ValueTypeResourceOfStoreTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type resource outcome diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Template.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Template.java similarity index 99% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Template.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Template.java index 203a334a..3222b5fc 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Template.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/Template.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.Section; +import com.criteo.api.retailmedia.v2024_10.model.Section; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A template for creating creatives. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateListResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateListResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateListResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateListResponse.java index dee76f74..5d32a045 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateListResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfTemplate; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfTemplate; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a list of response resources diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateResponse.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateResponse.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateResponse.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateResponse.java index d2c3846a..79ff7c98 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateResponse.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ProblemDetails; -import com.criteo.api.retailmedia.v2023_07.model.ResourceOfTemplate; +import com.criteo.api.retailmedia.v2024_10.model.ProblemDetails; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfTemplate; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +45,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for response resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateVariable.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateVariable.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateVariable.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateVariable.java index ec7d5452..2786b060 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateVariable.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateVariable.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,13 +11,13 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ChoiceVariableSpecification; -import com.criteo.api.retailmedia.v2023_07.model.FilesVariablesSpecification; -import com.criteo.api.retailmedia.v2023_07.model.TextVariableSpecification; +import com.criteo.api.retailmedia.v2024_10.model.ChoiceVariableSpecification; +import com.criteo.api.retailmedia.v2024_10.model.FilesVariablesSpecification; +import com.criteo.api.retailmedia.v2024_10.model.TextVariableSpecification; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,7 +44,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A variable in a creative template diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateVariableValue.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateVariableValue.java similarity index 97% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateVariableValue.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateVariableValue.java index 733b0c77..72995864 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TemplateVariableValue.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TemplateVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,15 +11,15 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ChoiceVariableValue; -import com.criteo.api.retailmedia.v2023_07.model.ColorVariableValue; -import com.criteo.api.retailmedia.v2023_07.model.FilesVariableValue; -import com.criteo.api.retailmedia.v2023_07.model.HyperlinkVariableValue; -import com.criteo.api.retailmedia.v2023_07.model.TextVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.ChoiceVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.ColorVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.FilesVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.HyperlinkVariableValue; +import com.criteo.api.retailmedia.v2024_10.model.TextVariableValue; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A value for a variable in a creative template. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TextVariableSpecification.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TextVariableSpecification.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TextVariableSpecification.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TextVariableSpecification.java index df2ca8f3..aaff3a0c 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TextVariableSpecification.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TextVariableSpecification.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Specification of a text variable diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TextVariableValue.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TextVariableValue.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TextVariableValue.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TextVariableValue.java index df10d005..779e7419 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/TextVariableValue.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/TextVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; @@ -41,7 +41,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A value of a template text variable diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/UpdateBalanceModelV2.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/UpdateBalanceModelV2.java new file mode 100644 index 00000000..2e6cd0dc --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/UpdateBalanceModelV2.java @@ -0,0 +1,420 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * An object that represents the available options to set when updating a Retail Media Balance. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdateBalanceModelV2 { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_PO_NUMBER = "poNumber"; + @SerializedName(SERIALIZED_NAME_PO_NUMBER) + private String poNumber; + + public static final String SERIALIZED_NAME_START_DATE = "startDate"; + @SerializedName(SERIALIZED_NAME_START_DATE) + private String startDate; + + public static final String SERIALIZED_NAME_END_DATE = "endDate"; + @SerializedName(SERIALIZED_NAME_END_DATE) + private String endDate; + + public static final String SERIALIZED_NAME_MEMO = "memo"; + @SerializedName(SERIALIZED_NAME_MEMO) + private String memo; + + public UpdateBalanceModelV2() { + } + + public UpdateBalanceModelV2 name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the balance. + * @return name + **/ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public UpdateBalanceModelV2 poNumber(String poNumber) { + + this.poNumber = poNumber; + return this; + } + + /** + * Purchase Order number. + * @return poNumber + **/ + @javax.annotation.Nullable + + public String getPoNumber() { + return poNumber; + } + + + public void setPoNumber(String poNumber) { + this.poNumber = poNumber; + } + + + public UpdateBalanceModelV2 startDate(String startDate) { + + this.startDate = startDate; + return this; + } + + /** + * Start date of the balance in the format YYYY-MM-DD. + * @return startDate + **/ + @javax.annotation.Nullable + + public String getStartDate() { + return startDate; + } + + + public void setStartDate(String startDate) { + this.startDate = startDate; + } + + + public UpdateBalanceModelV2 endDate(String endDate) { + + this.endDate = endDate; + return this; + } + + /** + * End date of the balance in the format YYYY-MM-DD. + * @return endDate + **/ + @javax.annotation.Nullable + + public String getEndDate() { + return endDate; + } + + + public void setEndDate(String endDate) { + this.endDate = endDate; + } + + + public UpdateBalanceModelV2 memo(String memo) { + + this.memo = memo; + return this; + } + + /** + * Memo. + * @return memo + **/ + @javax.annotation.Nullable + + public String getMemo() { + return memo; + } + + + public void setMemo(String memo) { + this.memo = memo; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UpdateBalanceModelV2 instance itself + */ + public UpdateBalanceModelV2 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateBalanceModelV2 updateBalanceModelV2 = (UpdateBalanceModelV2) o; + return Objects.equals(this.name, updateBalanceModelV2.name) && + Objects.equals(this.poNumber, updateBalanceModelV2.poNumber) && + Objects.equals(this.startDate, updateBalanceModelV2.startDate) && + Objects.equals(this.endDate, updateBalanceModelV2.endDate) && + Objects.equals(this.memo, updateBalanceModelV2.memo)&& + Objects.equals(this.additionalProperties, updateBalanceModelV2.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(name, poNumber, startDate, endDate, memo, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBalanceModelV2 {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" poNumber: ").append(toIndentedString(poNumber)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); + sb.append(" memo: ").append(toIndentedString(memo)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("poNumber"); + openapiFields.add("startDate"); + openapiFields.add("endDate"); + openapiFields.add("memo"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UpdateBalanceModelV2 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!UpdateBalanceModelV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in UpdateBalanceModelV2 is not found in the empty JSON string", UpdateBalanceModelV2.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("poNumber") != null && !jsonObj.get("poNumber").isJsonNull()) && !jsonObj.get("poNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `poNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("poNumber").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("memo") != null && !jsonObj.get("memo").isJsonNull()) && !jsonObj.get("memo").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `memo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("memo").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateBalanceModelV2.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateBalanceModelV2' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateBalanceModelV2.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateBalanceModelV2 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public UpdateBalanceModelV2 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + UpdateBalanceModelV2 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UpdateBalanceModelV2 given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateBalanceModelV2 + * @throws IOException if the JSON string is invalid with respect to UpdateBalanceModelV2 + */ + public static UpdateBalanceModelV2 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateBalanceModelV2.class); + } + + /** + * Convert an instance of UpdateBalanceModelV2 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/UpdateBalanceModelV2Request.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/UpdateBalanceModelV2Request.java new file mode 100644 index 00000000..2ccf8d4f --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/UpdateBalanceModelV2Request.java @@ -0,0 +1,282 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ResourceOfUpdateBalanceModelV2; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API request for a single entity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdateBalanceModelV2Request { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private ResourceOfUpdateBalanceModelV2 data; + + public UpdateBalanceModelV2Request() { + } + + public UpdateBalanceModelV2Request data(ResourceOfUpdateBalanceModelV2 data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public ResourceOfUpdateBalanceModelV2 getData() { + return data; + } + + + public void setData(ResourceOfUpdateBalanceModelV2 data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UpdateBalanceModelV2Request instance itself + */ + public UpdateBalanceModelV2Request putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateBalanceModelV2Request updateBalanceModelV2Request = (UpdateBalanceModelV2Request) o; + return Objects.equals(this.data, updateBalanceModelV2Request.data)&& + Objects.equals(this.additionalProperties, updateBalanceModelV2Request.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBalanceModelV2Request {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UpdateBalanceModelV2Request + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!UpdateBalanceModelV2Request.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in UpdateBalanceModelV2Request is not found in the empty JSON string", UpdateBalanceModelV2Request.openapiRequiredFields.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + ResourceOfUpdateBalanceModelV2.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateBalanceModelV2Request.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateBalanceModelV2Request' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateBalanceModelV2Request.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateBalanceModelV2Request value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public UpdateBalanceModelV2Request read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + UpdateBalanceModelV2Request instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UpdateBalanceModelV2Request given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateBalanceModelV2Request + * @throws IOException if the JSON string is invalid with respect to UpdateBalanceModelV2Request + */ + public static UpdateBalanceModelV2Request fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateBalanceModelV2Request.class); + } + + /** + * Convert an instance of UpdateBalanceModelV2Request to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceCollectionInputOfRetailMediaSeller.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceCollectionInputOfRetailMediaSeller.java new file mode 100644 index 00000000..86fe442d --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceCollectionInputOfRetailMediaSeller.java @@ -0,0 +1,239 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfRetailMediaSeller; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API request for several values. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceCollectionInputOfRetailMediaSeller { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + public ValueResourceCollectionInputOfRetailMediaSeller() { + } + + public ValueResourceCollectionInputOfRetailMediaSeller data(List data) { + + this.data = data; + return this; + } + + public ValueResourceCollectionInputOfRetailMediaSeller addDataItem(ValueResourceOfRetailMediaSeller dataItem) { + if (this.data == null) { + this.data = null; + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceCollectionInputOfRetailMediaSeller valueResourceCollectionInputOfRetailMediaSeller = (ValueResourceCollectionInputOfRetailMediaSeller) o; + return Objects.equals(this.data, valueResourceCollectionInputOfRetailMediaSeller.data); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValueResourceCollectionInputOfRetailMediaSeller {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceCollectionInputOfRetailMediaSeller + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceCollectionInputOfRetailMediaSeller.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceCollectionInputOfRetailMediaSeller is not found in the empty JSON string", ValueResourceCollectionInputOfRetailMediaSeller.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceCollectionInputOfRetailMediaSeller.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceCollectionInputOfRetailMediaSeller` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + if (jsonArraydata != null) { + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + + // validate the optional field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + ValueResourceOfRetailMediaSeller.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceCollectionInputOfRetailMediaSeller.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceCollectionInputOfRetailMediaSeller' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceCollectionInputOfRetailMediaSeller.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceCollectionInputOfRetailMediaSeller value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceCollectionInputOfRetailMediaSeller read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceCollectionInputOfRetailMediaSeller given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceCollectionInputOfRetailMediaSeller + * @throws IOException if the JSON string is invalid with respect to ValueResourceCollectionInputOfRetailMediaSeller + */ + public static ValueResourceCollectionInputOfRetailMediaSeller fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceCollectionInputOfRetailMediaSeller.class); + } + + /** + * Convert an instance of ValueResourceCollectionInputOfRetailMediaSeller to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceCollectionOutcomeOfRetailMediaSeller.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceCollectionOutcomeOfRetailMediaSeller.java new file mode 100644 index 00000000..7636ad90 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceCollectionOutcomeOfRetailMediaSeller.java @@ -0,0 +1,318 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfRetailMediaSeller; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for several values. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceCollectionOutcomeOfRetailMediaSeller { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public ValueResourceCollectionOutcomeOfRetailMediaSeller() { + } + + + public ValueResourceCollectionOutcomeOfRetailMediaSeller( + List warnings, + List errors + ) { + this(); + this.warnings = warnings; + this.errors = errors; + } + + public ValueResourceCollectionOutcomeOfRetailMediaSeller data(List data) { + + this.data = data; + return this; + } + + public ValueResourceCollectionOutcomeOfRetailMediaSeller addDataItem(ValueResourceOfRetailMediaSeller dataItem) { + if (this.data == null) { + this.data = null; + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceCollectionOutcomeOfRetailMediaSeller valueResourceCollectionOutcomeOfRetailMediaSeller = (ValueResourceCollectionOutcomeOfRetailMediaSeller) o; + return Objects.equals(this.data, valueResourceCollectionOutcomeOfRetailMediaSeller.data) && + Objects.equals(this.warnings, valueResourceCollectionOutcomeOfRetailMediaSeller.warnings) && + Objects.equals(this.errors, valueResourceCollectionOutcomeOfRetailMediaSeller.errors); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(data, warnings, errors); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValueResourceCollectionOutcomeOfRetailMediaSeller {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + openapiFields.add("warnings"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceCollectionOutcomeOfRetailMediaSeller + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceCollectionOutcomeOfRetailMediaSeller.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceCollectionOutcomeOfRetailMediaSeller is not found in the empty JSON string", ValueResourceCollectionOutcomeOfRetailMediaSeller.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceCollectionOutcomeOfRetailMediaSeller.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceCollectionOutcomeOfRetailMediaSeller` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + if (jsonArraydata != null) { + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + + // validate the optional field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + ValueResourceOfRetailMediaSeller.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceCollectionOutcomeOfRetailMediaSeller.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceCollectionOutcomeOfRetailMediaSeller' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceCollectionOutcomeOfRetailMediaSeller.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceCollectionOutcomeOfRetailMediaSeller value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceCollectionOutcomeOfRetailMediaSeller read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceCollectionOutcomeOfRetailMediaSeller given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceCollectionOutcomeOfRetailMediaSeller + * @throws IOException if the JSON string is invalid with respect to ValueResourceCollectionOutcomeOfRetailMediaSeller + */ + public static ValueResourceCollectionOutcomeOfRetailMediaSeller fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceCollectionOutcomeOfRetailMediaSeller.class); + } + + /** + * Convert an instance of ValueResourceCollectionOutcomeOfRetailMediaSeller to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceInputOfCampaignBudgetOverrides.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfCampaignBudgetOverrides.java similarity index 96% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceInputOfCampaignBudgetOverrides.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfCampaignBudgetOverrides.java index 1dc09b47..95371a48 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceInputOfCampaignBudgetOverrides.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfCampaignBudgetOverrides.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.ValueResourceOfCampaignBudgetOverrides; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfCampaignBudgetOverrides; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API request for a single value. diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceInputOfLineItemBudgetOverrides.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfLineItemBudgetOverrides.java similarity index 96% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceInputOfLineItemBudgetOverrides.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfLineItemBudgetOverrides.java index 2b64f798..ac54517f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceInputOfLineItemBudgetOverrides.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfLineItemBudgetOverrides.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.ValueResourceOfLineItemBudgetOverrides; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfLineItemBudgetOverrides; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API request for a single value. diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaBrandAccountCreation.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaBrandAccountCreation.java new file mode 100644 index 00000000..9d6858f7 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaBrandAccountCreation.java @@ -0,0 +1,207 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfRetailMediaBrandAccountCreation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API request for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceInputOfRetailMediaBrandAccountCreation { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private ValueResourceOfRetailMediaBrandAccountCreation data; + + public ValueResourceInputOfRetailMediaBrandAccountCreation() { + } + + public ValueResourceInputOfRetailMediaBrandAccountCreation data(ValueResourceOfRetailMediaBrandAccountCreation data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public ValueResourceOfRetailMediaBrandAccountCreation getData() { + return data; + } + + + public void setData(ValueResourceOfRetailMediaBrandAccountCreation data) { + this.data = data; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceInputOfRetailMediaBrandAccountCreation valueResourceInputOfRetailMediaBrandAccountCreation = (ValueResourceInputOfRetailMediaBrandAccountCreation) o; + return Objects.equals(this.data, valueResourceInputOfRetailMediaBrandAccountCreation.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValueResourceInputOfRetailMediaBrandAccountCreation {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceInputOfRetailMediaBrandAccountCreation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceInputOfRetailMediaBrandAccountCreation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceInputOfRetailMediaBrandAccountCreation is not found in the empty JSON string", ValueResourceInputOfRetailMediaBrandAccountCreation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceInputOfRetailMediaBrandAccountCreation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceInputOfRetailMediaBrandAccountCreation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + ValueResourceOfRetailMediaBrandAccountCreation.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceInputOfRetailMediaBrandAccountCreation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceInputOfRetailMediaBrandAccountCreation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceInputOfRetailMediaBrandAccountCreation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceInputOfRetailMediaBrandAccountCreation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceInputOfRetailMediaBrandAccountCreation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceInputOfRetailMediaBrandAccountCreation given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceInputOfRetailMediaBrandAccountCreation + * @throws IOException if the JSON string is invalid with respect to ValueResourceInputOfRetailMediaBrandAccountCreation + */ + public static ValueResourceInputOfRetailMediaBrandAccountCreation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceInputOfRetailMediaBrandAccountCreation.class); + } + + /** + * Convert an instance of ValueResourceInputOfRetailMediaBrandAccountCreation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaBrands.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaBrands.java new file mode 100644 index 00000000..5e81ae88 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaBrands.java @@ -0,0 +1,207 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfRetailMediaBrands; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API request for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceInputOfRetailMediaBrands { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private ValueResourceOfRetailMediaBrands data; + + public ValueResourceInputOfRetailMediaBrands() { + } + + public ValueResourceInputOfRetailMediaBrands data(ValueResourceOfRetailMediaBrands data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public ValueResourceOfRetailMediaBrands getData() { + return data; + } + + + public void setData(ValueResourceOfRetailMediaBrands data) { + this.data = data; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceInputOfRetailMediaBrands valueResourceInputOfRetailMediaBrands = (ValueResourceInputOfRetailMediaBrands) o; + return Objects.equals(this.data, valueResourceInputOfRetailMediaBrands.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValueResourceInputOfRetailMediaBrands {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceInputOfRetailMediaBrands + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceInputOfRetailMediaBrands.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceInputOfRetailMediaBrands is not found in the empty JSON string", ValueResourceInputOfRetailMediaBrands.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceInputOfRetailMediaBrands.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceInputOfRetailMediaBrands` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + ValueResourceOfRetailMediaBrands.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceInputOfRetailMediaBrands.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceInputOfRetailMediaBrands' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceInputOfRetailMediaBrands.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceInputOfRetailMediaBrands value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceInputOfRetailMediaBrands read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceInputOfRetailMediaBrands given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceInputOfRetailMediaBrands + * @throws IOException if the JSON string is invalid with respect to ValueResourceInputOfRetailMediaBrands + */ + public static ValueResourceInputOfRetailMediaBrands fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceInputOfRetailMediaBrands.class); + } + + /** + * Convert an instance of ValueResourceInputOfRetailMediaBrands to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaSellerAccountCreation.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaSellerAccountCreation.java new file mode 100644 index 00000000..aca0b29a --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceInputOfRetailMediaSellerAccountCreation.java @@ -0,0 +1,207 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfRetailMediaSellerAccountCreation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API request for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceInputOfRetailMediaSellerAccountCreation { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private ValueResourceOfRetailMediaSellerAccountCreation data; + + public ValueResourceInputOfRetailMediaSellerAccountCreation() { + } + + public ValueResourceInputOfRetailMediaSellerAccountCreation data(ValueResourceOfRetailMediaSellerAccountCreation data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public ValueResourceOfRetailMediaSellerAccountCreation getData() { + return data; + } + + + public void setData(ValueResourceOfRetailMediaSellerAccountCreation data) { + this.data = data; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceInputOfRetailMediaSellerAccountCreation valueResourceInputOfRetailMediaSellerAccountCreation = (ValueResourceInputOfRetailMediaSellerAccountCreation) o; + return Objects.equals(this.data, valueResourceInputOfRetailMediaSellerAccountCreation.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValueResourceInputOfRetailMediaSellerAccountCreation {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceInputOfRetailMediaSellerAccountCreation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceInputOfRetailMediaSellerAccountCreation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceInputOfRetailMediaSellerAccountCreation is not found in the empty JSON string", ValueResourceInputOfRetailMediaSellerAccountCreation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceInputOfRetailMediaSellerAccountCreation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceInputOfRetailMediaSellerAccountCreation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + ValueResourceOfRetailMediaSellerAccountCreation.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceInputOfRetailMediaSellerAccountCreation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceInputOfRetailMediaSellerAccountCreation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceInputOfRetailMediaSellerAccountCreation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceInputOfRetailMediaSellerAccountCreation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceInputOfRetailMediaSellerAccountCreation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceInputOfRetailMediaSellerAccountCreation given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceInputOfRetailMediaSellerAccountCreation + * @throws IOException if the JSON string is invalid with respect to ValueResourceInputOfRetailMediaSellerAccountCreation + */ + public static ValueResourceInputOfRetailMediaSellerAccountCreation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceInputOfRetailMediaSellerAccountCreation.class); + } + + /** + * Convert an instance of ValueResourceInputOfRetailMediaSellerAccountCreation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfCampaignBudgetOverrides.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfCampaignBudgetOverrides.java similarity index 97% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfCampaignBudgetOverrides.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfCampaignBudgetOverrides.java index f435e16a..82e10d5f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfCampaignBudgetOverrides.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfCampaignBudgetOverrides.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.CampaignBudgetOverrides; +import com.criteo.api.retailmedia.v2024_10.model.CampaignBudgetOverrides; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value. diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfLineItemBudgetOverrides.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfLineItemBudgetOverrides.java similarity index 97% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfLineItemBudgetOverrides.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfLineItemBudgetOverrides.java index d27471f5..6f165f7e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfLineItemBudgetOverrides.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfLineItemBudgetOverrides.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.LineItemBudgetOverrides; +import com.criteo.api.retailmedia.v2024_10.model.LineItemBudgetOverrides; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +43,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value. diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaBrandAccountCreation.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaBrandAccountCreation.java new file mode 100644 index 00000000..fd7fd2b7 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaBrandAccountCreation.java @@ -0,0 +1,251 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaBrandAccountCreation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceOfRetailMediaBrandAccountCreation { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private RetailMediaBrandAccountCreation attributes; + + public ValueResourceOfRetailMediaBrandAccountCreation() { + } + + public ValueResourceOfRetailMediaBrandAccountCreation type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public ValueResourceOfRetailMediaBrandAccountCreation attributes(RetailMediaBrandAccountCreation attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public RetailMediaBrandAccountCreation getAttributes() { + return attributes; + } + + + public void setAttributes(RetailMediaBrandAccountCreation attributes) { + this.attributes = attributes; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceOfRetailMediaBrandAccountCreation valueResourceOfRetailMediaBrandAccountCreation = (ValueResourceOfRetailMediaBrandAccountCreation) o; + return Objects.equals(this.type, valueResourceOfRetailMediaBrandAccountCreation.type) && + Objects.equals(this.attributes, valueResourceOfRetailMediaBrandAccountCreation.attributes); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValueResourceOfRetailMediaBrandAccountCreation {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceOfRetailMediaBrandAccountCreation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceOfRetailMediaBrandAccountCreation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceOfRetailMediaBrandAccountCreation is not found in the empty JSON string", ValueResourceOfRetailMediaBrandAccountCreation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceOfRetailMediaBrandAccountCreation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceOfRetailMediaBrandAccountCreation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + RetailMediaBrandAccountCreation.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceOfRetailMediaBrandAccountCreation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceOfRetailMediaBrandAccountCreation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceOfRetailMediaBrandAccountCreation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceOfRetailMediaBrandAccountCreation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceOfRetailMediaBrandAccountCreation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceOfRetailMediaBrandAccountCreation given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceOfRetailMediaBrandAccountCreation + * @throws IOException if the JSON string is invalid with respect to ValueResourceOfRetailMediaBrandAccountCreation + */ + public static ValueResourceOfRetailMediaBrandAccountCreation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceOfRetailMediaBrandAccountCreation.class); + } + + /** + * Convert an instance of ValueResourceOfRetailMediaBrandAccountCreation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaBrands.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaBrands.java new file mode 100644 index 00000000..e76509d0 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaBrands.java @@ -0,0 +1,251 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaBrands; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceOfRetailMediaBrands { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private RetailMediaBrands attributes; + + public ValueResourceOfRetailMediaBrands() { + } + + public ValueResourceOfRetailMediaBrands type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public ValueResourceOfRetailMediaBrands attributes(RetailMediaBrands attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public RetailMediaBrands getAttributes() { + return attributes; + } + + + public void setAttributes(RetailMediaBrands attributes) { + this.attributes = attributes; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceOfRetailMediaBrands valueResourceOfRetailMediaBrands = (ValueResourceOfRetailMediaBrands) o; + return Objects.equals(this.type, valueResourceOfRetailMediaBrands.type) && + Objects.equals(this.attributes, valueResourceOfRetailMediaBrands.attributes); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValueResourceOfRetailMediaBrands {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceOfRetailMediaBrands + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceOfRetailMediaBrands.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceOfRetailMediaBrands is not found in the empty JSON string", ValueResourceOfRetailMediaBrands.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceOfRetailMediaBrands.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceOfRetailMediaBrands` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + RetailMediaBrands.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceOfRetailMediaBrands.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceOfRetailMediaBrands' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceOfRetailMediaBrands.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceOfRetailMediaBrands value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceOfRetailMediaBrands read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceOfRetailMediaBrands given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceOfRetailMediaBrands + * @throws IOException if the JSON string is invalid with respect to ValueResourceOfRetailMediaBrands + */ + public static ValueResourceOfRetailMediaBrands fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceOfRetailMediaBrands.class); + } + + /** + * Convert an instance of ValueResourceOfRetailMediaBrands to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaSeller.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaSeller.java new file mode 100644 index 00000000..7baae19b --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaSeller.java @@ -0,0 +1,251 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaSeller; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceOfRetailMediaSeller { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private RetailMediaSeller attributes; + + public ValueResourceOfRetailMediaSeller() { + } + + public ValueResourceOfRetailMediaSeller type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public ValueResourceOfRetailMediaSeller attributes(RetailMediaSeller attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public RetailMediaSeller getAttributes() { + return attributes; + } + + + public void setAttributes(RetailMediaSeller attributes) { + this.attributes = attributes; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceOfRetailMediaSeller valueResourceOfRetailMediaSeller = (ValueResourceOfRetailMediaSeller) o; + return Objects.equals(this.type, valueResourceOfRetailMediaSeller.type) && + Objects.equals(this.attributes, valueResourceOfRetailMediaSeller.attributes); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValueResourceOfRetailMediaSeller {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceOfRetailMediaSeller + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceOfRetailMediaSeller.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceOfRetailMediaSeller is not found in the empty JSON string", ValueResourceOfRetailMediaSeller.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceOfRetailMediaSeller.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceOfRetailMediaSeller` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + RetailMediaSeller.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceOfRetailMediaSeller.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceOfRetailMediaSeller' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceOfRetailMediaSeller.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceOfRetailMediaSeller value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceOfRetailMediaSeller read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceOfRetailMediaSeller given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceOfRetailMediaSeller + * @throws IOException if the JSON string is invalid with respect to ValueResourceOfRetailMediaSeller + */ + public static ValueResourceOfRetailMediaSeller fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceOfRetailMediaSeller.class); + } + + /** + * Convert an instance of ValueResourceOfRetailMediaSeller to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaSellerAccountCreation.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaSellerAccountCreation.java new file mode 100644 index 00000000..c3a478c2 --- /dev/null +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOfRetailMediaSellerAccountCreation.java @@ -0,0 +1,251 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: 2024-10 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.v2024_10.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.v2024_10.model.RetailMediaSellerAccountCreation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.v2024_10.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceOfRetailMediaSellerAccountCreation { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private RetailMediaSellerAccountCreation attributes; + + public ValueResourceOfRetailMediaSellerAccountCreation() { + } + + public ValueResourceOfRetailMediaSellerAccountCreation type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public ValueResourceOfRetailMediaSellerAccountCreation attributes(RetailMediaSellerAccountCreation attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public RetailMediaSellerAccountCreation getAttributes() { + return attributes; + } + + + public void setAttributes(RetailMediaSellerAccountCreation attributes) { + this.attributes = attributes; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceOfRetailMediaSellerAccountCreation valueResourceOfRetailMediaSellerAccountCreation = (ValueResourceOfRetailMediaSellerAccountCreation) o; + return Objects.equals(this.type, valueResourceOfRetailMediaSellerAccountCreation.type) && + Objects.equals(this.attributes, valueResourceOfRetailMediaSellerAccountCreation.attributes); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValueResourceOfRetailMediaSellerAccountCreation {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceOfRetailMediaSellerAccountCreation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceOfRetailMediaSellerAccountCreation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceOfRetailMediaSellerAccountCreation is not found in the empty JSON string", ValueResourceOfRetailMediaSellerAccountCreation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceOfRetailMediaSellerAccountCreation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceOfRetailMediaSellerAccountCreation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + RetailMediaSellerAccountCreation.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceOfRetailMediaSellerAccountCreation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceOfRetailMediaSellerAccountCreation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceOfRetailMediaSellerAccountCreation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceOfRetailMediaSellerAccountCreation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceOfRetailMediaSellerAccountCreation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceOfRetailMediaSellerAccountCreation given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceOfRetailMediaSellerAccountCreation + * @throws IOException if the JSON string is invalid with respect to ValueResourceOfRetailMediaSellerAccountCreation + */ + public static ValueResourceOfRetailMediaSellerAccountCreation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceOfRetailMediaSellerAccountCreation.class); + } + + /** + * Convert an instance of ValueResourceOfRetailMediaSellerAccountCreation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java similarity index 97% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java index a0d57677..96d61e62 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.CommonProblem; -import com.criteo.api.retailmedia.preview.model.ValueResourceOfCampaignBudgetOverrides; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfCampaignBudgetOverrides; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value. diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfLineItemBudgetOverrides.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOutcomeOfLineItemBudgetOverrides.java similarity index 97% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfLineItemBudgetOverrides.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOutcomeOfLineItemBudgetOverrides.java index a27be804..285ce4d4 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfLineItemBudgetOverrides.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueResourceOutcomeOfLineItemBudgetOverrides.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.preview.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.CommonProblem; -import com.criteo.api.retailmedia.preview.model.ValueResourceOfLineItemBudgetOverrides; +import com.criteo.api.retailmedia.v2024_10.model.CommonProblem; +import com.criteo.api.retailmedia.v2024_10.model.ValueResourceOfLineItemBudgetOverrides; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.preview.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value. diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.java index 9506e02c..7a97d128 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalAddToBasketIdsUpdateModel202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalAddToBasketIdsUpdateModel202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAddToBasketTarget202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAddToBasketTarget202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAddToBasketTarget202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAddToBasketTarget202110.java index 05f19414..6a94e76d 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAddToBasketTarget202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAddToBasketTarget202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalAddToBasketTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalAddToBasketTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAudienceIdsUpdateModel202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAudienceIdsUpdateModel202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAudienceIdsUpdateModel202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAudienceIdsUpdateModel202110.java index 2553dd94..eeae30dc 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAudienceIdsUpdateModel202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAudienceIdsUpdateModel202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalAudienceIdsUpdateModel202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalAudienceIdsUpdateModel202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAudienceTarget202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAudienceTarget202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAudienceTarget202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAudienceTarget202110.java index ceda441e..53c97302 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfAudienceTarget202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfAudienceTarget202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalAudienceTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalAudienceTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfKeywordTarget202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfKeywordTarget202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfKeywordTarget202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfKeywordTarget202110.java index 9f03ecbe..acffe6b9 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfKeywordTarget202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfKeywordTarget202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalKeywordTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalKeywordTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfStoreIdsUpdateModel202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfStoreIdsUpdateModel202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfStoreIdsUpdateModel202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfStoreIdsUpdateModel202110.java index 013c239e..67334312 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfStoreIdsUpdateModel202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfStoreIdsUpdateModel202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalStoreIdsUpdateModel202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalStoreIdsUpdateModel202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type resource diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfStoreTarget202110.java b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfStoreTarget202110.java similarity index 98% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfStoreTarget202110.java rename to sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfStoreTarget202110.java index 22f39193..e27f6f2d 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ValueTypeResourceOfStoreTarget202110.java +++ b/sdks/retailmedia_2024-10/src/main/java/com/criteo/api/retailmedia/v2024_10/model/ValueTypeResourceOfStoreTarget202110.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: 2024-10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.v2024_10.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExternalStoreTarget202110; +import com.criteo.api.retailmedia.v2024_10.model.ExternalStoreTarget202110; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,7 +42,7 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.v2024_10.JSON; /** * Data model for a value type resource diff --git a/sdks/retailmedia_2023-07/src/test/java/com/criteo/api/retailmedia/v2023_07/ExampleApplication.java b/sdks/retailmedia_2024-10/src/test/java/com/criteo/api/retailmedia/v2024_10/ExampleApplication.java similarity index 82% rename from sdks/retailmedia_2023-07/src/test/java/com/criteo/api/retailmedia/v2023_07/ExampleApplication.java rename to sdks/retailmedia_2024-10/src/test/java/com/criteo/api/retailmedia/v2024_10/ExampleApplication.java index 66b48191..cf2e7040 100644 --- a/sdks/retailmedia_2023-07/src/test/java/com/criteo/api/retailmedia/v2023_07/ExampleApplication.java +++ b/sdks/retailmedia_2024-10/src/test/java/com/criteo/api/retailmedia/v2024_10/ExampleApplication.java @@ -1,12 +1,12 @@ -package com.criteo.api.retailmedia.v2023_07; - -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.ApiResponse; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.api.GatewayApi; -import com.criteo.api.retailmedia.v2023_07.model.*; +package com.criteo.api.retailmedia.v2024_10; + +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.ApiResponse; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.api.GatewayApi; +import com.criteo.api.retailmedia.v2024_10.model.*; public class ExampleApplication { diff --git a/sdks/retailmedia_2023-07/src/test/java/com/criteo/api/retailmedia/v2023_07/GatewayApiTest.java b/sdks/retailmedia_2024-10/src/test/java/com/criteo/api/retailmedia/v2024_10/GatewayApiTest.java similarity index 82% rename from sdks/retailmedia_2023-07/src/test/java/com/criteo/api/retailmedia/v2023_07/GatewayApiTest.java rename to sdks/retailmedia_2024-10/src/test/java/com/criteo/api/retailmedia/v2024_10/GatewayApiTest.java index 467d2e82..76b694c6 100644 --- a/sdks/retailmedia_2023-07/src/test/java/com/criteo/api/retailmedia/v2023_07/GatewayApiTest.java +++ b/sdks/retailmedia_2024-10/src/test/java/com/criteo/api/retailmedia/v2024_10/GatewayApiTest.java @@ -1,4 +1,4 @@ -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.v2024_10; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -7,14 +7,14 @@ import java.lang.*; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.ApiResponse; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.ExampleApplication; -import com.criteo.api.retailmedia.v2023_07.api.GatewayApi; -import com.criteo.api.retailmedia.v2023_07.model.ApplicationSummaryModelResponse; +import com.criteo.api.retailmedia.v2024_10.ApiClient; +import com.criteo.api.retailmedia.v2024_10.ApiClientBuilder; +import com.criteo.api.retailmedia.v2024_10.ApiException; +import com.criteo.api.retailmedia.v2024_10.ApiResponse; +import com.criteo.api.retailmedia.v2024_10.Configuration; +import com.criteo.api.retailmedia.v2024_10.ExampleApplication; +import com.criteo.api.retailmedia.v2024_10.api.GatewayApi; +import com.criteo.api.retailmedia.v2024_10.model.ApplicationSummaryModelResponse; public class GatewayApiTest { private ApiClient client; diff --git a/sdks/retailmedia_preview/.openapi-generator/FILES b/sdks/retailmedia_preview/.openapi-generator/FILES index 35fdaa26..0cf24adc 100644 --- a/sdks/retailmedia_preview/.openapi-generator/FILES +++ b/sdks/retailmedia_preview/.openapi-generator/FILES @@ -36,13 +36,12 @@ docs/BalanceHistoryChangeDataCaptureV1.md docs/BalanceResponseV2.md docs/BalanceResponseV2Response.md docs/BatchAcceptedResponse.md +docs/BotMessage.md +docs/Botmessage.md docs/Brand.md docs/BrandPreview.md docs/BrandPreviewListResponse.md docs/CampaignApi.md -docs/CampaignBudgetOverrides.md -docs/CampaignDailyBudgetOverride.md -docs/CampaignMonthlyBudgetOverride.md docs/CatalogApi.md docs/Category.md docs/Category202204.md @@ -60,7 +59,8 @@ docs/CreateBalanceV2Request.md docs/CreativeV2ListResponse.md docs/CreativeV2Response.md docs/CustomAttribute.md -docs/DailyLineItemBudgetOverride.md +docs/EntityResourceCollectionOutcomeOfRetailMediaAccount.md +docs/EntityResourceOfRetailMediaAccount.md docs/ErrorCodeResponse.md docs/ExportReportColumn.md docs/ExportReportMetaData.md @@ -84,6 +84,7 @@ docs/ExternalPreferredLineItemUpdateModelV2.md docs/ExternalPreferredLineItemV2.md docs/ExternalProductButtonRequest.md docs/ExternalProductButtonResponse.md +docs/ExternalRetailMediaAccount.md docs/ExternalRetailer.md docs/ExternalTemplateVariableValue.md docs/ExternalTextVariableValue.md @@ -93,6 +94,10 @@ docs/GatewayApi.md docs/GrantConsentInput.md docs/GrantConsentModel.md docs/GrantConsentModelValueResource.md +docs/HttpValidationError.md +docs/InbotDiscussion.md +docs/InbotDiscussionBodyModel.md +docs/InbotDiscussionDataInstanceModel.md docs/InputKeywords.md docs/InputKeywordsModel.md docs/InputResourceOfPreferredLineItemCreateModelV2.md @@ -117,14 +122,18 @@ docs/KeywordsModelResource.md docs/KeywordsModelResponse.md docs/LineItemBidMultipliersV2Request.md docs/LineItemBidMultipliersV2Response.md -docs/LineItemBudgetOverrides.md docs/LineItemProductStatus.md +docs/LocationInner.md docs/LoyaltyPoints.md docs/MatchTypeModel.md +docs/Message.md +docs/MessageBodyModel.md +docs/MessageDataInstanceModel.md +docs/MessageError.md docs/Metadata.md -docs/MonthlyLineItemBudegetOverride.md docs/NegotiationStateModel.md docs/NillableString.md +docs/OnSiteRecommendationApi.md docs/PageMetadata.md docs/PageOfBalanceHistoryChangeDataCaptureV1.md docs/PageOfInsertionOrderHistoryChangeDataCaptureV2.md @@ -144,6 +153,7 @@ docs/ProductButtonRequest.md docs/ProductImporterError.md docs/ProductImporterWarning.md docs/ProductMetadata.md +docs/ProductRecommendation.md docs/ProductResourceOutcome.md docs/ProductShipping.md docs/ProductShippingDimension.md @@ -164,6 +174,8 @@ docs/RecommendedKeywordsResult.md docs/ReportDataResponseResource.md docs/ReportDetailError.md docs/ReportDetailErrors.md +docs/ReportDetailWarning.md +docs/ReportDetailWarnings.md docs/ReportOkResponse.md docs/ReportOutcome.md docs/ReportResponse.md @@ -203,6 +215,14 @@ docs/RetailMediaContactlistOperationResponseAttributesAttributes.md docs/RetailMediaSeller.md docs/RetailMediaSellerAccountCreation.md docs/ReviewStateModel.md +docs/RmAlgebraNodeV1.md +docs/RmAudienceEntityV1.md +docs/RmAudienceEntityV1Resource.md +docs/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md +docs/RmAudienceSearchEntityV1.md +docs/RmAudienceSearchEntityV1Resource.md +docs/RmAudienceSearchInputV1.md +docs/RmAudienceSearchMetadataV1.md docs/RmAudienceSegmentBulkCreateInputV1.md docs/RmAudienceSegmentBulkDeleteInputV1.md docs/RmAudienceSegmentBulkUpdateInputV1.md @@ -226,17 +246,7 @@ docs/RmContactListStatisticsEntityV1.md docs/RmContactListStatisticsEntityV1Resource.md docs/RmContactListStatisticsEntityV1Response.md docs/RmContactListV1.md -docs/RmLegacyAudienceGetEntityV1.md -docs/RmLegacyAudienceGetEntityV1ListResponse.md -docs/RmLegacyAudienceGetEntityV1Resource.md -docs/RmLegacyAudienceGetEntityV2.md -docs/RmLegacyAudienceGetEntityV2ListResponse.md -docs/RmLegacyAudienceGetEntityV2Resource.md -docs/RmLegacyAudienceUserBehaviorDetailsV2.md -docs/RmLegacySegmentCustomerList.md -docs/RmLegacySegmentUserBehaviorV1.md -docs/RmLegacySegmentUserBehaviorV2.md -docs/RmUserBehaviorV1.md +docs/RmEventsV1.md docs/RmcaCommonProblem.md docs/SellerCatalogRequest.md docs/SellerIdentifier.md @@ -274,18 +284,13 @@ docs/SyncLineItemsReportRequest.md docs/SyncLineItemsReportResource.md docs/UpdateBalanceModelV2.md docs/UpdateBalanceModelV2Request.md +docs/ValidationError.md docs/ValueResourceCollectionInputOfRetailMediaSeller.md docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md -docs/ValueResourceInputOfCampaignBudgetOverrides.md -docs/ValueResourceInputOfLineItemBudgetOverrides.md docs/ValueResourceInputOfRetailMediaSellerAccountCreation.md -docs/ValueResourceOfCampaignBudgetOverrides.md -docs/ValueResourceOfLineItemBudgetOverrides.md docs/ValueResourceOfRecommendedKeywordsResult.md docs/ValueResourceOfRetailMediaSeller.md docs/ValueResourceOfRetailMediaSellerAccountCreation.md -docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md -docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md docs/ValueResourceOutcomeOfRecommendedKeywordsResult.md git_push.sh gradle.properties @@ -317,6 +322,7 @@ src/main/java/com/criteo/api/retailmedia/preview/api/BalanceApi.java src/main/java/com/criteo/api/retailmedia/preview/api/CampaignApi.java src/main/java/com/criteo/api/retailmedia/preview/api/CatalogApi.java src/main/java/com/criteo/api/retailmedia/preview/api/GatewayApi.java +src/main/java/com/criteo/api/retailmedia/preview/api/OnSiteRecommendationApi.java src/main/java/com/criteo/api/retailmedia/preview/auth/ApiKeyAuth.java src/main/java/com/criteo/api/retailmedia/preview/auth/Authentication.java src/main/java/com/criteo/api/retailmedia/preview/auth/HttpBasicAuth.java @@ -352,12 +358,11 @@ src/main/java/com/criteo/api/retailmedia/preview/model/BalanceHistoryChangeDataC src/main/java/com/criteo/api/retailmedia/preview/model/BalanceResponseV2.java src/main/java/com/criteo/api/retailmedia/preview/model/BalanceResponseV2Response.java src/main/java/com/criteo/api/retailmedia/preview/model/BatchAcceptedResponse.java +src/main/java/com/criteo/api/retailmedia/preview/model/BotMessage.java +src/main/java/com/criteo/api/retailmedia/preview/model/Botmessage.java src/main/java/com/criteo/api/retailmedia/preview/model/Brand.java src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreview.java src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreviewListResponse.java -src/main/java/com/criteo/api/retailmedia/preview/model/CampaignBudgetOverrides.java -src/main/java/com/criteo/api/retailmedia/preview/model/CampaignDailyBudgetOverride.java -src/main/java/com/criteo/api/retailmedia/preview/model/CampaignMonthlyBudgetOverride.java src/main/java/com/criteo/api/retailmedia/preview/model/Category.java src/main/java/com/criteo/api/retailmedia/preview/model/Category202204.java src/main/java/com/criteo/api/retailmedia/preview/model/ChangeDatesOfBalanceV2.java @@ -374,7 +379,8 @@ src/main/java/com/criteo/api/retailmedia/preview/model/CreateBalanceV2Request.ja src/main/java/com/criteo/api/retailmedia/preview/model/CreativeV2ListResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/CreativeV2Response.java src/main/java/com/criteo/api/retailmedia/preview/model/CustomAttribute.java -src/main/java/com/criteo/api/retailmedia/preview/model/DailyLineItemBudgetOverride.java +src/main/java/com/criteo/api/retailmedia/preview/model/EntityResourceCollectionOutcomeOfRetailMediaAccount.java +src/main/java/com/criteo/api/retailmedia/preview/model/EntityResourceOfRetailMediaAccount.java src/main/java/com/criteo/api/retailmedia/preview/model/ErrorCodeResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/ExportReportColumn.java src/main/java/com/criteo/api/retailmedia/preview/model/ExportReportMetaData.java @@ -398,6 +404,7 @@ src/main/java/com/criteo/api/retailmedia/preview/model/ExternalPreferredLineItem src/main/java/com/criteo/api/retailmedia/preview/model/ExternalPreferredLineItemV2.java src/main/java/com/criteo/api/retailmedia/preview/model/ExternalProductButtonRequest.java src/main/java/com/criteo/api/retailmedia/preview/model/ExternalProductButtonResponse.java +src/main/java/com/criteo/api/retailmedia/preview/model/ExternalRetailMediaAccount.java src/main/java/com/criteo/api/retailmedia/preview/model/ExternalRetailer.java src/main/java/com/criteo/api/retailmedia/preview/model/ExternalTemplateVariableValue.java src/main/java/com/criteo/api/retailmedia/preview/model/ExternalTextVariableValue.java @@ -406,6 +413,10 @@ src/main/java/com/criteo/api/retailmedia/preview/model/FailResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/GrantConsentInput.java src/main/java/com/criteo/api/retailmedia/preview/model/GrantConsentModel.java src/main/java/com/criteo/api/retailmedia/preview/model/GrantConsentModelValueResource.java +src/main/java/com/criteo/api/retailmedia/preview/model/HttpValidationError.java +src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussion.java +src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussionBodyModel.java +src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussionDataInstanceModel.java src/main/java/com/criteo/api/retailmedia/preview/model/InputKeywords.java src/main/java/com/criteo/api/retailmedia/preview/model/InputKeywordsModel.java src/main/java/com/criteo/api/retailmedia/preview/model/InputResourceOfPreferredLineItemCreateModelV2.java @@ -430,12 +441,15 @@ src/main/java/com/criteo/api/retailmedia/preview/model/KeywordsModelResource.jav src/main/java/com/criteo/api/retailmedia/preview/model/KeywordsModelResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersV2Request.java src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersV2Response.java -src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBudgetOverrides.java src/main/java/com/criteo/api/retailmedia/preview/model/LineItemProductStatus.java +src/main/java/com/criteo/api/retailmedia/preview/model/LocationInner.java src/main/java/com/criteo/api/retailmedia/preview/model/LoyaltyPoints.java src/main/java/com/criteo/api/retailmedia/preview/model/MatchTypeModel.java +src/main/java/com/criteo/api/retailmedia/preview/model/Message.java +src/main/java/com/criteo/api/retailmedia/preview/model/MessageBodyModel.java +src/main/java/com/criteo/api/retailmedia/preview/model/MessageDataInstanceModel.java +src/main/java/com/criteo/api/retailmedia/preview/model/MessageError.java src/main/java/com/criteo/api/retailmedia/preview/model/Metadata.java -src/main/java/com/criteo/api/retailmedia/preview/model/MonthlyLineItemBudegetOverride.java src/main/java/com/criteo/api/retailmedia/preview/model/NegotiationStateModel.java src/main/java/com/criteo/api/retailmedia/preview/model/NillableString.java src/main/java/com/criteo/api/retailmedia/preview/model/PageMetadata.java @@ -457,6 +471,7 @@ src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonRequest.java src/main/java/com/criteo/api/retailmedia/preview/model/ProductImporterError.java src/main/java/com/criteo/api/retailmedia/preview/model/ProductImporterWarning.java src/main/java/com/criteo/api/retailmedia/preview/model/ProductMetadata.java +src/main/java/com/criteo/api/retailmedia/preview/model/ProductRecommendation.java src/main/java/com/criteo/api/retailmedia/preview/model/ProductResourceOutcome.java src/main/java/com/criteo/api/retailmedia/preview/model/ProductShipping.java src/main/java/com/criteo/api/retailmedia/preview/model/ProductShippingDimension.java @@ -477,6 +492,8 @@ src/main/java/com/criteo/api/retailmedia/preview/model/RecommendedKeywordsResult src/main/java/com/criteo/api/retailmedia/preview/model/ReportDataResponseResource.java src/main/java/com/criteo/api/retailmedia/preview/model/ReportDetailError.java src/main/java/com/criteo/api/retailmedia/preview/model/ReportDetailErrors.java +src/main/java/com/criteo/api/retailmedia/preview/model/ReportDetailWarning.java +src/main/java/com/criteo/api/retailmedia/preview/model/ReportDetailWarnings.java src/main/java/com/criteo/api/retailmedia/preview/model/ReportOkResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/ReportOutcome.java src/main/java/com/criteo/api/retailmedia/preview/model/ReportResponse.java @@ -516,6 +533,14 @@ src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaContactlistOpe src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaSeller.java src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaSellerAccountCreation.java src/main/java/com/criteo/api/retailmedia/preview/model/ReviewStateModel.java +src/main/java/com/criteo/api/retailmedia/preview/model/RmAlgebraNodeV1.java +src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1.java +src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1Resource.java +src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.java +src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchEntityV1.java +src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchEntityV1Resource.java +src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchInputV1.java +src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchMetadataV1.java src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkCreateInputV1.java src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkDeleteInputV1.java src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkUpdateInputV1.java @@ -539,17 +564,7 @@ src/main/java/com/criteo/api/retailmedia/preview/model/RmContactListStatisticsEn src/main/java/com/criteo/api/retailmedia/preview/model/RmContactListStatisticsEntityV1Resource.java src/main/java/com/criteo/api/retailmedia/preview/model/RmContactListStatisticsEntityV1Response.java src/main/java/com/criteo/api/retailmedia/preview/model/RmContactListV1.java -src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1.java -src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1ListResponse.java -src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1Resource.java -src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2.java -src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2ListResponse.java -src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2Resource.java -src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceUserBehaviorDetailsV2.java -src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentCustomerList.java -src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentUserBehaviorV1.java -src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentUserBehaviorV2.java -src/main/java/com/criteo/api/retailmedia/preview/model/RmUserBehaviorV1.java +src/main/java/com/criteo/api/retailmedia/preview/model/RmEventsV1.java src/main/java/com/criteo/api/retailmedia/preview/model/RmcaCommonProblem.java src/main/java/com/criteo/api/retailmedia/preview/model/SellerCatalogRequest.java src/main/java/com/criteo/api/retailmedia/preview/model/SellerIdentifier.java @@ -587,18 +602,13 @@ src/main/java/com/criteo/api/retailmedia/preview/model/SyncLineItemsReportReques src/main/java/com/criteo/api/retailmedia/preview/model/SyncLineItemsReportResource.java src/main/java/com/criteo/api/retailmedia/preview/model/UpdateBalanceModelV2.java src/main/java/com/criteo/api/retailmedia/preview/model/UpdateBalanceModelV2Request.java +src/main/java/com/criteo/api/retailmedia/preview/model/ValidationError.java src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceCollectionInputOfRetailMediaSeller.java src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceCollectionOutcomeOfRetailMediaSeller.java -src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceInputOfCampaignBudgetOverrides.java -src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceInputOfLineItemBudgetOverrides.java src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceInputOfRetailMediaSellerAccountCreation.java -src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfCampaignBudgetOverrides.java -src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfLineItemBudgetOverrides.java src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfRecommendedKeywordsResult.java src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfRetailMediaSeller.java src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfRetailMediaSellerAccountCreation.java -src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java -src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfLineItemBudgetOverrides.java src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfRecommendedKeywordsResult.java src/test/java/com/criteo/api/retailmedia/preview/ExampleApplication.java src/test/java/com/criteo/api/retailmedia/preview/GatewayApiTest.java diff --git a/sdks/retailmedia_preview/README.md b/sdks/retailmedia_preview/README.md index 507a928f..019f130c 100644 --- a/sdks/retailmedia_preview/README.md +++ b/sdks/retailmedia_preview/README.md @@ -4,11 +4,11 @@ API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. -More information: [https://developers.criteo.com/](https://developers.criteo.com/) +More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/). Criteo API -- Package version: 0.0.240826 +- Package version: 0.0.241029 *Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* @@ -38,7 +38,7 @@ Add this dependency to your project's POM: com.criteo criteo-api-retailmedia-sdk - 0.0.240826 + 0.0.241029 compile ``` @@ -48,7 +48,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.criteo:criteo-api-retailmedia-sdk:0.0.240826" +compile "com.criteo:criteo-api-retailmedia-sdk:0.0.241029" ``` ### Others @@ -61,7 +61,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* `build/libs/criteo-api-retailmedia-sdk-0.0.240826.jar` +* `build/libs/criteo-api-retailmedia-sdk-0.0.241029.jar` ## Example @@ -74,6 +74,7 @@ All URIs are relative to *https://api.criteo.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *AccountsApi* | [**createPrivateMarketDemandSellerAccount**](docs/AccountsApi.md#createPrivateMarketDemandSellerAccount) | **POST** /preview/retail-media/account-management/accounts/{accountId}/create-seller-account | +*AccountsApi* | [**getApiExternalV1AccountPrivateMarketChildAccountsByAccountId**](docs/AccountsApi.md#getApiExternalV1AccountPrivateMarketChildAccountsByAccountId) | **GET** /preview/retail-media/account-management/accounts/{accountId}/private-market-child-accounts | *AccountsApi* | [**getApiV1ExternalAccounts**](docs/AccountsApi.md#getApiV1ExternalAccounts) | **GET** /preview/retail-media/accounts | *AccountsApi* | [**grantConsent**](docs/AccountsApi.md#grantConsent) | **POST** /preview/retail-media/accounts/{accountId}/grant-consent | *AccountsApi* | [**updateSellers**](docs/AccountsApi.md#updateSellers) | **PUT** /preview/retail-media/account-management/accounts/{accountId}/sellers | @@ -85,14 +86,13 @@ Class | Method | HTTP request | Description *AnalyticsApi* | [**generateSyncLineItemsReport**](docs/AnalyticsApi.md#generateSyncLineItemsReport) | **POST** /preview/retail-media/reports/sync/line-items | *AnalyticsApi* | [**getAsyncExportOutput**](docs/AnalyticsApi.md#getAsyncExportOutput) | **GET** /preview/retail-media/reports/{reportId}/output | *AnalyticsApi* | [**getAsyncExportStatus**](docs/AnalyticsApi.md#getAsyncExportStatus) | **GET** /preview/retail-media/reports/{reportId}/status | -*AudienceApi* | [**bulkCreateV1**](docs/AudienceApi.md#bulkCreateV1) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/create | -*AudienceApi* | [**bulkDeleteV1**](docs/AudienceApi.md#bulkDeleteV1) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/delete | -*AudienceApi* | [**bulkUpdateV1**](docs/AudienceApi.md#bulkUpdateV1) | **PATCH** /preview/retail-media/accounts/{account-id}/audience-segments | +*AudienceApi* | [**bulkCreateAudienceSegments**](docs/AudienceApi.md#bulkCreateAudienceSegments) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/create | +*AudienceApi* | [**bulkDeleteAudienceSegments**](docs/AudienceApi.md#bulkDeleteAudienceSegments) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/delete | +*AudienceApi* | [**bulkUpdateAudienceSegments**](docs/AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /preview/retail-media/accounts/{account-id}/audience-segments | *AudienceApi* | [**deleteContactListIdentifiers**](docs/AudienceApi.md#deleteContactListIdentifiers) | **POST** /preview/retail-media/audience-segments/{audience-segment-id}/contact-list/clear | -*AudienceApi* | [**getContactListStatisticsV1**](docs/AudienceApi.md#getContactListStatisticsV1) | **GET** /preview/retail-media/accounts/{account-id}/audience-segments/{audience-segment-id}/contact-list | -*AudienceApi* | [**legacyGetAudienceV1**](docs/AudienceApi.md#legacyGetAudienceV1) | **GET** /preview/retail-media/accounts/{accountId}/audiences | -*AudienceApi* | [**legacyGetAudienceV2**](docs/AudienceApi.md#legacyGetAudienceV2) | **GET** /preview/retail-media/v2/accounts/{accountId}/audiences | -*AudienceApi* | [**searchV1**](docs/AudienceApi.md#searchV1) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/search | +*AudienceApi* | [**getAudienceSegmentContactListStatistics**](docs/AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /preview/retail-media/accounts/{account-id}/audience-segments/{audience-segment-id}/contact-list | +*AudienceApi* | [**searchAudienceSegments**](docs/AudienceApi.md#searchAudienceSegments) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/search | +*AudienceApi* | [**searchAudiences**](docs/AudienceApi.md#searchAudiences) | **POST** /preview/retail-media/accounts/{account-id}/audiences/search | *AudienceApi* | [**updateContactListIdentifiers**](docs/AudienceApi.md#updateContactListIdentifiers) | **POST** /preview/retail-media/audience-segments/{audience-segment-id}/contact-list/add-remove | *BalanceApi* | [**getApiV2ExternalAccountBalancesByAccountId**](docs/BalanceApi.md#getApiV2ExternalAccountBalancesByAccountId) | **GET** /preview/retail-media/accounts/{account-id}/balances | *BalanceApi* | [**getApiV2ExternalAccountByAccountIdBalancesbalanceId**](docs/BalanceApi.md#getApiV2ExternalAccountByAccountIdBalancesbalanceId) | **GET** /preview/retail-media/accounts/{account-id}/balances/{balance-id} | @@ -120,9 +120,7 @@ Class | Method | HTTP request | Description *CampaignApi* | [**getApiV2ExternalCampaignPreferredLineItemsByCampaignId**](docs/CampaignApi.md#getApiV2ExternalCampaignPreferredLineItemsByCampaignId) | **GET** /preview/retail-media/campaigns/{campaign-id}/preferred-line-items | *CampaignApi* | [**getApiV2ExternalLineItemBidMultipliersByLineItemId**](docs/CampaignApi.md#getApiV2ExternalLineItemBidMultipliersByLineItemId) | **GET** /preview/retail-media/line-items/{line-item-id}/bid-multipliers | *CampaignApi* | [**getApiV2ExternalPreferredLineItemByLineItemId**](docs/CampaignApi.md#getApiV2ExternalPreferredLineItemByLineItemId) | **GET** /preview/retail-media/preferred-line-items/{line-item-id} | -*CampaignApi* | [**getCampaignBudgetOverrides**](docs/CampaignApi.md#getCampaignBudgetOverrides) | **GET** /preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides | *CampaignApi* | [**getInsertionOrderHistoryChangeDataCaptureV2**](docs/CampaignApi.md#getInsertionOrderHistoryChangeDataCaptureV2) | **GET** /preview/retail-media/insertion-order-history/{insertionOrderId}/change-data-capture | -*CampaignApi* | [**getLineItemBudgetOverrides**](docs/CampaignApi.md#getLineItemBudgetOverrides) | **GET** /preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides | *CampaignApi* | [**getRecommendedKeywords**](docs/CampaignApi.md#getRecommendedKeywords) | **GET** /preview/retail-media/line-items/{externalLineItemId}/keywords/recommended | *CampaignApi* | [**getSkuByProductId**](docs/CampaignApi.md#getSkuByProductId) | **POST** /preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id | *CampaignApi* | [**pausePromotedProducts**](docs/CampaignApi.md#pausePromotedProducts) | **POST** /preview/retail-media/line-items/{line-item-id}/products/pause | @@ -142,11 +140,10 @@ Class | Method | HTTP request | Description *CampaignApi* | [**setKeywordBids**](docs/CampaignApi.md#setKeywordBids) | **POST** /preview/retail-media/line-items/{id}/keywords/set-bid | *CampaignApi* | [**submitProposal**](docs/CampaignApi.md#submitProposal) | **POST** /preview/retail-media/preferred-deal-line-items/{id}/proposal/submit | *CampaignApi* | [**unpausePromotedProducts**](docs/CampaignApi.md#unpausePromotedProducts) | **POST** /preview/retail-media/line-items/{line-item-id}/products/unpause | -*CampaignApi* | [**updateCampaignBudgetOverrides**](docs/CampaignApi.md#updateCampaignBudgetOverrides) | **PUT** /preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides | -*CampaignApi* | [**updateLineItemBudgetOverrides**](docs/CampaignApi.md#updateLineItemBudgetOverrides) | **PUT** /preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides | *CatalogApi* | [**previewRetailMediaCatalogProductsBatchPost**](docs/CatalogApi.md#previewRetailMediaCatalogProductsBatchPost) | **POST** /preview/retail-media/catalog/products/batch | *CatalogApi* | [**previewRetailMediaCatalogProductsBatchReportOperationTokenGet**](docs/CatalogApi.md#previewRetailMediaCatalogProductsBatchReportOperationTokenGet) | **GET** /preview/retail-media/catalog/products/batch/report/{operation-token} | *GatewayApi* | [**getCurrentApplication**](docs/GatewayApi.md#getCurrentApplication) | **GET** /preview/retail-media/me | +*OnSiteRecommendationApi* | [**chatbotProductRecommendations**](docs/OnSiteRecommendationApi.md#chatbotProductRecommendations) | **POST** /preview/retail-media/chatbot-catalogs/{catalogid}/product-recommendations | ## Documentation for Models @@ -177,12 +174,11 @@ Class | Method | HTTP request | Description - [BalanceResponseV2](docs/BalanceResponseV2.md) - [BalanceResponseV2Response](docs/BalanceResponseV2Response.md) - [BatchAcceptedResponse](docs/BatchAcceptedResponse.md) + - [BotMessage](docs/BotMessage.md) + - [Botmessage](docs/Botmessage.md) - [Brand](docs/Brand.md) - [BrandPreview](docs/BrandPreview.md) - [BrandPreviewListResponse](docs/BrandPreviewListResponse.md) - - [CampaignBudgetOverrides](docs/CampaignBudgetOverrides.md) - - [CampaignDailyBudgetOverride](docs/CampaignDailyBudgetOverride.md) - - [CampaignMonthlyBudgetOverride](docs/CampaignMonthlyBudgetOverride.md) - [Category](docs/Category.md) - [Category202204](docs/Category202204.md) - [ChangeDatesOfBalanceV2](docs/ChangeDatesOfBalanceV2.md) @@ -199,7 +195,8 @@ Class | Method | HTTP request | Description - [CreativeV2ListResponse](docs/CreativeV2ListResponse.md) - [CreativeV2Response](docs/CreativeV2Response.md) - [CustomAttribute](docs/CustomAttribute.md) - - [DailyLineItemBudgetOverride](docs/DailyLineItemBudgetOverride.md) + - [EntityResourceCollectionOutcomeOfRetailMediaAccount](docs/EntityResourceCollectionOutcomeOfRetailMediaAccount.md) + - [EntityResourceOfRetailMediaAccount](docs/EntityResourceOfRetailMediaAccount.md) - [ErrorCodeResponse](docs/ErrorCodeResponse.md) - [ExportReportColumn](docs/ExportReportColumn.md) - [ExportReportMetaData](docs/ExportReportMetaData.md) @@ -223,6 +220,7 @@ Class | Method | HTTP request | Description - [ExternalPreferredLineItemV2](docs/ExternalPreferredLineItemV2.md) - [ExternalProductButtonRequest](docs/ExternalProductButtonRequest.md) - [ExternalProductButtonResponse](docs/ExternalProductButtonResponse.md) + - [ExternalRetailMediaAccount](docs/ExternalRetailMediaAccount.md) - [ExternalRetailer](docs/ExternalRetailer.md) - [ExternalTemplateVariableValue](docs/ExternalTemplateVariableValue.md) - [ExternalTextVariableValue](docs/ExternalTextVariableValue.md) @@ -231,6 +229,10 @@ Class | Method | HTTP request | Description - [GrantConsentInput](docs/GrantConsentInput.md) - [GrantConsentModel](docs/GrantConsentModel.md) - [GrantConsentModelValueResource](docs/GrantConsentModelValueResource.md) + - [HttpValidationError](docs/HttpValidationError.md) + - [InbotDiscussion](docs/InbotDiscussion.md) + - [InbotDiscussionBodyModel](docs/InbotDiscussionBodyModel.md) + - [InbotDiscussionDataInstanceModel](docs/InbotDiscussionDataInstanceModel.md) - [InputKeywords](docs/InputKeywords.md) - [InputKeywordsModel](docs/InputKeywordsModel.md) - [InputResourceOfPreferredLineItemCreateModelV2](docs/InputResourceOfPreferredLineItemCreateModelV2.md) @@ -255,12 +257,15 @@ Class | Method | HTTP request | Description - [KeywordsModelResponse](docs/KeywordsModelResponse.md) - [LineItemBidMultipliersV2Request](docs/LineItemBidMultipliersV2Request.md) - [LineItemBidMultipliersV2Response](docs/LineItemBidMultipliersV2Response.md) - - [LineItemBudgetOverrides](docs/LineItemBudgetOverrides.md) - [LineItemProductStatus](docs/LineItemProductStatus.md) + - [LocationInner](docs/LocationInner.md) - [LoyaltyPoints](docs/LoyaltyPoints.md) - [MatchTypeModel](docs/MatchTypeModel.md) + - [Message](docs/Message.md) + - [MessageBodyModel](docs/MessageBodyModel.md) + - [MessageDataInstanceModel](docs/MessageDataInstanceModel.md) + - [MessageError](docs/MessageError.md) - [Metadata](docs/Metadata.md) - - [MonthlyLineItemBudegetOverride](docs/MonthlyLineItemBudegetOverride.md) - [NegotiationStateModel](docs/NegotiationStateModel.md) - [NillableString](docs/NillableString.md) - [PageMetadata](docs/PageMetadata.md) @@ -282,6 +287,7 @@ Class | Method | HTTP request | Description - [ProductImporterError](docs/ProductImporterError.md) - [ProductImporterWarning](docs/ProductImporterWarning.md) - [ProductMetadata](docs/ProductMetadata.md) + - [ProductRecommendation](docs/ProductRecommendation.md) - [ProductResourceOutcome](docs/ProductResourceOutcome.md) - [ProductShipping](docs/ProductShipping.md) - [ProductShippingDimension](docs/ProductShippingDimension.md) @@ -302,6 +308,8 @@ Class | Method | HTTP request | Description - [ReportDataResponseResource](docs/ReportDataResponseResource.md) - [ReportDetailError](docs/ReportDetailError.md) - [ReportDetailErrors](docs/ReportDetailErrors.md) + - [ReportDetailWarning](docs/ReportDetailWarning.md) + - [ReportDetailWarnings](docs/ReportDetailWarnings.md) - [ReportOkResponse](docs/ReportOkResponse.md) - [ReportOutcome](docs/ReportOutcome.md) - [ReportResponse](docs/ReportResponse.md) @@ -341,6 +349,14 @@ Class | Method | HTTP request | Description - [RetailMediaSeller](docs/RetailMediaSeller.md) - [RetailMediaSellerAccountCreation](docs/RetailMediaSellerAccountCreation.md) - [ReviewStateModel](docs/ReviewStateModel.md) + - [RmAlgebraNodeV1](docs/RmAlgebraNodeV1.md) + - [RmAudienceEntityV1](docs/RmAudienceEntityV1.md) + - [RmAudienceEntityV1Resource](docs/RmAudienceEntityV1Resource.md) + - [RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse](docs/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md) + - [RmAudienceSearchEntityV1](docs/RmAudienceSearchEntityV1.md) + - [RmAudienceSearchEntityV1Resource](docs/RmAudienceSearchEntityV1Resource.md) + - [RmAudienceSearchInputV1](docs/RmAudienceSearchInputV1.md) + - [RmAudienceSearchMetadataV1](docs/RmAudienceSearchMetadataV1.md) - [RmAudienceSegmentBulkCreateInputV1](docs/RmAudienceSegmentBulkCreateInputV1.md) - [RmAudienceSegmentBulkDeleteInputV1](docs/RmAudienceSegmentBulkDeleteInputV1.md) - [RmAudienceSegmentBulkUpdateInputV1](docs/RmAudienceSegmentBulkUpdateInputV1.md) @@ -364,17 +380,7 @@ Class | Method | HTTP request | Description - [RmContactListStatisticsEntityV1Resource](docs/RmContactListStatisticsEntityV1Resource.md) - [RmContactListStatisticsEntityV1Response](docs/RmContactListStatisticsEntityV1Response.md) - [RmContactListV1](docs/RmContactListV1.md) - - [RmLegacyAudienceGetEntityV1](docs/RmLegacyAudienceGetEntityV1.md) - - [RmLegacyAudienceGetEntityV1ListResponse](docs/RmLegacyAudienceGetEntityV1ListResponse.md) - - [RmLegacyAudienceGetEntityV1Resource](docs/RmLegacyAudienceGetEntityV1Resource.md) - - [RmLegacyAudienceGetEntityV2](docs/RmLegacyAudienceGetEntityV2.md) - - [RmLegacyAudienceGetEntityV2ListResponse](docs/RmLegacyAudienceGetEntityV2ListResponse.md) - - [RmLegacyAudienceGetEntityV2Resource](docs/RmLegacyAudienceGetEntityV2Resource.md) - - [RmLegacyAudienceUserBehaviorDetailsV2](docs/RmLegacyAudienceUserBehaviorDetailsV2.md) - - [RmLegacySegmentCustomerList](docs/RmLegacySegmentCustomerList.md) - - [RmLegacySegmentUserBehaviorV1](docs/RmLegacySegmentUserBehaviorV1.md) - - [RmLegacySegmentUserBehaviorV2](docs/RmLegacySegmentUserBehaviorV2.md) - - [RmUserBehaviorV1](docs/RmUserBehaviorV1.md) + - [RmEventsV1](docs/RmEventsV1.md) - [RmcaCommonProblem](docs/RmcaCommonProblem.md) - [SellerCatalogRequest](docs/SellerCatalogRequest.md) - [SellerIdentifier](docs/SellerIdentifier.md) @@ -412,18 +418,13 @@ Class | Method | HTTP request | Description - [SyncLineItemsReportResource](docs/SyncLineItemsReportResource.md) - [UpdateBalanceModelV2](docs/UpdateBalanceModelV2.md) - [UpdateBalanceModelV2Request](docs/UpdateBalanceModelV2Request.md) + - [ValidationError](docs/ValidationError.md) - [ValueResourceCollectionInputOfRetailMediaSeller](docs/ValueResourceCollectionInputOfRetailMediaSeller.md) - [ValueResourceCollectionOutcomeOfRetailMediaSeller](docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md) - - [ValueResourceInputOfCampaignBudgetOverrides](docs/ValueResourceInputOfCampaignBudgetOverrides.md) - - [ValueResourceInputOfLineItemBudgetOverrides](docs/ValueResourceInputOfLineItemBudgetOverrides.md) - [ValueResourceInputOfRetailMediaSellerAccountCreation](docs/ValueResourceInputOfRetailMediaSellerAccountCreation.md) - - [ValueResourceOfCampaignBudgetOverrides](docs/ValueResourceOfCampaignBudgetOverrides.md) - - [ValueResourceOfLineItemBudgetOverrides](docs/ValueResourceOfLineItemBudgetOverrides.md) - [ValueResourceOfRecommendedKeywordsResult](docs/ValueResourceOfRecommendedKeywordsResult.md) - [ValueResourceOfRetailMediaSeller](docs/ValueResourceOfRetailMediaSeller.md) - [ValueResourceOfRetailMediaSellerAccountCreation](docs/ValueResourceOfRetailMediaSellerAccountCreation.md) - - [ValueResourceOutcomeOfCampaignBudgetOverrides](docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md) - - [ValueResourceOutcomeOfLineItemBudgetOverrides](docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md) - [ValueResourceOutcomeOfRecommendedKeywordsResult](docs/ValueResourceOutcomeOfRecommendedKeywordsResult.md) diff --git a/sdks/retailmedia_preview/api/openapi.yaml b/sdks/retailmedia_preview/api/openapi.yaml index a61abc7b..581038ae 100644 --- a/sdks/retailmedia_preview/api/openapi.yaml +++ b/sdks/retailmedia_preview/api/openapi.yaml @@ -175,6 +175,50 @@ paths: tags: - Gateway x-accepts: application/json + /preview/retail-media/chatbot-catalogs/{catalogid}/product-recommendations: + post: + description: Ask a chatbot for a product recommendation + operationId: chatbotProductRecommendations + parameters: + - description: the identifier of the catalog to query + explode: false + in: path + name: catalogid + required: true + schema: + description: the identifier of the catalog to query + title: catalogid + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InbotDiscussionBodyModel' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MessageBodyModel' + description: Successful Response + "400": + description: Bad Request + "403": + description: Forbidden + "404": + description: Not Found + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/HttpValidationError' + description: Validation Error + tags: + - OnSiteRecommendation + x-content-type: application/json + x-accepts: application/json /preview/retail-media/catalog/products/batch: post: description: |- @@ -316,6 +360,55 @@ paths: tags: - Catalog x-accepts: application/json + /preview/retail-media/account-management/accounts/{accountId}/private-market-child-accounts: + get: + description: Gets page of private market child accounts that are associated + with the given account + operationId: ExternalApiAccounts_GetApiExternalV1AccountPrivateMarketChildAccountsByAccountId + parameters: + - description: Account Id + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple + x-nullable: true + - description: The (zero-based) offset into the collection of accounts. The + default is 0. + explode: true + in: query + name: offset + required: false + schema: + default: 0 + format: int32 + type: integer + style: form + x-nullable: false + - description: The number of accounts to be returned. The default is 25. + explode: true + in: query + name: limit + required: false + schema: + default: 25 + format: int32 + type: integer + style: form + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EntityResourceCollectionOutcomeOfRetailMediaAccount' + description: Success + tags: + - Accounts + x-source-method: ExternalApiAccounts_GetPrivateMarketChildDemandAccountsV1 + x-accepts: application/json /preview/retail-media/accounts: get: description: Gets page of account objects that the current user can access @@ -509,7 +602,7 @@ paths: description: "Updates the properties of all segments with a valid configuration,\ \ and returns the full segments. For those that cannot be updated, one or\ \ multiple errors are returned." - operationId: BulkUpdateV1 + operationId: bulkUpdateAudienceSegments parameters: - description: Account id explode: false @@ -576,7 +669,7 @@ paths: description: "Creates all segments with a valid configuration, and returns the\ \ full segments. For those that cannot be created, one or multiple errors\ \ are returned." - operationId: BulkCreateV1 + operationId: bulkCreateAudienceSegments parameters: - description: Account Id explode: false @@ -641,7 +734,7 @@ paths: /preview/retail-media/accounts/{account-id}/audience-segments/delete: post: description: Delete the segments associated to the given audience IDs. - operationId: BulkDeleteV1 + operationId: bulkDeleteAudienceSegments parameters: - description: Account id explode: false @@ -707,7 +800,7 @@ paths: post: description: "Returns a list of segments that match the provided filters. If\ \ present, the filters are AND'ed together when applied." - operationId: SearchV1 + operationId: searchAudienceSegments parameters: - description: Account Id explode: false @@ -795,7 +888,7 @@ paths: /preview/retail-media/accounts/{account-id}/audience-segments/{audience-segment-id}/contact-list: get: description: Returns the statistics of a contact list segment. - operationId: GetContactListStatisticsV1 + operationId: getAudienceSegmentContactListStatistics parameters: - description: Account Id explode: false @@ -847,147 +940,73 @@ paths: tags: - Audience x-accepts: application/json - /preview/retail-media/accounts/{accountId}/audiences: - get: - description: Get a page of Audiences. (deprecated Public API) - operationId: LegacyGetAudienceV1 + /preview/retail-media/accounts/{account-id}/audiences/search: + post: + description: "Returns a list of audiences that match the provided filters. If\ + \ present, the filters are AND'ed together when applied." + operationId: searchAudiences parameters: - - description: ID of the account to which this audience belongs. + - description: Account Id explode: false in: path - name: accountId + name: account-id required: true schema: - format: int64 - type: integer + type: string style: simple - - description: "Limits results to the entity IDs specified; parameter key is\ - \ repeated, eg. limitToId=1&limitToId=2" - explode: true - in: query - name: limitToId - required: false - schema: - items: - format: int32 - type: integer - type: array - style: form - - description: Specifies the maximum number of entities returned in a single - page; defaults to 25 entities per page. + - description: The number of elements to be returned. The default is 50 and + the maximum is 100. explode: true in: query - name: pageSize + name: limit required: false schema: + default: 50 format: int32 + maximum: 100 + minimum: 0 type: integer style: form - - description: Returns the specified page of results given a pageSize; pages - are 0-indexed. + - description: The (zero-based) offset into the collection. The default is 0. explode: true in: query - name: pageIndex + name: offset required: false schema: + default: 0 format: int32 type: integer style: form - responses: - "200": - content: - text/plain: - schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1ListResponse' - application/json: - schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1ListResponse' - text/json: - schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1ListResponse' - description: A page of audiences for the supplied account or shared by related - retailers. - "400": - content: - text/plain: {} - application/json: {} - text/json: {} - description: Bad request - "401": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The API client is not properly authenticated. - "403": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The API client is not authorized to access this resource. - tags: - - Audience - x-accepts: application/json - /preview/retail-media/v2/accounts/{accountId}/audiences: - get: - description: Get a page of Audiences. (deprecated Public API) - operationId: LegacyGetAudienceV2 - parameters: - - description: ID of the account to which this audience belongs. - explode: false - in: path - name: accountId + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/RmAudienceSearchInputV1' + application/json: + schema: + $ref: '#/components/schemas/RmAudienceSearchInputV1' + text/json: + schema: + $ref: '#/components/schemas/RmAudienceSearchInputV1' + application/*+json: + schema: + $ref: '#/components/schemas/RmAudienceSearchInputV1' + description: Audience search filters. required: true - schema: - format: int64 - type: integer - style: simple - - description: "Limits results to the entity IDs specified; parameter key is\ - \ repeated, eg. limitToId=1&limitToId=2" - explode: true - in: query - name: limitToId - required: false - schema: - items: - format: int32 - type: integer - type: array - style: form - - description: Specifies the maximum number of entities returned in a single - page; defaults to 25 entities per page. - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - - description: Returns the specified page of results given a pageSize; pages - are 0-indexed. - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form + x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV2ListResponse' + $ref: '#/components/schemas/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse' application/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV2ListResponse' + $ref: '#/components/schemas/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse' text/json: schema: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV2ListResponse' - description: A page of audiences for the supplied account or shared by related - retailers. + $ref: '#/components/schemas/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse' + description: Success or partial success "400": content: text/plain: {} @@ -1008,6 +1027,7 @@ paths: description: The API client is not authorized to access this resource. tags: - Audience + x-content-type: application/json-patch+json x-accepts: application/json /preview/retail-media/line-items/{id}/keywords: get: @@ -2017,7 +2037,9 @@ paths: x-accepts: application/json /preview/retail-media/reports/accounts: post: - description: Returns an asynchronous Accounts Report + description: |- + Returns an asynchronous Accounts Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncAccountsReport requestBody: content: @@ -2078,7 +2100,9 @@ paths: x-accepts: application/json /preview/retail-media/reports/campaigns: post: - description: Return an asynchronous Campaigns Report + description: |- + Return an asynchronous Campaigns Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncCampaignsReport requestBody: content: @@ -2139,7 +2163,9 @@ paths: x-accepts: application/json /preview/retail-media/reports/line-items: post: - description: Returns an asynchronous Line Items Report + description: |- + Returns an asynchronous Line Items Report + This endpoint is subject to specific rate limits. operationId: GenerateAsyncLineItemsReport requestBody: content: @@ -2623,72 +2649,6 @@ paths: tags: - Balance x-accepts: application/json - /preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides: - get: - description: Get current campaign budget overrides by given external campaign - id. - operationId: GetCampaignBudgetOverrides - parameters: - - description: External campaign id. - explode: false - in: path - name: campaignId - required: true - schema: - format: int64 - type: integer - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ValueResourceOutcomeOfCampaignBudgetOverrides' - description: Success - tags: - - Campaign - x-accepts: application/json - put: - description: Update campaign budget overrides by given external campaign id - and new campaign budget overrides settings. - operationId: UpdateCampaignBudgetOverrides - parameters: - - description: External campaign id. - explode: false - in: path - name: campaignId - required: true - schema: - format: int64 - type: integer - style: simple - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfCampaignBudgetOverrides' - application/json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfCampaignBudgetOverrides' - text/json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfCampaignBudgetOverrides' - application/*+json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfCampaignBudgetOverrides' - description: New campaign budget overrides settings value resource input. - x-bodyName: campaignBudgetOverridesInput - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/ValueResourceOutcomeOfCampaignBudgetOverrides' - description: Success - tags: - - Campaign - x-content-type: application/json-patch+json - x-accepts: application/json /preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id: post: description: Gets a list of SKUs based on a privided list of Product Ids @@ -2844,89 +2804,25 @@ paths: tags: - Campaign x-accepts: application/json - /preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides: + /preview/retail-media/accounts/{account-id}/balances: get: - description: Gets a collection of monthly and daily budget overrides for the - provided line item. - operationId: GetLineItemBudgetOverrides + description: Gets page of balance objects for the given account id + operationId: GetApiV2ExternalAccountBalancesByAccountId parameters: - - description: The line item id to get budget overrides for. + - description: The account to get balances for explode: false in: path - name: lineItemId + name: account-id required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ValueResourceOutcomeOfLineItemBudgetOverrides' - description: Success - tags: - - Campaign - x-accepts: application/json - put: - description: Update line item budget overrides by given external line item id - and new line item budget overrides settings. - operationId: UpdateLineItemBudgetOverrides - parameters: - - description: Line item external id. - explode: false - in: path - name: lineItemId - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfLineItemBudgetOverrides' - application/json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfLineItemBudgetOverrides' - text/json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfLineItemBudgetOverrides' - application/*+json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfLineItemBudgetOverrides' - description: New line item budget overrides settings value resource input. - x-bodyName: lineItemBudgetOverridesInput - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/ValueResourceOutcomeOfLineItemBudgetOverrides' - description: Success - tags: - - Campaign - x-content-type: application/json-patch+json - x-accepts: application/json - /preview/retail-media/accounts/{account-id}/balances: - get: - description: Gets page of balance objects for the given account id - operationId: GetApiV2ExternalAccountBalancesByAccountId - parameters: - - description: The account to get balances for - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false + x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false schema: items: type: string @@ -4110,6 +4006,264 @@ components: nullable: true type: string type: object + MessageBodyModel: + description: error message + example: + data: + attributes: + userMessage: userMessage + botMessage: null + type: Message + errors: + - traceId: traceId + code: code + instance: instance + type: type + - traceId: traceId + code: code + instance: instance + type: type + properties: + data: + $ref: '#/components/schemas/MessageDataInstanceModel' + errors: + items: + $ref: '#/components/schemas/MessageError' + nullable: true + title: Errors + type: array + title: MessageBodyModel + type: object + HttpValidationError: + description: http validation error + properties: + detail: + items: + $ref: '#/components/schemas/ValidationError' + nullable: true + title: Detail + type: array + title: HttpValidationError + type: object + InbotDiscussionBodyModel: + description: an API recommendation message + example: + data: + attributes: + messages: + - userMessage: userMessage + botMessage: null + - userMessage: userMessage + botMessage: null + type: InbotDiscussion + properties: + data: + $ref: '#/components/schemas/InbotDiscussionDataInstanceModel' + required: + - data + title: InbotDiscussionBodyModel + type: object + MessageDataInstanceModel: + description: an API answer message + example: + attributes: + userMessage: userMessage + botMessage: null + type: Message + properties: + type: + default: Message + nullable: true + title: Type + type: string + attributes: + $ref: '#/components/schemas/Message' + required: + - attributes + title: MessageDataInstanceModel + type: object + MessageError: + description: error message + example: + traceId: traceId + code: code + instance: instance + type: type + properties: + traceId: + description: "correlation ID, unique to each request" + nullable: true + title: Traceid + type: string + type: + description: error category + nullable: true + title: Type + type: string + code: + description: error code + nullable: true + title: Code + type: string + instance: + description: specific occurrence of the problem + nullable: true + title: Instance + type: string + title: MessageError + type: object + ValidationError: + description: validation error + properties: + loc: + items: + $ref: '#/components/schemas/Location_inner' + title: Location + type: array + msg: + title: Message + type: string + type: + title: Error Type + type: string + required: + - loc + - msg + - type + title: ValidationError + type: object + InbotDiscussionDataInstanceModel: + description: an API recommendation request + example: + attributes: + messages: + - userMessage: userMessage + botMessage: null + - userMessage: userMessage + botMessage: null + type: InbotDiscussion + properties: + type: + default: InbotDiscussion + nullable: true + title: Type + type: string + attributes: + $ref: '#/components/schemas/InbotDiscussion' + required: + - attributes + title: InbotDiscussionDataInstanceModel + type: object + Message: + description: message of the discussion + example: + userMessage: userMessage + botMessage: null + properties: + userMessage: + description: user prompt + nullable: true + title: Usermessage + type: string + botMessage: + $ref: '#/components/schemas/Botmessage' + title: Message + type: object + InbotDiscussion: + description: discussion between the user and the chatbot + example: + messages: + - userMessage: userMessage + botMessage: null + - userMessage: userMessage + botMessage: null + properties: + messages: + description: "ordered list of previous messages, alternating between user\ + \ prompts and bot answers" + items: + $ref: '#/components/schemas/Message' + minItems: 1 + nullable: true + title: Messages + type: array + title: InbotDiscussion + type: object + BotMessage: + description: bot structured answer to the user prompt + properties: + opening: + description: "opening comment from the bot, introducing the list of recommended\ + \ products if relevant." + nullable: true + title: Opening + type: string + productRecos: + description: list of recommended products + items: + $ref: '#/components/schemas/ProductRecommendation' + nullable: true + title: Productrecos + type: array + closing: + description: closing remark from the bot + nullable: true + title: Closing + type: string + title: BotMessage + type: object + ProductRecommendation: + description: recommendation data for a product + properties: + rationale: + description: "reason for this recommendation, given by the bot" + title: Rationale + type: string + name: + description: name of the product + nullable: true + title: Name + type: string + description: + description: description of the product + nullable: true + title: Description + type: string + imageUrl: + description: url of the product image + format: uri + maxLength: 65536 + minLength: 1 + nullable: true + title: Imageurl + type: string + url: + description: url of the product on the retailer website + format: uri + maxLength: 65536 + minLength: 1 + nullable: true + title: Url + type: string + brand: + description: brand of the product + nullable: true + title: Brand + type: string + price: + description: numerical value of the price of the product + nullable: true + title: Price + type: number + currency: + description: currency of the price of the product + nullable: true + title: Currency + type: string + required: + - rationale + title: ProductRecommendation + type: object BatchAcceptedResponse: description: A batch was accepted. The report can be accessed using the reporting endpoint. @@ -4145,6 +4299,24 @@ components: numberOfProductsWithErrors: 5 importRequestTimestamp: 0 numberOfProductsInTheBatch: 6 + numberOfProductsWithWarnings: 2 + warningDetails: + - productId: productId + warnings: + - type: OverlargeBadgeUrl + message: message + isServerRelated: true + - type: OverlargeBadgeUrl + message: message + isServerRelated: true + - productId: productId + warnings: + - type: OverlargeBadgeUrl + message: message + isServerRelated: true + - type: OverlargeBadgeUrl + message: message + isServerRelated: true numberOfProductsDeleted: 5 numberOfProductsUpserted: 1 status: ACCEPTED @@ -4202,6 +4374,15 @@ components: items: $ref: '#/components/schemas/ReportDetailErrors' type: array + numberOfProductsWithWarnings: + description: The number of products with Warnings. + format: int32 + type: integer + warningDetails: + description: The list of Warnings with details. + items: + $ref: '#/components/schemas/ReportDetailWarnings' + type: array required: - errorDetails - importRequestTimestamp @@ -4209,7 +4390,9 @@ components: - numberOfProductsInTheBatch - numberOfProductsUpserted - numberOfProductsWithErrors + - numberOfProductsWithWarnings - status + - warningDetails type: object ProductsCustomBatchRequest: description: Defines a batch of operations. @@ -4304,6 +4487,7 @@ components: mobileLink: mobileLink targetCountry: targetCountry taxCategory: taxCategory + badge: badge condition: condition externalSellerName: externalSellerName minEnergyEfficiencyClass: minEnergyEfficiencyClass @@ -4469,6 +4653,7 @@ components: mobileLink: mobileLink targetCountry: targetCountry taxCategory: taxCategory + badge: badge condition: condition externalSellerName: externalSellerName minEnergyEfficiencyClass: minEnergyEfficiencyClass @@ -4651,6 +4836,28 @@ components: - errors - productId type: object + ReportDetailWarnings: + description: A list of warnings on a batch operation. + example: + productId: productId + warnings: + - type: OverlargeBadgeUrl + message: message + isServerRelated: true + - type: OverlargeBadgeUrl + message: message + isServerRelated: true + properties: + productId: + type: string + warnings: + items: + $ref: '#/components/schemas/ReportDetailWarning' + type: array + required: + - productId + - warnings + type: object ProductsCustomBatchRequestEntry: description: A product event for a batch request. example: @@ -4743,6 +4950,7 @@ components: mobileLink: mobileLink targetCountry: targetCountry taxCategory: taxCategory + badge: badge condition: condition externalSellerName: externalSellerName minEnergyEfficiencyClass: minEnergyEfficiencyClass @@ -4891,6 +5099,27 @@ components: - message - type type: object + ReportDetailWarning: + description: A warning on a batch operation. + example: + type: OverlargeBadgeUrl + message: message + isServerRelated: true + properties: + type: + enum: + - OverlargeBadgeUrl + - InvalidBadgeUrl + type: string + message: + type: string + isServerRelated: + type: boolean + required: + - isServerRelated + - message + - type + type: object Product: description: Defines a product to be inserted or updated. example: @@ -4982,6 +5211,7 @@ components: mobileLink: mobileLink targetCountry: targetCountry taxCategory: taxCategory + badge: badge condition: condition externalSellerName: externalSellerName minEnergyEfficiencyClass: minEnergyEfficiencyClass @@ -5416,6 +5646,10 @@ components: description: The product rating for the product nullable: true type: string + badge: + description: URL of a badge image to display on the product. + nullable: true + type: string required: - channel - id @@ -5651,46 +5885,41 @@ components: - name - value type: object - JsonApiPageResponseOfAccount: - description: A wrapper class to return a single page of with metadata + EntityResourceCollectionOutcomeOfRetailMediaAccount: + description: A resource that represents collection of Retail Media account entities example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - attributes: - subtype: unknown - parentAccountLabel: parentAccountLabel companyName: companyName + parentAccountLabel: parentAccountLabel name: name + onBehalfCompanyName: onBehalfCompanyName + countryIds: + - countryIds + - countryIds timeZone: timeZone - currency: currency - countries: - - countries - - countries - type: unknown + subType: Unknown + type: Unknown + currencyId: currencyId id: id type: type - attributes: - subtype: unknown - parentAccountLabel: parentAccountLabel companyName: companyName + parentAccountLabel: parentAccountLabel name: name + onBehalfCompanyName: onBehalfCompanyName + countryIds: + - countryIds + - countryIds timeZone: timeZone - currency: currency - countries: - - countries - - countries - type: unknown + subType: Unknown + type: Unknown + currencyId: currencyId id: id type: type warnings: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5700,6 +5929,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5710,6 +5940,7 @@ components: title: title errors: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5719,6 +5950,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5728,7 +5960,108 @@ components: type: unknown title: title properties: - errors: + data: + items: + $ref: '#/components/schemas/EntityResourceOfRetailMediaAccount' + nullable: true + type: array + x-nullable: true + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + x-nullable: true + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + x-nullable: true + type: object + x-nullable: true + JsonApiPageResponseOfAccount: + description: A wrapper class to return a single page of with metadata + example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 + data: + - attributes: + subtype: unknown + parentAccountLabel: parentAccountLabel + companyName: companyName + name: name + onBehalfCompanyName: onBehalfCompanyName + timeZone: timeZone + currency: currency + countries: + - countries + - countries + type: unknown + id: id + type: type + - attributes: + subtype: unknown + parentAccountLabel: parentAccountLabel + companyName: companyName + name: name + onBehalfCompanyName: onBehalfCompanyName + timeZone: timeZone + currency: currency + countries: + - countries + - countries + type: unknown + id: id + type: type + warnings: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + errors: items: $ref: '#/components/schemas/CommonError' type: array @@ -5915,6 +6248,37 @@ components: - data - metadata type: object + EntityResourceOfRetailMediaAccount: + description: A resource object that represents a single Retail Media account + entity + example: + attributes: + companyName: companyName + parentAccountLabel: parentAccountLabel + name: name + onBehalfCompanyName: onBehalfCompanyName + countryIds: + - countryIds + - countryIds + timeZone: timeZone + subType: Unknown + type: Unknown + currencyId: currencyId + id: id + type: type + properties: + id: + nullable: true + type: string + x-nullable: true + type: + nullable: true + type: string + x-nullable: true + attributes: + $ref: '#/components/schemas/ExternalRetailMediaAccount' + type: object + x-nullable: true PageMetadata: description: Metadata related to the current request example: @@ -6092,6 +6456,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -6161,6 +6526,94 @@ components: - id - type type: object + ExternalRetailMediaAccount: + description: A Retail Media account entity + example: + companyName: companyName + parentAccountLabel: parentAccountLabel + name: name + onBehalfCompanyName: onBehalfCompanyName + countryIds: + - countryIds + - countryIds + timeZone: timeZone + subType: Unknown + type: Unknown + currencyId: currencyId + properties: + name: + nullable: true + type: string + x-nullable: true + companyName: + nullable: true + type: string + x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true + type: + enum: + - Unknown + - Supply + - Demand + format: string + type: string + x-ms-enum: + name: AccountTypeEnum + modelAsString: false + values: + - 0 + - 1 + - 2 + x-enumNames: + - Unknown + - Supply + - Demand + x-nullable: false + subType: + enum: + - Unknown + - Brand + - Seller + format: string + type: string + x-ms-enum: + name: AccountSubtypeEnum + modelAsString: false + values: + - 0 + - 1 + - 2 + x-enumNames: + - Unknown + - Brand + - Seller + x-nullable: false + countryIds: + items: + type: string + nullable: true + type: array + x-nullable: true + currencyId: + nullable: true + type: string + x-nullable: true + parentAccountLabel: + nullable: true + type: string + x-nullable: true + timeZone: + nullable: true + type: string + x-nullable: true + required: + - subType + - type + type: object + x-nullable: true ExternalAccount: description: A Retail Media Account used to launch campaigns and line items example: @@ -6168,6 +6621,7 @@ components: parentAccountLabel: parentAccountLabel companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName timeZone: timeZone currency: currency countries: @@ -6215,6 +6669,10 @@ components: nullable: true type: string x-nullable: true + onBehalfCompanyName: + nullable: true + type: string + x-nullable: true required: - countries - currency @@ -6273,8 +6731,16 @@ components: contactList: isReadOnly: true sharingStatus: Unknown - type: Unknown - userBehavior: + identifierType: Unknown + channels: + - Unknown + - Unknown + name: name + description: description + retailerId: retailerId + type: Unknown + createdById: createdById + events: categoryIds: - categoryIds - categoryIds @@ -6285,14 +6751,6 @@ components: brandIds: - brandIds - brandIds - channels: - - Unknown - - Unknown - name: name - description: description - retailerId: retailerId - type: Unknown - createdById: createdById updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -6302,8 +6760,16 @@ components: contactList: isReadOnly: true sharingStatus: Unknown - type: Unknown - userBehavior: + identifierType: Unknown + channels: + - Unknown + - Unknown + name: name + description: description + retailerId: retailerId + type: Unknown + createdById: createdById + events: categoryIds: - categoryIds - categoryIds @@ -6314,14 +6780,6 @@ components: brandIds: - brandIds - brandIds - channels: - - Unknown - - Unknown - name: name - description: description - retailerId: retailerId - type: Unknown - createdById: createdById updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -6469,8 +6927,16 @@ components: contactList: isReadOnly: true sharingStatus: Unknown - type: Unknown - userBehavior: + identifierType: Unknown + channels: + - Unknown + - Unknown + name: name + description: description + retailerId: retailerId + type: Unknown + createdById: createdById + events: categoryIds: - categoryIds - categoryIds @@ -6481,14 +6947,6 @@ components: brandIds: - brandIds - brandIds - channels: - - Unknown - - Unknown - name: name - description: description - retailerId: retailerId - type: Unknown - createdById: createdById updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -6498,8 +6956,16 @@ components: contactList: isReadOnly: true sharingStatus: Unknown - type: Unknown - userBehavior: + identifierType: Unknown + channels: + - Unknown + - Unknown + name: name + description: description + retailerId: retailerId + type: Unknown + createdById: createdById + events: categoryIds: - categoryIds - categoryIds @@ -6510,14 +6976,6 @@ components: brandIds: - brandIds - brandIds - channels: - - Unknown - - Unknown - name: name - description: description - retailerId: retailerId - type: Unknown - createdById: createdById updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -6657,171 +7115,59 @@ components: readOnly: true type: array type: object - RmLegacyAudienceGetEntityV1ListResponse: + RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities and metadata example: data: - attributes: - customerListDetails: - size: size - isShared: true - name: name - retailerId: retailerId - userBehaviorDetails: - targetIds: - - targetIds - - targetIds - targetType: brand - userType: viewer - lookbackWindow: P7D - id: id - audienceType: customerList - type: type - - attributes: - customerListDetails: - size: size - isShared: true - name: name - retailerId: retailerId - userBehaviorDetails: - targetIds: - - targetIds - - targetIds - targetType: brand - userType: viewer - lookbackWindow: P7D - id: id - audienceType: customerList - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - items: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1Resource' - nullable: true - type: array - warnings: - items: - $ref: '#/components/schemas/CommonProblem' - nullable: true - readOnly: true - type: array - errors: - items: - $ref: '#/components/schemas/CommonProblem' - nullable: true - readOnly: true - type: array - type: object - RmLegacyAudienceGetEntityV2ListResponse: - description: A top-level object that encapsulates a Criteo API response for - several entities - example: - data: - - attributes: - customerListDetails: - size: size - isShared: true + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + channels: + - Unknown + - Unknown name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId retailerId: retailerId - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D + createdById: createdById + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - attributes: - customerListDetails: - size: size - isShared: true + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + channels: + - Unknown + - Unknown name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId retailerId: retailerId - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D + createdById: createdById + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type + meta: + totalItems: 0 + offset: 1 + limit: 6 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -6865,9 +7211,11 @@ components: type: unknown title: title properties: + meta: + $ref: '#/components/schemas/RmAudienceSearchMetadataV1' data: items: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV2Resource' + $ref: '#/components/schemas/RmAudienceEntityV1Resource' nullable: true type: array warnings: @@ -6884,7 +7232,8 @@ components: type: array type: object RmAudienceSegmentBulkUpdateInputV1: - description: Input to update one or more segments. + description: A top-level object that encapsulates a Criteo API request for several + entities. example: data: - attributes: @@ -6909,7 +7258,8 @@ components: type: array type: object RmAudienceSegmentBulkCreateInputV1: - description: Input to create one or more audience segments. + description: A top-level object that encapsulates a Criteo API request for several + values. example: data: - attributes: @@ -6934,7 +7284,8 @@ components: type: array type: object RmAudienceSegmentBulkDeleteInputV1: - description: Input to delete one or more segments. + description: A top-level object that encapsulates a Criteo API request for several + entities. example: data: - attributes: "{}" @@ -6951,7 +7302,8 @@ components: type: array type: object RmAudienceSegmentSearchInputV1: - description: Audience segment search parameter + description: A top-level object that encapsulates a Criteo API request for a + single value. example: data: attributes: @@ -6969,6 +7321,26 @@ components: data: $ref: '#/components/schemas/RmAudienceSegmentSearchEntityV1Resource' type: object + RmAudienceSearchInputV1: + description: A top-level object that encapsulates a Criteo API request for a + single value. + example: + data: + attributes: + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + retailerIds: + - retailerIds + - retailerIds + audienceIds: + - audienceIds + - audienceIds + type: type + properties: + data: + $ref: '#/components/schemas/RmAudienceSearchEntityV1Resource' + type: object RmAudienceSegmentEntityV1Resource: description: A class that represents a domain entity exposed by an API example: @@ -6978,8 +7350,16 @@ components: contactList: isReadOnly: true sharingStatus: Unknown - type: Unknown - userBehavior: + identifierType: Unknown + channels: + - Unknown + - Unknown + name: name + description: description + retailerId: retailerId + type: Unknown + createdById: createdById + events: categoryIds: - categoryIds - categoryIds @@ -6990,14 +7370,6 @@ components: brandIds: - brandIds - brandIds - channels: - - Unknown - - Unknown - name: name - description: description - retailerId: retailerId - type: Unknown - createdById: createdById updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -7077,78 +7449,57 @@ components: nullable: true type: string type: object - RmLegacyAudienceGetEntityV1Resource: - description: A class that represents a domain entity exposed by an API + RmAudienceSearchMetadataV1: + description: Metadata for the audience search response. example: - attributes: - customerListDetails: - size: size - isShared: true - name: name - retailerId: retailerId - userBehaviorDetails: - targetIds: - - targetIds - - targetIds - targetType: brand - userType: viewer - lookbackWindow: P7D - id: id - audienceType: customerList - type: type + totalItems: 0 + offset: 1 + limit: 6 properties: - attributes: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV1' - id: + totalItems: + description: Total number of items + format: int32 nullable: true - type: string - audienceType: - enum: - - customerList - - userBehavior + type: integer + limit: + description: Max item of the current page + format: int32 nullable: true - type: string - type: + type: integer + offset: + description: Number of item to skip + format: int32 nullable: true - type: string + type: integer type: object - RmLegacyAudienceGetEntityV2Resource: + RmAudienceEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - customerListDetails: - size: size - isShared: true + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + channels: + - Unknown + - Unknown name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId retailerId: retailerId - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D + createdById: createdById + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type properties: attributes: - $ref: '#/components/schemas/RmLegacyAudienceGetEntityV2' + $ref: '#/components/schemas/RmAudienceEntityV1' id: description: Id of the entity nullable: true @@ -7240,6 +7591,28 @@ components: attributes: $ref: '#/components/schemas/RmAudienceSegmentSearchEntityV1' type: object + RmAudienceSearchEntityV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + retailerIds: + - retailerIds + - retailerIds + audienceIds: + - audienceIds + - audienceIds + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/RmAudienceSearchEntityV1' + type: object RmAudienceSegmentEntityV1: description: Set of rules that defines specific people to target. example: @@ -7248,8 +7621,16 @@ components: contactList: isReadOnly: true sharingStatus: Unknown - type: Unknown - userBehavior: + identifierType: Unknown + channels: + - Unknown + - Unknown + name: name + description: description + retailerId: retailerId + type: Unknown + createdById: createdById + events: categoryIds: - categoryIds - categoryIds @@ -7260,14 +7641,6 @@ components: brandIds: - brandIds - brandIds - channels: - - Unknown - - Unknown - name: name - description: description - retailerId: retailerId - type: Unknown - createdById: createdById updatedAt: 2000-01-23T04:56:07.000+00:00 properties: accountId: @@ -7291,7 +7664,7 @@ components: enum: - Unknown - ContactList - - UserBehavior + - Events nullable: true type: string createdAt: @@ -7310,8 +7683,8 @@ components: type: string contactList: $ref: '#/components/schemas/RmContactListV1' - userBehavior: - $ref: '#/components/schemas/RmUserBehaviorV1' + events: + $ref: '#/components/schemas/RmEventsV1' channels: description: Channels associated to the segment (read-only) items: @@ -7362,85 +7735,71 @@ components: infoType: entity name: ContactListStatistics version: v1 - RmLegacyAudienceGetEntityV1: - description: Audience definition of people of interest for a marketer. + RmAudienceEntityV1: + description: Audience of people of interest for a marketer. example: - customerListDetails: - size: size - isShared: true + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + channels: + - Unknown + - Unknown name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId retailerId: retailerId - userBehaviorDetails: - targetIds: - - targetIds - - targetIds - targetType: brand - userType: viewer - lookbackWindow: P7D + createdById: createdById + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: + accountId: + description: Account associated to the audience + nullable: true + type: string name: description: Name of the audience + nullable: true type: string - retailerId: - description: ID of the retailer associated with this audience + description: + description: Description of the audience + nullable: true type: string - userBehaviorDetails: - $ref: '#/components/schemas/RmLegacySegmentUserBehaviorV1' - customerListDetails: - $ref: '#/components/schemas/RmLegacySegmentCustomerList' - required: - - name - - retailerId - type: object - x-criteo-canonical: - infoType: entity - name: RetailMediaAudienceSummary - version: v1 - RmLegacyAudienceGetEntityV2: - description: Audience definition of people of interest for a marketer - example: - customerListDetails: - size: size - isShared: true - name: name - retailerId: retailerId - userBehaviorDetails: - inclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - properties: retailerId: - description: ID of the retailer associated with this audience + description: Retailer associated to the audience + nullable: true type: string - userBehaviorDetails: - $ref: '#/components/schemas/RmLegacyAudienceUserBehaviorDetailsV2' - customerListDetails: - $ref: '#/components/schemas/RmLegacySegmentCustomerList' - name: - description: Name of the audience + createdById: + description: User that created the audience + nullable: true type: string - required: - - name - - retailerId + createdAt: + description: ISO-8601 timestamp in UTC of audience creation (read-only) + format: date-time + nullable: true + type: string + updatedAt: + description: ISO-8601 timestamp in UTC of audience update (read-only) + format: date-time + nullable: true + type: string + channels: + description: Channels associated to the audience (read-only) + items: + enum: + - Unknown + - Onsite + - Offsite + type: string + nullable: true + type: array + algebra: + $ref: '#/components/schemas/RmAlgebraNodeV1' type: object x-criteo-canonical: infoType: entity @@ -7479,7 +7838,6 @@ components: properties: name: description: Name of the segment - nullable: true type: string description: description: Description of the segment @@ -7487,10 +7845,12 @@ components: type: string retailerId: description: Retailer associated to the segment - nullable: true type: string contactList: $ref: '#/components/schemas/RmContactListCreateV1' + required: + - name + - retailerId type: object RmAudienceSegmentDeleteEntityV1: description: Segment to delete @@ -7531,7 +7891,40 @@ components: enum: - Unknown - ContactList - - UserBehavior + - Events + type: string + nullable: true + type: array + type: object + RmAudienceSearchEntityV1: + description: "Available filters to perform a search on audiences. If present,\ + \ the filters are AND'ed together when applied." + example: + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + retailerIds: + - retailerIds + - retailerIds + audienceIds: + - audienceIds + - audienceIds + properties: + audienceIds: + description: List of audience ids + items: + type: string + nullable: true + type: array + retailerIds: + description: List of retailer ids + items: + type: string + nullable: true + type: array + audienceSegmentIds: + description: List of segment ids (linked to the result audiences) + items: type: string nullable: true type: array @@ -7541,14 +7934,14 @@ components: example: isReadOnly: true sharingStatus: Unknown - type: Unknown + identifierType: Unknown properties: isReadOnly: description: Is the segment read-only nullable: true type: boolean - type: - description: Indicates contact list type + identifierType: + description: Indicates contact list identifier's type enum: - Unknown - Email @@ -7567,7 +7960,7 @@ components: nullable: true type: string type: object - RmUserBehaviorV1: + RmEventsV1: description: Settings to target users based on their behavior example: categoryIds: @@ -7628,102 +8021,33 @@ components: nullable: true type: number type: object - RmLegacySegmentUserBehaviorV1: - description: Audience definition of people based on what they visited + RmAlgebraNodeV1: + description: Node in the audience algebra definition. example: - targetIds: - - targetIds - - targetIds - targetType: brand - userType: viewer - lookbackWindow: P7D + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId properties: - userType: - description: Type of shopper activity used to generate the audience. - enum: - - viewer - - buyer - - addToCarter - type: string - lookbackWindow: - description: Length of lookback window - enum: - - P7D - - P14D - - P30D - - P45D - - P60D - - P90D - - P120D - - P150D - - P180D - type: string - targetType: - description: Type of target - enum: - - brand - - category + and: + items: + $ref: '#/components/schemas/RmAlgebraNodeV1' nullable: true - type: string - targetIds: - description: The categories to target + type: array + or: items: - type: string + $ref: '#/components/schemas/RmAlgebraNodeV1' nullable: true type: array - uniqueItems: true - required: - - lookbackWindow - - userType - type: object - RmLegacySegmentCustomerList: - description: Audience definition of people based on a customer list - example: - size: size - isShared: true - properties: - size: - description: Number of users in the customer list audience. + not: + $ref: '#/components/schemas/RmAlgebraNodeV1' + audienceSegmentId: + nullable: true type: string - isShared: - description: Indicate if the audience is shared. - type: boolean - required: - - isShared - - size - type: object - RmLegacyAudienceUserBehaviorDetailsV2: - description: User Behavior Details. - example: - inclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - exclusiveSegment: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - properties: - inclusiveSegment: - $ref: '#/components/schemas/RmLegacySegmentUserBehaviorV2' - exclusiveSegment: - $ref: '#/components/schemas/RmLegacySegmentUserBehaviorV2' - required: - - inclusiveSegment type: object NillableString: description: Placeholder object for string value for which "null" is a valid @@ -7755,70 +8079,6 @@ components: nullable: true type: string type: object - RmLegacySegmentUserBehaviorV2: - description: Audience definition of people based on what they visited - example: - userAction: buy - categoryIds: - - 0 - - 0 - minPrice: 1.4658129805029452 - maxPrice: 5.962133916683182 - brandIds: - - 6 - - 6 - lookbackWindow: P7D - properties: - userAction: - description: Type of shopper activity used to generate the audience. - enum: - - buy - - view - - addToCart - type: string - lookbackWindow: - description: Length of lookback window - enum: - - P7D - - P14D - - P30D - - P45D - - P60D - - P90D - - P120D - - P150D - - P180D - type: string - categoryIds: - description: The categories to target - items: - format: int32 - type: integer - nullable: true - type: array - uniqueItems: true - brandIds: - description: The brands to target - items: - format: int64 - type: integer - nullable: true - type: array - uniqueItems: true - minPrice: - description: The min price of targeted skus. - format: double - nullable: true - type: number - maxPrice: - description: The max price of targeted skus. - format: double - nullable: true - type: number - required: - - lookbackWindow - - userAction - type: object KeywordsModelResponse: additionalProperties: false description: Response object containing keywords associated with a line item. @@ -13181,6 +13441,7 @@ components: companyName: companyName parentAccountLabel: parentAccountLabel name: name + onBehalfCompanyName: onBehalfCompanyName countryIds: - countryIds - countryIds @@ -13337,111 +13598,27 @@ components: previousValue: previousValue currentValue: currentValue - dateOfModification: 2000-01-23T04:56:07.000+00:00 - modifiedByUser: modifiedByUser - changeType: BalanceCreated - memo: memo - changeDetails: - changeValue: changeValue - previousValue: previousValue - currentValue: currentValue - meta: - offset: 6 - count: 0 - limit: 1 - properties: - meta: - $ref: '#/components/schemas/Metadata' - data: - items: - $ref: '#/components/schemas/BalanceHistoryChangeDataCaptureV1' - type: array - required: - - data - - meta - type: object - ValueResourceOutcomeOfCampaignBudgetOverrides: - additionalProperties: false - description: A top-level object that encapsulates a Criteo API response for - a single value. - example: - data: - attributes: - monthlyBudgetOverrides: - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - dailyBudgetOverrides: - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title + modifiedByUser: modifiedByUser + changeType: BalanceCreated + memo: memo + changeDetails: + changeValue: changeValue + previousValue: previousValue + currentValue: currentValue + meta: + offset: 6 + count: 0 + limit: 1 properties: + meta: + $ref: '#/components/schemas/Metadata' data: - $ref: '#/components/schemas/ValueResourceOfCampaignBudgetOverrides' - warnings: - items: - $ref: '#/components/schemas/CommonProblem' - nullable: true - readOnly: true - type: array - errors: items: - $ref: '#/components/schemas/CommonProblem' - nullable: true - readOnly: true + $ref: '#/components/schemas/BalanceHistoryChangeDataCaptureV1' type: array + required: + - data + - meta type: object ResourceCollectionOutcomeOfSkuSearchResult: additionalProperties: false @@ -13668,90 +13845,6 @@ components: readOnly: true type: array type: object - ValueResourceOutcomeOfLineItemBudgetOverrides: - additionalProperties: false - description: A top-level object that encapsulates a Criteo API response for - a single value. - example: - data: - attributes: - monthlyLineItemBudgetOverrides: - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - dailyLineItemBudgetOverrides: - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/ValueResourceOfLineItemBudgetOverrides' - warnings: - items: - $ref: '#/components/schemas/CommonProblem' - nullable: true - readOnly: true - type: array - errors: - items: - $ref: '#/components/schemas/CommonProblem' - nullable: true - readOnly: true - type: array - type: object ValueResourceInputOfRetailMediaSellerAccountCreation: additionalProperties: false description: A top-level object that encapsulates a Criteo API request for a @@ -13761,6 +13854,7 @@ components: attributes: companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName sellers: - sellerId: sellerId retailerId: 0 @@ -13792,36 +13886,6 @@ components: nullable: true type: array type: object - ValueResourceInputOfCampaignBudgetOverrides: - additionalProperties: false - description: A top-level object that encapsulates a Criteo API request for a - single value. - example: - data: - attributes: - monthlyBudgetOverrides: - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - dailyBudgetOverrides: - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - type: type - properties: - data: - $ref: '#/components/schemas/ValueResourceOfCampaignBudgetOverrides' - type: object SkuSearchRequest: additionalProperties: false description: A top-level object that encapsulates a Criteo API request for a @@ -13838,36 +13902,6 @@ components: required: - data type: object - ValueResourceInputOfLineItemBudgetOverrides: - additionalProperties: false - description: A top-level object that encapsulates a Criteo API request for a - single value. - example: - data: - attributes: - monthlyLineItemBudgetOverrides: - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - dailyLineItemBudgetOverrides: - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - type: type - properties: - data: - $ref: '#/components/schemas/ValueResourceOfLineItemBudgetOverrides' - type: object ResourceOfRetailMediaAccount: additionalProperties: false description: A class that represents a domain entity exposed by an API. @@ -13876,6 +13910,7 @@ components: companyName: companyName parentAccountLabel: parentAccountLabel name: name + onBehalfCompanyName: onBehalfCompanyName countryIds: - countryIds - countryIds @@ -13983,38 +14018,6 @@ components: - dateOfModification - modifiedByUser type: object - ValueResourceOfCampaignBudgetOverrides: - additionalProperties: false - description: A top-level object that encapsulates a Criteo API response for - a single value. - example: - attributes: - monthlyBudgetOverrides: - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - dailyBudgetOverrides: - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - type: type - properties: - type: - nullable: true - type: string - attributes: - $ref: '#/components/schemas/CampaignBudgetOverrides' - type: object ResourceOfSkuSearchResult: additionalProperties: false description: A class that represents a domain entity exposed by an API. @@ -14130,38 +14133,6 @@ components: attributes: $ref: '#/components/schemas/RecommendedKeywordsResult' type: object - ValueResourceOfLineItemBudgetOverrides: - additionalProperties: false - description: A top-level object that encapsulates a Criteo API response for - a single value. - example: - attributes: - monthlyLineItemBudgetOverrides: - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - dailyLineItemBudgetOverrides: - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - type: type - properties: - type: - nullable: true - type: string - attributes: - $ref: '#/components/schemas/LineItemBudgetOverrides' - type: object ValueResourceOfRetailMediaSellerAccountCreation: additionalProperties: false description: A top-level object that encapsulates a Criteo API response for @@ -14170,6 +14141,7 @@ components: attributes: companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName sellers: - sellerId: sellerId retailerId: 0 @@ -14219,6 +14191,7 @@ components: companyName: companyName parentAccountLabel: parentAccountLabel name: name + onBehalfCompanyName: onBehalfCompanyName countryIds: - countryIds - countryIds @@ -14232,8 +14205,11 @@ components: nullable: true type: string companyName: - description: Display name for reporting the owning entity of ads for the - Digital Services Act in the European Union + description: Paying entity name of ads for the Digital Services Act + nullable: true + type: string + onBehalfCompanyName: + description: On behalf entity name of ads for the Digital Services Act nullable: true type: string type: @@ -14313,44 +14289,6 @@ components: - currentValue - previousValue type: object - CampaignBudgetOverrides: - additionalProperties: false - description: Campaign budget overrides including Monthly and Daily budget overrides. - example: - monthlyBudgetOverrides: - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - dailyBudgetOverrides: - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - properties: - monthlyBudgetOverrides: - description: "Campaign budget override monthly part, chronological order\ - \ restricted." - items: - $ref: '#/components/schemas/CampaignMonthlyBudgetOverride' - type: array - dailyBudgetOverrides: - description: "Campaign budget override daily part, chronological order restricted." - items: - $ref: '#/components/schemas/CampaignDailyBudgetOverride' - type: array - required: - - dailyBudgetOverrides - - monthlyBudgetOverrides - type: object SkuSearchResult: additionalProperties: false description: Data model for response resource @@ -14499,45 +14437,6 @@ components: nullable: true type: array type: object - LineItemBudgetOverrides: - additionalProperties: false - description: Line item budget overrides including Monthly and Daily budget overrides. - example: - monthlyLineItemBudgetOverrides: - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - dailyLineItemBudgetOverrides: - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - properties: - monthlyLineItemBudgetOverrides: - description: "Line item budget override monthly part, chronological order\ - \ restricted." - items: - $ref: '#/components/schemas/MonthlyLineItemBudegetOverride' - type: array - dailyLineItemBudgetOverrides: - description: "Line item budget override daily part, chronological order\ - \ restricted." - items: - $ref: '#/components/schemas/DailyLineItemBudgetOverride' - type: array - required: - - dailyLineItemBudgetOverrides - - monthlyLineItemBudgetOverrides - type: object RetailMediaSellerAccountCreation: additionalProperties: false description: the initial set up and configuration options for a new private @@ -14545,6 +14444,7 @@ components: example: companyName: companyName name: name + onBehalfCompanyName: onBehalfCompanyName sellers: - sellerId: sellerId retailerId: 0 @@ -14556,8 +14456,11 @@ components: nullable: true type: string companyName: - description: Display name for reporting the owning entity of ads for the - Digital Services Act in the European Union + description: Paying entity name of ads for the Digital Services Act + nullable: true + type: string + onBehalfCompanyName: + description: On behalf entity name of ads for the Digital Services Act nullable: true type: string sellers: @@ -14567,78 +14470,6 @@ components: nullable: true type: array type: object - CampaignMonthlyBudgetOverride: - additionalProperties: false - description: Campaign monthly budget override. - example: - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - properties: - startMonth: - description: "Monthly budget override start month, format \"yyyy-MM\". If\ - \ it is null, the StartMonth would be the following month of the last\ - \ item in the override sequence." - format: date-time - nullable: true - type: string - duration: - description: "The number of MONTHs that the override is active from StartMonth,\ - \ e.g. \"1M\". Must end with 'M' or 'm'." - type: string - maxMonthlySpend: - description: Monthly budget override maximum monthly spend amount. - format: double - type: number - status: - description: Monthly budget override computed status. - enum: - - Expired - - Active - - Upcoming - nullable: true - type: string - required: - - duration - - maxMonthlySpend - type: object - CampaignDailyBudgetOverride: - additionalProperties: false - description: Campaign daily budget override. - example: - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - properties: - startDate: - description: "Daily budget override start date, format \"yyyy-MM-dd\". If\ - \ it is null, the StartDate would be the following date of the last item\ - \ in the override sequence." - format: date-time - nullable: true - type: string - duration: - description: "The number of DAYs that the override is active from StartDate,\ - \ e.g. \"1D\". Must end with 'D' or 'd'." - type: string - maxDailySpend: - description: Daily budget override maximum daily spend amount. - format: double - type: number - status: - description: Daily budget override computed status. - enum: - - Expired - - Active - - Upcoming - nullable: true - type: string - required: - - duration - - maxDailySpend - type: object Keywords: additionalProperties: false description: Data associated with a normalized keyword phrase @@ -14700,78 +14531,6 @@ components: nullable: true type: string type: object - MonthlyLineItemBudegetOverride: - additionalProperties: false - description: The details for a monthly budget override - example: - duration: duration - maxMonthlySpend: 0.8008281904610115 - startMonth: 2000-01-23T04:56:07.000+00:00 - status: Expired - properties: - startMonth: - description: "Monthly budget override start month, format \"yyyy-MM\". If\ - \ it is null, the StartMonth would be the following month of the last\ - \ item in the override sequence." - format: date-time - nullable: true - type: string - duration: - description: "The number of MONTHs that the override is active from StartMonth,\ - \ e.g. \"1M\". Must end with 'M' or 'm'." - type: string - maxMonthlySpend: - description: Monthly budget override maximum monthly spend amount. - format: double - type: number - status: - description: Monthly budget override computed status. - enum: - - Expired - - Active - - Upcoming - nullable: true - type: string - required: - - duration - - maxMonthlySpend - type: object - DailyLineItemBudgetOverride: - additionalProperties: false - description: The details for a daily budget override - example: - duration: duration - maxDailySpend: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - status: Expired - properties: - startDate: - description: "Daily budget override start date, format \"yyyy-MM-dd\". If\ - \ it is null, the StartDate would be the following date of the last item\ - \ in the override sequence." - format: date-time - nullable: true - type: string - duration: - description: "The number of DAYs that the override is active from StartDate,\ - \ e.g. \"1D\". Must end with 'D' or 'd'." - type: string - maxDailySpend: - description: Daily budget override maximum daily spend amount. - format: double - nullable: true - type: number - status: - description: Daily budget override computed status. - enum: - - Expired - - Active - - Upcoming - nullable: true - type: string - required: - - duration - type: object InputKeywords: additionalProperties: false description: Keywords submitted by the user binned by type after some cleanup @@ -16881,6 +16640,16 @@ components: - identifiers - operation type: object + Location_inner: + anyOf: + - type: string + - type: integer + Botmessage: + allOf: + - $ref: '#/components/schemas/BotMessage' + description: bot answer with recommendations + nullable: true + title: Botmessage securitySchemes: oauth: flows: diff --git a/sdks/retailmedia_preview/build.gradle b/sdks/retailmedia_preview/build.gradle index dc5b1563..26710556 100644 --- a/sdks/retailmedia_preview/build.gradle +++ b/sdks/retailmedia_preview/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '0.0.240826' +version = '0.0.241029' repositories { jcenter() @@ -74,7 +74,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-retailmedia-sdk' - version '0.0.240826' + version '0.0.241029' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/retailmedia_preview/docs/AccountsApi.md b/sdks/retailmedia_preview/docs/AccountsApi.md index 3e3c944c..e6154728 100644 --- a/sdks/retailmedia_preview/docs/AccountsApi.md +++ b/sdks/retailmedia_preview/docs/AccountsApi.md @@ -1,10 +1,11 @@ # AccountsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**createPrivateMarketDemandSellerAccount**](AccountsApi.md#createPrivateMarketDemandSellerAccount) | **POST** /preview/retail-media/account-management/accounts/{accountId}/create-seller-account | | +| [**getApiExternalV1AccountPrivateMarketChildAccountsByAccountId**](AccountsApi.md#getApiExternalV1AccountPrivateMarketChildAccountsByAccountId) | **GET** /preview/retail-media/account-management/accounts/{accountId}/private-market-child-accounts | | | [**getApiV1ExternalAccounts**](AccountsApi.md#getApiV1ExternalAccounts) | **GET** /preview/retail-media/accounts | | | [**grantConsent**](AccountsApi.md#grantConsent) | **POST** /preview/retail-media/accounts/{accountId}/grant-consent | | | [**updateSellers**](AccountsApi.md#updateSellers) | **PUT** /preview/retail-media/account-management/accounts/{accountId}/sellers | | @@ -102,6 +103,99 @@ public class Example { | **201** | Success | - | +## getApiExternalV1AccountPrivateMarketChildAccountsByAccountId + +> EntityResourceCollectionOutcomeOfRetailMediaAccount getApiExternalV1AccountPrivateMarketChildAccountsByAccountId(accountId, offset, limit) + + + +Gets page of private market child accounts that are associated with the given account + +### Example + +```java +package com.criteo.api.retailmedia.preview; + +import com.criteo.api.retailmedia.preview.ApiClient; +import com.criteo.api.retailmedia.preview.ApiClientBuilder; +import com.criteo.api.retailmedia.preview.ApiException; +import com.criteo.api.retailmedia.preview.Configuration; +import com.criteo.api.retailmedia.preview.auth.*; +import com.criteo.api.retailmedia.preview.model.*; +import com.criteo.api.retailmedia.preview.api.AccountsApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AccountsApi apiInstance = new AccountsApi(defaultClient); + String accountId = "accountId_example"; // String | Account Id + Integer offset = 0; // Integer | The (zero-based) offset into the collection of accounts. The default is 0. + Integer limit = 25; // Integer | The number of accounts to be returned. The default is 25. + try { + EntityResourceCollectionOutcomeOfRetailMediaAccount result = apiInstance.getApiExternalV1AccountPrivateMarketChildAccountsByAccountId(accountId, offset, limit); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountsApi#getApiExternalV1AccountPrivateMarketChildAccountsByAccountId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| Account Id | | +| **offset** | **Integer**| The (zero-based) offset into the collection of accounts. The default is 0. | [optional] [default to 0] | +| **limit** | **Integer**| The number of accounts to be returned. The default is 25. | [optional] [default to 25] | + +### Return type + +[**EntityResourceCollectionOutcomeOfRetailMediaAccount**](EntityResourceCollectionOutcomeOfRetailMediaAccount.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + ## getApiV1ExternalAccounts > JsonApiPageResponseOfAccount getApiV1ExternalAccounts(limitToId, pageIndex, pageSize) diff --git a/sdks/retailmedia_preview/docs/AnalyticsApi.md b/sdks/retailmedia_preview/docs/AnalyticsApi.md index d5c58fe9..aa9a3573 100644 --- a/sdks/retailmedia_preview/docs/AnalyticsApi.md +++ b/sdks/retailmedia_preview/docs/AnalyticsApi.md @@ -1,6 +1,6 @@ # AnalyticsApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -21,7 +21,7 @@ All URIs are relative to *https://api.criteo.com* -Returns an asynchronous Accounts Report +Returns an asynchronous Accounts Report This endpoint is subject to specific rate limits. ### Example @@ -112,7 +112,7 @@ public class Example { -Return an asynchronous Campaigns Report +Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. ### Example @@ -203,7 +203,7 @@ public class Example { -Returns an asynchronous Line Items Report +Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. ### Example diff --git a/sdks/retailmedia_preview/docs/AudienceApi.md b/sdks/retailmedia_preview/docs/AudienceApi.md index 55f7ba0f..6989bf65 100644 --- a/sdks/retailmedia_preview/docs/AudienceApi.md +++ b/sdks/retailmedia_preview/docs/AudienceApi.md @@ -1,24 +1,23 @@ # AudienceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**bulkCreateV1**](AudienceApi.md#bulkCreateV1) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/create | | -| [**bulkDeleteV1**](AudienceApi.md#bulkDeleteV1) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/delete | | -| [**bulkUpdateV1**](AudienceApi.md#bulkUpdateV1) | **PATCH** /preview/retail-media/accounts/{account-id}/audience-segments | | +| [**bulkCreateAudienceSegments**](AudienceApi.md#bulkCreateAudienceSegments) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/create | | +| [**bulkDeleteAudienceSegments**](AudienceApi.md#bulkDeleteAudienceSegments) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/delete | | +| [**bulkUpdateAudienceSegments**](AudienceApi.md#bulkUpdateAudienceSegments) | **PATCH** /preview/retail-media/accounts/{account-id}/audience-segments | | | [**deleteContactListIdentifiers**](AudienceApi.md#deleteContactListIdentifiers) | **POST** /preview/retail-media/audience-segments/{audience-segment-id}/contact-list/clear | | -| [**getContactListStatisticsV1**](AudienceApi.md#getContactListStatisticsV1) | **GET** /preview/retail-media/accounts/{account-id}/audience-segments/{audience-segment-id}/contact-list | | -| [**legacyGetAudienceV1**](AudienceApi.md#legacyGetAudienceV1) | **GET** /preview/retail-media/accounts/{accountId}/audiences | | -| [**legacyGetAudienceV2**](AudienceApi.md#legacyGetAudienceV2) | **GET** /preview/retail-media/v2/accounts/{accountId}/audiences | | -| [**searchV1**](AudienceApi.md#searchV1) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/search | | +| [**getAudienceSegmentContactListStatistics**](AudienceApi.md#getAudienceSegmentContactListStatistics) | **GET** /preview/retail-media/accounts/{account-id}/audience-segments/{audience-segment-id}/contact-list | | +| [**searchAudienceSegments**](AudienceApi.md#searchAudienceSegments) | **POST** /preview/retail-media/accounts/{account-id}/audience-segments/search | | +| [**searchAudiences**](AudienceApi.md#searchAudiences) | **POST** /preview/retail-media/accounts/{account-id}/audiences/search | | | [**updateContactListIdentifiers**](AudienceApi.md#updateContactListIdentifiers) | **POST** /preview/retail-media/audience-segments/{audience-segment-id}/contact-list/add-remove | | -## bulkCreateV1 +## bulkCreateAudienceSegments -> RmAudienceSegmentEntityV1ListResponse bulkCreateV1(accountId, rmAudienceSegmentBulkCreateInputV1) +> RmAudienceSegmentEntityV1ListResponse bulkCreateAudienceSegments(accountId, rmAudienceSegmentBulkCreateInputV1) @@ -66,10 +65,10 @@ public class Example { String accountId = "accountId_example"; // String | Account Id RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1 = new RmAudienceSegmentBulkCreateInputV1(); // RmAudienceSegmentBulkCreateInputV1 | Segment creation parameter try { - RmAudienceSegmentEntityV1ListResponse result = apiInstance.bulkCreateV1(accountId, rmAudienceSegmentBulkCreateInputV1); + RmAudienceSegmentEntityV1ListResponse result = apiInstance.bulkCreateAudienceSegments(accountId, rmAudienceSegmentBulkCreateInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#bulkCreateV1"); + System.err.println("Exception when calling AudienceApi#bulkCreateAudienceSegments"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -110,9 +109,9 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## bulkDeleteV1 +## bulkDeleteAudienceSegments -> RmAudienceSegmentIdEntityV1ListResponse bulkDeleteV1(accountId, rmAudienceSegmentBulkDeleteInputV1) +> RmAudienceSegmentIdEntityV1ListResponse bulkDeleteAudienceSegments(accountId, rmAudienceSegmentBulkDeleteInputV1) @@ -160,10 +159,10 @@ public class Example { String accountId = "accountId_example"; // String | Account id RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1 = new RmAudienceSegmentBulkDeleteInputV1(); // RmAudienceSegmentBulkDeleteInputV1 | Segment delete request. try { - RmAudienceSegmentIdEntityV1ListResponse result = apiInstance.bulkDeleteV1(accountId, rmAudienceSegmentBulkDeleteInputV1); + RmAudienceSegmentIdEntityV1ListResponse result = apiInstance.bulkDeleteAudienceSegments(accountId, rmAudienceSegmentBulkDeleteInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#bulkDeleteV1"); + System.err.println("Exception when calling AudienceApi#bulkDeleteAudienceSegments"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -204,9 +203,9 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## bulkUpdateV1 +## bulkUpdateAudienceSegments -> RmAudienceSegmentEntityV1ListResponse bulkUpdateV1(accountId, rmAudienceSegmentBulkUpdateInputV1) +> RmAudienceSegmentEntityV1ListResponse bulkUpdateAudienceSegments(accountId, rmAudienceSegmentBulkUpdateInputV1) @@ -254,10 +253,10 @@ public class Example { String accountId = "accountId_example"; // String | Account id RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1 = new RmAudienceSegmentBulkUpdateInputV1(); // RmAudienceSegmentBulkUpdateInputV1 | Segment Update request try { - RmAudienceSegmentEntityV1ListResponse result = apiInstance.bulkUpdateV1(accountId, rmAudienceSegmentBulkUpdateInputV1); + RmAudienceSegmentEntityV1ListResponse result = apiInstance.bulkUpdateAudienceSegments(accountId, rmAudienceSegmentBulkUpdateInputV1); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#bulkUpdateV1"); + System.err.println("Exception when calling AudienceApi#bulkUpdateAudienceSegments"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -387,9 +386,9 @@ null (empty response body) | **403** | Forbidden | - | -## getContactListStatisticsV1 +## getAudienceSegmentContactListStatistics -> RmContactListStatisticsEntityV1Response getContactListStatisticsV1(accountId, audienceSegmentId) +> RmContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(accountId, audienceSegmentId) @@ -437,10 +436,10 @@ public class Example { String accountId = "accountId_example"; // String | Account Id String audienceSegmentId = "audienceSegmentId_example"; // String | Segment Id. try { - RmContactListStatisticsEntityV1Response result = apiInstance.getContactListStatisticsV1(accountId, audienceSegmentId); + RmContactListStatisticsEntityV1Response result = apiInstance.getAudienceSegmentContactListStatistics(accountId, audienceSegmentId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#getContactListStatisticsV1"); + System.err.println("Exception when calling AudienceApi#getAudienceSegmentContactListStatistics"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -481,111 +480,13 @@ public class Example { | **403** | The API client is not authorized to access this resource. | - | -## legacyGetAudienceV1 +## searchAudienceSegments -> RmLegacyAudienceGetEntityV1ListResponse legacyGetAudienceV1(accountId, limitToId, pageSize, pageIndex) +> RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(accountId, rmAudienceSegmentSearchInputV1, limit, offset) -Get a page of Audiences. (deprecated Public API) - -### Example - -```java -package com.criteo.api.retailmedia.preview; - -import com.criteo.api.retailmedia.preview.ApiClient; -import com.criteo.api.retailmedia.preview.ApiClientBuilder; -import com.criteo.api.retailmedia.preview.ApiException; -import com.criteo.api.retailmedia.preview.Configuration; -import com.criteo.api.retailmedia.preview.auth.*; -import com.criteo.api.retailmedia.preview.model.*; -import com.criteo.api.retailmedia.preview.api.AudienceApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - AudienceApi apiInstance = new AudienceApi(defaultClient); - Long accountId = 56L; // Long | ID of the account to which this audience belongs. - List limitToId = Arrays.asList(); // List | Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 - Integer pageSize = 56; // Integer | Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. - Integer pageIndex = 56; // Integer | Returns the specified page of results given a pageSize; pages are 0-indexed. - try { - RmLegacyAudienceGetEntityV1ListResponse result = apiInstance.legacyGetAudienceV1(accountId, limitToId, pageSize, pageIndex); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#legacyGetAudienceV1"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accountId** | **Long**| ID of the account to which this audience belongs. | | -| **limitToId** | [**List<Integer>**](Integer.md)| Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 | [optional] | -| **pageSize** | **Integer**| Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. | [optional] | -| **pageIndex** | **Integer**| Returns the specified page of results given a pageSize; pages are 0-indexed. | [optional] | - -### Return type - -[**RmLegacyAudienceGetEntityV1ListResponse**](RmLegacyAudienceGetEntityV1ListResponse.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: text/plain, application/json, text/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A page of audiences for the supplied account or shared by related retailers. | - | -| **400** | Bad request | - | -| **401** | The API client is not properly authenticated. | - | -| **403** | The API client is not authorized to access this resource. | - | - - -## legacyGetAudienceV2 - -> RmLegacyAudienceGetEntityV2ListResponse legacyGetAudienceV2(accountId, limitToId, pageSize, pageIndex) - - - -Get a page of Audiences. (deprecated Public API) +Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -626,15 +527,15 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AudienceApi apiInstance = new AudienceApi(defaultClient); - Long accountId = 56L; // Long | ID of the account to which this audience belongs. - List limitToId = Arrays.asList(); // List | Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 - Integer pageSize = 56; // Integer | Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. - Integer pageIndex = 56; // Integer | Returns the specified page of results given a pageSize; pages are 0-indexed. + String accountId = "accountId_example"; // String | Account Id + RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1 = new RmAudienceSegmentSearchInputV1(); // RmAudienceSegmentSearchInputV1 | Segment search filters. + Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. + Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - RmLegacyAudienceGetEntityV2ListResponse result = apiInstance.legacyGetAudienceV2(accountId, limitToId, pageSize, pageIndex); + RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchAudienceSegments(accountId, rmAudienceSegmentSearchInputV1, limit, offset); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#legacyGetAudienceV2"); + System.err.println("Exception when calling AudienceApi#searchAudienceSegments"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -649,14 +550,14 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **accountId** | **Long**| ID of the account to which this audience belongs. | | -| **limitToId** | [**List<Integer>**](Integer.md)| Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 | [optional] | -| **pageSize** | **Integer**| Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. | [optional] | -| **pageIndex** | **Integer**| Returns the specified page of results given a pageSize; pages are 0-indexed. | [optional] | +| **accountId** | **String**| Account Id | | +| **rmAudienceSegmentSearchInputV1** | [**RmAudienceSegmentSearchInputV1**](RmAudienceSegmentSearchInputV1.md)| Segment search filters. | | +| **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | +| **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -[**RmLegacyAudienceGetEntityV2ListResponse**](RmLegacyAudienceGetEntityV2ListResponse.md) +[**RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse**](RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.md) ### Authorization @@ -664,26 +565,26 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | A page of audiences for the supplied account or shared by related retailers. | - | +| **200** | Success or partial success | - | | **400** | Bad request | - | | **401** | The API client is not properly authenticated. | - | | **403** | The API client is not authorized to access this resource. | - | -## searchV1 +## searchAudiences -> RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse searchV1(accountId, rmAudienceSegmentSearchInputV1, limit, offset) +> RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse searchAudiences(accountId, rmAudienceSearchInputV1, limit, offset) -Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. +Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -725,14 +626,14 @@ public class Example { AudienceApi apiInstance = new AudienceApi(defaultClient); String accountId = "accountId_example"; // String | Account Id - RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1 = new RmAudienceSegmentSearchInputV1(); // RmAudienceSegmentSearchInputV1 | Segment search filters. + RmAudienceSearchInputV1 rmAudienceSearchInputV1 = new RmAudienceSearchInputV1(); // RmAudienceSearchInputV1 | Audience search filters. Integer limit = 50; // Integer | The number of elements to be returned. The default is 50 and the maximum is 100. Integer offset = 0; // Integer | The (zero-based) offset into the collection. The default is 0. try { - RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse result = apiInstance.searchV1(accountId, rmAudienceSegmentSearchInputV1, limit, offset); + RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse result = apiInstance.searchAudiences(accountId, rmAudienceSearchInputV1, limit, offset); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AudienceApi#searchV1"); + System.err.println("Exception when calling AudienceApi#searchAudiences"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -748,13 +649,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **accountId** | **String**| Account Id | | -| **rmAudienceSegmentSearchInputV1** | [**RmAudienceSegmentSearchInputV1**](RmAudienceSegmentSearchInputV1.md)| Segment search filters. | | +| **rmAudienceSearchInputV1** | [**RmAudienceSearchInputV1**](RmAudienceSearchInputV1.md)| Audience search filters. | | | **limit** | **Integer**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] [default to 50] | | **offset** | **Integer**| The (zero-based) offset into the collection. The default is 0. | [optional] [default to 0] | ### Return type -[**RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse**](RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse.md) +[**RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse**](RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md) ### Authorization diff --git a/sdks/retailmedia_preview/docs/BalanceApi.md b/sdks/retailmedia_preview/docs/BalanceApi.md index 6cb23901..8b79ef92 100644 --- a/sdks/retailmedia_preview/docs/BalanceApi.md +++ b/sdks/retailmedia_preview/docs/BalanceApi.md @@ -1,6 +1,6 @@ # BalanceApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_preview/docs/BotMessage.md b/sdks/retailmedia_preview/docs/BotMessage.md new file mode 100644 index 00000000..e47c673d --- /dev/null +++ b/sdks/retailmedia_preview/docs/BotMessage.md @@ -0,0 +1,16 @@ + + +# BotMessage + +bot structured answer to the user prompt + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**opening** | **String** | opening comment from the bot, introducing the list of recommended products if relevant. | [optional] | +|**productRecos** | [**List<ProductRecommendation>**](ProductRecommendation.md) | list of recommended products | [optional] | +|**closing** | **String** | closing remark from the bot | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/Botmessage.md b/sdks/retailmedia_preview/docs/Botmessage.md new file mode 100644 index 00000000..299428c6 --- /dev/null +++ b/sdks/retailmedia_preview/docs/Botmessage.md @@ -0,0 +1,16 @@ + + +# Botmessage + +bot answer with recommendations + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**opening** | **String** | opening comment from the bot, introducing the list of recommended products if relevant. | [optional] | +|**productRecos** | [**List<ProductRecommendation>**](ProductRecommendation.md) | list of recommended products | [optional] | +|**closing** | **String** | closing remark from the bot | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/CampaignApi.md b/sdks/retailmedia_preview/docs/CampaignApi.md index 6a023137..39a7e88c 100644 --- a/sdks/retailmedia_preview/docs/CampaignApi.md +++ b/sdks/retailmedia_preview/docs/CampaignApi.md @@ -1,6 +1,6 @@ # CampaignApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -23,9 +23,7 @@ All URIs are relative to *https://api.criteo.com* | [**getApiV2ExternalCampaignPreferredLineItemsByCampaignId**](CampaignApi.md#getApiV2ExternalCampaignPreferredLineItemsByCampaignId) | **GET** /preview/retail-media/campaigns/{campaign-id}/preferred-line-items | | | [**getApiV2ExternalLineItemBidMultipliersByLineItemId**](CampaignApi.md#getApiV2ExternalLineItemBidMultipliersByLineItemId) | **GET** /preview/retail-media/line-items/{line-item-id}/bid-multipliers | | | [**getApiV2ExternalPreferredLineItemByLineItemId**](CampaignApi.md#getApiV2ExternalPreferredLineItemByLineItemId) | **GET** /preview/retail-media/preferred-line-items/{line-item-id} | | -| [**getCampaignBudgetOverrides**](CampaignApi.md#getCampaignBudgetOverrides) | **GET** /preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides | | | [**getInsertionOrderHistoryChangeDataCaptureV2**](CampaignApi.md#getInsertionOrderHistoryChangeDataCaptureV2) | **GET** /preview/retail-media/insertion-order-history/{insertionOrderId}/change-data-capture | | -| [**getLineItemBudgetOverrides**](CampaignApi.md#getLineItemBudgetOverrides) | **GET** /preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides | | | [**getRecommendedKeywords**](CampaignApi.md#getRecommendedKeywords) | **GET** /preview/retail-media/line-items/{externalLineItemId}/keywords/recommended | | | [**getSkuByProductId**](CampaignApi.md#getSkuByProductId) | **POST** /preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id | | | [**pausePromotedProducts**](CampaignApi.md#pausePromotedProducts) | **POST** /preview/retail-media/line-items/{line-item-id}/products/pause | | @@ -45,8 +43,6 @@ All URIs are relative to *https://api.criteo.com* | [**setKeywordBids**](CampaignApi.md#setKeywordBids) | **POST** /preview/retail-media/line-items/{id}/keywords/set-bid | | | [**submitProposal**](CampaignApi.md#submitProposal) | **POST** /preview/retail-media/preferred-deal-line-items/{id}/proposal/submit | | | [**unpausePromotedProducts**](CampaignApi.md#unpausePromotedProducts) | **POST** /preview/retail-media/line-items/{line-item-id}/products/unpause | | -| [**updateCampaignBudgetOverrides**](CampaignApi.md#updateCampaignBudgetOverrides) | **PUT** /preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides | | -| [**updateLineItemBudgetOverrides**](CampaignApi.md#updateLineItemBudgetOverrides) | **PUT** /preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides | | @@ -1795,95 +1791,6 @@ public class Example { | **400** | Bad Request | - | -## getCampaignBudgetOverrides - -> ValueResourceOutcomeOfCampaignBudgetOverrides getCampaignBudgetOverrides(campaignId) - - - -Get current campaign budget overrides by given external campaign id. - -### Example - -```java -package com.criteo.api.retailmedia.preview; - -import com.criteo.api.retailmedia.preview.ApiClient; -import com.criteo.api.retailmedia.preview.ApiClientBuilder; -import com.criteo.api.retailmedia.preview.ApiException; -import com.criteo.api.retailmedia.preview.Configuration; -import com.criteo.api.retailmedia.preview.auth.*; -import com.criteo.api.retailmedia.preview.model.*; -import com.criteo.api.retailmedia.preview.api.CampaignApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - CampaignApi apiInstance = new CampaignApi(defaultClient); - Long campaignId = 56L; // Long | External campaign id. - try { - ValueResourceOutcomeOfCampaignBudgetOverrides result = apiInstance.getCampaignBudgetOverrides(campaignId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getCampaignBudgetOverrides"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **campaignId** | **Long**| External campaign id. | | - -### Return type - -[**ValueResourceOutcomeOfCampaignBudgetOverrides**](ValueResourceOutcomeOfCampaignBudgetOverrides.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - - ## getInsertionOrderHistoryChangeDataCaptureV2 > PageOfInsertionOrderHistoryChangeDataCaptureV2 getInsertionOrderHistoryChangeDataCaptureV2(insertionOrderId, offset, limit, limitToChangeTypes) @@ -1979,95 +1886,6 @@ public class Example { | **200** | Success | - | -## getLineItemBudgetOverrides - -> ValueResourceOutcomeOfLineItemBudgetOverrides getLineItemBudgetOverrides(lineItemId) - - - -Gets a collection of monthly and daily budget overrides for the provided line item. - -### Example - -```java -package com.criteo.api.retailmedia.preview; - -import com.criteo.api.retailmedia.preview.ApiClient; -import com.criteo.api.retailmedia.preview.ApiClientBuilder; -import com.criteo.api.retailmedia.preview.ApiException; -import com.criteo.api.retailmedia.preview.Configuration; -import com.criteo.api.retailmedia.preview.auth.*; -import com.criteo.api.retailmedia.preview.model.*; -import com.criteo.api.retailmedia.preview.api.CampaignApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | The line item id to get budget overrides for. - try { - ValueResourceOutcomeOfLineItemBudgetOverrides result = apiInstance.getLineItemBudgetOverrides(lineItemId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#getLineItemBudgetOverrides"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| The line item id to get budget overrides for. | | - -### Return type - -[**ValueResourceOutcomeOfLineItemBudgetOverrides**](ValueResourceOutcomeOfLineItemBudgetOverrides.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | - - ## getRecommendedKeywords > ValueResourceOutcomeOfRecommendedKeywordsResult getRecommendedKeywords(externalLineItemId) @@ -3827,185 +3645,3 @@ null (empty response body) | **400** | Invalid request body | - | | **403** | Invalid external line item ID | - | - -## updateCampaignBudgetOverrides - -> ValueResourceOutcomeOfCampaignBudgetOverrides updateCampaignBudgetOverrides(campaignId, valueResourceInputOfCampaignBudgetOverrides) - - - -Update campaign budget overrides by given external campaign id and new campaign budget overrides settings. - -### Example - -```java -package com.criteo.api.retailmedia.preview; - -import com.criteo.api.retailmedia.preview.ApiClient; -import com.criteo.api.retailmedia.preview.ApiClientBuilder; -import com.criteo.api.retailmedia.preview.ApiException; -import com.criteo.api.retailmedia.preview.Configuration; -import com.criteo.api.retailmedia.preview.auth.*; -import com.criteo.api.retailmedia.preview.model.*; -import com.criteo.api.retailmedia.preview.api.CampaignApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - CampaignApi apiInstance = new CampaignApi(defaultClient); - Long campaignId = 56L; // Long | External campaign id. - ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides = new ValueResourceInputOfCampaignBudgetOverrides(); // ValueResourceInputOfCampaignBudgetOverrides | New campaign budget overrides settings value resource input. - try { - ValueResourceOutcomeOfCampaignBudgetOverrides result = apiInstance.updateCampaignBudgetOverrides(campaignId, valueResourceInputOfCampaignBudgetOverrides); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#updateCampaignBudgetOverrides"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **campaignId** | **Long**| External campaign id. | | -| **valueResourceInputOfCampaignBudgetOverrides** | [**ValueResourceInputOfCampaignBudgetOverrides**](ValueResourceInputOfCampaignBudgetOverrides.md)| New campaign budget overrides settings value resource input. | [optional] | - -### Return type - -[**ValueResourceOutcomeOfCampaignBudgetOverrides**](ValueResourceOutcomeOfCampaignBudgetOverrides.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Success | - | - - -## updateLineItemBudgetOverrides - -> ValueResourceOutcomeOfLineItemBudgetOverrides updateLineItemBudgetOverrides(lineItemId, valueResourceInputOfLineItemBudgetOverrides) - - - -Update line item budget overrides by given external line item id and new line item budget overrides settings. - -### Example - -```java -package com.criteo.api.retailmedia.preview; - -import com.criteo.api.retailmedia.preview.ApiClient; -import com.criteo.api.retailmedia.preview.ApiClientBuilder; -import com.criteo.api.retailmedia.preview.ApiException; -import com.criteo.api.retailmedia.preview.Configuration; -import com.criteo.api.retailmedia.preview.auth.*; -import com.criteo.api.retailmedia.preview.model.*; -import com.criteo.api.retailmedia.preview.api.CampaignApi; - -public class Example { - public static void main(String[] args) { - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - // Configure OAuth2, two options: - // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 - String clientId = "YOUR CLIENT ID"; - String clientSecret = "YOUR CLIENT SECRET"; - ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); - - // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client - // ApiClient defaultClient = Configuration.getDefaultApiClient(); - // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); - // oauth.setAccessToken("YOUR ACCESS TOKEN"); - - CampaignApi apiInstance = new CampaignApi(defaultClient); - String lineItemId = "lineItemId_example"; // String | Line item external id. - ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides = new ValueResourceInputOfLineItemBudgetOverrides(); // ValueResourceInputOfLineItemBudgetOverrides | New line item budget overrides settings value resource input. - try { - ValueResourceOutcomeOfLineItemBudgetOverrides result = apiInstance.updateLineItemBudgetOverrides(lineItemId, valueResourceInputOfLineItemBudgetOverrides); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling CampaignApi#updateLineItemBudgetOverrides"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **lineItemId** | **String**| Line item external id. | | -| **valueResourceInputOfLineItemBudgetOverrides** | [**ValueResourceInputOfLineItemBudgetOverrides**](ValueResourceInputOfLineItemBudgetOverrides.md)| New line item budget overrides settings value resource input. | [optional] | - -### Return type - -[**ValueResourceOutcomeOfLineItemBudgetOverrides**](ValueResourceOutcomeOfLineItemBudgetOverrides.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - -- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json -- **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Success | - | - diff --git a/sdks/retailmedia_preview/docs/CatalogApi.md b/sdks/retailmedia_preview/docs/CatalogApi.md index 461020cf..d8f49d1f 100644 --- a/sdks/retailmedia_preview/docs/CatalogApi.md +++ b/sdks/retailmedia_preview/docs/CatalogApi.md @@ -1,6 +1,6 @@ # CatalogApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_preview/docs/EntityResourceCollectionOutcomeOfRetailMediaAccount.md b/sdks/retailmedia_preview/docs/EntityResourceCollectionOutcomeOfRetailMediaAccount.md new file mode 100644 index 00000000..13ee5d04 --- /dev/null +++ b/sdks/retailmedia_preview/docs/EntityResourceCollectionOutcomeOfRetailMediaAccount.md @@ -0,0 +1,16 @@ + + +# EntityResourceCollectionOutcomeOfRetailMediaAccount + +A resource that represents collection of Retail Media account entities + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<EntityResourceOfRetailMediaAccount>**](EntityResourceOfRetailMediaAccount.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_preview/docs/EntityResourceOfRetailMediaAccount.md b/sdks/retailmedia_preview/docs/EntityResourceOfRetailMediaAccount.md new file mode 100644 index 00000000..94a68747 --- /dev/null +++ b/sdks/retailmedia_preview/docs/EntityResourceOfRetailMediaAccount.md @@ -0,0 +1,16 @@ + + +# EntityResourceOfRetailMediaAccount + +A resource object that represents a single Retail Media account entity + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | [optional] | +|**type** | **String** | | [optional] | +|**attributes** | [**ExternalRetailMediaAccount**](ExternalRetailMediaAccount.md) | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/ExternalAccount.md b/sdks/retailmedia_preview/docs/ExternalAccount.md index 6f37640d..10ac5d36 100644 --- a/sdks/retailmedia_preview/docs/ExternalAccount.md +++ b/sdks/retailmedia_preview/docs/ExternalAccount.md @@ -16,6 +16,7 @@ A Retail Media Account used to launch campaigns and line items |**parentAccountLabel** | **String** | | | |**timeZone** | **String** | | | |**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | diff --git a/sdks/retailmedia_preview/docs/ExternalRetailMediaAccount.md b/sdks/retailmedia_preview/docs/ExternalRetailMediaAccount.md new file mode 100644 index 00000000..a8168587 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ExternalRetailMediaAccount.md @@ -0,0 +1,42 @@ + + +# ExternalRetailMediaAccount + +A Retail Media account entity + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | [optional] | +|**companyName** | **String** | | [optional] | +|**onBehalfCompanyName** | **String** | | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | | | +|**subType** | [**SubTypeEnum**](#SubTypeEnum) | | | +|**countryIds** | **List<String>** | | [optional] | +|**currencyId** | **String** | | [optional] | +|**parentAccountLabel** | **String** | | [optional] | +|**timeZone** | **String** | | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| SUPPLY | "Supply" | +| DEMAND | "Demand" | + + + +## Enum: SubTypeEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| BRAND | "Brand" | +| SELLER | "Seller" | + + + diff --git a/sdks/retailmedia_preview/docs/GatewayApi.md b/sdks/retailmedia_preview/docs/GatewayApi.md index cb9721aa..83c2c65c 100644 --- a/sdks/retailmedia_preview/docs/GatewayApi.md +++ b/sdks/retailmedia_preview/docs/GatewayApi.md @@ -1,6 +1,6 @@ # GatewayApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| diff --git a/sdks/retailmedia_preview/docs/HttpValidationError.md b/sdks/retailmedia_preview/docs/HttpValidationError.md new file mode 100644 index 00000000..62c1dad1 --- /dev/null +++ b/sdks/retailmedia_preview/docs/HttpValidationError.md @@ -0,0 +1,14 @@ + + +# HttpValidationError + +http validation error + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**detail** | [**List<ValidationError>**](ValidationError.md) | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/InbotDiscussion.md b/sdks/retailmedia_preview/docs/InbotDiscussion.md new file mode 100644 index 00000000..1f1e2498 --- /dev/null +++ b/sdks/retailmedia_preview/docs/InbotDiscussion.md @@ -0,0 +1,14 @@ + + +# InbotDiscussion + +discussion between the user and the chatbot + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messages** | [**List<Message>**](Message.md) | ordered list of previous messages, alternating between user prompts and bot answers | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/InbotDiscussionBodyModel.md b/sdks/retailmedia_preview/docs/InbotDiscussionBodyModel.md new file mode 100644 index 00000000..f021034a --- /dev/null +++ b/sdks/retailmedia_preview/docs/InbotDiscussionBodyModel.md @@ -0,0 +1,14 @@ + + +# InbotDiscussionBodyModel + +an API recommendation message + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**InbotDiscussionDataInstanceModel**](InbotDiscussionDataInstanceModel.md) | | | + + + diff --git a/sdks/retailmedia_preview/docs/InbotDiscussionDataInstanceModel.md b/sdks/retailmedia_preview/docs/InbotDiscussionDataInstanceModel.md new file mode 100644 index 00000000..f7b48411 --- /dev/null +++ b/sdks/retailmedia_preview/docs/InbotDiscussionDataInstanceModel.md @@ -0,0 +1,15 @@ + + +# InbotDiscussionDataInstanceModel + +an API recommendation request + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | | [optional] | +|**attributes** | [**InbotDiscussion**](InbotDiscussion.md) | | | + + + diff --git a/sdks/marketingsolutions_2023-07/docs/ReplaceAudienceRequest.md b/sdks/retailmedia_preview/docs/LocationInner.md similarity index 51% rename from sdks/marketingsolutions_2023-07/docs/ReplaceAudienceRequest.md rename to sdks/retailmedia_preview/docs/LocationInner.md index 0ca5aac2..c1e1d16d 100644 --- a/sdks/marketingsolutions_2023-07/docs/ReplaceAudienceRequest.md +++ b/sdks/retailmedia_preview/docs/LocationInner.md @@ -1,14 +1,12 @@ -# ReplaceAudienceRequest +# LocationInner -Request to replace an audience ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**ReplaceAudience**](ReplaceAudience.md) | | | diff --git a/sdks/retailmedia_preview/docs/Message.md b/sdks/retailmedia_preview/docs/Message.md new file mode 100644 index 00000000..480d6c76 --- /dev/null +++ b/sdks/retailmedia_preview/docs/Message.md @@ -0,0 +1,15 @@ + + +# Message + +message of the discussion + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userMessage** | **String** | user prompt | [optional] | +|**botMessage** | [**Botmessage**](Botmessage.md) | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/MessageBodyModel.md b/sdks/retailmedia_preview/docs/MessageBodyModel.md new file mode 100644 index 00000000..902073e3 --- /dev/null +++ b/sdks/retailmedia_preview/docs/MessageBodyModel.md @@ -0,0 +1,15 @@ + + +# MessageBodyModel + +error message + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MessageDataInstanceModel**](MessageDataInstanceModel.md) | | [optional] | +|**errors** | [**List<MessageError>**](MessageError.md) | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/MessageDataInstanceModel.md b/sdks/retailmedia_preview/docs/MessageDataInstanceModel.md new file mode 100644 index 00000000..5cdaf109 --- /dev/null +++ b/sdks/retailmedia_preview/docs/MessageDataInstanceModel.md @@ -0,0 +1,15 @@ + + +# MessageDataInstanceModel + +an API answer message + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | | [optional] | +|**attributes** | [**Message**](Message.md) | | | + + + diff --git a/sdks/retailmedia_preview/docs/MessageError.md b/sdks/retailmedia_preview/docs/MessageError.md new file mode 100644 index 00000000..b35b3cfa --- /dev/null +++ b/sdks/retailmedia_preview/docs/MessageError.md @@ -0,0 +1,17 @@ + + +# MessageError + +error message + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**traceId** | **String** | correlation ID, unique to each request | [optional] | +|**type** | **String** | error category | [optional] | +|**code** | **String** | error code | [optional] | +|**instance** | **String** | specific occurrence of the problem | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/AccountsApi.md b/sdks/retailmedia_preview/docs/OnSiteRecommendationApi.md similarity index 53% rename from sdks/retailmedia_2023-07/docs/AccountsApi.md rename to sdks/retailmedia_preview/docs/OnSiteRecommendationApi.md index 7ef9fb96..6adea56c 100644 --- a/sdks/retailmedia_2023-07/docs/AccountsApi.md +++ b/sdks/retailmedia_preview/docs/OnSiteRecommendationApi.md @@ -1,33 +1,33 @@ -# AccountsApi +# OnSiteRecommendationApi -All URIs are relative to *https://api.criteo.com* +All URIs are relative to *https://api.criteo.com*. Please check the detailed instructions about this API at [https://developers.criteo.com/](https://developers.criteo.com/). | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getApiV1ExternalAccounts**](AccountsApi.md#getApiV1ExternalAccounts) | **GET** /2023-07/retail-media/accounts | | +| [**chatbotProductRecommendations**](OnSiteRecommendationApi.md#chatbotProductRecommendations) | **POST** /preview/retail-media/chatbot-catalogs/{catalogid}/product-recommendations | | -## getApiV1ExternalAccounts +## chatbotProductRecommendations -> JsonApiPageResponseOfAccount getApiV1ExternalAccounts(limitToId, pageIndex, pageSize) +> MessageBodyModel chatbotProductRecommendations(catalogid, inbotDiscussionBodyModel) -Gets page of account objects that the current user can access +Ask a chatbot for a product recommendation ### Example ```java -package com.criteo.api.retailmedia.v2023_07; +package com.criteo.api.retailmedia.preview; -import com.criteo.api.retailmedia.v2023_07.ApiClient; -import com.criteo.api.retailmedia.v2023_07.ApiClientBuilder; -import com.criteo.api.retailmedia.v2023_07.ApiException; -import com.criteo.api.retailmedia.v2023_07.Configuration; -import com.criteo.api.retailmedia.v2023_07.auth.*; -import com.criteo.api.retailmedia.v2023_07.model.*; -import com.criteo.api.retailmedia.v2023_07.api.AccountsApi; +import com.criteo.api.retailmedia.preview.ApiClient; +import com.criteo.api.retailmedia.preview.ApiClientBuilder; +import com.criteo.api.retailmedia.preview.ApiException; +import com.criteo.api.retailmedia.preview.Configuration; +import com.criteo.api.retailmedia.preview.auth.*; +import com.criteo.api.retailmedia.preview.model.*; +import com.criteo.api.retailmedia.preview.api.OnSiteRecommendationApi; public class Example { public static void main(String[] args) { @@ -54,15 +54,14 @@ public class Example { // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); // oauth.setAccessToken("YOUR ACCESS TOKEN"); - AccountsApi apiInstance = new AccountsApi(defaultClient); - List limitToId = Arrays.asList(); // List | The ids that you would like to limit your result set to - Integer pageIndex = 0; // Integer | The 0 indexed page index you would like to receive given the page size - Integer pageSize = 25; // Integer | The maximum number of items you would like to receive in this request + OnSiteRecommendationApi apiInstance = new OnSiteRecommendationApi(defaultClient); + Integer catalogid = 56; // Integer | the identifier of the catalog to query + InbotDiscussionBodyModel inbotDiscussionBodyModel = new InbotDiscussionBodyModel(); // InbotDiscussionBodyModel | try { - JsonApiPageResponseOfAccount result = apiInstance.getApiV1ExternalAccounts(limitToId, pageIndex, pageSize); + MessageBodyModel result = apiInstance.chatbotProductRecommendations(catalogid, inbotDiscussionBodyModel); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AccountsApi#getApiV1ExternalAccounts"); + System.err.println("Exception when calling OnSiteRecommendationApi#chatbotProductRecommendations"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -77,13 +76,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **limitToId** | [**List<String>**](String.md)| The ids that you would like to limit your result set to | [optional] | -| **pageIndex** | **Integer**| The 0 indexed page index you would like to receive given the page size | [optional] [default to 0] | -| **pageSize** | **Integer**| The maximum number of items you would like to receive in this request | [optional] [default to 25] | +| **catalogid** | **Integer**| the identifier of the catalog to query | | +| **inbotDiscussionBodyModel** | [**InbotDiscussionBodyModel**](InbotDiscussionBodyModel.md)| | | ### Return type -[**JsonApiPageResponseOfAccount**](JsonApiPageResponseOfAccount.md) +[**MessageBodyModel**](MessageBodyModel.md) ### Authorization @@ -91,12 +89,16 @@ public class Example { ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: text/plain, application/json, text/json +- **Content-Type**: application/json +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **200** | Successful Response | - | +| **400** | Bad Request | - | +| **403** | Forbidden | - | +| **404** | Not Found | - | +| **422** | Validation Error | - | diff --git a/sdks/retailmedia_preview/docs/Product.md b/sdks/retailmedia_preview/docs/Product.md index cb2ce7b9..8d98d29f 100644 --- a/sdks/retailmedia_preview/docs/Product.md +++ b/sdks/retailmedia_preview/docs/Product.md @@ -89,6 +89,7 @@ Defines a product to be inserted or updated. |**externalSellerName** | **String** | The external name of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads. | [optional] | |**numberOfReviews** | **Integer** | The number of customer reviews for the product | [optional] | |**productRating** | **String** | The product rating for the product | [optional] | +|**badge** | **String** | URL of a badge image to display on the product. | [optional] | diff --git a/sdks/retailmedia_preview/docs/ProductRecommendation.md b/sdks/retailmedia_preview/docs/ProductRecommendation.md new file mode 100644 index 00000000..6319dd40 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ProductRecommendation.md @@ -0,0 +1,21 @@ + + +# ProductRecommendation + +recommendation data for a product + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**rationale** | **String** | reason for this recommendation, given by the bot | | +|**name** | **String** | name of the product | [optional] | +|**description** | **String** | description of the product | [optional] | +|**imageUrl** | **URI** | url of the product image | [optional] | +|**url** | **URI** | url of the product on the retailer website | [optional] | +|**brand** | **String** | brand of the product | [optional] | +|**price** | **BigDecimal** | numerical value of the price of the product | [optional] | +|**currency** | **String** | currency of the price of the product | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/ReportDetailWarning.md b/sdks/retailmedia_preview/docs/ReportDetailWarning.md new file mode 100644 index 00000000..68d993ee --- /dev/null +++ b/sdks/retailmedia_preview/docs/ReportDetailWarning.md @@ -0,0 +1,25 @@ + + +# ReportDetailWarning + +A warning on a batch operation. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**TypeEnum**](#TypeEnum) | | | +|**message** | **String** | | | +|**isServerRelated** | **Boolean** | | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| OVERLARGEBADGEURL | "OverlargeBadgeUrl" | +| INVALIDBADGEURL | "InvalidBadgeUrl" | + + + diff --git a/sdks/retailmedia_preview/docs/ReportDetailWarnings.md b/sdks/retailmedia_preview/docs/ReportDetailWarnings.md new file mode 100644 index 00000000..a06d7549 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ReportDetailWarnings.md @@ -0,0 +1,15 @@ + + +# ReportDetailWarnings + +A list of warnings on a batch operation. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**productId** | **String** | | | +|**warnings** | [**List<ReportDetailWarning>**](ReportDetailWarning.md) | | | + + + diff --git a/sdks/retailmedia_preview/docs/ReportOkResponse.md b/sdks/retailmedia_preview/docs/ReportOkResponse.md index 1095f90a..1bebac3b 100644 --- a/sdks/retailmedia_preview/docs/ReportOkResponse.md +++ b/sdks/retailmedia_preview/docs/ReportOkResponse.md @@ -15,6 +15,8 @@ The report on a given operationToken is ready. The report is available for 4 day |**numberOfProductsDeleted** | **Integer** | The number of products deleted. | | |**numberOfProductsWithErrors** | **Integer** | The number of products with errors. | | |**errorDetails** | [**List<ReportDetailErrors>**](ReportDetailErrors.md) | The list of errors with details. | | +|**numberOfProductsWithWarnings** | **Integer** | The number of products with Warnings. | | +|**warningDetails** | [**List<ReportDetailWarnings>**](ReportDetailWarnings.md) | The list of Warnings with details. | | diff --git a/sdks/retailmedia_preview/docs/RetailMediaAccount.md b/sdks/retailmedia_preview/docs/RetailMediaAccount.md index b1900bd1..d4066b2b 100644 --- a/sdks/retailmedia_preview/docs/RetailMediaAccount.md +++ b/sdks/retailmedia_preview/docs/RetailMediaAccount.md @@ -9,7 +9,8 @@ The details for a newly created account | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | account name | [optional] | -|**companyName** | **String** | Display name for reporting the owning entity of ads for the Digital Services Act in the European Union | [optional] | +|**companyName** | **String** | Paying entity name of ads for the Digital Services Act | [optional] | +|**onBehalfCompanyName** | **String** | On behalf entity name of ads for the Digital Services Act | [optional] | |**type** | [**TypeEnum**](#TypeEnum) | Type for the account | [optional] | |**subType** | [**SubTypeEnum**](#SubTypeEnum) | subtype for the account | [optional] | |**countryIds** | **List<String>** | list of countries associated with the account | [optional] | diff --git a/sdks/retailmedia_preview/docs/RetailMediaSellerAccountCreation.md b/sdks/retailmedia_preview/docs/RetailMediaSellerAccountCreation.md index ef2374cf..86f6d3bc 100644 --- a/sdks/retailmedia_preview/docs/RetailMediaSellerAccountCreation.md +++ b/sdks/retailmedia_preview/docs/RetailMediaSellerAccountCreation.md @@ -9,7 +9,8 @@ the initial set up and configuration options for a new private market demand bra | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | the name of the account, must be unique across all accounts | [optional] | -|**companyName** | **String** | Display name for reporting the owning entity of ads for the Digital Services Act in the European Union | [optional] | +|**companyName** | **String** | Paying entity name of ads for the Digital Services Act | [optional] | +|**onBehalfCompanyName** | **String** | On behalf entity name of ads for the Digital Services Act | [optional] | |**sellers** | [**List<RetailMediaSeller>**](RetailMediaSeller.md) | list of sellers to associate to the new account | [optional] | diff --git a/sdks/retailmedia_preview/docs/RmAlgebraNodeV1.md b/sdks/retailmedia_preview/docs/RmAlgebraNodeV1.md new file mode 100644 index 00000000..dc034b7b --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmAlgebraNodeV1.md @@ -0,0 +1,17 @@ + + +# RmAlgebraNodeV1 + +Node in the audience algebra definition. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**and** | [**List<RmAlgebraNodeV1>**](RmAlgebraNodeV1.md) | | [optional] | +|**or** | [**List<RmAlgebraNodeV1>**](RmAlgebraNodeV1.md) | | [optional] | +|**not** | [**RmAlgebraNodeV1**](RmAlgebraNodeV1.md) | | [optional] | +|**audienceSegmentId** | **String** | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/RmAudienceEntityV1.md b/sdks/retailmedia_preview/docs/RmAudienceEntityV1.md new file mode 100644 index 00000000..9c0de9d6 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmAudienceEntityV1.md @@ -0,0 +1,32 @@ + + +# RmAudienceEntityV1 + +Audience of people of interest for a marketer. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accountId** | **String** | Account associated to the audience | [optional] | +|**name** | **String** | Name of the audience | [optional] | +|**description** | **String** | Description of the audience | [optional] | +|**retailerId** | **String** | Retailer associated to the audience | [optional] | +|**createdById** | **String** | User that created the audience | [optional] | +|**createdAt** | **OffsetDateTime** | ISO-8601 timestamp in UTC of audience creation (read-only) | [optional] | +|**updatedAt** | **OffsetDateTime** | ISO-8601 timestamp in UTC of audience update (read-only) | [optional] | +|**channels** | [**List<ChannelsEnum>**](#List<ChannelsEnum>) | Channels associated to the audience (read-only) | [optional] | +|**algebra** | [**RmAlgebraNodeV1**](RmAlgebraNodeV1.md) | | [optional] | + + + +## Enum: List<ChannelsEnum> + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| ONSITE | "Onsite" | +| OFFSITE | "Offsite" | + + + diff --git a/sdks/retailmedia_preview/docs/RmAudienceEntityV1Resource.md b/sdks/retailmedia_preview/docs/RmAudienceEntityV1Resource.md new file mode 100644 index 00000000..6623d4ea --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmAudienceEntityV1Resource.md @@ -0,0 +1,16 @@ + + +# RmAudienceEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attributes** | [**RmAudienceEntityV1**](RmAudienceEntityV1.md) | | [optional] | +|**id** | **String** | Id of the entity | [optional] | +|**type** | **String** | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md b/sdks/retailmedia_preview/docs/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md new file mode 100644 index 00000000..ddcacd4c --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.md @@ -0,0 +1,17 @@ + + +# RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities and metadata + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**meta** | [**RmAudienceSearchMetadataV1**](RmAudienceSearchMetadataV1.md) | | [optional] | +|**data** | [**List<RmAudienceEntityV1Resource>**](RmAudienceEntityV1Resource.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_preview/docs/RmAudienceSearchEntityV1.md b/sdks/retailmedia_preview/docs/RmAudienceSearchEntityV1.md new file mode 100644 index 00000000..11bd900b --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmAudienceSearchEntityV1.md @@ -0,0 +1,16 @@ + + +# RmAudienceSearchEntityV1 + +Available filters to perform a search on audiences. If present, the filters are AND'ed together when applied. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**audienceIds** | **List<String>** | List of audience ids | [optional] | +|**retailerIds** | **List<String>** | List of retailer ids | [optional] | +|**audienceSegmentIds** | **List<String>** | List of segment ids (linked to the result audiences) | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/RmAudienceSearchEntityV1Resource.md b/sdks/retailmedia_preview/docs/RmAudienceSearchEntityV1Resource.md new file mode 100644 index 00000000..5738601e --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmAudienceSearchEntityV1Resource.md @@ -0,0 +1,15 @@ + + +# RmAudienceSearchEntityV1Resource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | | [optional] | +|**attributes** | [**RmAudienceSearchEntityV1**](RmAudienceSearchEntityV1.md) | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/RmAudienceSearchInputV1.md b/sdks/retailmedia_preview/docs/RmAudienceSearchInputV1.md new file mode 100644 index 00000000..0919a5ce --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmAudienceSearchInputV1.md @@ -0,0 +1,14 @@ + + +# RmAudienceSearchInputV1 + +A top-level object that encapsulates a Criteo API request for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RmAudienceSearchEntityV1Resource**](RmAudienceSearchEntityV1Resource.md) | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/RmAudienceSearchMetadataV1.md b/sdks/retailmedia_preview/docs/RmAudienceSearchMetadataV1.md new file mode 100644 index 00000000..6decab77 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmAudienceSearchMetadataV1.md @@ -0,0 +1,16 @@ + + +# RmAudienceSearchMetadataV1 + +Metadata for the audience search response. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalItems** | **Integer** | Total number of items | [optional] | +|**limit** | **Integer** | Max item of the current page | [optional] | +|**offset** | **Integer** | Number of item to skip | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkCreateInputV1.md b/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkCreateInputV1.md index 55c39e29..13b3f8ee 100644 --- a/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkCreateInputV1.md +++ b/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkCreateInputV1.md @@ -2,7 +2,7 @@ # RmAudienceSegmentBulkCreateInputV1 -Input to create one or more audience segments. +A top-level object that encapsulates a Criteo API request for several values. ## Properties diff --git a/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkDeleteInputV1.md b/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkDeleteInputV1.md index dc825753..bd69109d 100644 --- a/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkDeleteInputV1.md +++ b/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkDeleteInputV1.md @@ -2,7 +2,7 @@ # RmAudienceSegmentBulkDeleteInputV1 -Input to delete one or more segments. +A top-level object that encapsulates a Criteo API request for several entities. ## Properties diff --git a/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkUpdateInputV1.md b/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkUpdateInputV1.md index a8348a0a..630af8bb 100644 --- a/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkUpdateInputV1.md +++ b/sdks/retailmedia_preview/docs/RmAudienceSegmentBulkUpdateInputV1.md @@ -2,7 +2,7 @@ # RmAudienceSegmentBulkUpdateInputV1 -Input to update one or more segments. +A top-level object that encapsulates a Criteo API request for several entities. ## Properties diff --git a/sdks/retailmedia_preview/docs/RmAudienceSegmentCreateEntityV1.md b/sdks/retailmedia_preview/docs/RmAudienceSegmentCreateEntityV1.md index df80905e..7756fec0 100644 --- a/sdks/retailmedia_preview/docs/RmAudienceSegmentCreateEntityV1.md +++ b/sdks/retailmedia_preview/docs/RmAudienceSegmentCreateEntityV1.md @@ -8,9 +8,9 @@ Set of rules that defines specific people to target. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name of the segment | [optional] | +|**name** | **String** | Name of the segment | | |**description** | **String** | Description of the segment | [optional] | -|**retailerId** | **String** | Retailer associated to the segment | [optional] | +|**retailerId** | **String** | Retailer associated to the segment | | |**contactList** | [**RmContactListCreateV1**](RmContactListCreateV1.md) | | [optional] | diff --git a/sdks/retailmedia_preview/docs/RmAudienceSegmentEntityV1.md b/sdks/retailmedia_preview/docs/RmAudienceSegmentEntityV1.md index 4eb8b4a6..c0fd5d13 100644 --- a/sdks/retailmedia_preview/docs/RmAudienceSegmentEntityV1.md +++ b/sdks/retailmedia_preview/docs/RmAudienceSegmentEntityV1.md @@ -17,7 +17,7 @@ Set of rules that defines specific people to target. |**updatedAt** | **OffsetDateTime** | ISO-8601 timestamp in UTC of segment update (read-only) | [optional] | |**createdById** | **String** | User that created the segment | [optional] | |**contactList** | [**RmContactListV1**](RmContactListV1.md) | | [optional] | -|**userBehavior** | [**RmUserBehaviorV1**](RmUserBehaviorV1.md) | | [optional] | +|**events** | [**RmEventsV1**](RmEventsV1.md) | | [optional] | |**channels** | [**List<ChannelsEnum>**](#List<ChannelsEnum>) | Channels associated to the segment (read-only) | [optional] | @@ -28,7 +28,7 @@ Set of rules that defines specific people to target. |---- | -----| | UNKNOWN | "Unknown" | | CONTACTLIST | "ContactList" | -| USERBEHAVIOR | "UserBehavior" | +| EVENTS | "Events" | diff --git a/sdks/retailmedia_preview/docs/RmAudienceSegmentSearchEntityV1.md b/sdks/retailmedia_preview/docs/RmAudienceSegmentSearchEntityV1.md index 125ad4f7..94759e74 100644 --- a/sdks/retailmedia_preview/docs/RmAudienceSegmentSearchEntityV1.md +++ b/sdks/retailmedia_preview/docs/RmAudienceSegmentSearchEntityV1.md @@ -20,7 +20,7 @@ Available filters to perform a search on audience segments. If present, the filt |---- | -----| | UNKNOWN | "Unknown" | | CONTACTLIST | "ContactList" | -| USERBEHAVIOR | "UserBehavior" | +| EVENTS | "Events" | diff --git a/sdks/retailmedia_preview/docs/RmAudienceSegmentSearchInputV1.md b/sdks/retailmedia_preview/docs/RmAudienceSegmentSearchInputV1.md index 9088937a..f36ec231 100644 --- a/sdks/retailmedia_preview/docs/RmAudienceSegmentSearchInputV1.md +++ b/sdks/retailmedia_preview/docs/RmAudienceSegmentSearchInputV1.md @@ -2,7 +2,7 @@ # RmAudienceSegmentSearchInputV1 -Audience segment search parameter +A top-level object that encapsulates a Criteo API request for a single value. ## Properties diff --git a/sdks/retailmedia_preview/docs/RmContactListV1.md b/sdks/retailmedia_preview/docs/RmContactListV1.md index f0c6e817..5ae150f1 100644 --- a/sdks/retailmedia_preview/docs/RmContactListV1.md +++ b/sdks/retailmedia_preview/docs/RmContactListV1.md @@ -9,12 +9,12 @@ Settings to target users with your contact lists. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**isReadOnly** | **Boolean** | Is the segment read-only | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | Indicates contact list type | [optional] | +|**identifierType** | [**IdentifierTypeEnum**](#IdentifierTypeEnum) | Indicates contact list identifier's type | [optional] | |**sharingStatus** | [**SharingStatusEnum**](#SharingStatusEnum) | Indicates if the contact list is shared with other accounts | [optional] | -## Enum: TypeEnum +## Enum: IdentifierTypeEnum | Name | Value | |---- | -----| diff --git a/sdks/retailmedia_preview/docs/RmEventsV1.md b/sdks/retailmedia_preview/docs/RmEventsV1.md new file mode 100644 index 00000000..2252f5f6 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmEventsV1.md @@ -0,0 +1,47 @@ + + +# RmEventsV1 + +Settings to target users based on their behavior + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**shopperActivity** | [**ShopperActivityEnum**](#ShopperActivityEnum) | Reach people who performed specific action | [optional] | +|**lookbackDays** | [**LookbackDaysEnum**](#LookbackDaysEnum) | The number of days to look back | [optional] | +|**categoryIds** | **List<String>** | The list of category ids | [optional] | +|**brandIds** | **List<String>** | The list of brand ids | [optional] | +|**minPrice** | **Double** | Minimum price of the products | [optional] | +|**maxPrice** | **Double** | Maximum price of the products | [optional] | + + + +## Enum: ShopperActivityEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| VIEW | "View" | +| BUY | "Buy" | +| ADDTOCART | "AddToCart" | + + + +## Enum: LookbackDaysEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "Unknown" | +| LAST7DAYS | "Last7Days" | +| LAST14DAYS | "Last14Days" | +| LAST30DAYS | "Last30Days" | +| LAST45DAYS | "Last45Days" | +| LAST60DAYS | "Last60Days" | +| LAST90DAYS | "Last90Days" | +| LAST120DAYS | "Last120Days" | +| LAST150DAYS | "Last150Days" | +| LAST180DAYS | "Last180Days" | + + + diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1.md b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1.md deleted file mode 100644 index 1262000a..00000000 --- a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# RmLegacyAudienceGetEntityV1 - -Audience definition of people of interest for a marketer. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name of the audience | | -|**retailerId** | **String** | ID of the retailer associated with this audience | | -|**userBehaviorDetails** | [**RmLegacySegmentUserBehaviorV1**](RmLegacySegmentUserBehaviorV1.md) | | [optional] | -|**customerListDetails** | [**RmLegacySegmentCustomerList**](RmLegacySegmentCustomerList.md) | | [optional] | - - - diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1Resource.md b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1Resource.md deleted file mode 100644 index 6701f5c3..00000000 --- a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1Resource.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# RmLegacyAudienceGetEntityV1Resource - -A class that represents a domain entity exposed by an API - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**attributes** | [**RmLegacyAudienceGetEntityV1**](RmLegacyAudienceGetEntityV1.md) | | [optional] | -|**id** | **String** | | [optional] | -|**audienceType** | [**AudienceTypeEnum**](#AudienceTypeEnum) | | [optional] | -|**type** | **String** | | [optional] | - - - -## Enum: AudienceTypeEnum - -| Name | Value | -|---- | -----| -| CUSTOMERLIST | "customerList" | -| USERBEHAVIOR | "userBehavior" | - - - diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2.md b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2.md deleted file mode 100644 index ad436ff1..00000000 --- a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# RmLegacyAudienceGetEntityV2 - -Audience definition of people of interest for a marketer - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**retailerId** | **String** | ID of the retailer associated with this audience | | -|**userBehaviorDetails** | [**RmLegacyAudienceUserBehaviorDetailsV2**](RmLegacyAudienceUserBehaviorDetailsV2.md) | | [optional] | -|**customerListDetails** | [**RmLegacySegmentCustomerList**](RmLegacySegmentCustomerList.md) | | [optional] | -|**name** | **String** | Name of the audience | | - - - diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceUserBehaviorDetailsV2.md b/sdks/retailmedia_preview/docs/RmLegacyAudienceUserBehaviorDetailsV2.md deleted file mode 100644 index 9665823a..00000000 --- a/sdks/retailmedia_preview/docs/RmLegacyAudienceUserBehaviorDetailsV2.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# RmLegacyAudienceUserBehaviorDetailsV2 - -User Behavior Details. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**inclusiveSegment** | [**RmLegacySegmentUserBehaviorV2**](RmLegacySegmentUserBehaviorV2.md) | | | -|**exclusiveSegment** | [**RmLegacySegmentUserBehaviorV2**](RmLegacySegmentUserBehaviorV2.md) | | [optional] | - - - diff --git a/sdks/retailmedia_preview/docs/RmLegacySegmentCustomerList.md b/sdks/retailmedia_preview/docs/RmLegacySegmentCustomerList.md deleted file mode 100644 index 374c033f..00000000 --- a/sdks/retailmedia_preview/docs/RmLegacySegmentCustomerList.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# RmLegacySegmentCustomerList - -Audience definition of people based on a customer list - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**size** | **String** | Number of users in the customer list audience. | | -|**isShared** | **Boolean** | Indicate if the audience is shared. | | - - - diff --git a/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV1.md b/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV1.md deleted file mode 100644 index a625ac2c..00000000 --- a/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV1.md +++ /dev/null @@ -1,52 +0,0 @@ - - -# RmLegacySegmentUserBehaviorV1 - -Audience definition of people based on what they visited - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**userType** | [**UserTypeEnum**](#UserTypeEnum) | Type of shopper activity used to generate the audience. | | -|**lookbackWindow** | [**LookbackWindowEnum**](#LookbackWindowEnum) | Length of lookback window | | -|**targetType** | [**TargetTypeEnum**](#TargetTypeEnum) | Type of target | [optional] | -|**targetIds** | **Set<String>** | The categories to target | [optional] | - - - -## Enum: UserTypeEnum - -| Name | Value | -|---- | -----| -| VIEWER | "viewer" | -| BUYER | "buyer" | -| ADDTOCARTER | "addToCarter" | - - - -## Enum: LookbackWindowEnum - -| Name | Value | -|---- | -----| -| P7D | "P7D" | -| P14D | "P14D" | -| P30D | "P30D" | -| P45D | "P45D" | -| P60D | "P60D" | -| P90D | "P90D" | -| P120D | "P120D" | -| P150D | "P150D" | -| P180D | "P180D" | - - - -## Enum: TargetTypeEnum - -| Name | Value | -|---- | -----| -| BRAND | "brand" | -| CATEGORY | "category" | - - - diff --git a/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV2.md b/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV2.md deleted file mode 100644 index d2cf4788..00000000 --- a/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV2.md +++ /dev/null @@ -1,45 +0,0 @@ - - -# RmLegacySegmentUserBehaviorV2 - -Audience definition of people based on what they visited - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**userAction** | [**UserActionEnum**](#UserActionEnum) | Type of shopper activity used to generate the audience. | | -|**lookbackWindow** | [**LookbackWindowEnum**](#LookbackWindowEnum) | Length of lookback window | | -|**categoryIds** | **Set<Integer>** | The categories to target | [optional] | -|**brandIds** | **Set<Long>** | The brands to target | [optional] | -|**minPrice** | **Double** | The min price of targeted skus. | [optional] | -|**maxPrice** | **Double** | The max price of targeted skus. | [optional] | - - - -## Enum: UserActionEnum - -| Name | Value | -|---- | -----| -| BUY | "buy" | -| VIEW | "view" | -| ADDTOCART | "addToCart" | - - - -## Enum: LookbackWindowEnum - -| Name | Value | -|---- | -----| -| P7D | "P7D" | -| P14D | "P14D" | -| P30D | "P30D" | -| P45D | "P45D" | -| P60D | "P60D" | -| P90D | "P90D" | -| P120D | "P120D" | -| P150D | "P150D" | -| P180D | "P180D" | - - - diff --git a/sdks/marketingsolutions_preview/docs/UserProfileIdentifierModel.md b/sdks/retailmedia_preview/docs/ValidationError.md similarity index 53% rename from sdks/marketingsolutions_preview/docs/UserProfileIdentifierModel.md rename to sdks/retailmedia_preview/docs/ValidationError.md index 5733092e..f172c0d0 100644 --- a/sdks/marketingsolutions_preview/docs/UserProfileIdentifierModel.md +++ b/sdks/retailmedia_preview/docs/ValidationError.md @@ -1,15 +1,16 @@ -# UserProfileIdentifierModel +# ValidationError -Identifier of a user profile +validation error ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**loc** | [**List<LocationInner>**](LocationInner.md) | | | +|**msg** | **String** | | | |**type** | **String** | | | -|**value** | **String** | | | diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiClient.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiClient.java index 8b61fb0e..bedbc442 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiClient.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/0.0.240826/java"); + setUserAgent("OpenAPI-Generator/0.0.241029/java"); authentications = new HashMap(); } diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/JSON.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/JSON.java index c1871ff9..027ce02f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/JSON.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/JSON.java @@ -118,12 +118,11 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.BalanceResponseV2.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.BalanceResponseV2Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.BatchAcceptedResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.BotMessage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.Botmessage.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.Brand.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.BrandPreview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.BrandPreviewListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CampaignBudgetOverrides.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CampaignDailyBudgetOverride.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CampaignMonthlyBudgetOverride.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.Category.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.Category202204.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ChangeDatesOfBalanceV2.CustomTypeAdapterFactory()); @@ -140,7 +139,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CreativeV2ListResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CreativeV2Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CustomAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.DailyLineItemBudgetOverride.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.EntityResourceCollectionOutcomeOfRetailMediaAccount.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.EntityResourceOfRetailMediaAccount.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ErrorCodeResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ExportReportColumn.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ExportReportMetaData.CustomTypeAdapterFactory()); @@ -164,6 +164,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ExternalPreferredLineItemV2.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ExternalProductButtonRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ExternalProductButtonResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ExternalRetailMediaAccount.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ExternalRetailer.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ExternalTemplateVariableValue.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ExternalTextVariableValue.CustomTypeAdapterFactory()); @@ -172,6 +173,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.GrantConsentInput.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.GrantConsentModel.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.GrantConsentModelValueResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.HttpValidationError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.InbotDiscussion.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.InbotDiscussionBodyModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.InbotDiscussionDataInstanceModel.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.InputKeywords.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.InputKeywordsModel.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.InputResourceOfPreferredLineItemCreateModelV2.CustomTypeAdapterFactory()); @@ -196,10 +201,13 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.KeywordsModelResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.LineItemBidMultipliersV2Request.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.LineItemBidMultipliersV2Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.LineItemBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.LocationInner.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.LoyaltyPoints.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.Message.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.MessageBodyModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.MessageDataInstanceModel.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.MessageError.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.Metadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.MonthlyLineItemBudegetOverride.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.NillableString.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.PageMetadata.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.PageOfBalanceHistoryChangeDataCaptureV1.CustomTypeAdapterFactory()); @@ -220,6 +228,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ProductImporterError.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ProductImporterWarning.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ProductMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ProductRecommendation.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ProductResourceOutcome.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ProductShipping.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ProductShippingDimension.CustomTypeAdapterFactory()); @@ -240,6 +249,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ReportDataResponseResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ReportDetailError.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ReportDetailErrors.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ReportDetailWarning.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ReportDetailWarnings.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ReportOkResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ReportOutcome.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ReportResponse.CustomTypeAdapterFactory()); @@ -278,6 +289,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RetailMediaContactlistOperationResponseAttributesAttributes.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RetailMediaSeller.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RetailMediaSellerAccountCreation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmAlgebraNodeV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmAudienceEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmAudienceEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmAudienceSearchEntityV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmAudienceSearchEntityV1Resource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmAudienceSearchInputV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmAudienceSearchMetadataV1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmAudienceSegmentBulkCreateInputV1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmAudienceSegmentBulkDeleteInputV1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmAudienceSegmentBulkUpdateInputV1.CustomTypeAdapterFactory()); @@ -301,17 +320,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmContactListStatisticsEntityV1Resource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmContactListStatisticsEntityV1Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmContactListV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV1ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV1Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV2.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV2ListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV2Resource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmLegacyAudienceUserBehaviorDetailsV2.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmLegacySegmentCustomerList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmLegacySegmentUserBehaviorV1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmLegacySegmentUserBehaviorV2.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmUserBehaviorV1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmEventsV1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.RmcaCommonProblem.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SellerCatalogRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SellerIdentifier.CustomTypeAdapterFactory()); @@ -349,18 +358,13 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SyncLineItemsReportResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.UpdateBalanceModelV2.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.UpdateBalanceModelV2Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValidationError.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceCollectionInputOfRetailMediaSeller.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceCollectionOutcomeOfRetailMediaSeller.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceInputOfCampaignBudgetOverrides.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceInputOfLineItemBudgetOverrides.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceInputOfRetailMediaSellerAccountCreation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOfCampaignBudgetOverrides.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOfLineItemBudgetOverrides.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOfRecommendedKeywordsResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOfRetailMediaSeller.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOfRetailMediaSellerAccountCreation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOutcomeOfCampaignBudgetOverrides.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOutcomeOfLineItemBudgetOverrides.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOutcomeOfRecommendedKeywordsResult.CustomTypeAdapterFactory()); gson = gsonBuilder.create(); } diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AccountsApi.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AccountsApi.java index a75729de..c2acca6f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AccountsApi.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AccountsApi.java @@ -27,6 +27,7 @@ import java.io.IOException; +import com.criteo.api.retailmedia.preview.model.EntityResourceCollectionOutcomeOfRetailMediaAccount; import com.criteo.api.retailmedia.preview.model.GrantConsentInput; import com.criteo.api.retailmedia.preview.model.JsonApiPageResponseOfAccount; import com.criteo.api.retailmedia.preview.model.ResourceOutcomeOfRetailMediaAccount; @@ -209,6 +210,145 @@ public okhttp3.Call createPrivateMarketDemandSellerAccountAsync(String accountId localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for getApiExternalV1AccountPrivateMarketChildAccountsByAccountId + * @param accountId Account Id (required) + * @param offset The (zero-based) offset into the collection of accounts. The default is 0. (optional, default to 0) + * @param limit The number of accounts to be returned. The default is 25. (optional, default to 25) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getApiExternalV1AccountPrivateMarketChildAccountsByAccountIdCall(String accountId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/preview/retail-media/account-management/accounts/{accountId}/private-market-child-accounts" + .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getApiExternalV1AccountPrivateMarketChildAccountsByAccountIdValidateBeforeCall(String accountId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling getApiExternalV1AccountPrivateMarketChildAccountsByAccountId(Async)"); + } + + return getApiExternalV1AccountPrivateMarketChildAccountsByAccountIdCall(accountId, offset, limit, _callback); + + } + + /** + * + * Gets page of private market child accounts that are associated with the given account + * @param accountId Account Id (required) + * @param offset The (zero-based) offset into the collection of accounts. The default is 0. (optional, default to 0) + * @param limit The number of accounts to be returned. The default is 25. (optional, default to 25) + * @return EntityResourceCollectionOutcomeOfRetailMediaAccount + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public EntityResourceCollectionOutcomeOfRetailMediaAccount getApiExternalV1AccountPrivateMarketChildAccountsByAccountId(String accountId, Integer offset, Integer limit) throws ApiException { + ApiResponse localVarResp = getApiExternalV1AccountPrivateMarketChildAccountsByAccountIdWithHttpInfo(accountId, offset, limit); + return localVarResp.getData(); + } + + /** + * + * Gets page of private market child accounts that are associated with the given account + * @param accountId Account Id (required) + * @param offset The (zero-based) offset into the collection of accounts. The default is 0. (optional, default to 0) + * @param limit The number of accounts to be returned. The default is 25. (optional, default to 25) + * @return ApiResponse<EntityResourceCollectionOutcomeOfRetailMediaAccount> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse getApiExternalV1AccountPrivateMarketChildAccountsByAccountIdWithHttpInfo(String accountId, Integer offset, Integer limit) throws ApiException { + okhttp3.Call localVarCall = getApiExternalV1AccountPrivateMarketChildAccountsByAccountIdValidateBeforeCall(accountId, offset, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Gets page of private market child accounts that are associated with the given account + * @param accountId Account Id (required) + * @param offset The (zero-based) offset into the collection of accounts. The default is 0. (optional, default to 0) + * @param limit The number of accounts to be returned. The default is 25. (optional, default to 25) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getApiExternalV1AccountPrivateMarketChildAccountsByAccountIdAsync(String accountId, Integer offset, Integer limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApiExternalV1AccountPrivateMarketChildAccountsByAccountIdValidateBeforeCall(accountId, offset, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for getApiV1ExternalAccounts * @param limitToId The ids that you would like to limit your result set to (optional) diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AnalyticsApi.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AnalyticsApi.java index c02fc4c7..a454d9b0 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AnalyticsApi.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AnalyticsApi.java @@ -158,7 +158,7 @@ private okhttp3.Call generateAsyncAccountsReportValidateBeforeCall(AsyncAccounts /** * - * Returns an asynchronous Accounts Report + * Returns an asynchronous Accounts Report This endpoint is subject to specific rate limits. * @param asyncAccountsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -177,7 +177,7 @@ public AsyncReportResponse generateAsyncAccountsReport(AsyncAccountsReportReques /** * - * Returns an asynchronous Accounts Report + * Returns an asynchronous Accounts Report This endpoint is subject to specific rate limits. * @param asyncAccountsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -197,7 +197,7 @@ public ApiResponse generateAsyncAccountsReportWithHttpInfo( /** * (asynchronously) - * Returns an asynchronous Accounts Report + * Returns an asynchronous Accounts Report This endpoint is subject to specific rate limits. * @param asyncAccountsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -294,7 +294,7 @@ private okhttp3.Call generateAsyncCampaignsReportValidateBeforeCall(AsyncCampaig /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -313,7 +313,7 @@ public AsyncReportResponse generateAsyncCampaignsReport(AsyncCampaignsReportRequ /** * - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -333,7 +333,7 @@ public ApiResponse generateAsyncCampaignsReportWithHttpInfo /** * (asynchronously) - * Return an asynchronous Campaigns Report + * Return an asynchronous Campaigns Report This endpoint is subject to specific rate limits. * @param asyncCampaignsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -430,7 +430,7 @@ private okhttp3.Call generateAsyncLineItemsReportValidateBeforeCall(AsyncLineIte /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -449,7 +449,7 @@ public AsyncReportResponse generateAsyncLineItemsReport(AsyncLineItemsReportRequ /** * - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -469,7 +469,7 @@ public ApiResponse generateAsyncLineItemsReportWithHttpInfo /** * (asynchronously) - * Returns an asynchronous Line Items Report + * Returns an asynchronous Line Items Report This endpoint is subject to specific rate limits. * @param asyncLineItemsReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AudienceApi.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AudienceApi.java index c0bbe9a8..588e397c 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AudienceApi.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AudienceApi.java @@ -30,6 +30,8 @@ import com.criteo.api.retailmedia.preview.model.ErrorCodeResponse; import com.criteo.api.retailmedia.preview.model.RetailMediaContactlistAmendmentRequest; import com.criteo.api.retailmedia.preview.model.RetailMediaContactlistOperation; +import com.criteo.api.retailmedia.preview.model.RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse; +import com.criteo.api.retailmedia.preview.model.RmAudienceSearchInputV1; import com.criteo.api.retailmedia.preview.model.RmAudienceSegmentBulkCreateInputV1; import com.criteo.api.retailmedia.preview.model.RmAudienceSegmentBulkDeleteInputV1; import com.criteo.api.retailmedia.preview.model.RmAudienceSegmentBulkUpdateInputV1; @@ -38,8 +40,6 @@ import com.criteo.api.retailmedia.preview.model.RmAudienceSegmentIdEntityV1ListResponse; import com.criteo.api.retailmedia.preview.model.RmAudienceSegmentSearchInputV1; import com.criteo.api.retailmedia.preview.model.RmContactListStatisticsEntityV1Response; -import com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV1ListResponse; -import com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV2ListResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -86,7 +86,7 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for bulkCreateV1 + * Build call for bulkCreateAudienceSegments * @param accountId Account Id (required) * @param rmAudienceSegmentBulkCreateInputV1 Segment creation parameter (required) * @param _callback Callback for upload/download progress @@ -101,7 +101,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call bulkCreateV1Call(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call bulkCreateAudienceSegmentsCall(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -153,18 +153,18 @@ public okhttp3.Call bulkCreateV1Call(String accountId, RmAudienceSegmentBulkCrea } @SuppressWarnings("rawtypes") - private okhttp3.Call bulkCreateV1ValidateBeforeCall(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1, final ApiCallback _callback) throws ApiException { + private okhttp3.Call bulkCreateAudienceSegmentsValidateBeforeCall(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling bulkCreateV1(Async)"); + throw new ApiException("Missing the required parameter 'accountId' when calling bulkCreateAudienceSegments(Async)"); } // verify the required parameter 'rmAudienceSegmentBulkCreateInputV1' is set if (rmAudienceSegmentBulkCreateInputV1 == null) { - throw new ApiException("Missing the required parameter 'rmAudienceSegmentBulkCreateInputV1' when calling bulkCreateV1(Async)"); + throw new ApiException("Missing the required parameter 'rmAudienceSegmentBulkCreateInputV1' when calling bulkCreateAudienceSegments(Async)"); } - return bulkCreateV1Call(accountId, rmAudienceSegmentBulkCreateInputV1, _callback); + return bulkCreateAudienceSegmentsCall(accountId, rmAudienceSegmentBulkCreateInputV1, _callback); } @@ -184,8 +184,8 @@ private okhttp3.Call bulkCreateV1ValidateBeforeCall(String accountId, RmAudience 403 The API client is not authorized to access this resource. - */ - public RmAudienceSegmentEntityV1ListResponse bulkCreateV1(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1) throws ApiException { - ApiResponse localVarResp = bulkCreateV1WithHttpInfo(accountId, rmAudienceSegmentBulkCreateInputV1); + public RmAudienceSegmentEntityV1ListResponse bulkCreateAudienceSegments(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1) throws ApiException { + ApiResponse localVarResp = bulkCreateAudienceSegmentsWithHttpInfo(accountId, rmAudienceSegmentBulkCreateInputV1); return localVarResp.getData(); } @@ -205,8 +205,8 @@ public RmAudienceSegmentEntityV1ListResponse bulkCreateV1(String accountId, RmAu 403 The API client is not authorized to access this resource. - */ - public ApiResponse bulkCreateV1WithHttpInfo(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1) throws ApiException { - okhttp3.Call localVarCall = bulkCreateV1ValidateBeforeCall(accountId, rmAudienceSegmentBulkCreateInputV1, null); + public ApiResponse bulkCreateAudienceSegmentsWithHttpInfo(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1) throws ApiException { + okhttp3.Call localVarCall = bulkCreateAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkCreateInputV1, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -228,15 +228,15 @@ public ApiResponse bulkCreateV1WithHttpIn 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call bulkCreateV1Async(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call bulkCreateAudienceSegmentsAsync(String accountId, RmAudienceSegmentBulkCreateInputV1 rmAudienceSegmentBulkCreateInputV1, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = bulkCreateV1ValidateBeforeCall(accountId, rmAudienceSegmentBulkCreateInputV1, _callback); + okhttp3.Call localVarCall = bulkCreateAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkCreateInputV1, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for bulkDeleteV1 + * Build call for bulkDeleteAudienceSegments * @param accountId Account id (required) * @param rmAudienceSegmentBulkDeleteInputV1 Segment delete request. (required) * @param _callback Callback for upload/download progress @@ -251,7 +251,7 @@ public okhttp3.Call bulkCreateV1Async(String accountId, RmAudienceSegmentBulkCre 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call bulkDeleteV1Call(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call bulkDeleteAudienceSegmentsCall(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -303,18 +303,18 @@ public okhttp3.Call bulkDeleteV1Call(String accountId, RmAudienceSegmentBulkDele } @SuppressWarnings("rawtypes") - private okhttp3.Call bulkDeleteV1ValidateBeforeCall(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1, final ApiCallback _callback) throws ApiException { + private okhttp3.Call bulkDeleteAudienceSegmentsValidateBeforeCall(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling bulkDeleteV1(Async)"); + throw new ApiException("Missing the required parameter 'accountId' when calling bulkDeleteAudienceSegments(Async)"); } // verify the required parameter 'rmAudienceSegmentBulkDeleteInputV1' is set if (rmAudienceSegmentBulkDeleteInputV1 == null) { - throw new ApiException("Missing the required parameter 'rmAudienceSegmentBulkDeleteInputV1' when calling bulkDeleteV1(Async)"); + throw new ApiException("Missing the required parameter 'rmAudienceSegmentBulkDeleteInputV1' when calling bulkDeleteAudienceSegments(Async)"); } - return bulkDeleteV1Call(accountId, rmAudienceSegmentBulkDeleteInputV1, _callback); + return bulkDeleteAudienceSegmentsCall(accountId, rmAudienceSegmentBulkDeleteInputV1, _callback); } @@ -334,8 +334,8 @@ private okhttp3.Call bulkDeleteV1ValidateBeforeCall(String accountId, RmAudience 403 The API client is not authorized to access this resource. - */ - public RmAudienceSegmentIdEntityV1ListResponse bulkDeleteV1(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1) throws ApiException { - ApiResponse localVarResp = bulkDeleteV1WithHttpInfo(accountId, rmAudienceSegmentBulkDeleteInputV1); + public RmAudienceSegmentIdEntityV1ListResponse bulkDeleteAudienceSegments(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1) throws ApiException { + ApiResponse localVarResp = bulkDeleteAudienceSegmentsWithHttpInfo(accountId, rmAudienceSegmentBulkDeleteInputV1); return localVarResp.getData(); } @@ -355,8 +355,8 @@ public RmAudienceSegmentIdEntityV1ListResponse bulkDeleteV1(String accountId, Rm 403 The API client is not authorized to access this resource. - */ - public ApiResponse bulkDeleteV1WithHttpInfo(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1) throws ApiException { - okhttp3.Call localVarCall = bulkDeleteV1ValidateBeforeCall(accountId, rmAudienceSegmentBulkDeleteInputV1, null); + public ApiResponse bulkDeleteAudienceSegmentsWithHttpInfo(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1) throws ApiException { + okhttp3.Call localVarCall = bulkDeleteAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkDeleteInputV1, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -378,15 +378,15 @@ public ApiResponse bulkDeleteV1WithHttp 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call bulkDeleteV1Async(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call bulkDeleteAudienceSegmentsAsync(String accountId, RmAudienceSegmentBulkDeleteInputV1 rmAudienceSegmentBulkDeleteInputV1, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = bulkDeleteV1ValidateBeforeCall(accountId, rmAudienceSegmentBulkDeleteInputV1, _callback); + okhttp3.Call localVarCall = bulkDeleteAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkDeleteInputV1, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for bulkUpdateV1 + * Build call for bulkUpdateAudienceSegments * @param accountId Account id (required) * @param rmAudienceSegmentBulkUpdateInputV1 Segment Update request (required) * @param _callback Callback for upload/download progress @@ -401,7 +401,7 @@ public okhttp3.Call bulkDeleteV1Async(String accountId, RmAudienceSegmentBulkDel 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call bulkUpdateV1Call(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call bulkUpdateAudienceSegmentsCall(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -453,18 +453,18 @@ public okhttp3.Call bulkUpdateV1Call(String accountId, RmAudienceSegmentBulkUpda } @SuppressWarnings("rawtypes") - private okhttp3.Call bulkUpdateV1ValidateBeforeCall(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1, final ApiCallback _callback) throws ApiException { + private okhttp3.Call bulkUpdateAudienceSegmentsValidateBeforeCall(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling bulkUpdateV1(Async)"); + throw new ApiException("Missing the required parameter 'accountId' when calling bulkUpdateAudienceSegments(Async)"); } // verify the required parameter 'rmAudienceSegmentBulkUpdateInputV1' is set if (rmAudienceSegmentBulkUpdateInputV1 == null) { - throw new ApiException("Missing the required parameter 'rmAudienceSegmentBulkUpdateInputV1' when calling bulkUpdateV1(Async)"); + throw new ApiException("Missing the required parameter 'rmAudienceSegmentBulkUpdateInputV1' when calling bulkUpdateAudienceSegments(Async)"); } - return bulkUpdateV1Call(accountId, rmAudienceSegmentBulkUpdateInputV1, _callback); + return bulkUpdateAudienceSegmentsCall(accountId, rmAudienceSegmentBulkUpdateInputV1, _callback); } @@ -484,8 +484,8 @@ private okhttp3.Call bulkUpdateV1ValidateBeforeCall(String accountId, RmAudience 403 The API client is not authorized to access this resource. - */ - public RmAudienceSegmentEntityV1ListResponse bulkUpdateV1(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1) throws ApiException { - ApiResponse localVarResp = bulkUpdateV1WithHttpInfo(accountId, rmAudienceSegmentBulkUpdateInputV1); + public RmAudienceSegmentEntityV1ListResponse bulkUpdateAudienceSegments(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1) throws ApiException { + ApiResponse localVarResp = bulkUpdateAudienceSegmentsWithHttpInfo(accountId, rmAudienceSegmentBulkUpdateInputV1); return localVarResp.getData(); } @@ -505,8 +505,8 @@ public RmAudienceSegmentEntityV1ListResponse bulkUpdateV1(String accountId, RmAu 403 The API client is not authorized to access this resource. - */ - public ApiResponse bulkUpdateV1WithHttpInfo(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1) throws ApiException { - okhttp3.Call localVarCall = bulkUpdateV1ValidateBeforeCall(accountId, rmAudienceSegmentBulkUpdateInputV1, null); + public ApiResponse bulkUpdateAudienceSegmentsWithHttpInfo(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1) throws ApiException { + okhttp3.Call localVarCall = bulkUpdateAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkUpdateInputV1, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -528,9 +528,9 @@ public ApiResponse bulkUpdateV1WithHttpIn 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call bulkUpdateV1Async(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1, final ApiCallback _callback) throws ApiException { + public okhttp3.Call bulkUpdateAudienceSegmentsAsync(String accountId, RmAudienceSegmentBulkUpdateInputV1 rmAudienceSegmentBulkUpdateInputV1, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = bulkUpdateV1ValidateBeforeCall(accountId, rmAudienceSegmentBulkUpdateInputV1, _callback); + okhttp3.Call localVarCall = bulkUpdateAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentBulkUpdateInputV1, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -659,7 +659,7 @@ public okhttp3.Call deleteContactListIdentifiersAsync(Long audienceSegmentId, fi return localVarCall; } /** - * Build call for getContactListStatisticsV1 + * Build call for getAudienceSegmentContactListStatistics * @param accountId Account Id (required) * @param audienceSegmentId Segment Id. (required) * @param _callback Callback for upload/download progress @@ -674,7 +674,7 @@ public okhttp3.Call deleteContactListIdentifiersAsync(Long audienceSegmentId, fi 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call getContactListStatisticsV1Call(String accountId, String audienceSegmentId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudienceSegmentContactListStatisticsCall(String accountId, String audienceSegmentId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -723,18 +723,18 @@ public okhttp3.Call getContactListStatisticsV1Call(String accountId, String audi } @SuppressWarnings("rawtypes") - private okhttp3.Call getContactListStatisticsV1ValidateBeforeCall(String accountId, String audienceSegmentId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAudienceSegmentContactListStatisticsValidateBeforeCall(String accountId, String audienceSegmentId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling getContactListStatisticsV1(Async)"); + throw new ApiException("Missing the required parameter 'accountId' when calling getAudienceSegmentContactListStatistics(Async)"); } // verify the required parameter 'audienceSegmentId' is set if (audienceSegmentId == null) { - throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling getContactListStatisticsV1(Async)"); + throw new ApiException("Missing the required parameter 'audienceSegmentId' when calling getAudienceSegmentContactListStatistics(Async)"); } - return getContactListStatisticsV1Call(accountId, audienceSegmentId, _callback); + return getAudienceSegmentContactListStatisticsCall(accountId, audienceSegmentId, _callback); } @@ -754,8 +754,8 @@ private okhttp3.Call getContactListStatisticsV1ValidateBeforeCall(String account 403 The API client is not authorized to access this resource. - */ - public RmContactListStatisticsEntityV1Response getContactListStatisticsV1(String accountId, String audienceSegmentId) throws ApiException { - ApiResponse localVarResp = getContactListStatisticsV1WithHttpInfo(accountId, audienceSegmentId); + public RmContactListStatisticsEntityV1Response getAudienceSegmentContactListStatistics(String accountId, String audienceSegmentId) throws ApiException { + ApiResponse localVarResp = getAudienceSegmentContactListStatisticsWithHttpInfo(accountId, audienceSegmentId); return localVarResp.getData(); } @@ -775,8 +775,8 @@ public RmContactListStatisticsEntityV1Response getContactListStatisticsV1(String 403 The API client is not authorized to access this resource. - */ - public ApiResponse getContactListStatisticsV1WithHttpInfo(String accountId, String audienceSegmentId) throws ApiException { - okhttp3.Call localVarCall = getContactListStatisticsV1ValidateBeforeCall(accountId, audienceSegmentId, null); + public ApiResponse getAudienceSegmentContactListStatisticsWithHttpInfo(String accountId, String audienceSegmentId) throws ApiException { + okhttp3.Call localVarCall = getAudienceSegmentContactListStatisticsValidateBeforeCall(accountId, audienceSegmentId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -798,32 +798,32 @@ public ApiResponse getContactListStatis 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call getContactListStatisticsV1Async(String accountId, String audienceSegmentId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudienceSegmentContactListStatisticsAsync(String accountId, String audienceSegmentId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getContactListStatisticsV1ValidateBeforeCall(accountId, audienceSegmentId, _callback); + okhttp3.Call localVarCall = getAudienceSegmentContactListStatisticsValidateBeforeCall(accountId, audienceSegmentId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for legacyGetAudienceV1 - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) + * Build call for searchAudienceSegments + * @param accountId Account Id (required) + * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call legacyGetAudienceV1Call(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAudienceSegmentsCall(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -837,11 +837,11 @@ public okhttp3.Call legacyGetAudienceV1Call(Long accountId, List limitT basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = rmAudienceSegmentSearchInputV1; // create path and map variables - String localVarPath = "/preview/retail-media/accounts/{accountId}/audiences" - .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); + String localVarPath = "/preview/retail-media/accounts/{account-id}/audience-segments/search" + .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -849,16 +849,12 @@ public okhttp3.Call legacyGetAudienceV1Call(Long accountId, List limitT Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (limitToId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - if (pageIndex != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); } final String[] localVarAccepts = { @@ -872,6 +868,10 @@ public okhttp3.Call legacyGetAudienceV1Call(Long accountId, List limitT } final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -879,258 +879,102 @@ public okhttp3.Call legacyGetAudienceV1Call(Long accountId, List limitT } String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call legacyGetAudienceV1ValidateBeforeCall(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchAudienceSegmentsValidateBeforeCall(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling legacyGetAudienceV1(Async)"); + throw new ApiException("Missing the required parameter 'accountId' when calling searchAudienceSegments(Async)"); } - return legacyGetAudienceV1Call(accountId, limitToId, pageSize, pageIndex, _callback); - - } - - /** - * - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @return RmLegacyAudienceGetEntityV1ListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public RmLegacyAudienceGetEntityV1ListResponse legacyGetAudienceV1(Long accountId, List limitToId, Integer pageSize, Integer pageIndex) throws ApiException { - ApiResponse localVarResp = legacyGetAudienceV1WithHttpInfo(accountId, limitToId, pageSize, pageIndex); - return localVarResp.getData(); - } - - /** - * - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @return ApiResponse<RmLegacyAudienceGetEntityV1ListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public ApiResponse legacyGetAudienceV1WithHttpInfo(Long accountId, List limitToId, Integer pageSize, Integer pageIndex) throws ApiException { - okhttp3.Call localVarCall = legacyGetAudienceV1ValidateBeforeCall(accountId, limitToId, pageSize, pageIndex, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public okhttp3.Call legacyGetAudienceV1Async(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = legacyGetAudienceV1ValidateBeforeCall(accountId, limitToId, pageSize, pageIndex, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for legacyGetAudienceV2 - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
- */ - public okhttp3.Call legacyGetAudienceV2Call(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/preview/retail-media/v2/accounts/{accountId}/audiences" - .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limitToId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "limitToId", limitToId)); - } - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (pageIndex != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageIndex", pageIndex)); - } - - final String[] localVarAccepts = { - "text/plain", - "application/json", - "text/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call legacyGetAudienceV2ValidateBeforeCall(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling legacyGetAudienceV2(Async)"); + // verify the required parameter 'rmAudienceSegmentSearchInputV1' is set + if (rmAudienceSegmentSearchInputV1 == null) { + throw new ApiException("Missing the required parameter 'rmAudienceSegmentSearchInputV1' when calling searchAudienceSegments(Async)"); } - return legacyGetAudienceV2Call(accountId, limitToId, pageSize, pageIndex, _callback); + return searchAudienceSegmentsCall(accountId, rmAudienceSegmentSearchInputV1, limit, offset, _callback); } /** * - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @return RmLegacyAudienceGetEntityV2ListResponse + * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * @param accountId Account Id (required) + * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @return RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public RmLegacyAudienceGetEntityV2ListResponse legacyGetAudienceV2(Long accountId, List limitToId, Integer pageSize, Integer pageIndex) throws ApiException { - ApiResponse localVarResp = legacyGetAudienceV2WithHttpInfo(accountId, limitToId, pageSize, pageIndex); + public RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse searchAudienceSegments(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset) throws ApiException { + ApiResponse localVarResp = searchAudienceSegmentsWithHttpInfo(accountId, rmAudienceSegmentSearchInputV1, limit, offset); return localVarResp.getData(); } /** * - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) - * @return ApiResponse<RmLegacyAudienceGetEntityV2ListResponse> + * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * @param accountId Account Id (required) + * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) + * @return ApiResponse<RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public ApiResponse legacyGetAudienceV2WithHttpInfo(Long accountId, List limitToId, Integer pageSize, Integer pageIndex) throws ApiException { - okhttp3.Call localVarCall = legacyGetAudienceV2ValidateBeforeCall(accountId, limitToId, pageSize, pageIndex, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse searchAudienceSegmentsWithHttpInfo(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset) throws ApiException { + okhttp3.Call localVarCall = searchAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentSearchInputV1, limit, offset, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Get a page of Audiences. (deprecated Public API) - * @param accountId ID of the account to which this audience belongs. (required) - * @param limitToId Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) - * @param pageSize Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) - * @param pageIndex Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) + * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * @param accountId Account Id (required) + * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) + * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
Status Code Description Response Headers
200 A page of audiences for the supplied account or shared by related retailers. -
200 Success or partial success -
400 Bad request -
401 The API client is not properly authenticated. -
403 The API client is not authorized to access this resource. -
*/ - public okhttp3.Call legacyGetAudienceV2Async(Long accountId, List limitToId, Integer pageSize, Integer pageIndex, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAudienceSegmentsAsync(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = legacyGetAudienceV2ValidateBeforeCall(accountId, limitToId, pageSize, pageIndex, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = searchAudienceSegmentsValidateBeforeCall(accountId, rmAudienceSegmentSearchInputV1, limit, offset, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for searchV1 + * Build call for searchAudiences * @param accountId Account Id (required) - * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param rmAudienceSearchInputV1 Audience search filters. (required) * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) * @param _callback Callback for upload/download progress @@ -1145,7 +989,7 @@ public okhttp3.Call legacyGetAudienceV2Async(Long accountId, List limit 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call searchV1Call(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAudiencesCall(String accountId, RmAudienceSearchInputV1 rmAudienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1159,10 +1003,10 @@ public okhttp3.Call searchV1Call(String accountId, RmAudienceSegmentSearchInputV basePath = null; } - Object localVarPostBody = rmAudienceSegmentSearchInputV1; + Object localVarPostBody = rmAudienceSearchInputV1; // create path and map variables - String localVarPath = "/preview/retail-media/accounts/{account-id}/audience-segments/search" + String localVarPath = "/preview/retail-media/accounts/{account-id}/audiences/search" .replace("{" + "account-id" + "}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); @@ -1205,29 +1049,29 @@ public okhttp3.Call searchV1Call(String accountId, RmAudienceSegmentSearchInputV } @SuppressWarnings("rawtypes") - private okhttp3.Call searchV1ValidateBeforeCall(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchAudiencesValidateBeforeCall(String accountId, RmAudienceSearchInputV1 rmAudienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling searchV1(Async)"); + throw new ApiException("Missing the required parameter 'accountId' when calling searchAudiences(Async)"); } - // verify the required parameter 'rmAudienceSegmentSearchInputV1' is set - if (rmAudienceSegmentSearchInputV1 == null) { - throw new ApiException("Missing the required parameter 'rmAudienceSegmentSearchInputV1' when calling searchV1(Async)"); + // verify the required parameter 'rmAudienceSearchInputV1' is set + if (rmAudienceSearchInputV1 == null) { + throw new ApiException("Missing the required parameter 'rmAudienceSearchInputV1' when calling searchAudiences(Async)"); } - return searchV1Call(accountId, rmAudienceSegmentSearchInputV1, limit, offset, _callback); + return searchAudiencesCall(accountId, rmAudienceSearchInputV1, limit, offset, _callback); } /** * - * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. * @param accountId Account Id (required) - * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param rmAudienceSearchInputV1 Audience search filters. (required) * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) - * @return RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse + * @return RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1238,19 +1082,19 @@ private okhttp3.Call searchV1ValidateBeforeCall(String accountId, RmAudienceSegm
403 The API client is not authorized to access this resource. -
*/ - public RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse searchV1(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset) throws ApiException { - ApiResponse localVarResp = searchV1WithHttpInfo(accountId, rmAudienceSegmentSearchInputV1, limit, offset); + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse searchAudiences(String accountId, RmAudienceSearchInputV1 rmAudienceSearchInputV1, Integer limit, Integer offset) throws ApiException { + ApiResponse localVarResp = searchAudiencesWithHttpInfo(accountId, rmAudienceSearchInputV1, limit, offset); return localVarResp.getData(); } /** * - * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. * @param accountId Account Id (required) - * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param rmAudienceSearchInputV1 Audience search filters. (required) * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) - * @return ApiResponse<RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse> + * @return ApiResponse<RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1261,17 +1105,17 @@ public RmAudienceSegmentEntityV1RmAudienceSegmentSearchMetadataV1ListResponse se
403 The API client is not authorized to access this resource. -
*/ - public ApiResponse searchV1WithHttpInfo(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset) throws ApiException { - okhttp3.Call localVarCall = searchV1ValidateBeforeCall(accountId, rmAudienceSegmentSearchInputV1, limit, offset, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse searchAudiencesWithHttpInfo(String accountId, RmAudienceSearchInputV1 rmAudienceSearchInputV1, Integer limit, Integer offset) throws ApiException { + okhttp3.Call localVarCall = searchAudiencesValidateBeforeCall(accountId, rmAudienceSearchInputV1, limit, offset, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + * Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. * @param accountId Account Id (required) - * @param rmAudienceSegmentSearchInputV1 Segment search filters. (required) + * @param rmAudienceSearchInputV1 Audience search filters. (required) * @param limit The number of elements to be returned. The default is 50 and the maximum is 100. (optional, default to 50) * @param offset The (zero-based) offset into the collection. The default is 0. (optional, default to 0) * @param _callback The callback to be executed when the API call finishes @@ -1286,10 +1130,10 @@ public ApiResponse 403 The API client is not authorized to access this resource. - */ - public okhttp3.Call searchV1Async(String accountId, RmAudienceSegmentSearchInputV1 rmAudienceSegmentSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchAudiencesAsync(String accountId, RmAudienceSearchInputV1 rmAudienceSearchInputV1, Integer limit, Integer offset, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = searchV1ValidateBeforeCall(accountId, rmAudienceSegmentSearchInputV1, limit, offset, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = searchAudiencesValidateBeforeCall(accountId, rmAudienceSearchInputV1, limit, offset, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/CampaignApi.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/CampaignApi.java index f2f04ffe..605a9c4e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/CampaignApi.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/CampaignApi.java @@ -66,10 +66,6 @@ import com.criteo.api.retailmedia.preview.model.SkuSearchRequestSlimV2PreviewRequest; import com.criteo.api.retailmedia.preview.model.SkuSlimDataPreviewListResponse; import com.criteo.api.retailmedia.preview.model.SkuSlimDataV2ListResponse; -import com.criteo.api.retailmedia.preview.model.ValueResourceInputOfCampaignBudgetOverrides; -import com.criteo.api.retailmedia.preview.model.ValueResourceInputOfLineItemBudgetOverrides; -import com.criteo.api.retailmedia.preview.model.ValueResourceOutcomeOfCampaignBudgetOverrides; -import com.criteo.api.retailmedia.preview.model.ValueResourceOutcomeOfLineItemBudgetOverrides; import com.criteo.api.retailmedia.preview.model.ValueResourceOutcomeOfRecommendedKeywordsResult; import java.lang.reflect.Type; @@ -2675,129 +2671,6 @@ public okhttp3.Call getApiV2ExternalPreferredLineItemByLineItemIdAsync(String li localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for getCampaignBudgetOverrides - * @param campaignId External campaign id. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getCampaignBudgetOverridesCall(Long campaignId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides" - .replace("{" + "campaignId" + "}", localVarApiClient.escapeString(campaignId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignBudgetOverridesValidateBeforeCall(Long campaignId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'campaignId' is set - if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling getCampaignBudgetOverrides(Async)"); - } - - return getCampaignBudgetOverridesCall(campaignId, _callback); - - } - - /** - * - * Get current campaign budget overrides by given external campaign id. - * @param campaignId External campaign id. (required) - * @return ValueResourceOutcomeOfCampaignBudgetOverrides - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public ValueResourceOutcomeOfCampaignBudgetOverrides getCampaignBudgetOverrides(Long campaignId) throws ApiException { - ApiResponse localVarResp = getCampaignBudgetOverridesWithHttpInfo(campaignId); - return localVarResp.getData(); - } - - /** - * - * Get current campaign budget overrides by given external campaign id. - * @param campaignId External campaign id. (required) - * @return ApiResponse<ValueResourceOutcomeOfCampaignBudgetOverrides> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public ApiResponse getCampaignBudgetOverridesWithHttpInfo(Long campaignId) throws ApiException { - okhttp3.Call localVarCall = getCampaignBudgetOverridesValidateBeforeCall(campaignId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Get current campaign budget overrides by given external campaign id. - * @param campaignId External campaign id. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getCampaignBudgetOverridesAsync(Long campaignId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCampaignBudgetOverridesValidateBeforeCall(campaignId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } /** * Build call for getInsertionOrderHistoryChangeDataCaptureV2 * @param insertionOrderId External insertion order id. (required) @@ -2945,129 +2818,6 @@ public okhttp3.Call getInsertionOrderHistoryChangeDataCaptureV2Async(String inse localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - /** - * Build call for getLineItemBudgetOverrides - * @param lineItemId The line item id to get budget overrides for. (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getLineItemBudgetOverridesCall(String lineItemId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides" - .replace("{" + "lineItemId" + "}", localVarApiClient.escapeString(lineItemId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getLineItemBudgetOverridesValidateBeforeCall(String lineItemId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'lineItemId' is set - if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling getLineItemBudgetOverrides(Async)"); - } - - return getLineItemBudgetOverridesCall(lineItemId, _callback); - - } - - /** - * - * Gets a collection of monthly and daily budget overrides for the provided line item. - * @param lineItemId The line item id to get budget overrides for. (required) - * @return ValueResourceOutcomeOfLineItemBudgetOverrides - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public ValueResourceOutcomeOfLineItemBudgetOverrides getLineItemBudgetOverrides(String lineItemId) throws ApiException { - ApiResponse localVarResp = getLineItemBudgetOverridesWithHttpInfo(lineItemId); - return localVarResp.getData(); - } - - /** - * - * Gets a collection of monthly and daily budget overrides for the provided line item. - * @param lineItemId The line item id to get budget overrides for. (required) - * @return ApiResponse<ValueResourceOutcomeOfLineItemBudgetOverrides> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public ApiResponse getLineItemBudgetOverridesWithHttpInfo(String lineItemId) throws ApiException { - okhttp3.Call localVarCall = getLineItemBudgetOverridesValidateBeforeCall(lineItemId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Gets a collection of monthly and daily budget overrides for the provided line item. - * @param lineItemId The line item id to get budget overrides for. (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Success -
- */ - public okhttp3.Call getLineItemBudgetOverridesAsync(String lineItemId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLineItemBudgetOverridesValidateBeforeCall(lineItemId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } /** * Build call for getRecommendedKeywords * @param externalLineItemId The external line item identifier (required) @@ -5660,266 +5410,4 @@ public okhttp3.Call unpausePromotedProductsAsync(String lineItemId, PromotedProd localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } - /** - * Build call for updateCampaignBudgetOverrides - * @param campaignId External campaign id. (required) - * @param valueResourceInputOfCampaignBudgetOverrides New campaign budget overrides settings value resource input. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Success -
- */ - public okhttp3.Call updateCampaignBudgetOverridesCall(Long campaignId, ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = valueResourceInputOfCampaignBudgetOverrides; - - // create path and map variables - String localVarPath = "/preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides" - .replace("{" + "campaignId" + "}", localVarApiClient.escapeString(campaignId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateCampaignBudgetOverridesValidateBeforeCall(Long campaignId, ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'campaignId' is set - if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling updateCampaignBudgetOverrides(Async)"); - } - - return updateCampaignBudgetOverridesCall(campaignId, valueResourceInputOfCampaignBudgetOverrides, _callback); - - } - - /** - * - * Update campaign budget overrides by given external campaign id and new campaign budget overrides settings. - * @param campaignId External campaign id. (required) - * @param valueResourceInputOfCampaignBudgetOverrides New campaign budget overrides settings value resource input. (optional) - * @return ValueResourceOutcomeOfCampaignBudgetOverrides - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Success -
- */ - public ValueResourceOutcomeOfCampaignBudgetOverrides updateCampaignBudgetOverrides(Long campaignId, ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides) throws ApiException { - ApiResponse localVarResp = updateCampaignBudgetOverridesWithHttpInfo(campaignId, valueResourceInputOfCampaignBudgetOverrides); - return localVarResp.getData(); - } - - /** - * - * Update campaign budget overrides by given external campaign id and new campaign budget overrides settings. - * @param campaignId External campaign id. (required) - * @param valueResourceInputOfCampaignBudgetOverrides New campaign budget overrides settings value resource input. (optional) - * @return ApiResponse<ValueResourceOutcomeOfCampaignBudgetOverrides> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Success -
- */ - public ApiResponse updateCampaignBudgetOverridesWithHttpInfo(Long campaignId, ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides) throws ApiException { - okhttp3.Call localVarCall = updateCampaignBudgetOverridesValidateBeforeCall(campaignId, valueResourceInputOfCampaignBudgetOverrides, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Update campaign budget overrides by given external campaign id and new campaign budget overrides settings. - * @param campaignId External campaign id. (required) - * @param valueResourceInputOfCampaignBudgetOverrides New campaign budget overrides settings value resource input. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Success -
- */ - public okhttp3.Call updateCampaignBudgetOverridesAsync(Long campaignId, ValueResourceInputOfCampaignBudgetOverrides valueResourceInputOfCampaignBudgetOverrides, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateCampaignBudgetOverridesValidateBeforeCall(campaignId, valueResourceInputOfCampaignBudgetOverrides, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateLineItemBudgetOverrides - * @param lineItemId Line item external id. (required) - * @param valueResourceInputOfLineItemBudgetOverrides New line item budget overrides settings value resource input. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Success -
- */ - public okhttp3.Call updateLineItemBudgetOverridesCall(String lineItemId, ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = valueResourceInputOfLineItemBudgetOverrides; - - // create path and map variables - String localVarPath = "/preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides" - .replace("{" + "lineItemId" + "}", localVarApiClient.escapeString(lineItemId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "oauth", "oauth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateLineItemBudgetOverridesValidateBeforeCall(String lineItemId, ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'lineItemId' is set - if (lineItemId == null) { - throw new ApiException("Missing the required parameter 'lineItemId' when calling updateLineItemBudgetOverrides(Async)"); - } - - return updateLineItemBudgetOverridesCall(lineItemId, valueResourceInputOfLineItemBudgetOverrides, _callback); - - } - - /** - * - * Update line item budget overrides by given external line item id and new line item budget overrides settings. - * @param lineItemId Line item external id. (required) - * @param valueResourceInputOfLineItemBudgetOverrides New line item budget overrides settings value resource input. (optional) - * @return ValueResourceOutcomeOfLineItemBudgetOverrides - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Success -
- */ - public ValueResourceOutcomeOfLineItemBudgetOverrides updateLineItemBudgetOverrides(String lineItemId, ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides) throws ApiException { - ApiResponse localVarResp = updateLineItemBudgetOverridesWithHttpInfo(lineItemId, valueResourceInputOfLineItemBudgetOverrides); - return localVarResp.getData(); - } - - /** - * - * Update line item budget overrides by given external line item id and new line item budget overrides settings. - * @param lineItemId Line item external id. (required) - * @param valueResourceInputOfLineItemBudgetOverrides New line item budget overrides settings value resource input. (optional) - * @return ApiResponse<ValueResourceOutcomeOfLineItemBudgetOverrides> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Success -
- */ - public ApiResponse updateLineItemBudgetOverridesWithHttpInfo(String lineItemId, ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides) throws ApiException { - okhttp3.Call localVarCall = updateLineItemBudgetOverridesValidateBeforeCall(lineItemId, valueResourceInputOfLineItemBudgetOverrides, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * Update line item budget overrides by given external line item id and new line item budget overrides settings. - * @param lineItemId Line item external id. (required) - * @param valueResourceInputOfLineItemBudgetOverrides New line item budget overrides settings value resource input. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Success -
- */ - public okhttp3.Call updateLineItemBudgetOverridesAsync(String lineItemId, ValueResourceInputOfLineItemBudgetOverrides valueResourceInputOfLineItemBudgetOverrides, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateLineItemBudgetOverridesValidateBeforeCall(lineItemId, valueResourceInputOfLineItemBudgetOverrides, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/OnSiteRecommendationApi.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/OnSiteRecommendationApi.java new file mode 100644 index 00000000..8ab920ea --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/OnSiteRecommendationApi.java @@ -0,0 +1,227 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.api; + +import com.criteo.api.retailmedia.preview.ApiCallback; +import com.criteo.api.retailmedia.preview.ApiClient; +import com.criteo.api.retailmedia.preview.ApiException; +import com.criteo.api.retailmedia.preview.ApiResponse; +import com.criteo.api.retailmedia.preview.Configuration; +import com.criteo.api.retailmedia.preview.Pair; +import com.criteo.api.retailmedia.preview.ProgressRequestBody; +import com.criteo.api.retailmedia.preview.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.criteo.api.retailmedia.preview.model.HttpValidationError; +import com.criteo.api.retailmedia.preview.model.InbotDiscussionBodyModel; +import com.criteo.api.retailmedia.preview.model.MessageBodyModel; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class OnSiteRecommendationApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public OnSiteRecommendationApi() { + this(Configuration.getDefaultApiClient()); + } + + public OnSiteRecommendationApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for chatbotProductRecommendations + * @param catalogid the identifier of the catalog to query (required) + * @param inbotDiscussionBodyModel (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 Successful Response -
400 Bad Request -
403 Forbidden -
404 Not Found -
422 Validation Error -
+ */ + public okhttp3.Call chatbotProductRecommendationsCall(Integer catalogid, InbotDiscussionBodyModel inbotDiscussionBodyModel, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = inbotDiscussionBodyModel; + + // create path and map variables + String localVarPath = "/preview/retail-media/chatbot-catalogs/{catalogid}/product-recommendations" + .replace("{" + "catalogid" + "}", localVarApiClient.escapeString(catalogid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call chatbotProductRecommendationsValidateBeforeCall(Integer catalogid, InbotDiscussionBodyModel inbotDiscussionBodyModel, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'catalogid' is set + if (catalogid == null) { + throw new ApiException("Missing the required parameter 'catalogid' when calling chatbotProductRecommendations(Async)"); + } + + // verify the required parameter 'inbotDiscussionBodyModel' is set + if (inbotDiscussionBodyModel == null) { + throw new ApiException("Missing the required parameter 'inbotDiscussionBodyModel' when calling chatbotProductRecommendations(Async)"); + } + + return chatbotProductRecommendationsCall(catalogid, inbotDiscussionBodyModel, _callback); + + } + + /** + * + * Ask a chatbot for a product recommendation + * @param catalogid the identifier of the catalog to query (required) + * @param inbotDiscussionBodyModel (required) + * @return MessageBodyModel + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 Successful Response -
400 Bad Request -
403 Forbidden -
404 Not Found -
422 Validation Error -
+ */ + public MessageBodyModel chatbotProductRecommendations(Integer catalogid, InbotDiscussionBodyModel inbotDiscussionBodyModel) throws ApiException { + ApiResponse localVarResp = chatbotProductRecommendationsWithHttpInfo(catalogid, inbotDiscussionBodyModel); + return localVarResp.getData(); + } + + /** + * + * Ask a chatbot for a product recommendation + * @param catalogid the identifier of the catalog to query (required) + * @param inbotDiscussionBodyModel (required) + * @return ApiResponse<MessageBodyModel> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 Successful Response -
400 Bad Request -
403 Forbidden -
404 Not Found -
422 Validation Error -
+ */ + public ApiResponse chatbotProductRecommendationsWithHttpInfo(Integer catalogid, InbotDiscussionBodyModel inbotDiscussionBodyModel) throws ApiException { + okhttp3.Call localVarCall = chatbotProductRecommendationsValidateBeforeCall(catalogid, inbotDiscussionBodyModel, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Ask a chatbot for a product recommendation + * @param catalogid the identifier of the catalog to query (required) + * @param inbotDiscussionBodyModel (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 Successful Response -
400 Bad Request -
403 Forbidden -
404 Not Found -
422 Validation Error -
+ */ + public okhttp3.Call chatbotProductRecommendationsAsync(Integer catalogid, InbotDiscussionBodyModel inbotDiscussionBodyModel, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = chatbotProductRecommendationsValidateBeforeCall(catalogid, inbotDiscussionBodyModel, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BotMessage.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BotMessage.java new file mode 100644 index 00000000..916f0d8c --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BotMessage.java @@ -0,0 +1,378 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.ProductRecommendation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * bot structured answer to the user prompt + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BotMessage { + public static final String SERIALIZED_NAME_OPENING = "opening"; + @SerializedName(SERIALIZED_NAME_OPENING) + private String opening; + + public static final String SERIALIZED_NAME_PRODUCT_RECOS = "productRecos"; + @SerializedName(SERIALIZED_NAME_PRODUCT_RECOS) + private List productRecos = null; + + public static final String SERIALIZED_NAME_CLOSING = "closing"; + @SerializedName(SERIALIZED_NAME_CLOSING) + private String closing; + + public BotMessage() { + } + + public BotMessage opening(String opening) { + + this.opening = opening; + return this; + } + + /** + * opening comment from the bot, introducing the list of recommended products if relevant. + * @return opening + **/ + @javax.annotation.Nullable + + public String getOpening() { + return opening; + } + + + public void setOpening(String opening) { + this.opening = opening; + } + + + public BotMessage productRecos(List productRecos) { + + this.productRecos = productRecos; + return this; + } + + public BotMessage addProductRecosItem(ProductRecommendation productRecosItem) { + if (this.productRecos == null) { + this.productRecos = null; + } + this.productRecos.add(productRecosItem); + return this; + } + + /** + * list of recommended products + * @return productRecos + **/ + @javax.annotation.Nullable + + public List getProductRecos() { + return productRecos; + } + + + public void setProductRecos(List productRecos) { + this.productRecos = productRecos; + } + + + public BotMessage closing(String closing) { + + this.closing = closing; + return this; + } + + /** + * closing remark from the bot + * @return closing + **/ + @javax.annotation.Nullable + + public String getClosing() { + return closing; + } + + + public void setClosing(String closing) { + this.closing = closing; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the BotMessage instance itself + */ + public BotMessage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BotMessage botMessage = (BotMessage) o; + return Objects.equals(this.opening, botMessage.opening) && + Objects.equals(this.productRecos, botMessage.productRecos) && + Objects.equals(this.closing, botMessage.closing)&& + Objects.equals(this.additionalProperties, botMessage.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(opening, productRecos, closing, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BotMessage {\n"); + sb.append(" opening: ").append(toIndentedString(opening)).append("\n"); + sb.append(" productRecos: ").append(toIndentedString(productRecos)).append("\n"); + sb.append(" closing: ").append(toIndentedString(closing)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("opening"); + openapiFields.add("productRecos"); + openapiFields.add("closing"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to BotMessage + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!BotMessage.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in BotMessage is not found in the empty JSON string", BotMessage.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("opening") != null && !jsonObj.get("opening").isJsonNull()) && !jsonObj.get("opening").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `opening` to be a primitive type in the JSON string but got `%s`", jsonObj.get("opening").toString())); + } + if (jsonObj.get("productRecos") != null && !jsonObj.get("productRecos").isJsonNull()) { + JsonArray jsonArrayproductRecos = jsonObj.getAsJsonArray("productRecos"); + if (jsonArrayproductRecos != null) { + // ensure the json data is an array + if (!jsonObj.get("productRecos").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `productRecos` to be an array in the JSON string but got `%s`", jsonObj.get("productRecos").toString())); + } + + // validate the optional field `productRecos` (array) + for (int i = 0; i < jsonArrayproductRecos.size(); i++) { + ProductRecommendation.validateJsonObject(jsonArrayproductRecos.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("closing") != null && !jsonObj.get("closing").isJsonNull()) && !jsonObj.get("closing").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `closing` to be a primitive type in the JSON string but got `%s`", jsonObj.get("closing").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BotMessage.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BotMessage' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BotMessage.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BotMessage value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public BotMessage read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + BotMessage instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BotMessage given an JSON string + * + * @param jsonString JSON string + * @return An instance of BotMessage + * @throws IOException if the JSON string is invalid with respect to BotMessage + */ + public static BotMessage fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BotMessage.class); + } + + /** + * Convert an instance of BotMessage to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Botmessage.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Botmessage.java new file mode 100644 index 00000000..bf7424ed --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Botmessage.java @@ -0,0 +1,378 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.ProductRecommendation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * bot answer with recommendations + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Botmessage { + public static final String SERIALIZED_NAME_OPENING = "opening"; + @SerializedName(SERIALIZED_NAME_OPENING) + private String opening; + + public static final String SERIALIZED_NAME_PRODUCT_RECOS = "productRecos"; + @SerializedName(SERIALIZED_NAME_PRODUCT_RECOS) + private List productRecos = null; + + public static final String SERIALIZED_NAME_CLOSING = "closing"; + @SerializedName(SERIALIZED_NAME_CLOSING) + private String closing; + + public Botmessage() { + } + + public Botmessage opening(String opening) { + + this.opening = opening; + return this; + } + + /** + * opening comment from the bot, introducing the list of recommended products if relevant. + * @return opening + **/ + @javax.annotation.Nullable + + public String getOpening() { + return opening; + } + + + public void setOpening(String opening) { + this.opening = opening; + } + + + public Botmessage productRecos(List productRecos) { + + this.productRecos = productRecos; + return this; + } + + public Botmessage addProductRecosItem(ProductRecommendation productRecosItem) { + if (this.productRecos == null) { + this.productRecos = null; + } + this.productRecos.add(productRecosItem); + return this; + } + + /** + * list of recommended products + * @return productRecos + **/ + @javax.annotation.Nullable + + public List getProductRecos() { + return productRecos; + } + + + public void setProductRecos(List productRecos) { + this.productRecos = productRecos; + } + + + public Botmessage closing(String closing) { + + this.closing = closing; + return this; + } + + /** + * closing remark from the bot + * @return closing + **/ + @javax.annotation.Nullable + + public String getClosing() { + return closing; + } + + + public void setClosing(String closing) { + this.closing = closing; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Botmessage instance itself + */ + public Botmessage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Botmessage botmessage = (Botmessage) o; + return Objects.equals(this.opening, botmessage.opening) && + Objects.equals(this.productRecos, botmessage.productRecos) && + Objects.equals(this.closing, botmessage.closing)&& + Objects.equals(this.additionalProperties, botmessage.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(opening, productRecos, closing, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Botmessage {\n"); + sb.append(" opening: ").append(toIndentedString(opening)).append("\n"); + sb.append(" productRecos: ").append(toIndentedString(productRecos)).append("\n"); + sb.append(" closing: ").append(toIndentedString(closing)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("opening"); + openapiFields.add("productRecos"); + openapiFields.add("closing"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Botmessage + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!Botmessage.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in Botmessage is not found in the empty JSON string", Botmessage.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("opening") != null && !jsonObj.get("opening").isJsonNull()) && !jsonObj.get("opening").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `opening` to be a primitive type in the JSON string but got `%s`", jsonObj.get("opening").toString())); + } + if (jsonObj.get("productRecos") != null && !jsonObj.get("productRecos").isJsonNull()) { + JsonArray jsonArrayproductRecos = jsonObj.getAsJsonArray("productRecos"); + if (jsonArrayproductRecos != null) { + // ensure the json data is an array + if (!jsonObj.get("productRecos").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `productRecos` to be an array in the JSON string but got `%s`", jsonObj.get("productRecos").toString())); + } + + // validate the optional field `productRecos` (array) + for (int i = 0; i < jsonArrayproductRecos.size(); i++) { + ProductRecommendation.validateJsonObject(jsonArrayproductRecos.get(i).getAsJsonObject()); + }; + } + } + if ((jsonObj.get("closing") != null && !jsonObj.get("closing").isJsonNull()) && !jsonObj.get("closing").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `closing` to be a primitive type in the JSON string but got `%s`", jsonObj.get("closing").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Botmessage.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Botmessage' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Botmessage.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Botmessage value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public Botmessage read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + Botmessage instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Botmessage given an JSON string + * + * @param jsonString JSON string + * @return An instance of Botmessage + * @throws IOException if the JSON string is invalid with respect to Botmessage + */ + public static Botmessage fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Botmessage.class); + } + + /** + * Convert an instance of Botmessage to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1ListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/EntityResourceCollectionOutcomeOfRetailMediaAccount.java similarity index 75% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1ListResponse.java rename to sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/EntityResourceCollectionOutcomeOfRetailMediaAccount.java index 22ec2992..10714c21 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceGetEntityV1ListResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/EntityResourceCollectionOutcomeOfRetailMediaAccount.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: Preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,12 +11,12 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonProblem; -import com.criteo.api.retailmedia.v2023_07.model.RmLegacyAudienceGetEntityV1Resource; +import com.criteo.api.retailmedia.preview.model.CommonProblem; +import com.criteo.api.retailmedia.preview.model.EntityResourceOfRetailMediaAccount; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,16 +46,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.preview.JSON; /** - * A top-level object that encapsulates a Criteo API response for several entities and metadata + * A resource that represents collection of Retail Media account entities */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV1ListResponse { +public class EntityResourceCollectionOutcomeOfRetailMediaAccount { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = null; + private List data = null; public static final String SERIALIZED_NAME_WARNINGS = "warnings"; @SerializedName(SERIALIZED_NAME_WARNINGS) @@ -65,11 +65,11 @@ public class RmLegacyAudienceGetEntityV1ListResponse { @SerializedName(SERIALIZED_NAME_ERRORS) private List errors = null; - public RmLegacyAudienceGetEntityV1ListResponse() { + public EntityResourceCollectionOutcomeOfRetailMediaAccount() { } - public RmLegacyAudienceGetEntityV1ListResponse( + public EntityResourceCollectionOutcomeOfRetailMediaAccount( List warnings, List errors ) { @@ -78,13 +78,13 @@ public RmLegacyAudienceGetEntityV1ListResponse( this.errors = errors; } - public RmLegacyAudienceGetEntityV1ListResponse data(List data) { + public EntityResourceCollectionOutcomeOfRetailMediaAccount data(List data) { this.data = data; return this; } - public RmLegacyAudienceGetEntityV1ListResponse addDataItem(RmLegacyAudienceGetEntityV1Resource dataItem) { + public EntityResourceCollectionOutcomeOfRetailMediaAccount addDataItem(EntityResourceOfRetailMediaAccount dataItem) { if (this.data == null) { this.data = null; } @@ -98,12 +98,12 @@ public RmLegacyAudienceGetEntityV1ListResponse addDataItem(RmLegacyAudienceGetEn **/ @javax.annotation.Nullable - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -146,9 +146,9 @@ public List getErrors() { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceGetEntityV1ListResponse instance itself + * @return the EntityResourceCollectionOutcomeOfRetailMediaAccount instance itself */ - public RmLegacyAudienceGetEntityV1ListResponse putAdditionalProperty(String key, Object value) { + public EntityResourceCollectionOutcomeOfRetailMediaAccount putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -187,11 +187,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceGetEntityV1ListResponse rmLegacyAudienceGetEntityV1ListResponse = (RmLegacyAudienceGetEntityV1ListResponse) o; - return Objects.equals(this.data, rmLegacyAudienceGetEntityV1ListResponse.data) && - Objects.equals(this.warnings, rmLegacyAudienceGetEntityV1ListResponse.warnings) && - Objects.equals(this.errors, rmLegacyAudienceGetEntityV1ListResponse.errors)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV1ListResponse.additionalProperties); + EntityResourceCollectionOutcomeOfRetailMediaAccount entityResourceCollectionOutcomeOfRetailMediaAccount = (EntityResourceCollectionOutcomeOfRetailMediaAccount) o; + return Objects.equals(this.data, entityResourceCollectionOutcomeOfRetailMediaAccount.data) && + Objects.equals(this.warnings, entityResourceCollectionOutcomeOfRetailMediaAccount.warnings) && + Objects.equals(this.errors, entityResourceCollectionOutcomeOfRetailMediaAccount.errors)&& + Objects.equals(this.additionalProperties, entityResourceCollectionOutcomeOfRetailMediaAccount.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -213,7 +213,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV1ListResponse {\n"); + sb.append("class EntityResourceCollectionOutcomeOfRetailMediaAccount {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); @@ -252,12 +252,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV1ListResponse + * @throws IOException if the JSON Object is invalid with respect to EntityResourceCollectionOutcomeOfRetailMediaAccount */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV1ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV1ListResponse is not found in the empty JSON string", RmLegacyAudienceGetEntityV1ListResponse.openapiRequiredFields.toString())); + if (!EntityResourceCollectionOutcomeOfRetailMediaAccount.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in EntityResourceCollectionOutcomeOfRetailMediaAccount is not found in the empty JSON string", EntityResourceCollectionOutcomeOfRetailMediaAccount.openapiRequiredFields.toString())); } } if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { @@ -270,7 +270,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `data` (array) for (int i = 0; i < jsonArraydata.size(); i++) { - RmLegacyAudienceGetEntityV1Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + EntityResourceOfRetailMediaAccount.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); }; } } @@ -308,16 +308,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV1ListResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV1ListResponse' and its subtypes + if (!EntityResourceCollectionOutcomeOfRetailMediaAccount.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'EntityResourceCollectionOutcomeOfRetailMediaAccount' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV1ListResponse.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(EntityResourceCollectionOutcomeOfRetailMediaAccount.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV1ListResponse value) throws IOException { + public void write(JsonWriter out, EntityResourceCollectionOutcomeOfRetailMediaAccount value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -340,11 +340,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceGetEntityV1ListResponse read(JsonReader in) throws IOException { + public EntityResourceCollectionOutcomeOfRetailMediaAccount read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV1ListResponse instance = thisAdapter.fromJsonTree(jsonObj); + EntityResourceCollectionOutcomeOfRetailMediaAccount instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -371,18 +371,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceGetEntityV1ListResponse given an JSON string + * Create an instance of EntityResourceCollectionOutcomeOfRetailMediaAccount given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV1ListResponse - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV1ListResponse + * @return An instance of EntityResourceCollectionOutcomeOfRetailMediaAccount + * @throws IOException if the JSON string is invalid with respect to EntityResourceCollectionOutcomeOfRetailMediaAccount */ - public static RmLegacyAudienceGetEntityV1ListResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV1ListResponse.class); + public static EntityResourceCollectionOutcomeOfRetailMediaAccount fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, EntityResourceCollectionOutcomeOfRetailMediaAccount.class); } /** - * Convert an instance of RmLegacyAudienceGetEntityV1ListResponse to an JSON string + * Convert an instance of EntityResourceCollectionOutcomeOfRetailMediaAccount to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/EntityResourceOfRetailMediaAccount.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/EntityResourceOfRetailMediaAccount.java new file mode 100644 index 00000000..9fc0a4b6 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/EntityResourceOfRetailMediaAccount.java @@ -0,0 +1,358 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.ExternalRetailMediaAccount; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A resource object that represents a single Retail Media account entity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EntityResourceOfRetailMediaAccount { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private ExternalRetailMediaAccount attributes; + + public EntityResourceOfRetailMediaAccount() { + } + + public EntityResourceOfRetailMediaAccount id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public EntityResourceOfRetailMediaAccount type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public EntityResourceOfRetailMediaAccount attributes(ExternalRetailMediaAccount attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public ExternalRetailMediaAccount getAttributes() { + return attributes; + } + + + public void setAttributes(ExternalRetailMediaAccount attributes) { + this.attributes = attributes; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the EntityResourceOfRetailMediaAccount instance itself + */ + public EntityResourceOfRetailMediaAccount putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EntityResourceOfRetailMediaAccount entityResourceOfRetailMediaAccount = (EntityResourceOfRetailMediaAccount) o; + return Objects.equals(this.id, entityResourceOfRetailMediaAccount.id) && + Objects.equals(this.type, entityResourceOfRetailMediaAccount.type) && + Objects.equals(this.attributes, entityResourceOfRetailMediaAccount.attributes)&& + Objects.equals(this.additionalProperties, entityResourceOfRetailMediaAccount.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(id, type, attributes, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EntityResourceOfRetailMediaAccount {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("id"); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to EntityResourceOfRetailMediaAccount + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!EntityResourceOfRetailMediaAccount.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in EntityResourceOfRetailMediaAccount is not found in the empty JSON string", EntityResourceOfRetailMediaAccount.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + ExternalRetailMediaAccount.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!EntityResourceOfRetailMediaAccount.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'EntityResourceOfRetailMediaAccount' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(EntityResourceOfRetailMediaAccount.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, EntityResourceOfRetailMediaAccount value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public EntityResourceOfRetailMediaAccount read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + EntityResourceOfRetailMediaAccount instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of EntityResourceOfRetailMediaAccount given an JSON string + * + * @param jsonString JSON string + * @return An instance of EntityResourceOfRetailMediaAccount + * @throws IOException if the JSON string is invalid with respect to EntityResourceOfRetailMediaAccount + */ + public static EntityResourceOfRetailMediaAccount fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, EntityResourceOfRetailMediaAccount.class); + } + + /** + * Convert an instance of EntityResourceOfRetailMediaAccount to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAccount.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAccount.java index a60b345c..badb5dd3 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAccount.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAccount.java @@ -181,6 +181,10 @@ public SubtypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public ExternalAccount() { } @@ -364,6 +368,28 @@ public void setCompanyName(String companyName) { this.companyName = companyName; } + + public ExternalAccount onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -426,7 +452,8 @@ public boolean equals(Object o) { Objects.equals(this.currency, externalAccount.currency) && Objects.equals(this.parentAccountLabel, externalAccount.parentAccountLabel) && Objects.equals(this.timeZone, externalAccount.timeZone) && - Objects.equals(this.companyName, externalAccount.companyName)&& + Objects.equals(this.companyName, externalAccount.companyName) && + Objects.equals(this.onBehalfCompanyName, externalAccount.onBehalfCompanyName)&& Objects.equals(this.additionalProperties, externalAccount.additionalProperties); } @@ -436,7 +463,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, additionalProperties); + return Objects.hash(name, type, subtype, countries, currency, parentAccountLabel, timeZone, companyName, onBehalfCompanyName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -458,6 +485,7 @@ public String toString() { sb.append(" parentAccountLabel: ").append(toIndentedString(parentAccountLabel)).append("\n"); sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -489,6 +517,7 @@ private String toIndentedString(Object o) { openapiFields.add("parentAccountLabel"); openapiFields.add("timeZone"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -546,6 +575,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalRetailMediaAccount.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalRetailMediaAccount.java new file mode 100644 index 00000000..ed4dfbc4 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalRetailMediaAccount.java @@ -0,0 +1,666 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A Retail Media account entity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExternalRetailMediaAccount { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_COMPANY_NAME = "companyName"; + @SerializedName(SERIALIZED_NAME_COMPANY_NAME) + private String companyName; + + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + UNKNOWN("Unknown"), + + SUPPLY("Supply"), + + DEMAND("Demand"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + /** + * Gets or Sets subType + */ + @JsonAdapter(SubTypeEnum.Adapter.class) + public enum SubTypeEnum { + UNKNOWN("Unknown"), + + BRAND("Brand"), + + SELLER("Seller"); + + private String value; + + SubTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SubTypeEnum fromValue(String value) { + for (SubTypeEnum b : SubTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SubTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SubTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SubTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_SUB_TYPE = "subType"; + @SerializedName(SERIALIZED_NAME_SUB_TYPE) + private SubTypeEnum subType; + + public static final String SERIALIZED_NAME_COUNTRY_IDS = "countryIds"; + @SerializedName(SERIALIZED_NAME_COUNTRY_IDS) + private List countryIds = null; + + public static final String SERIALIZED_NAME_CURRENCY_ID = "currencyId"; + @SerializedName(SERIALIZED_NAME_CURRENCY_ID) + private String currencyId; + + public static final String SERIALIZED_NAME_PARENT_ACCOUNT_LABEL = "parentAccountLabel"; + @SerializedName(SERIALIZED_NAME_PARENT_ACCOUNT_LABEL) + private String parentAccountLabel; + + public static final String SERIALIZED_NAME_TIME_ZONE = "timeZone"; + @SerializedName(SERIALIZED_NAME_TIME_ZONE) + private String timeZone; + + public ExternalRetailMediaAccount() { + } + + public ExternalRetailMediaAccount name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public ExternalRetailMediaAccount companyName(String companyName) { + + this.companyName = companyName; + return this; + } + + /** + * Get companyName + * @return companyName + **/ + @javax.annotation.Nullable + + public String getCompanyName() { + return companyName; + } + + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + + public ExternalRetailMediaAccount onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * Get onBehalfCompanyName + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + + + public ExternalRetailMediaAccount type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public ExternalRetailMediaAccount subType(SubTypeEnum subType) { + + this.subType = subType; + return this; + } + + /** + * Get subType + * @return subType + **/ + @javax.annotation.Nonnull + + public SubTypeEnum getSubType() { + return subType; + } + + + public void setSubType(SubTypeEnum subType) { + this.subType = subType; + } + + + public ExternalRetailMediaAccount countryIds(List countryIds) { + + this.countryIds = countryIds; + return this; + } + + public ExternalRetailMediaAccount addCountryIdsItem(String countryIdsItem) { + if (this.countryIds == null) { + this.countryIds = null; + } + this.countryIds.add(countryIdsItem); + return this; + } + + /** + * Get countryIds + * @return countryIds + **/ + @javax.annotation.Nullable + + public List getCountryIds() { + return countryIds; + } + + + public void setCountryIds(List countryIds) { + this.countryIds = countryIds; + } + + + public ExternalRetailMediaAccount currencyId(String currencyId) { + + this.currencyId = currencyId; + return this; + } + + /** + * Get currencyId + * @return currencyId + **/ + @javax.annotation.Nullable + + public String getCurrencyId() { + return currencyId; + } + + + public void setCurrencyId(String currencyId) { + this.currencyId = currencyId; + } + + + public ExternalRetailMediaAccount parentAccountLabel(String parentAccountLabel) { + + this.parentAccountLabel = parentAccountLabel; + return this; + } + + /** + * Get parentAccountLabel + * @return parentAccountLabel + **/ + @javax.annotation.Nullable + + public String getParentAccountLabel() { + return parentAccountLabel; + } + + + public void setParentAccountLabel(String parentAccountLabel) { + this.parentAccountLabel = parentAccountLabel; + } + + + public ExternalRetailMediaAccount timeZone(String timeZone) { + + this.timeZone = timeZone; + return this; + } + + /** + * Get timeZone + * @return timeZone + **/ + @javax.annotation.Nullable + + public String getTimeZone() { + return timeZone; + } + + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ExternalRetailMediaAccount instance itself + */ + public ExternalRetailMediaAccount putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalRetailMediaAccount externalRetailMediaAccount = (ExternalRetailMediaAccount) o; + return Objects.equals(this.name, externalRetailMediaAccount.name) && + Objects.equals(this.companyName, externalRetailMediaAccount.companyName) && + Objects.equals(this.onBehalfCompanyName, externalRetailMediaAccount.onBehalfCompanyName) && + Objects.equals(this.type, externalRetailMediaAccount.type) && + Objects.equals(this.subType, externalRetailMediaAccount.subType) && + Objects.equals(this.countryIds, externalRetailMediaAccount.countryIds) && + Objects.equals(this.currencyId, externalRetailMediaAccount.currencyId) && + Objects.equals(this.parentAccountLabel, externalRetailMediaAccount.parentAccountLabel) && + Objects.equals(this.timeZone, externalRetailMediaAccount.timeZone)&& + Objects.equals(this.additionalProperties, externalRetailMediaAccount.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(name, companyName, onBehalfCompanyName, type, subType, countryIds, currencyId, parentAccountLabel, timeZone, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalRetailMediaAccount {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); + sb.append(" countryIds: ").append(toIndentedString(countryIds)).append("\n"); + sb.append(" currencyId: ").append(toIndentedString(currencyId)).append("\n"); + sb.append(" parentAccountLabel: ").append(toIndentedString(parentAccountLabel)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); + openapiFields.add("type"); + openapiFields.add("subType"); + openapiFields.add("countryIds"); + openapiFields.add("currencyId"); + openapiFields.add("parentAccountLabel"); + openapiFields.add("timeZone"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + openapiRequiredFields.add("subType"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ExternalRetailMediaAccount + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ExternalRetailMediaAccount.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExternalRetailMediaAccount is not found in the empty JSON string", ExternalRetailMediaAccount.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ExternalRetailMediaAccount.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); + } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if (!jsonObj.get("subType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `subType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subType").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("countryIds") != null && !jsonObj.get("countryIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `countryIds` to be an array in the JSON string but got `%s`", jsonObj.get("countryIds").toString())); + } + if ((jsonObj.get("currencyId") != null && !jsonObj.get("currencyId").isJsonNull()) && !jsonObj.get("currencyId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currencyId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currencyId").toString())); + } + if ((jsonObj.get("parentAccountLabel") != null && !jsonObj.get("parentAccountLabel").isJsonNull()) && !jsonObj.get("parentAccountLabel").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `parentAccountLabel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parentAccountLabel").toString())); + } + if ((jsonObj.get("timeZone") != null && !jsonObj.get("timeZone").isJsonNull()) && !jsonObj.get("timeZone").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `timeZone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timeZone").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ExternalRetailMediaAccount.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExternalRetailMediaAccount' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExternalRetailMediaAccount.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ExternalRetailMediaAccount value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ExternalRetailMediaAccount read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ExternalRetailMediaAccount instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ExternalRetailMediaAccount given an JSON string + * + * @param jsonString JSON string + * @return An instance of ExternalRetailMediaAccount + * @throws IOException if the JSON string is invalid with respect to ExternalRetailMediaAccount + */ + public static ExternalRetailMediaAccount fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExternalRetailMediaAccount.class); + } + + /** + * Convert an instance of ExternalRetailMediaAccount to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/HttpValidationError.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/HttpValidationError.java new file mode 100644 index 00000000..c2e2039c --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/HttpValidationError.java @@ -0,0 +1,314 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.ValidationError; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * http validation error + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class HttpValidationError { + public static final String SERIALIZED_NAME_DETAIL = "detail"; + @SerializedName(SERIALIZED_NAME_DETAIL) + private List detail = null; + + public HttpValidationError() { + } + + public HttpValidationError detail(List detail) { + + this.detail = detail; + return this; + } + + public HttpValidationError addDetailItem(ValidationError detailItem) { + if (this.detail == null) { + this.detail = null; + } + this.detail.add(detailItem); + return this; + } + + /** + * Get detail + * @return detail + **/ + @javax.annotation.Nullable + + public List getDetail() { + return detail; + } + + + public void setDetail(List detail) { + this.detail = detail; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the HttpValidationError instance itself + */ + public HttpValidationError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HttpValidationError httpValidationError = (HttpValidationError) o; + return Objects.equals(this.detail, httpValidationError.detail)&& + Objects.equals(this.additionalProperties, httpValidationError.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(detail, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HttpValidationError {\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("detail"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to HttpValidationError + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!HttpValidationError.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in HttpValidationError is not found in the empty JSON string", HttpValidationError.openapiRequiredFields.toString())); + } + } + if (jsonObj.get("detail") != null && !jsonObj.get("detail").isJsonNull()) { + JsonArray jsonArraydetail = jsonObj.getAsJsonArray("detail"); + if (jsonArraydetail != null) { + // ensure the json data is an array + if (!jsonObj.get("detail").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `detail` to be an array in the JSON string but got `%s`", jsonObj.get("detail").toString())); + } + + // validate the optional field `detail` (array) + for (int i = 0; i < jsonArraydetail.size(); i++) { + ValidationError.validateJsonObject(jsonArraydetail.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!HttpValidationError.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'HttpValidationError' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(HttpValidationError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, HttpValidationError value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public HttpValidationError read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + HttpValidationError instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of HttpValidationError given an JSON string + * + * @param jsonString JSON string + * @return An instance of HttpValidationError + * @throws IOException if the JSON string is invalid with respect to HttpValidationError + */ + public static HttpValidationError fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, HttpValidationError.class); + } + + /** + * Convert an instance of HttpValidationError to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussion.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussion.java new file mode 100644 index 00000000..e7441c5e --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussion.java @@ -0,0 +1,314 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.Message; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * discussion between the user and the chatbot + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InbotDiscussion { + public static final String SERIALIZED_NAME_MESSAGES = "messages"; + @SerializedName(SERIALIZED_NAME_MESSAGES) + private List messages = null; + + public InbotDiscussion() { + } + + public InbotDiscussion messages(List messages) { + + this.messages = messages; + return this; + } + + public InbotDiscussion addMessagesItem(Message messagesItem) { + if (this.messages == null) { + this.messages = null; + } + this.messages.add(messagesItem); + return this; + } + + /** + * ordered list of previous messages, alternating between user prompts and bot answers + * @return messages + **/ + @javax.annotation.Nullable + + public List getMessages() { + return messages; + } + + + public void setMessages(List messages) { + this.messages = messages; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the InbotDiscussion instance itself + */ + public InbotDiscussion putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InbotDiscussion inbotDiscussion = (InbotDiscussion) o; + return Objects.equals(this.messages, inbotDiscussion.messages)&& + Objects.equals(this.additionalProperties, inbotDiscussion.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(messages, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InbotDiscussion {\n"); + sb.append(" messages: ").append(toIndentedString(messages)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("messages"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to InbotDiscussion + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!InbotDiscussion.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in InbotDiscussion is not found in the empty JSON string", InbotDiscussion.openapiRequiredFields.toString())); + } + } + if (jsonObj.get("messages") != null && !jsonObj.get("messages").isJsonNull()) { + JsonArray jsonArraymessages = jsonObj.getAsJsonArray("messages"); + if (jsonArraymessages != null) { + // ensure the json data is an array + if (!jsonObj.get("messages").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `messages` to be an array in the JSON string but got `%s`", jsonObj.get("messages").toString())); + } + + // validate the optional field `messages` (array) + for (int i = 0; i < jsonArraymessages.size(); i++) { + Message.validateJsonObject(jsonArraymessages.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!InbotDiscussion.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'InbotDiscussion' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(InbotDiscussion.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, InbotDiscussion value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public InbotDiscussion read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + InbotDiscussion instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of InbotDiscussion given an JSON string + * + * @param jsonString JSON string + * @return An instance of InbotDiscussion + * @throws IOException if the JSON string is invalid with respect to InbotDiscussion + */ + public static InbotDiscussion fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, InbotDiscussion.class); + } + + /** + * Convert an instance of InbotDiscussion to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudienceRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussionBodyModel.java similarity index 75% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudienceRequest.java rename to sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussionBodyModel.java index 94934107..9d25ae59 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReplaceAudienceRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussionBodyModel.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: Preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.retailmedia.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.ReplaceAudience; +import com.criteo.api.retailmedia.preview.model.InbotDiscussionDataInstanceModel; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -42,21 +42,21 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.retailmedia.preview.JSON; /** - * Request to replace an audience + * an API recommendation message */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ReplaceAudienceRequest { +public class InbotDiscussionBodyModel { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private ReplaceAudience data; + private InbotDiscussionDataInstanceModel data; - public ReplaceAudienceRequest() { + public InbotDiscussionBodyModel() { } - public ReplaceAudienceRequest data(ReplaceAudience data) { + public InbotDiscussionBodyModel data(InbotDiscussionDataInstanceModel data) { this.data = data; return this; @@ -68,12 +68,12 @@ public ReplaceAudienceRequest data(ReplaceAudience data) { **/ @javax.annotation.Nonnull - public ReplaceAudience getData() { + public InbotDiscussionDataInstanceModel getData() { return data; } - public void setData(ReplaceAudience data) { + public void setData(InbotDiscussionDataInstanceModel data) { this.data = data; } @@ -90,9 +90,9 @@ public void setData(ReplaceAudience data) { * * @param key name of the property * @param value value of the property - * @return the ReplaceAudienceRequest instance itself + * @return the InbotDiscussionBodyModel instance itself */ - public ReplaceAudienceRequest putAdditionalProperty(String key, Object value) { + public InbotDiscussionBodyModel putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ReplaceAudienceRequest replaceAudienceRequest = (ReplaceAudienceRequest) o; - return Objects.equals(this.data, replaceAudienceRequest.data)&& - Objects.equals(this.additionalProperties, replaceAudienceRequest.additionalProperties); + InbotDiscussionBodyModel inbotDiscussionBodyModel = (InbotDiscussionBodyModel) o; + return Objects.equals(this.data, inbotDiscussionBodyModel.data)&& + Objects.equals(this.additionalProperties, inbotDiscussionBodyModel.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ReplaceAudienceRequest {\n"); + sb.append("class InbotDiscussionBodyModel {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -180,39 +180,39 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ReplaceAudienceRequest + * @throws IOException if the JSON Object is invalid with respect to InbotDiscussionBodyModel */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!ReplaceAudienceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ReplaceAudienceRequest is not found in the empty JSON string", ReplaceAudienceRequest.openapiRequiredFields.toString())); + if (!InbotDiscussionBodyModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in InbotDiscussionBodyModel is not found in the empty JSON string", InbotDiscussionBodyModel.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ReplaceAudienceRequest.openapiRequiredFields) { + for (String requiredField : InbotDiscussionBodyModel.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } // validate the required field `data` - ReplaceAudience.validateJsonObject(jsonObj.getAsJsonObject("data")); + InbotDiscussionDataInstanceModel.validateJsonObject(jsonObj.getAsJsonObject("data")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReplaceAudienceRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReplaceAudienceRequest' and its subtypes + if (!InbotDiscussionBodyModel.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'InbotDiscussionBodyModel' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ReplaceAudienceRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(InbotDiscussionBodyModel.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, ReplaceAudienceRequest value) throws IOException { + public void write(JsonWriter out, InbotDiscussionBodyModel value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -235,11 +235,11 @@ else if (entry.getValue() instanceof Character) } @Override - public ReplaceAudienceRequest read(JsonReader in) throws IOException { + public InbotDiscussionBodyModel read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - ReplaceAudienceRequest instance = thisAdapter.fromJsonTree(jsonObj); + InbotDiscussionBodyModel instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -266,18 +266,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of ReplaceAudienceRequest given an JSON string + * Create an instance of InbotDiscussionBodyModel given an JSON string * * @param jsonString JSON string - * @return An instance of ReplaceAudienceRequest - * @throws IOException if the JSON string is invalid with respect to ReplaceAudienceRequest + * @return An instance of InbotDiscussionBodyModel + * @throws IOException if the JSON string is invalid with respect to InbotDiscussionBodyModel */ - public static ReplaceAudienceRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReplaceAudienceRequest.class); + public static InbotDiscussionBodyModel fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, InbotDiscussionBodyModel.class); } /** - * Convert an instance of ReplaceAudienceRequest to an JSON string + * Convert an instance of InbotDiscussionBodyModel to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussionDataInstanceModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussionDataInstanceModel.java new file mode 100644 index 00000000..f64a3807 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InbotDiscussionDataInstanceModel.java @@ -0,0 +1,332 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.InbotDiscussion; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * an API recommendation request + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InbotDiscussionDataInstanceModel { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type = "InbotDiscussion"; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private InbotDiscussion attributes; + + public InbotDiscussionDataInstanceModel() { + } + + public InbotDiscussionDataInstanceModel type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public InbotDiscussionDataInstanceModel attributes(InbotDiscussion attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nonnull + + public InbotDiscussion getAttributes() { + return attributes; + } + + + public void setAttributes(InbotDiscussion attributes) { + this.attributes = attributes; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the InbotDiscussionDataInstanceModel instance itself + */ + public InbotDiscussionDataInstanceModel putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InbotDiscussionDataInstanceModel inbotDiscussionDataInstanceModel = (InbotDiscussionDataInstanceModel) o; + return Objects.equals(this.type, inbotDiscussionDataInstanceModel.type) && + Objects.equals(this.attributes, inbotDiscussionDataInstanceModel.attributes)&& + Objects.equals(this.additionalProperties, inbotDiscussionDataInstanceModel.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InbotDiscussionDataInstanceModel {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("attributes"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to InbotDiscussionDataInstanceModel + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!InbotDiscussionDataInstanceModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in InbotDiscussionDataInstanceModel is not found in the empty JSON string", InbotDiscussionDataInstanceModel.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : InbotDiscussionDataInstanceModel.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the required field `attributes` + InbotDiscussion.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!InbotDiscussionDataInstanceModel.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'InbotDiscussionDataInstanceModel' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(InbotDiscussionDataInstanceModel.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, InbotDiscussionDataInstanceModel value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public InbotDiscussionDataInstanceModel read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + InbotDiscussionDataInstanceModel instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of InbotDiscussionDataInstanceModel given an JSON string + * + * @param jsonString JSON string + * @return An instance of InbotDiscussionDataInstanceModel + * @throws IOException if the JSON string is invalid with respect to InbotDiscussionDataInstanceModel + */ + public static InbotDiscussionDataInstanceModel fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, InbotDiscussionDataInstanceModel.class); + } + + /** + * Convert an instance of InbotDiscussionDataInstanceModel to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LocationInner.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LocationInner.java new file mode 100644 index 00000000..ef104fcc --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LocationInner.java @@ -0,0 +1,266 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; + +import javax.ws.rs.core.GenericType; + +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; +import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.JsonPrimitive; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; + +import com.criteo.api.retailmedia.preview.JSON; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class LocationInner extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(LocationInner.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LocationInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LocationInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterInteger = gson.getDelegateAdapter(this, TypeToken.get(Integer.class)); + final TypeAdapter adapterString = gson.getDelegateAdapter(this, TypeToken.get(String.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LocationInner value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `Integer` + if (value.getActualInstance() instanceof Integer) { + JsonObject obj = adapterInteger.toJsonTree((Integer)value.getActualInstance()).getAsJsonObject(); + elementAdapter.write(out, obj); + return; + } + + // check if the actual instance is of the type `String` + if (value.getActualInstance() instanceof String) { + JsonObject obj = adapterString.toJsonTree((String)value.getActualInstance()).getAsJsonObject(); + elementAdapter.write(out, obj); + return; + } + + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: Integer, String"); + } + + @Override + public LocationInner read(JsonReader in) throws IOException { + Object deserialized = null; + JsonObject jsonObject = elementAdapter.read(in).getAsJsonObject(); + + // deserialize Integer + try { + // validate the JSON object to see if any exception is thrown + Integer.validateJsonObject(jsonObject); + log.log(Level.FINER, "Input data matches schema 'Integer'"); + LocationInner ret = new LocationInner(); + ret.setActualInstance(adapterInteger.fromJsonTree(jsonObject)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'Integer'", e); + } + + // deserialize String + try { + // validate the JSON object to see if any exception is thrown + String.validateJsonObject(jsonObject); + log.log(Level.FINER, "Input data matches schema 'String'"); + LocationInner ret = new LocationInner(); + ret.setActualInstance(adapterString.fromJsonTree(jsonObject)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'String'", e); + } + + + throw new IOException(String.format("Failed deserialization for LocationInner: no class matched. JSON: %s", jsonObject.toString())); + } + }.nullSafe(); + } + } + + // store a list of schema names defined in anyOf + public static final Map schemas = new HashMap(); + + public LocationInner() { + super("anyOf", Boolean.FALSE); + } + + public LocationInner(Integer o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + public LocationInner(String o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("Integer", new GenericType() { + }); + schemas.put("String", new GenericType() { + }); + } + + @Override + public Map getSchemas() { + return LocationInner.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * Integer, String + * + * It could be an instance of the 'anyOf' schemas. + * The anyOf child schemas may themselves be a composed schema (allOf, anyOf, anyOf). + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof Integer) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof String) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be Integer, String"); + } + + /** + * Get the actual instance, which can be the following: + * Integer, String + * + * @return The actual instance (Integer, String) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `Integer`. If the actual instance is not `Integer`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `Integer` + * @throws ClassCastException if the instance is not `Integer` + */ + public Integer getInteger() throws ClassCastException { + return (Integer)super.getActualInstance(); + } + + /** + * Get the actual instance of `String`. If the actual instance is not `String`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `String` + * @throws ClassCastException if the instance is not `String` + */ + public String getString() throws ClassCastException { + return (String)super.getActualInstance(); + } + + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LocationInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + // validate anyOf schemas one by one + int validCount = 0; + // validate the json string with Integer + try { + Integer.validateJsonObject(jsonObj); + return; // return earlier as at least one schema is valid with respect to the Json object + //validCount++; + } catch (Exception e) { + // continue to the next one + } + // validate the json string with String + try { + String.validateJsonObject(jsonObj); + return; // return earlier as at least one schema is valid with respect to the Json object + //validCount++; + } catch (Exception e) { + // continue to the next one + } + if (validCount == 0) { + throw new IOException(String.format("The JSON string is invalid for LocationInner with anyOf schemas: Integer, String. JSON: %s", jsonObj.toString())); + } + } + + /** + * Create an instance of LocationInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of LocationInner + * @throws IOException if the JSON string is invalid with respect to LocationInner + */ + public static LocationInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LocationInner.class); + } + + /** + * Convert an instance of LocationInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Message.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Message.java new file mode 100644 index 00000000..6fa96263 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Message.java @@ -0,0 +1,326 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.Botmessage; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * message of the discussion + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Message { + public static final String SERIALIZED_NAME_USER_MESSAGE = "userMessage"; + @SerializedName(SERIALIZED_NAME_USER_MESSAGE) + private String userMessage; + + public static final String SERIALIZED_NAME_BOT_MESSAGE = "botMessage"; + @SerializedName(SERIALIZED_NAME_BOT_MESSAGE) + private Botmessage botMessage; + + public Message() { + } + + public Message userMessage(String userMessage) { + + this.userMessage = userMessage; + return this; + } + + /** + * user prompt + * @return userMessage + **/ + @javax.annotation.Nullable + + public String getUserMessage() { + return userMessage; + } + + + public void setUserMessage(String userMessage) { + this.userMessage = userMessage; + } + + + public Message botMessage(Botmessage botMessage) { + + this.botMessage = botMessage; + return this; + } + + /** + * Get botMessage + * @return botMessage + **/ + @javax.annotation.Nullable + + public Botmessage getBotMessage() { + return botMessage; + } + + + public void setBotMessage(Botmessage botMessage) { + this.botMessage = botMessage; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Message instance itself + */ + public Message putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Message message = (Message) o; + return Objects.equals(this.userMessage, message.userMessage) && + Objects.equals(this.botMessage, message.botMessage)&& + Objects.equals(this.additionalProperties, message.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(userMessage, botMessage, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Message {\n"); + sb.append(" userMessage: ").append(toIndentedString(userMessage)).append("\n"); + sb.append(" botMessage: ").append(toIndentedString(botMessage)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("userMessage"); + openapiFields.add("botMessage"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Message + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!Message.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in Message is not found in the empty JSON string", Message.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("userMessage") != null && !jsonObj.get("userMessage").isJsonNull()) && !jsonObj.get("userMessage").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `userMessage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userMessage").toString())); + } + // validate the optional field `botMessage` + if (jsonObj.get("botMessage") != null && !jsonObj.get("botMessage").isJsonNull()) { + Botmessage.validateJsonObject(jsonObj.getAsJsonObject("botMessage")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Message.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Message' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Message.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Message value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public Message read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + Message instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Message given an JSON string + * + * @param jsonString JSON string + * @return An instance of Message + * @throws IOException if the JSON string is invalid with respect to Message + */ + public static Message fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Message.class); + } + + /** + * Convert an instance of Message to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MessageBodyModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MessageBodyModel.java new file mode 100644 index 00000000..e1bf6a87 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MessageBodyModel.java @@ -0,0 +1,348 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.MessageDataInstanceModel; +import com.criteo.api.retailmedia.preview.model.MessageError; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * error message + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class MessageBodyModel { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private MessageDataInstanceModel data; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public MessageBodyModel() { + } + + public MessageBodyModel data(MessageDataInstanceModel data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public MessageDataInstanceModel getData() { + return data; + } + + + public void setData(MessageDataInstanceModel data) { + this.data = data; + } + + + public MessageBodyModel errors(List errors) { + + this.errors = errors; + return this; + } + + public MessageBodyModel addErrorsItem(MessageError errorsItem) { + if (this.errors == null) { + this.errors = null; + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + public void setErrors(List errors) { + this.errors = errors; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the MessageBodyModel instance itself + */ + public MessageBodyModel putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessageBodyModel messageBodyModel = (MessageBodyModel) o; + return Objects.equals(this.data, messageBodyModel.data) && + Objects.equals(this.errors, messageBodyModel.errors)&& + Objects.equals(this.additionalProperties, messageBodyModel.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(data, errors, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessageBodyModel {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MessageBodyModel + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!MessageBodyModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in MessageBodyModel is not found in the empty JSON string", MessageBodyModel.openapiRequiredFields.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + MessageDataInstanceModel.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + MessageError.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!MessageBodyModel.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MessageBodyModel' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MessageBodyModel.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MessageBodyModel value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public MessageBodyModel read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + MessageBodyModel instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of MessageBodyModel given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageBodyModel + * @throws IOException if the JSON string is invalid with respect to MessageBodyModel + */ + public static MessageBodyModel fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, MessageBodyModel.class); + } + + /** + * Convert an instance of MessageBodyModel to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MessageDataInstanceModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MessageDataInstanceModel.java new file mode 100644 index 00000000..eb28c170 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MessageDataInstanceModel.java @@ -0,0 +1,332 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.Message; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * an API answer message + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class MessageDataInstanceModel { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type = "Message"; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private Message attributes; + + public MessageDataInstanceModel() { + } + + public MessageDataInstanceModel type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public MessageDataInstanceModel attributes(Message attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nonnull + + public Message getAttributes() { + return attributes; + } + + + public void setAttributes(Message attributes) { + this.attributes = attributes; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the MessageDataInstanceModel instance itself + */ + public MessageDataInstanceModel putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessageDataInstanceModel messageDataInstanceModel = (MessageDataInstanceModel) o; + return Objects.equals(this.type, messageDataInstanceModel.type) && + Objects.equals(this.attributes, messageDataInstanceModel.attributes)&& + Objects.equals(this.additionalProperties, messageDataInstanceModel.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessageDataInstanceModel {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("attributes"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MessageDataInstanceModel + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!MessageDataInstanceModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in MessageDataInstanceModel is not found in the empty JSON string", MessageDataInstanceModel.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : MessageDataInstanceModel.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the required field `attributes` + Message.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!MessageDataInstanceModel.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MessageDataInstanceModel' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MessageDataInstanceModel.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MessageDataInstanceModel value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public MessageDataInstanceModel read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + MessageDataInstanceModel instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of MessageDataInstanceModel given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageDataInstanceModel + * @throws IOException if the JSON string is invalid with respect to MessageDataInstanceModel + */ + public static MessageDataInstanceModel fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, MessageDataInstanceModel.class); + } + + /** + * Convert an instance of MessageDataInstanceModel to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MessageError.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MessageError.java new file mode 100644 index 00000000..1553484a --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/MessageError.java @@ -0,0 +1,388 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * error message + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class MessageError { + public static final String SERIALIZED_NAME_TRACE_ID = "traceId"; + @SerializedName(SERIALIZED_NAME_TRACE_ID) + private String traceId; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private String code; + + public static final String SERIALIZED_NAME_INSTANCE = "instance"; + @SerializedName(SERIALIZED_NAME_INSTANCE) + private String instance; + + public MessageError() { + } + + public MessageError traceId(String traceId) { + + this.traceId = traceId; + return this; + } + + /** + * correlation ID, unique to each request + * @return traceId + **/ + @javax.annotation.Nullable + + public String getTraceId() { + return traceId; + } + + + public void setTraceId(String traceId) { + this.traceId = traceId; + } + + + public MessageError type(String type) { + + this.type = type; + return this; + } + + /** + * error category + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public MessageError code(String code) { + + this.code = code; + return this; + } + + /** + * error code + * @return code + **/ + @javax.annotation.Nullable + + public String getCode() { + return code; + } + + + public void setCode(String code) { + this.code = code; + } + + + public MessageError instance(String instance) { + + this.instance = instance; + return this; + } + + /** + * specific occurrence of the problem + * @return instance + **/ + @javax.annotation.Nullable + + public String getInstance() { + return instance; + } + + + public void setInstance(String instance) { + this.instance = instance; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the MessageError instance itself + */ + public MessageError putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessageError messageError = (MessageError) o; + return Objects.equals(this.traceId, messageError.traceId) && + Objects.equals(this.type, messageError.type) && + Objects.equals(this.code, messageError.code) && + Objects.equals(this.instance, messageError.instance)&& + Objects.equals(this.additionalProperties, messageError.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(traceId, type, code, instance, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessageError {\n"); + sb.append(" traceId: ").append(toIndentedString(traceId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("traceId"); + openapiFields.add("type"); + openapiFields.add("code"); + openapiFields.add("instance"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MessageError + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!MessageError.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in MessageError is not found in the empty JSON string", MessageError.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("traceId") != null && !jsonObj.get("traceId").isJsonNull()) && !jsonObj.get("traceId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `traceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("traceId").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull()) && !jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + if ((jsonObj.get("instance") != null && !jsonObj.get("instance").isJsonNull()) && !jsonObj.get("instance").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `instance` to be a primitive type in the JSON string but got `%s`", jsonObj.get("instance").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!MessageError.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MessageError' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MessageError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MessageError value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public MessageError read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + MessageError instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of MessageError given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageError + * @throws IOException if the JSON string is invalid with respect to MessageError + */ + public static MessageError fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, MessageError.class); + } + + /** + * Convert an instance of MessageError to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Product.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Product.java index ce6b2285..aacd6357 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Product.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Product.java @@ -430,6 +430,10 @@ public ChannelEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PRODUCT_RATING) private String productRating; + public static final String SERIALIZED_NAME_BADGE = "badge"; + @SerializedName(SERIALIZED_NAME_BADGE) + private String badge; + public Product() { } @@ -2310,6 +2314,28 @@ public void setProductRating(String productRating) { this.productRating = productRating; } + + public Product badge(String badge) { + + this.badge = badge; + return this; + } + + /** + * URL of a badge image to display on the product. + * @return badge + **/ + @javax.annotation.Nullable + + public String getBadge() { + return badge; + } + + + public void setBadge(String badge) { + this.badge = badge; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -2445,7 +2471,8 @@ public boolean equals(Object o) { Objects.equals(this.externalSellerId, product.externalSellerId) && Objects.equals(this.externalSellerName, product.externalSellerName) && Objects.equals(this.numberOfReviews, product.numberOfReviews) && - Objects.equals(this.productRating, product.productRating)&& + Objects.equals(this.productRating, product.productRating) && + Objects.equals(this.badge, product.badge)&& Objects.equals(this.additionalProperties, product.additionalProperties); } @@ -2455,7 +2482,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, offerId, title, description, link, imageLink, additionalImageLinks, contentLanguage, targetCountry, channel, expirationDate, adult, kind, brand, color, googleProductCategory, gtin, itemGroupId, material, mpn, pattern, price, salePrice, salePriceEffectiveDate, shipping, shippingWeight, sizes, taxes, customAttributes, identifierExists, installment, loyaltyPoints, multipack, customLabel0, customLabel1, customLabel2, customLabel3, customLabel4, isBundle, mobileLink, availabilityDate, shippingLabel, unitPricingMeasure, unitPricingBaseMeasure, shippingLength, shippingWidth, shippingHeight, displayAdsId, displayAdsSimilarIds, displayAdsTitle, displayAdsLink, displayAdsValue, sellOnGoogleQuantity, promotionIds, maxHandlingTime, minHandlingTime, costOfGoodsSold, source, includedDestinations, excludedDestinations, adsGrouping, adsLabels, adsRedirect, productTypes, productTypeKeys, ageGroup, availability, condition, gender, sizeSystem, sizeType, energyEfficiencyClass, minEnergyEfficiencyClass, maxEnergyEfficiencyClass, taxCategory, transitTimeLabel, sellerId, externalSellerId, externalSellerName, numberOfReviews, productRating, additionalProperties); + return Objects.hash(id, offerId, title, description, link, imageLink, additionalImageLinks, contentLanguage, targetCountry, channel, expirationDate, adult, kind, brand, color, googleProductCategory, gtin, itemGroupId, material, mpn, pattern, price, salePrice, salePriceEffectiveDate, shipping, shippingWeight, sizes, taxes, customAttributes, identifierExists, installment, loyaltyPoints, multipack, customLabel0, customLabel1, customLabel2, customLabel3, customLabel4, isBundle, mobileLink, availabilityDate, shippingLabel, unitPricingMeasure, unitPricingBaseMeasure, shippingLength, shippingWidth, shippingHeight, displayAdsId, displayAdsSimilarIds, displayAdsTitle, displayAdsLink, displayAdsValue, sellOnGoogleQuantity, promotionIds, maxHandlingTime, minHandlingTime, costOfGoodsSold, source, includedDestinations, excludedDestinations, adsGrouping, adsLabels, adsRedirect, productTypes, productTypeKeys, ageGroup, availability, condition, gender, sizeSystem, sizeType, energyEfficiencyClass, minEnergyEfficiencyClass, maxEnergyEfficiencyClass, taxCategory, transitTimeLabel, sellerId, externalSellerId, externalSellerName, numberOfReviews, productRating, badge, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -2550,6 +2577,7 @@ public String toString() { sb.append(" externalSellerName: ").append(toIndentedString(externalSellerName)).append("\n"); sb.append(" numberOfReviews: ").append(toIndentedString(numberOfReviews)).append("\n"); sb.append(" productRating: ").append(toIndentedString(productRating)).append("\n"); + sb.append(" badge: ").append(toIndentedString(badge)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -2654,6 +2682,7 @@ private String toIndentedString(Object o) { openapiFields.add("externalSellerName"); openapiFields.add("numberOfReviews"); openapiFields.add("productRating"); + openapiFields.add("badge"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -2952,6 +2981,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("productRating") != null && !jsonObj.get("productRating").isJsonNull()) && !jsonObj.get("productRating").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `productRating` to be a primitive type in the JSON string but got `%s`", jsonObj.get("productRating").toString())); } + if ((jsonObj.get("badge") != null && !jsonObj.get("badge").isJsonNull()) && !jsonObj.get("badge").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `badge` to be a primitive type in the JSON string but got `%s`", jsonObj.get("badge").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceAttributes.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductRecommendation.java similarity index 55% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceAttributes.java rename to sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductRecommendation.java index eb56738e..2ea005a1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceAttributes.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductRecommendation.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: Preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.retailmedia.preview.model; import java.util.Objects; import java.util.Arrays; @@ -21,7 +21,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.time.OffsetDateTime; +import java.math.BigDecimal; +import java.net.URI; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -43,16 +44,16 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.retailmedia.preview.JSON; /** - * AudienceAttributes + * recommendation data for a product */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AudienceAttributes { - public static final String SERIALIZED_NAME_ADVERTISER_ID = "advertiserId"; - @SerializedName(SERIALIZED_NAME_ADVERTISER_ID) - private String advertiserId; +public class ProductRecommendation { + public static final String SERIALIZED_NAME_RATIONALE = "rationale"; + @SerializedName(SERIALIZED_NAME_RATIONALE) + private String rationale; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -62,62 +63,62 @@ public class AudienceAttributes { @SerializedName(SERIALIZED_NAME_DESCRIPTION) private String description; - public static final String SERIALIZED_NAME_CREATED = "created"; - @SerializedName(SERIALIZED_NAME_CREATED) - private OffsetDateTime created; + public static final String SERIALIZED_NAME_IMAGE_URL = "imageUrl"; + @SerializedName(SERIALIZED_NAME_IMAGE_URL) + private URI imageUrl; - public static final String SERIALIZED_NAME_UPDATED = "updated"; - @SerializedName(SERIALIZED_NAME_UPDATED) - private OffsetDateTime updated; + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private URI url; - public static final String SERIALIZED_NAME_NB_LINES = "nbLines"; - @SerializedName(SERIALIZED_NAME_NB_LINES) - private Integer nbLines; + public static final String SERIALIZED_NAME_BRAND = "brand"; + @SerializedName(SERIALIZED_NAME_BRAND) + private String brand; - public static final String SERIALIZED_NAME_NB_LINES_EMAIL = "nbLinesEmail"; - @SerializedName(SERIALIZED_NAME_NB_LINES_EMAIL) - private Integer nbLinesEmail; + public static final String SERIALIZED_NAME_PRICE = "price"; + @SerializedName(SERIALIZED_NAME_PRICE) + private BigDecimal price; - public static final String SERIALIZED_NAME_NB_MATCHES_EMAIL = "nbMatchesEmail"; - @SerializedName(SERIALIZED_NAME_NB_MATCHES_EMAIL) - private Integer nbMatchesEmail; + public static final String SERIALIZED_NAME_CURRENCY = "currency"; + @SerializedName(SERIALIZED_NAME_CURRENCY) + private String currency; - public AudienceAttributes() { + public ProductRecommendation() { } - public AudienceAttributes advertiserId(String advertiserId) { + public ProductRecommendation rationale(String rationale) { - this.advertiserId = advertiserId; + this.rationale = rationale; return this; } /** - * The advertiser id that owns this Audience - * @return advertiserId + * reason for this recommendation, given by the bot + * @return rationale **/ - @javax.annotation.Nullable + @javax.annotation.Nonnull - public String getAdvertiserId() { - return advertiserId; + public String getRationale() { + return rationale; } - public void setAdvertiserId(String advertiserId) { - this.advertiserId = advertiserId; + public void setRationale(String rationale) { + this.rationale = rationale; } - public AudienceAttributes name(String name) { + public ProductRecommendation name(String name) { this.name = name; return this; } /** - * The name of the Audience + * name of the product * @return name **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public String getName() { return name; @@ -129,17 +130,17 @@ public void setName(String name) { } - public AudienceAttributes description(String description) { + public ProductRecommendation description(String description) { this.description = description; return this; } /** - * The string description of the Audience + * description of the product * @return description **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable public String getDescription() { return description; @@ -151,113 +152,113 @@ public void setDescription(String description) { } - public AudienceAttributes created(OffsetDateTime created) { + public ProductRecommendation imageUrl(URI imageUrl) { - this.created = created; + this.imageUrl = imageUrl; return this; } /** - * Date and time ISO 8601 formatted string - * @return created + * url of the product image + * @return imageUrl **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable - public OffsetDateTime getCreated() { - return created; + public URI getImageUrl() { + return imageUrl; } - public void setCreated(OffsetDateTime created) { - this.created = created; + public void setImageUrl(URI imageUrl) { + this.imageUrl = imageUrl; } - public AudienceAttributes updated(OffsetDateTime updated) { + public ProductRecommendation url(URI url) { - this.updated = updated; + this.url = url; return this; } /** - * Date and time ISO 8601 formatted string - * @return updated + * url of the product on the retailer website + * @return url **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable - public OffsetDateTime getUpdated() { - return updated; + public URI getUrl() { + return url; } - public void setUpdated(OffsetDateTime updated) { - this.updated = updated; + public void setUrl(URI url) { + this.url = url; } - public AudienceAttributes nbLines(Integer nbLines) { + public ProductRecommendation brand(String brand) { - this.nbLines = nbLines; + this.brand = brand; return this; } /** - * The number of line in the audience available once processed - * @return nbLines + * brand of the product + * @return brand **/ @javax.annotation.Nullable - public Integer getNbLines() { - return nbLines; + public String getBrand() { + return brand; } - public void setNbLines(Integer nbLines) { - this.nbLines = nbLines; + public void setBrand(String brand) { + this.brand = brand; } - public AudienceAttributes nbLinesEmail(Integer nbLinesEmail) { + public ProductRecommendation price(BigDecimal price) { - this.nbLinesEmail = nbLinesEmail; + this.price = price; return this; } /** - * The number of email line in the audience available once processed - * @return nbLinesEmail + * numerical value of the price of the product + * @return price **/ @javax.annotation.Nullable - public Integer getNbLinesEmail() { - return nbLinesEmail; + public BigDecimal getPrice() { + return price; } - public void setNbLinesEmail(Integer nbLinesEmail) { - this.nbLinesEmail = nbLinesEmail; + public void setPrice(BigDecimal price) { + this.price = price; } - public AudienceAttributes nbMatchesEmail(Integer nbMatchesEmail) { + public ProductRecommendation currency(String currency) { - this.nbMatchesEmail = nbMatchesEmail; + this.currency = currency; return this; } /** - * The number of email matches in the audience available once processed - * @return nbMatchesEmail + * currency of the price of the product + * @return currency **/ @javax.annotation.Nullable - public Integer getNbMatchesEmail() { - return nbMatchesEmail; + public String getCurrency() { + return currency; } - public void setNbMatchesEmail(Integer nbMatchesEmail) { - this.nbMatchesEmail = nbMatchesEmail; + public void setCurrency(String currency) { + this.currency = currency; } /** @@ -273,9 +274,9 @@ public void setNbMatchesEmail(Integer nbMatchesEmail) { * * @param key name of the property * @param value value of the property - * @return the AudienceAttributes instance itself + * @return the ProductRecommendation instance itself */ - public AudienceAttributes putAdditionalProperty(String key, Object value) { + public ProductRecommendation putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -314,16 +315,16 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AudienceAttributes audienceAttributes = (AudienceAttributes) o; - return Objects.equals(this.advertiserId, audienceAttributes.advertiserId) && - Objects.equals(this.name, audienceAttributes.name) && - Objects.equals(this.description, audienceAttributes.description) && - Objects.equals(this.created, audienceAttributes.created) && - Objects.equals(this.updated, audienceAttributes.updated) && - Objects.equals(this.nbLines, audienceAttributes.nbLines) && - Objects.equals(this.nbLinesEmail, audienceAttributes.nbLinesEmail) && - Objects.equals(this.nbMatchesEmail, audienceAttributes.nbMatchesEmail)&& - Objects.equals(this.additionalProperties, audienceAttributes.additionalProperties); + ProductRecommendation productRecommendation = (ProductRecommendation) o; + return Objects.equals(this.rationale, productRecommendation.rationale) && + Objects.equals(this.name, productRecommendation.name) && + Objects.equals(this.description, productRecommendation.description) && + Objects.equals(this.imageUrl, productRecommendation.imageUrl) && + Objects.equals(this.url, productRecommendation.url) && + Objects.equals(this.brand, productRecommendation.brand) && + Objects.equals(this.price, productRecommendation.price) && + Objects.equals(this.currency, productRecommendation.currency)&& + Objects.equals(this.additionalProperties, productRecommendation.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -332,7 +333,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(advertiserId, name, description, created, updated, nbLines, nbLinesEmail, nbMatchesEmail, additionalProperties); + return Objects.hash(rationale, name, description, imageUrl, url, brand, price, currency, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -345,15 +346,15 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AudienceAttributes {\n"); - sb.append(" advertiserId: ").append(toIndentedString(advertiserId)).append("\n"); + sb.append("class ProductRecommendation {\n"); + sb.append(" rationale: ").append(toIndentedString(rationale)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" created: ").append(toIndentedString(created)).append("\n"); - sb.append(" updated: ").append(toIndentedString(updated)).append("\n"); - sb.append(" nbLines: ").append(toIndentedString(nbLines)).append("\n"); - sb.append(" nbLinesEmail: ").append(toIndentedString(nbLinesEmail)).append("\n"); - sb.append(" nbMatchesEmail: ").append(toIndentedString(nbMatchesEmail)).append("\n"); + sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); + sb.append(" price: ").append(toIndentedString(price)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -377,67 +378,76 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("advertiserId"); + openapiFields.add("rationale"); openapiFields.add("name"); openapiFields.add("description"); - openapiFields.add("created"); - openapiFields.add("updated"); - openapiFields.add("nbLines"); - openapiFields.add("nbLinesEmail"); - openapiFields.add("nbMatchesEmail"); + openapiFields.add("imageUrl"); + openapiFields.add("url"); + openapiFields.add("brand"); + openapiFields.add("price"); + openapiFields.add("currency"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("description"); - openapiRequiredFields.add("created"); - openapiRequiredFields.add("updated"); + openapiRequiredFields.add("rationale"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to AudienceAttributes + * @throws IOException if the JSON Object is invalid with respect to ProductRecommendation */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!AudienceAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AudienceAttributes is not found in the empty JSON string", AudienceAttributes.openapiRequiredFields.toString())); + if (!ProductRecommendation.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ProductRecommendation is not found in the empty JSON string", ProductRecommendation.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AudienceAttributes.openapiRequiredFields) { + for (String requiredField : ProductRecommendation.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if ((jsonObj.get("advertiserId") != null && !jsonObj.get("advertiserId").isJsonNull()) && !jsonObj.get("advertiserId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `advertiserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("advertiserId").toString())); + if (!jsonObj.get("rationale").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `rationale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rationale").toString())); } - if (!jsonObj.get("name").isJsonPrimitive()) { + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if (!jsonObj.get("description").isJsonPrimitive()) { + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } + if ((jsonObj.get("imageUrl") != null && !jsonObj.get("imageUrl").isJsonNull()) && !jsonObj.get("imageUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `imageUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("imageUrl").toString())); + } + if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + if ((jsonObj.get("brand") != null && !jsonObj.get("brand").isJsonNull()) && !jsonObj.get("brand").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `brand` to be a primitive type in the JSON string but got `%s`", jsonObj.get("brand").toString())); + } + if ((jsonObj.get("currency") != null && !jsonObj.get("currency").isJsonNull()) && !jsonObj.get("currency").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currency` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currency").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AudienceAttributes.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AudienceAttributes' and its subtypes + if (!ProductRecommendation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ProductRecommendation' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AudienceAttributes.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ProductRecommendation.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, AudienceAttributes value) throws IOException { + public void write(JsonWriter out, ProductRecommendation value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -460,11 +470,11 @@ else if (entry.getValue() instanceof Character) } @Override - public AudienceAttributes read(JsonReader in) throws IOException { + public ProductRecommendation read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - AudienceAttributes instance = thisAdapter.fromJsonTree(jsonObj); + ProductRecommendation instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -491,18 +501,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of AudienceAttributes given an JSON string + * Create an instance of ProductRecommendation given an JSON string * * @param jsonString JSON string - * @return An instance of AudienceAttributes - * @throws IOException if the JSON string is invalid with respect to AudienceAttributes + * @return An instance of ProductRecommendation + * @throws IOException if the JSON string is invalid with respect to ProductRecommendation */ - public static AudienceAttributes fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AudienceAttributes.class); + public static ProductRecommendation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ProductRecommendation.class); } /** - * Convert an instance of AudienceAttributes to an JSON string + * Convert an instance of ProductRecommendation to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportDetailWarning.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportDetailWarning.java new file mode 100644 index 00000000..b329d6ed --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportDetailWarning.java @@ -0,0 +1,398 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A warning on a batch operation. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ReportDetailWarning { + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + OVERLARGEBADGEURL("OverlargeBadgeUrl"), + + INVALIDBADGEURL("InvalidBadgeUrl"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_IS_SERVER_RELATED = "isServerRelated"; + @SerializedName(SERIALIZED_NAME_IS_SERVER_RELATED) + private Boolean isServerRelated; + + public ReportDetailWarning() { + } + + public ReportDetailWarning type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public ReportDetailWarning message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + + public String getMessage() { + return message; + } + + + public void setMessage(String message) { + this.message = message; + } + + + public ReportDetailWarning isServerRelated(Boolean isServerRelated) { + + this.isServerRelated = isServerRelated; + return this; + } + + /** + * Get isServerRelated + * @return isServerRelated + **/ + @javax.annotation.Nonnull + + public Boolean getIsServerRelated() { + return isServerRelated; + } + + + public void setIsServerRelated(Boolean isServerRelated) { + this.isServerRelated = isServerRelated; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ReportDetailWarning instance itself + */ + public ReportDetailWarning putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportDetailWarning reportDetailWarning = (ReportDetailWarning) o; + return Objects.equals(this.type, reportDetailWarning.type) && + Objects.equals(this.message, reportDetailWarning.message) && + Objects.equals(this.isServerRelated, reportDetailWarning.isServerRelated)&& + Objects.equals(this.additionalProperties, reportDetailWarning.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(type, message, isServerRelated, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportDetailWarning {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" isServerRelated: ").append(toIndentedString(isServerRelated)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("message"); + openapiFields.add("isServerRelated"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + openapiRequiredFields.add("message"); + openapiRequiredFields.add("isServerRelated"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ReportDetailWarning + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ReportDetailWarning.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ReportDetailWarning is not found in the empty JSON string", ReportDetailWarning.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ReportDetailWarning.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if (!jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ReportDetailWarning.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReportDetailWarning' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReportDetailWarning.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ReportDetailWarning value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ReportDetailWarning read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ReportDetailWarning instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ReportDetailWarning given an JSON string + * + * @param jsonString JSON string + * @return An instance of ReportDetailWarning + * @throws IOException if the JSON string is invalid with respect to ReportDetailWarning + */ + public static ReportDetailWarning fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReportDetailWarning.class); + } + + /** + * Convert an instance of ReportDetailWarning to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportDetailWarnings.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportDetailWarnings.java new file mode 100644 index 00000000..a26cc2b4 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportDetailWarnings.java @@ -0,0 +1,336 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.ReportDetailWarning; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A list of warnings on a batch operation. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ReportDetailWarnings { + public static final String SERIALIZED_NAME_PRODUCT_ID = "productId"; + @SerializedName(SERIALIZED_NAME_PRODUCT_ID) + private String productId; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = new ArrayList<>(); + + public ReportDetailWarnings() { + } + + public ReportDetailWarnings productId(String productId) { + + this.productId = productId; + return this; + } + + /** + * Get productId + * @return productId + **/ + @javax.annotation.Nonnull + + public String getProductId() { + return productId; + } + + + public void setProductId(String productId) { + this.productId = productId; + } + + + public ReportDetailWarnings warnings(List warnings) { + + this.warnings = warnings; + return this; + } + + public ReportDetailWarnings addWarningsItem(ReportDetailWarning warningsItem) { + this.warnings.add(warningsItem); + return this; + } + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nonnull + + public List getWarnings() { + return warnings; + } + + + public void setWarnings(List warnings) { + this.warnings = warnings; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ReportDetailWarnings instance itself + */ + public ReportDetailWarnings putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportDetailWarnings reportDetailWarnings = (ReportDetailWarnings) o; + return Objects.equals(this.productId, reportDetailWarnings.productId) && + Objects.equals(this.warnings, reportDetailWarnings.warnings)&& + Objects.equals(this.additionalProperties, reportDetailWarnings.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(productId, warnings, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportDetailWarnings {\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("productId"); + openapiFields.add("warnings"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("productId"); + openapiRequiredFields.add("warnings"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ReportDetailWarnings + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ReportDetailWarnings.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ReportDetailWarnings is not found in the empty JSON string", ReportDetailWarnings.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ReportDetailWarnings.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("productId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `productId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("productId").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + // validate the required field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + ReportDetailWarning.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ReportDetailWarnings.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReportDetailWarnings' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReportDetailWarnings.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ReportDetailWarnings value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ReportDetailWarnings read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ReportDetailWarnings instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ReportDetailWarnings given an JSON string + * + * @param jsonString JSON string + * @return An instance of ReportDetailWarnings + * @throws IOException if the JSON string is invalid with respect to ReportDetailWarnings + */ + public static ReportDetailWarnings fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReportDetailWarnings.class); + } + + /** + * Convert an instance of ReportDetailWarnings to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportOkResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportOkResponse.java index 9dd17376..5aab1088 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportOkResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportOkResponse.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Arrays; import com.criteo.api.retailmedia.preview.model.ReportDetailErrors; +import com.criteo.api.retailmedia.preview.model.ReportDetailWarnings; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -132,6 +133,14 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_ERROR_DETAILS) private List errorDetails = new ArrayList<>(); + public static final String SERIALIZED_NAME_NUMBER_OF_PRODUCTS_WITH_WARNINGS = "numberOfProductsWithWarnings"; + @SerializedName(SERIALIZED_NAME_NUMBER_OF_PRODUCTS_WITH_WARNINGS) + private Integer numberOfProductsWithWarnings; + + public static final String SERIALIZED_NAME_WARNING_DETAILS = "warningDetails"; + @SerializedName(SERIALIZED_NAME_WARNING_DETAILS) + private List warningDetails = new ArrayList<>(); + public ReportOkResponse() { } @@ -293,6 +302,55 @@ public void setErrorDetails(List errorDetails) { this.errorDetails = errorDetails; } + + public ReportOkResponse numberOfProductsWithWarnings(Integer numberOfProductsWithWarnings) { + + this.numberOfProductsWithWarnings = numberOfProductsWithWarnings; + return this; + } + + /** + * The number of products with Warnings. + * @return numberOfProductsWithWarnings + **/ + @javax.annotation.Nonnull + + public Integer getNumberOfProductsWithWarnings() { + return numberOfProductsWithWarnings; + } + + + public void setNumberOfProductsWithWarnings(Integer numberOfProductsWithWarnings) { + this.numberOfProductsWithWarnings = numberOfProductsWithWarnings; + } + + + public ReportOkResponse warningDetails(List warningDetails) { + + this.warningDetails = warningDetails; + return this; + } + + public ReportOkResponse addWarningDetailsItem(ReportDetailWarnings warningDetailsItem) { + this.warningDetails.add(warningDetailsItem); + return this; + } + + /** + * The list of Warnings with details. + * @return warningDetails + **/ + @javax.annotation.Nonnull + + public List getWarningDetails() { + return warningDetails; + } + + + public void setWarningDetails(List warningDetails) { + this.warningDetails = warningDetails; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -354,13 +412,15 @@ public boolean equals(Object o) { Objects.equals(this.numberOfProductsUpserted, reportOkResponse.numberOfProductsUpserted) && Objects.equals(this.numberOfProductsDeleted, reportOkResponse.numberOfProductsDeleted) && Objects.equals(this.numberOfProductsWithErrors, reportOkResponse.numberOfProductsWithErrors) && - Objects.equals(this.errorDetails, reportOkResponse.errorDetails)&& + Objects.equals(this.errorDetails, reportOkResponse.errorDetails) && + Objects.equals(this.numberOfProductsWithWarnings, reportOkResponse.numberOfProductsWithWarnings) && + Objects.equals(this.warningDetails, reportOkResponse.warningDetails)&& Objects.equals(this.additionalProperties, reportOkResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(status, importRequestTimestamp, numberOfProductsInTheBatch, numberOfProductsUpserted, numberOfProductsDeleted, numberOfProductsWithErrors, errorDetails, additionalProperties); + return Objects.hash(status, importRequestTimestamp, numberOfProductsInTheBatch, numberOfProductsUpserted, numberOfProductsDeleted, numberOfProductsWithErrors, errorDetails, numberOfProductsWithWarnings, warningDetails, additionalProperties); } @Override @@ -374,6 +434,8 @@ public String toString() { sb.append(" numberOfProductsDeleted: ").append(toIndentedString(numberOfProductsDeleted)).append("\n"); sb.append(" numberOfProductsWithErrors: ").append(toIndentedString(numberOfProductsWithErrors)).append("\n"); sb.append(" errorDetails: ").append(toIndentedString(errorDetails)).append("\n"); + sb.append(" numberOfProductsWithWarnings: ").append(toIndentedString(numberOfProductsWithWarnings)).append("\n"); + sb.append(" warningDetails: ").append(toIndentedString(warningDetails)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -404,6 +466,8 @@ private String toIndentedString(Object o) { openapiFields.add("numberOfProductsDeleted"); openapiFields.add("numberOfProductsWithErrors"); openapiFields.add("errorDetails"); + openapiFields.add("numberOfProductsWithWarnings"); + openapiFields.add("warningDetails"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -414,6 +478,8 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("numberOfProductsDeleted"); openapiRequiredFields.add("numberOfProductsWithErrors"); openapiRequiredFields.add("errorDetails"); + openapiRequiredFields.add("numberOfProductsWithWarnings"); + openapiRequiredFields.add("warningDetails"); } /** @@ -448,6 +514,16 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { for (int i = 0; i < jsonArrayerrorDetails.size(); i++) { ReportDetailErrors.validateJsonObject(jsonArrayerrorDetails.get(i).getAsJsonObject()); }; + // ensure the json data is an array + if (!jsonObj.get("warningDetails").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warningDetails` to be an array in the JSON string but got `%s`", jsonObj.get("warningDetails").toString())); + } + + JsonArray jsonArraywarningDetails = jsonObj.getAsJsonArray("warningDetails"); + // validate the required field `warningDetails` (array) + for (int i = 0; i < jsonArraywarningDetails.size(); i++) { + ReportDetailWarnings.validateJsonObject(jsonArraywarningDetails.get(i).getAsJsonObject()); + }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAccount.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAccount.java index 8583acb8..96850b8f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAccount.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAccount.java @@ -59,6 +59,10 @@ public class RetailMediaAccount { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + /** * Type for the account */ @@ -213,7 +217,7 @@ public RetailMediaAccount companyName(String companyName) { } /** - * Display name for reporting the owning entity of ads for the Digital Services Act in the European Union + * Paying entity name of ads for the Digital Services Act * @return companyName **/ @javax.annotation.Nullable @@ -228,6 +232,28 @@ public void setCompanyName(String companyName) { } + public RetailMediaAccount onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * On behalf entity name of ads for the Digital Services Act + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + + public RetailMediaAccount type(TypeEnum type) { this.type = type; @@ -380,6 +406,7 @@ public boolean equals(Object o) { RetailMediaAccount retailMediaAccount = (RetailMediaAccount) o; return Objects.equals(this.name, retailMediaAccount.name) && Objects.equals(this.companyName, retailMediaAccount.companyName) && + Objects.equals(this.onBehalfCompanyName, retailMediaAccount.onBehalfCompanyName) && Objects.equals(this.type, retailMediaAccount.type) && Objects.equals(this.subType, retailMediaAccount.subType) && Objects.equals(this.countryIds, retailMediaAccount.countryIds) && @@ -394,7 +421,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, companyName, type, subType, countryIds, currencyId, parentAccountLabel, timeZone); + return Objects.hash(name, companyName, onBehalfCompanyName, type, subType, countryIds, currencyId, parentAccountLabel, timeZone); } private static int hashCodeNullable(JsonNullable a) { @@ -410,6 +437,7 @@ public String toString() { sb.append("class RetailMediaAccount {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); sb.append(" countryIds: ").append(toIndentedString(countryIds)).append("\n"); @@ -440,6 +468,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("name"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); openapiFields.add("type"); openapiFields.add("subType"); openapiFields.add("countryIds"); @@ -477,6 +506,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaSellerAccountCreation.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaSellerAccountCreation.java index 43bbb021..bda49eee 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaSellerAccountCreation.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaSellerAccountCreation.java @@ -60,6 +60,10 @@ public class RetailMediaSellerAccountCreation { @SerializedName(SERIALIZED_NAME_COMPANY_NAME) private String companyName; + public static final String SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME = "onBehalfCompanyName"; + @SerializedName(SERIALIZED_NAME_ON_BEHALF_COMPANY_NAME) + private String onBehalfCompanyName; + public static final String SERIALIZED_NAME_SELLERS = "sellers"; @SerializedName(SERIALIZED_NAME_SELLERS) private List sellers = null; @@ -96,7 +100,7 @@ public RetailMediaSellerAccountCreation companyName(String companyName) { } /** - * Display name for reporting the owning entity of ads for the Digital Services Act in the European Union + * Paying entity name of ads for the Digital Services Act * @return companyName **/ @javax.annotation.Nullable @@ -111,6 +115,28 @@ public void setCompanyName(String companyName) { } + public RetailMediaSellerAccountCreation onBehalfCompanyName(String onBehalfCompanyName) { + + this.onBehalfCompanyName = onBehalfCompanyName; + return this; + } + + /** + * On behalf entity name of ads for the Digital Services Act + * @return onBehalfCompanyName + **/ + @javax.annotation.Nullable + + public String getOnBehalfCompanyName() { + return onBehalfCompanyName; + } + + + public void setOnBehalfCompanyName(String onBehalfCompanyName) { + this.onBehalfCompanyName = onBehalfCompanyName; + } + + public RetailMediaSellerAccountCreation sellers(List sellers) { this.sellers = sellers; @@ -153,6 +179,7 @@ public boolean equals(Object o) { RetailMediaSellerAccountCreation retailMediaSellerAccountCreation = (RetailMediaSellerAccountCreation) o; return Objects.equals(this.name, retailMediaSellerAccountCreation.name) && Objects.equals(this.companyName, retailMediaSellerAccountCreation.companyName) && + Objects.equals(this.onBehalfCompanyName, retailMediaSellerAccountCreation.onBehalfCompanyName) && Objects.equals(this.sellers, retailMediaSellerAccountCreation.sellers); } @@ -162,7 +189,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, companyName, sellers); + return Objects.hash(name, companyName, onBehalfCompanyName, sellers); } private static int hashCodeNullable(JsonNullable a) { @@ -178,6 +205,7 @@ public String toString() { sb.append("class RetailMediaSellerAccountCreation {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" onBehalfCompanyName: ").append(toIndentedString(onBehalfCompanyName)).append("\n"); sb.append(" sellers: ").append(toIndentedString(sellers)).append("\n"); sb.append("}"); return sb.toString(); @@ -203,6 +231,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("name"); openapiFields.add("companyName"); + openapiFields.add("onBehalfCompanyName"); openapiFields.add("sellers"); // a set of required properties/fields (JSON key names) @@ -235,6 +264,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString())); } + if ((jsonObj.get("onBehalfCompanyName") != null && !jsonObj.get("onBehalfCompanyName").isJsonNull()) && !jsonObj.get("onBehalfCompanyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `onBehalfCompanyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("onBehalfCompanyName").toString())); + } if (jsonObj.get("sellers") != null && !jsonObj.get("sellers").isJsonNull()) { JsonArray jsonArraysellers = jsonObj.getAsJsonArray("sellers"); if (jsonArraysellers != null) { diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAlgebraNodeV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAlgebraNodeV1.java new file mode 100644 index 00000000..55994ec5 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAlgebraNodeV1.java @@ -0,0 +1,429 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * Node in the audience algebra definition. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAlgebraNodeV1 { + public static final String SERIALIZED_NAME_AND = "and"; + @SerializedName(SERIALIZED_NAME_AND) + private List and = null; + + public static final String SERIALIZED_NAME_OR = "or"; + @SerializedName(SERIALIZED_NAME_OR) + private List or = null; + + public static final String SERIALIZED_NAME_NOT = "not"; + @SerializedName(SERIALIZED_NAME_NOT) + private RmAlgebraNodeV1 not; + + public static final String SERIALIZED_NAME_AUDIENCE_SEGMENT_ID = "audienceSegmentId"; + @SerializedName(SERIALIZED_NAME_AUDIENCE_SEGMENT_ID) + private String audienceSegmentId; + + public RmAlgebraNodeV1() { + } + + public RmAlgebraNodeV1 and(List and) { + + this.and = and; + return this; + } + + public RmAlgebraNodeV1 addAndItem(RmAlgebraNodeV1 andItem) { + if (this.and == null) { + this.and = null; + } + this.and.add(andItem); + return this; + } + + /** + * Get and + * @return and + **/ + @javax.annotation.Nullable + + public List getAnd() { + return and; + } + + + public void setAnd(List and) { + this.and = and; + } + + + public RmAlgebraNodeV1 or(List or) { + + this.or = or; + return this; + } + + public RmAlgebraNodeV1 addOrItem(RmAlgebraNodeV1 orItem) { + if (this.or == null) { + this.or = null; + } + this.or.add(orItem); + return this; + } + + /** + * Get or + * @return or + **/ + @javax.annotation.Nullable + + public List getOr() { + return or; + } + + + public void setOr(List or) { + this.or = or; + } + + + public RmAlgebraNodeV1 not(RmAlgebraNodeV1 not) { + + this.not = not; + return this; + } + + /** + * Get not + * @return not + **/ + @javax.annotation.Nullable + + public RmAlgebraNodeV1 getNot() { + return not; + } + + + public void setNot(RmAlgebraNodeV1 not) { + this.not = not; + } + + + public RmAlgebraNodeV1 audienceSegmentId(String audienceSegmentId) { + + this.audienceSegmentId = audienceSegmentId; + return this; + } + + /** + * Get audienceSegmentId + * @return audienceSegmentId + **/ + @javax.annotation.Nullable + + public String getAudienceSegmentId() { + return audienceSegmentId; + } + + + public void setAudienceSegmentId(String audienceSegmentId) { + this.audienceSegmentId = audienceSegmentId; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAlgebraNodeV1 instance itself + */ + public RmAlgebraNodeV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAlgebraNodeV1 rmAlgebraNodeV1 = (RmAlgebraNodeV1) o; + return Objects.equals(this.and, rmAlgebraNodeV1.and) && + Objects.equals(this.or, rmAlgebraNodeV1.or) && + Objects.equals(this.not, rmAlgebraNodeV1.not) && + Objects.equals(this.audienceSegmentId, rmAlgebraNodeV1.audienceSegmentId)&& + Objects.equals(this.additionalProperties, rmAlgebraNodeV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(and, or, not, audienceSegmentId, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAlgebraNodeV1 {\n"); + sb.append(" and: ").append(toIndentedString(and)).append("\n"); + sb.append(" or: ").append(toIndentedString(or)).append("\n"); + sb.append(" not: ").append(toIndentedString(not)).append("\n"); + sb.append(" audienceSegmentId: ").append(toIndentedString(audienceSegmentId)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("and"); + openapiFields.add("or"); + openapiFields.add("not"); + openapiFields.add("audienceSegmentId"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAlgebraNodeV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAlgebraNodeV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAlgebraNodeV1 is not found in the empty JSON string", RmAlgebraNodeV1.openapiRequiredFields.toString())); + } + } + if (jsonObj.get("and") != null && !jsonObj.get("and").isJsonNull()) { + JsonArray jsonArrayand = jsonObj.getAsJsonArray("and"); + if (jsonArrayand != null) { + // ensure the json data is an array + if (!jsonObj.get("and").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `and` to be an array in the JSON string but got `%s`", jsonObj.get("and").toString())); + } + + // validate the optional field `and` (array) + for (int i = 0; i < jsonArrayand.size(); i++) { + RmAlgebraNodeV1.validateJsonObject(jsonArrayand.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("or") != null && !jsonObj.get("or").isJsonNull()) { + JsonArray jsonArrayor = jsonObj.getAsJsonArray("or"); + if (jsonArrayor != null) { + // ensure the json data is an array + if (!jsonObj.get("or").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `or` to be an array in the JSON string but got `%s`", jsonObj.get("or").toString())); + } + + // validate the optional field `or` (array) + for (int i = 0; i < jsonArrayor.size(); i++) { + RmAlgebraNodeV1.validateJsonObject(jsonArrayor.get(i).getAsJsonObject()); + }; + } + } + // validate the optional field `not` + if (jsonObj.get("not") != null && !jsonObj.get("not").isJsonNull()) { + RmAlgebraNodeV1.validateJsonObject(jsonObj.getAsJsonObject("not")); + } + if ((jsonObj.get("audienceSegmentId") != null && !jsonObj.get("audienceSegmentId").isJsonNull()) && !jsonObj.get("audienceSegmentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `audienceSegmentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("audienceSegmentId").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAlgebraNodeV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAlgebraNodeV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAlgebraNodeV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAlgebraNodeV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAlgebraNodeV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAlgebraNodeV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAlgebraNodeV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAlgebraNodeV1 + * @throws IOException if the JSON string is invalid with respect to RmAlgebraNodeV1 + */ + public static RmAlgebraNodeV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAlgebraNodeV1.class); + } + + /** + * Convert an instance of RmAlgebraNodeV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1.java similarity index 50% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1.java rename to sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1.java index 0db6cc1a..413412e6 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RmLegacyAudienceCreateEntityV1.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: Preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,18 +11,20 @@ */ -package com.criteo.api.retailmedia.v2023_07.model; +package com.criteo.api.retailmedia.preview.model; import java.util.Objects; import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.RmAlgebraNodeV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.util.LinkedHashSet; -import java.util.Set; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -44,92 +46,55 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.retailmedia.v2023_07.JSON; +import com.criteo.api.retailmedia.preview.JSON; /** - * Audience definition + * Audience of people of interest for a marketer. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceCreateEntityV1 { - /** - * Type of the user - */ - @JsonAdapter(UserTypeEnum.Adapter.class) - public enum UserTypeEnum { - VIEWER("viewer"), - - BUYER("buyer"), - - ADDTOCARTER("addToCarter"); - - private String value; +public class RmAudienceEntityV1 { + public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; + @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + private String accountId; - UserTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @Override - public String toString() { - return String.valueOf(value); - } + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; - public static UserTypeEnum fromValue(String value) { - for (UserTypeEnum b : UserTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } + public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; + @SerializedName(SERIALIZED_NAME_RETAILER_ID) + private String retailerId; - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final UserTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } + public static final String SERIALIZED_NAME_CREATED_BY_ID = "createdById"; + @SerializedName(SERIALIZED_NAME_CREATED_BY_ID) + private String createdById; - @Override - public UserTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return UserTypeEnum.fromValue(value); - } - } - } + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; - public static final String SERIALIZED_NAME_USER_TYPE = "userType"; - @SerializedName(SERIALIZED_NAME_USER_TYPE) - private UserTypeEnum userType; + public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + private OffsetDateTime updatedAt; /** - * Length of lookback window + * Gets or Sets channels */ - @JsonAdapter(LookbackWindowEnum.Adapter.class) - public enum LookbackWindowEnum { - P7D("P7D"), - - P14D("P14D"), - - P30D("P30D"), + @JsonAdapter(ChannelsEnum.Adapter.class) + public enum ChannelsEnum { + UNKNOWN("Unknown"), - P45D("P45D"), + ONSITE("Onsite"), - P60D("P60D"), - - P90D("P90D"), - - P120D("P120D"), - - P150D("P150D"), - - P180D("P180D"); + OFFSITE("Offsite"); private String value; - LookbackWindowEnum(String value) { + ChannelsEnum(String value) { this.value = value; } @@ -142,8 +107,8 @@ public String toString() { return String.valueOf(value); } - public static LookbackWindowEnum fromValue(String value) { - for (LookbackWindowEnum b : LookbackWindowEnum.values()) { + public static ChannelsEnum fromValue(String value) { + for (ChannelsEnum b : ChannelsEnum.values()) { if (b.value.equals(value)) { return b; } @@ -151,188 +116,234 @@ public static LookbackWindowEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - public static class Adapter extends TypeAdapter { + public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final LookbackWindowEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final ChannelsEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public LookbackWindowEnum read(final JsonReader jsonReader) throws IOException { + public ChannelsEnum read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); - return LookbackWindowEnum.fromValue(value); + return ChannelsEnum.fromValue(value); } } } - public static final String SERIALIZED_NAME_LOOKBACK_WINDOW = "lookbackWindow"; - @SerializedName(SERIALIZED_NAME_LOOKBACK_WINDOW) - private LookbackWindowEnum lookbackWindow; + public static final String SERIALIZED_NAME_CHANNELS = "channels"; + @SerializedName(SERIALIZED_NAME_CHANNELS) + private List channels = null; - public static final String SERIALIZED_NAME_BRAND_IDS = "brandIds"; - @SerializedName(SERIALIZED_NAME_BRAND_IDS) - private Set brandIds = null; + public static final String SERIALIZED_NAME_ALGEBRA = "algebra"; + @SerializedName(SERIALIZED_NAME_ALGEBRA) + private RmAlgebraNodeV1 algebra; - public static final String SERIALIZED_NAME_CATEGORY_IDS = "categoryIds"; - @SerializedName(SERIALIZED_NAME_CATEGORY_IDS) - private Set categoryIds = null; + public RmAudienceEntityV1() { + } - public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; - @SerializedName(SERIALIZED_NAME_RETAILER_ID) - private Long retailerId; + public RmAudienceEntityV1 accountId(String accountId) { + + this.accountId = accountId; + return this; + } - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; + /** + * Account associated to the audience + * @return accountId + **/ + @javax.annotation.Nullable - public RmLegacyAudienceCreateEntityV1() { + public String getAccountId() { + return accountId; } - public RmLegacyAudienceCreateEntityV1 userType(UserTypeEnum userType) { + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + + public RmAudienceEntityV1 name(String name) { - this.userType = userType; + this.name = name; return this; } /** - * Type of the user - * @return userType + * Name of the audience + * @return name **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable - public UserTypeEnum getUserType() { - return userType; + public String getName() { + return name; } - public void setUserType(UserTypeEnum userType) { - this.userType = userType; + public void setName(String name) { + this.name = name; } - public RmLegacyAudienceCreateEntityV1 lookbackWindow(LookbackWindowEnum lookbackWindow) { + public RmAudienceEntityV1 description(String description) { - this.lookbackWindow = lookbackWindow; + this.description = description; return this; } /** - * Length of lookback window - * @return lookbackWindow + * Description of the audience + * @return description **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable - public LookbackWindowEnum getLookbackWindow() { - return lookbackWindow; + public String getDescription() { + return description; } - public void setLookbackWindow(LookbackWindowEnum lookbackWindow) { - this.lookbackWindow = lookbackWindow; + public void setDescription(String description) { + this.description = description; } - public RmLegacyAudienceCreateEntityV1 brandIds(Set brandIds) { + public RmAudienceEntityV1 retailerId(String retailerId) { - this.brandIds = brandIds; + this.retailerId = retailerId; return this; } - public RmLegacyAudienceCreateEntityV1 addBrandIdsItem(Long brandIdsItem) { - if (this.brandIds == null) { - this.brandIds = null; - } - this.brandIds.add(brandIdsItem); + /** + * Retailer associated to the audience + * @return retailerId + **/ + @javax.annotation.Nullable + + public String getRetailerId() { + return retailerId; + } + + + public void setRetailerId(String retailerId) { + this.retailerId = retailerId; + } + + + public RmAudienceEntityV1 createdById(String createdById) { + + this.createdById = createdById; return this; } /** - * The brands to target - * @return brandIds + * User that created the audience + * @return createdById **/ @javax.annotation.Nullable - public Set getBrandIds() { - return brandIds; + public String getCreatedById() { + return createdById; } - public void setBrandIds(Set brandIds) { - this.brandIds = brandIds; + public void setCreatedById(String createdById) { + this.createdById = createdById; } - public RmLegacyAudienceCreateEntityV1 categoryIds(Set categoryIds) { + public RmAudienceEntityV1 createdAt(OffsetDateTime createdAt) { - this.categoryIds = categoryIds; + this.createdAt = createdAt; return this; } - public RmLegacyAudienceCreateEntityV1 addCategoryIdsItem(Integer categoryIdsItem) { - if (this.categoryIds == null) { - this.categoryIds = null; - } - this.categoryIds.add(categoryIdsItem); + /** + * ISO-8601 timestamp in UTC of audience creation (read-only) + * @return createdAt + **/ + @javax.annotation.Nullable + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public RmAudienceEntityV1 updatedAt(OffsetDateTime updatedAt) { + + this.updatedAt = updatedAt; return this; } /** - * The categories to target - * @return categoryIds + * ISO-8601 timestamp in UTC of audience update (read-only) + * @return updatedAt **/ @javax.annotation.Nullable - public Set getCategoryIds() { - return categoryIds; + public OffsetDateTime getUpdatedAt() { + return updatedAt; } - public void setCategoryIds(Set categoryIds) { - this.categoryIds = categoryIds; + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; } - public RmLegacyAudienceCreateEntityV1 retailerId(Long retailerId) { + public RmAudienceEntityV1 channels(List channels) { - this.retailerId = retailerId; + this.channels = channels; + return this; + } + + public RmAudienceEntityV1 addChannelsItem(ChannelsEnum channelsItem) { + if (this.channels == null) { + this.channels = null; + } + this.channels.add(channelsItem); return this; } /** - * ID of the retailer associated with this audience - * @return retailerId + * Channels associated to the audience (read-only) + * @return channels **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable - public Long getRetailerId() { - return retailerId; + public List getChannels() { + return channels; } - public void setRetailerId(Long retailerId) { - this.retailerId = retailerId; + public void setChannels(List channels) { + this.channels = channels; } - public RmLegacyAudienceCreateEntityV1 name(String name) { + public RmAudienceEntityV1 algebra(RmAlgebraNodeV1 algebra) { - this.name = name; + this.algebra = algebra; return this; } /** - * Name of the audience - * @return name + * Get algebra + * @return algebra **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable - public String getName() { - return name; + public RmAlgebraNodeV1 getAlgebra() { + return algebra; } - public void setName(String name) { - this.name = name; + public void setAlgebra(RmAlgebraNodeV1 algebra) { + this.algebra = algebra; } /** @@ -348,9 +359,9 @@ public void setName(String name) { * * @param key name of the property * @param value value of the property - * @return the RmLegacyAudienceCreateEntityV1 instance itself + * @return the RmAudienceEntityV1 instance itself */ - public RmLegacyAudienceCreateEntityV1 putAdditionalProperty(String key, Object value) { + public RmAudienceEntityV1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -389,14 +400,17 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmLegacyAudienceCreateEntityV1 rmLegacyAudienceCreateEntityV1 = (RmLegacyAudienceCreateEntityV1) o; - return Objects.equals(this.userType, rmLegacyAudienceCreateEntityV1.userType) && - Objects.equals(this.lookbackWindow, rmLegacyAudienceCreateEntityV1.lookbackWindow) && - Objects.equals(this.brandIds, rmLegacyAudienceCreateEntityV1.brandIds) && - Objects.equals(this.categoryIds, rmLegacyAudienceCreateEntityV1.categoryIds) && - Objects.equals(this.retailerId, rmLegacyAudienceCreateEntityV1.retailerId) && - Objects.equals(this.name, rmLegacyAudienceCreateEntityV1.name)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceCreateEntityV1.additionalProperties); + RmAudienceEntityV1 rmAudienceEntityV1 = (RmAudienceEntityV1) o; + return Objects.equals(this.accountId, rmAudienceEntityV1.accountId) && + Objects.equals(this.name, rmAudienceEntityV1.name) && + Objects.equals(this.description, rmAudienceEntityV1.description) && + Objects.equals(this.retailerId, rmAudienceEntityV1.retailerId) && + Objects.equals(this.createdById, rmAudienceEntityV1.createdById) && + Objects.equals(this.createdAt, rmAudienceEntityV1.createdAt) && + Objects.equals(this.updatedAt, rmAudienceEntityV1.updatedAt) && + Objects.equals(this.channels, rmAudienceEntityV1.channels) && + Objects.equals(this.algebra, rmAudienceEntityV1.algebra)&& + Objects.equals(this.additionalProperties, rmAudienceEntityV1.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -405,7 +419,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(userType, lookbackWindow, brandIds, categoryIds, retailerId, name, additionalProperties); + return Objects.hash(accountId, name, description, retailerId, createdById, createdAt, updatedAt, channels, algebra, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -418,13 +432,16 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceCreateEntityV1 {\n"); - sb.append(" userType: ").append(toIndentedString(userType)).append("\n"); - sb.append(" lookbackWindow: ").append(toIndentedString(lookbackWindow)).append("\n"); - sb.append(" brandIds: ").append(toIndentedString(brandIds)).append("\n"); - sb.append(" categoryIds: ").append(toIndentedString(categoryIds)).append("\n"); - sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); + sb.append("class RmAudienceEntityV1 {\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); + sb.append(" createdById: ").append(toIndentedString(createdById)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); + sb.append(" algebra: ").append(toIndentedString(algebra)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -448,56 +465,54 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("userType"); - openapiFields.add("lookbackWindow"); - openapiFields.add("brandIds"); - openapiFields.add("categoryIds"); - openapiFields.add("retailerId"); + openapiFields.add("accountId"); openapiFields.add("name"); + openapiFields.add("description"); + openapiFields.add("retailerId"); + openapiFields.add("createdById"); + openapiFields.add("createdAt"); + openapiFields.add("updatedAt"); + openapiFields.add("channels"); + openapiFields.add("algebra"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userType"); - openapiRequiredFields.add("lookbackWindow"); - openapiRequiredFields.add("retailerId"); - openapiRequiredFields.add("name"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceCreateEntityV1 + * @throws IOException if the JSON Object is invalid with respect to RmAudienceEntityV1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmLegacyAudienceCreateEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceCreateEntityV1 is not found in the empty JSON string", RmLegacyAudienceCreateEntityV1.openapiRequiredFields.toString())); + if (!RmAudienceEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceEntityV1 is not found in the empty JSON string", RmAudienceEntityV1.openapiRequiredFields.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacyAudienceCreateEntityV1.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } + if ((jsonObj.get("accountId") != null && !jsonObj.get("accountId").isJsonNull()) && !jsonObj.get("accountId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `accountId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountId").toString())); } - if (!jsonObj.get("userType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userType").toString())); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if (!jsonObj.get("lookbackWindow").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `lookbackWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lookbackWindow").toString())); + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("brandIds") != null && !jsonObj.get("brandIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `brandIds` to be an array in the JSON string but got `%s`", jsonObj.get("brandIds").toString())); + if ((jsonObj.get("retailerId") != null && !jsonObj.get("retailerId").isJsonNull()) && !jsonObj.get("retailerId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `retailerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("retailerId").toString())); + } + if ((jsonObj.get("createdById") != null && !jsonObj.get("createdById").isJsonNull()) && !jsonObj.get("createdById").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `createdById` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdById").toString())); } // ensure the optional json data is an array if present - if (jsonObj.get("categoryIds") != null && !jsonObj.get("categoryIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `categoryIds` to be an array in the JSON string but got `%s`", jsonObj.get("categoryIds").toString())); + if (jsonObj.get("channels") != null && !jsonObj.get("channels").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `channels` to be an array in the JSON string but got `%s`", jsonObj.get("channels").toString())); } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + // validate the optional field `algebra` + if (jsonObj.get("algebra") != null && !jsonObj.get("algebra").isJsonNull()) { + RmAlgebraNodeV1.validateJsonObject(jsonObj.getAsJsonObject("algebra")); } } @@ -505,16 +520,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceCreateEntityV1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceCreateEntityV1' and its subtypes + if (!RmAudienceEntityV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceEntityV1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceCreateEntityV1.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceEntityV1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmLegacyAudienceCreateEntityV1 value) throws IOException { + public void write(JsonWriter out, RmAudienceEntityV1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -537,11 +552,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmLegacyAudienceCreateEntityV1 read(JsonReader in) throws IOException { + public RmAudienceEntityV1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmLegacyAudienceCreateEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -568,18 +583,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmLegacyAudienceCreateEntityV1 given an JSON string + * Create an instance of RmAudienceEntityV1 given an JSON string * * @param jsonString JSON string - * @return An instance of RmLegacyAudienceCreateEntityV1 - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceCreateEntityV1 + * @return An instance of RmAudienceEntityV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceEntityV1 */ - public static RmLegacyAudienceCreateEntityV1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceCreateEntityV1.class); + public static RmAudienceEntityV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceEntityV1.class); } /** - * Convert an instance of RmLegacyAudienceCreateEntityV1 to an JSON string + * Convert an instance of RmAudienceEntityV1 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1Resource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1Resource.java new file mode 100644 index 00000000..0438a5ed --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1Resource.java @@ -0,0 +1,358 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.RmAudienceEntityV1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A class that represents a domain entity exposed by an API + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceEntityV1Resource { + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private RmAudienceEntityV1 attributes; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public RmAudienceEntityV1Resource() { + } + + public RmAudienceEntityV1Resource attributes(RmAudienceEntityV1 attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public RmAudienceEntityV1 getAttributes() { + return attributes; + } + + + public void setAttributes(RmAudienceEntityV1 attributes) { + this.attributes = attributes; + } + + + public RmAudienceEntityV1Resource id(String id) { + + this.id = id; + return this; + } + + /** + * Id of the entity + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public RmAudienceEntityV1Resource type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceEntityV1Resource instance itself + */ + public RmAudienceEntityV1Resource putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceEntityV1Resource rmAudienceEntityV1Resource = (RmAudienceEntityV1Resource) o; + return Objects.equals(this.attributes, rmAudienceEntityV1Resource.attributes) && + Objects.equals(this.id, rmAudienceEntityV1Resource.id) && + Objects.equals(this.type, rmAudienceEntityV1Resource.type)&& + Objects.equals(this.additionalProperties, rmAudienceEntityV1Resource.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceEntityV1Resource {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attributes"); + openapiFields.add("id"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceEntityV1Resource + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceEntityV1Resource is not found in the empty JSON string", RmAudienceEntityV1Resource.openapiRequiredFields.toString())); + } + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + RmAudienceEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceEntityV1Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceEntityV1Resource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceEntityV1Resource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceEntityV1Resource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceEntityV1Resource read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceEntityV1Resource given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceEntityV1Resource + * @throws IOException if the JSON string is invalid with respect to RmAudienceEntityV1Resource + */ + public static RmAudienceEntityV1Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceEntityV1Resource.class); + } + + /** + * Convert an instance of RmAudienceEntityV1Resource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.java new file mode 100644 index 00000000..a72936b6 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.java @@ -0,0 +1,427 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.CommonProblem; +import com.criteo.api.retailmedia.preview.model.RmAudienceEntityV1Resource; +import com.criteo.api.retailmedia.preview.model.RmAudienceSearchMetadataV1; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for several entities and metadata + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse { + public static final String SERIALIZED_NAME_META = "meta"; + @SerializedName(SERIALIZED_NAME_META) + private RmAudienceSearchMetadataV1 meta; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse() { + } + + + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse( + List warnings, + List errors + ) { + this(); + this.warnings = warnings; + this.errors = errors; + } + + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse meta(RmAudienceSearchMetadataV1 meta) { + + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + + public RmAudienceSearchMetadataV1 getMeta() { + return meta; + } + + + public void setMeta(RmAudienceSearchMetadataV1 meta) { + this.meta = meta; + } + + + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse data(List data) { + + this.data = data; + return this; + } + + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse addDataItem(RmAudienceEntityV1Resource dataItem) { + if (this.data == null) { + this.data = null; + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse instance itself + */ + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse = (RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse) o; + return Objects.equals(this.meta, rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.meta) && + Objects.equals(this.data, rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.data) && + Objects.equals(this.warnings, rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.warnings) && + Objects.equals(this.errors, rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.errors)&& + Objects.equals(this.additionalProperties, rmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(meta, data, warnings, errors, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse {\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("meta"); + openapiFields.add("data"); + openapiFields.add("warnings"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse is not found in the empty JSON string", RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.openapiRequiredFields.toString())); + } + } + // validate the optional field `meta` + if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { + RmAudienceSearchMetadataV1.validateJsonObject(jsonObj.getAsJsonObject("meta")); + } + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + if (jsonArraydata != null) { + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + + // validate the optional field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + RmAudienceEntityV1Resource.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse + * @throws IOException if the JSON string is invalid with respect to RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse + */ + public static RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse.class); + } + + /** + * Convert an instance of RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchEntityV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchEntityV1.java new file mode 100644 index 00000000..be02c9e5 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchEntityV1.java @@ -0,0 +1,385 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * Available filters to perform a search on audiences. If present, the filters are AND'ed together when applied. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSearchEntityV1 { + public static final String SERIALIZED_NAME_AUDIENCE_IDS = "audienceIds"; + @SerializedName(SERIALIZED_NAME_AUDIENCE_IDS) + private List audienceIds = null; + + public static final String SERIALIZED_NAME_RETAILER_IDS = "retailerIds"; + @SerializedName(SERIALIZED_NAME_RETAILER_IDS) + private List retailerIds = null; + + public static final String SERIALIZED_NAME_AUDIENCE_SEGMENT_IDS = "audienceSegmentIds"; + @SerializedName(SERIALIZED_NAME_AUDIENCE_SEGMENT_IDS) + private List audienceSegmentIds = null; + + public RmAudienceSearchEntityV1() { + } + + public RmAudienceSearchEntityV1 audienceIds(List audienceIds) { + + this.audienceIds = audienceIds; + return this; + } + + public RmAudienceSearchEntityV1 addAudienceIdsItem(String audienceIdsItem) { + if (this.audienceIds == null) { + this.audienceIds = null; + } + this.audienceIds.add(audienceIdsItem); + return this; + } + + /** + * List of audience ids + * @return audienceIds + **/ + @javax.annotation.Nullable + + public List getAudienceIds() { + return audienceIds; + } + + + public void setAudienceIds(List audienceIds) { + this.audienceIds = audienceIds; + } + + + public RmAudienceSearchEntityV1 retailerIds(List retailerIds) { + + this.retailerIds = retailerIds; + return this; + } + + public RmAudienceSearchEntityV1 addRetailerIdsItem(String retailerIdsItem) { + if (this.retailerIds == null) { + this.retailerIds = null; + } + this.retailerIds.add(retailerIdsItem); + return this; + } + + /** + * List of retailer ids + * @return retailerIds + **/ + @javax.annotation.Nullable + + public List getRetailerIds() { + return retailerIds; + } + + + public void setRetailerIds(List retailerIds) { + this.retailerIds = retailerIds; + } + + + public RmAudienceSearchEntityV1 audienceSegmentIds(List audienceSegmentIds) { + + this.audienceSegmentIds = audienceSegmentIds; + return this; + } + + public RmAudienceSearchEntityV1 addAudienceSegmentIdsItem(String audienceSegmentIdsItem) { + if (this.audienceSegmentIds == null) { + this.audienceSegmentIds = null; + } + this.audienceSegmentIds.add(audienceSegmentIdsItem); + return this; + } + + /** + * List of segment ids (linked to the result audiences) + * @return audienceSegmentIds + **/ + @javax.annotation.Nullable + + public List getAudienceSegmentIds() { + return audienceSegmentIds; + } + + + public void setAudienceSegmentIds(List audienceSegmentIds) { + this.audienceSegmentIds = audienceSegmentIds; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSearchEntityV1 instance itself + */ + public RmAudienceSearchEntityV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSearchEntityV1 rmAudienceSearchEntityV1 = (RmAudienceSearchEntityV1) o; + return Objects.equals(this.audienceIds, rmAudienceSearchEntityV1.audienceIds) && + Objects.equals(this.retailerIds, rmAudienceSearchEntityV1.retailerIds) && + Objects.equals(this.audienceSegmentIds, rmAudienceSearchEntityV1.audienceSegmentIds)&& + Objects.equals(this.additionalProperties, rmAudienceSearchEntityV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(audienceIds, retailerIds, audienceSegmentIds, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSearchEntityV1 {\n"); + sb.append(" audienceIds: ").append(toIndentedString(audienceIds)).append("\n"); + sb.append(" retailerIds: ").append(toIndentedString(retailerIds)).append("\n"); + sb.append(" audienceSegmentIds: ").append(toIndentedString(audienceSegmentIds)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("audienceIds"); + openapiFields.add("retailerIds"); + openapiFields.add("audienceSegmentIds"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSearchEntityV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSearchEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSearchEntityV1 is not found in the empty JSON string", RmAudienceSearchEntityV1.openapiRequiredFields.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("audienceIds") != null && !jsonObj.get("audienceIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `audienceIds` to be an array in the JSON string but got `%s`", jsonObj.get("audienceIds").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("retailerIds") != null && !jsonObj.get("retailerIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `retailerIds` to be an array in the JSON string but got `%s`", jsonObj.get("retailerIds").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("audienceSegmentIds") != null && !jsonObj.get("audienceSegmentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `audienceSegmentIds` to be an array in the JSON string but got `%s`", jsonObj.get("audienceSegmentIds").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSearchEntityV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSearchEntityV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSearchEntityV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSearchEntityV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSearchEntityV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSearchEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSearchEntityV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSearchEntityV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSearchEntityV1 + */ + public static RmAudienceSearchEntityV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSearchEntityV1.class); + } + + /** + * Convert an instance of RmAudienceSearchEntityV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchEntityV1Resource.java similarity index 76% rename from sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelResource.java rename to sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchEntityV1Resource.java index 59388288..a6346fbd 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchEntityV1Resource.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: preview + * The version of the OpenAPI document: Preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package com.criteo.api.marketingsolutions.preview.model; +package com.criteo.api.retailmedia.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.preview.model.DeleteUserProfileModel; +import com.criteo.api.retailmedia.preview.model.RmAudienceSearchEntityV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,25 +43,25 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.preview.JSON; +import com.criteo.api.retailmedia.preview.JSON; /** * A top-level object that encapsulates a Criteo API response for a single value */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class DeleteUserProfileModelResource { +public class RmAudienceSearchEntityV1Resource { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private DeleteUserProfileModel attributes; + private RmAudienceSearchEntityV1 attributes; - public DeleteUserProfileModelResource() { + public RmAudienceSearchEntityV1Resource() { } - public DeleteUserProfileModelResource type(String type) { + public RmAudienceSearchEntityV1Resource type(String type) { this.type = type; return this; @@ -83,7 +83,7 @@ public void setType(String type) { } - public DeleteUserProfileModelResource attributes(DeleteUserProfileModel attributes) { + public RmAudienceSearchEntityV1Resource attributes(RmAudienceSearchEntityV1 attributes) { this.attributes = attributes; return this; @@ -95,12 +95,12 @@ public DeleteUserProfileModelResource attributes(DeleteUserProfileModel attribut **/ @javax.annotation.Nullable - public DeleteUserProfileModel getAttributes() { + public RmAudienceSearchEntityV1 getAttributes() { return attributes; } - public void setAttributes(DeleteUserProfileModel attributes) { + public void setAttributes(RmAudienceSearchEntityV1 attributes) { this.attributes = attributes; } @@ -117,9 +117,9 @@ public void setAttributes(DeleteUserProfileModel attributes) { * * @param key name of the property * @param value value of the property - * @return the DeleteUserProfileModelResource instance itself + * @return the RmAudienceSearchEntityV1Resource instance itself */ - public DeleteUserProfileModelResource putAdditionalProperty(String key, Object value) { + public RmAudienceSearchEntityV1Resource putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -158,10 +158,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeleteUserProfileModelResource deleteUserProfileModelResource = (DeleteUserProfileModelResource) o; - return Objects.equals(this.type, deleteUserProfileModelResource.type) && - Objects.equals(this.attributes, deleteUserProfileModelResource.attributes)&& - Objects.equals(this.additionalProperties, deleteUserProfileModelResource.additionalProperties); + RmAudienceSearchEntityV1Resource rmAudienceSearchEntityV1Resource = (RmAudienceSearchEntityV1Resource) o; + return Objects.equals(this.type, rmAudienceSearchEntityV1Resource.type) && + Objects.equals(this.attributes, rmAudienceSearchEntityV1Resource.attributes)&& + Objects.equals(this.additionalProperties, rmAudienceSearchEntityV1Resource.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -183,7 +183,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeleteUserProfileModelResource {\n"); + sb.append("class RmAudienceSearchEntityV1Resource {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -220,12 +220,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to DeleteUserProfileModelResource + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSearchEntityV1Resource */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!DeleteUserProfileModelResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DeleteUserProfileModelResource is not found in the empty JSON string", DeleteUserProfileModelResource.openapiRequiredFields.toString())); + if (!RmAudienceSearchEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSearchEntityV1Resource is not found in the empty JSON string", RmAudienceSearchEntityV1Resource.openapiRequiredFields.toString())); } } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { @@ -233,7 +233,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - DeleteUserProfileModel.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + RmAudienceSearchEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } } @@ -241,16 +241,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteUserProfileModelResource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteUserProfileModelResource' and its subtypes + if (!RmAudienceSearchEntityV1Resource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSearchEntityV1Resource' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteUserProfileModelResource.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSearchEntityV1Resource.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, DeleteUserProfileModelResource value) throws IOException { + public void write(JsonWriter out, RmAudienceSearchEntityV1Resource value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -273,11 +273,11 @@ else if (entry.getValue() instanceof Character) } @Override - public DeleteUserProfileModelResource read(JsonReader in) throws IOException { + public RmAudienceSearchEntityV1Resource read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - DeleteUserProfileModelResource instance = thisAdapter.fromJsonTree(jsonObj); + RmAudienceSearchEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -304,18 +304,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of DeleteUserProfileModelResource given an JSON string + * Create an instance of RmAudienceSearchEntityV1Resource given an JSON string * * @param jsonString JSON string - * @return An instance of DeleteUserProfileModelResource - * @throws IOException if the JSON string is invalid with respect to DeleteUserProfileModelResource + * @return An instance of RmAudienceSearchEntityV1Resource + * @throws IOException if the JSON string is invalid with respect to RmAudienceSearchEntityV1Resource */ - public static DeleteUserProfileModelResource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteUserProfileModelResource.class); + public static RmAudienceSearchEntityV1Resource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSearchEntityV1Resource.class); } /** - * Convert an instance of DeleteUserProfileModelResource to an JSON string + * Convert an instance of RmAudienceSearchEntityV1Resource to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchInputV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchInputV1.java new file mode 100644 index 00000000..ae9e59aa --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchInputV1.java @@ -0,0 +1,282 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.RmAudienceSearchEntityV1Resource; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A top-level object that encapsulates a Criteo API request for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSearchInputV1 { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private RmAudienceSearchEntityV1Resource data; + + public RmAudienceSearchInputV1() { + } + + public RmAudienceSearchInputV1 data(RmAudienceSearchEntityV1Resource data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public RmAudienceSearchEntityV1Resource getData() { + return data; + } + + + public void setData(RmAudienceSearchEntityV1Resource data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSearchInputV1 instance itself + */ + public RmAudienceSearchInputV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSearchInputV1 rmAudienceSearchInputV1 = (RmAudienceSearchInputV1) o; + return Objects.equals(this.data, rmAudienceSearchInputV1.data)&& + Objects.equals(this.additionalProperties, rmAudienceSearchInputV1.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSearchInputV1 {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSearchInputV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSearchInputV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSearchInputV1 is not found in the empty JSON string", RmAudienceSearchInputV1.openapiRequiredFields.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + RmAudienceSearchEntityV1Resource.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSearchInputV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSearchInputV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSearchInputV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSearchInputV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSearchInputV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSearchInputV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSearchInputV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSearchInputV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSearchInputV1 + */ + public static RmAudienceSearchInputV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSearchInputV1.class); + } + + /** + * Convert an instance of RmAudienceSearchInputV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchMetadataV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchMetadataV1.java new file mode 100644 index 00000000..399d6066 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSearchMetadataV1.java @@ -0,0 +1,347 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: Preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * Metadata for the audience search response. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RmAudienceSearchMetadataV1 { + public static final String SERIALIZED_NAME_TOTAL_ITEMS = "totalItems"; + @SerializedName(SERIALIZED_NAME_TOTAL_ITEMS) + private Integer totalItems; + + public static final String SERIALIZED_NAME_LIMIT = "limit"; + @SerializedName(SERIALIZED_NAME_LIMIT) + private Integer limit; + + public static final String SERIALIZED_NAME_OFFSET = "offset"; + @SerializedName(SERIALIZED_NAME_OFFSET) + private Integer offset; + + public RmAudienceSearchMetadataV1() { + } + + public RmAudienceSearchMetadataV1 totalItems(Integer totalItems) { + + this.totalItems = totalItems; + return this; + } + + /** + * Total number of items + * @return totalItems + **/ + @javax.annotation.Nullable + + public Integer getTotalItems() { + return totalItems; + } + + + public void setTotalItems(Integer totalItems) { + this.totalItems = totalItems; + } + + + public RmAudienceSearchMetadataV1 limit(Integer limit) { + + this.limit = limit; + return this; + } + + /** + * Max item of the current page + * @return limit + **/ + @javax.annotation.Nullable + + public Integer getLimit() { + return limit; + } + + + public void setLimit(Integer limit) { + this.limit = limit; + } + + + public RmAudienceSearchMetadataV1 offset(Integer offset) { + + this.offset = offset; + return this; + } + + /** + * Number of item to skip + * @return offset + **/ + @javax.annotation.Nullable + + public Integer getOffset() { + return offset; + } + + + public void setOffset(Integer offset) { + this.offset = offset; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RmAudienceSearchMetadataV1 instance itself + */ + public RmAudienceSearchMetadataV1 putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RmAudienceSearchMetadataV1 rmAudienceSearchMetadataV1 = (RmAudienceSearchMetadataV1) o; + return Objects.equals(this.totalItems, rmAudienceSearchMetadataV1.totalItems) && + Objects.equals(this.limit, rmAudienceSearchMetadataV1.limit) && + Objects.equals(this.offset, rmAudienceSearchMetadataV1.offset)&& + Objects.equals(this.additionalProperties, rmAudienceSearchMetadataV1.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(totalItems, limit, offset, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RmAudienceSearchMetadataV1 {\n"); + sb.append(" totalItems: ").append(toIndentedString(totalItems)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("totalItems"); + openapiFields.add("limit"); + openapiFields.add("offset"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to RmAudienceSearchMetadataV1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!RmAudienceSearchMetadataV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSearchMetadataV1 is not found in the empty JSON string", RmAudienceSearchMetadataV1.openapiRequiredFields.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RmAudienceSearchMetadataV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmAudienceSearchMetadataV1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmAudienceSearchMetadataV1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RmAudienceSearchMetadataV1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RmAudienceSearchMetadataV1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RmAudienceSearchMetadataV1 instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RmAudienceSearchMetadataV1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RmAudienceSearchMetadataV1 + * @throws IOException if the JSON string is invalid with respect to RmAudienceSearchMetadataV1 + */ + public static RmAudienceSearchMetadataV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmAudienceSearchMetadataV1.class); + } + + /** + * Convert an instance of RmAudienceSearchMetadataV1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkCreateInputV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkCreateInputV1.java index ee7e6b59..343e68ac 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkCreateInputV1.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkCreateInputV1.java @@ -48,7 +48,7 @@ import com.criteo.api.retailmedia.preview.JSON; /** - * Input to create one or more audience segments. + * A top-level object that encapsulates a Criteo API request for several values. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmAudienceSegmentBulkCreateInputV1 { diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkDeleteInputV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkDeleteInputV1.java index 7b1051bd..6d9f2d54 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkDeleteInputV1.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkDeleteInputV1.java @@ -48,7 +48,7 @@ import com.criteo.api.retailmedia.preview.JSON; /** - * Input to delete one or more segments. + * A top-level object that encapsulates a Criteo API request for several entities. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmAudienceSegmentBulkDeleteInputV1 { diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkUpdateInputV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkUpdateInputV1.java index 8f26e0d4..683dd382 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkUpdateInputV1.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentBulkUpdateInputV1.java @@ -48,7 +48,7 @@ import com.criteo.api.retailmedia.preview.JSON; /** - * Input to update one or more segments. + * A top-level object that encapsulates a Criteo API request for several entities. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmAudienceSegmentBulkUpdateInputV1 { diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentCreateEntityV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentCreateEntityV1.java index 2f811bee..14c1cf9b 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentCreateEntityV1.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentCreateEntityV1.java @@ -79,7 +79,7 @@ public RmAudienceSegmentCreateEntityV1 name(String name) { * Name of the segment * @return name **/ - @javax.annotation.Nullable + @javax.annotation.Nonnull public String getName() { return name; @@ -123,7 +123,7 @@ public RmAudienceSegmentCreateEntityV1 retailerId(String retailerId) { * Retailer associated to the segment * @return retailerId **/ - @javax.annotation.Nullable + @javax.annotation.Nonnull public String getRetailerId() { return retailerId; @@ -272,6 +272,8 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("retailerId"); } /** @@ -286,13 +288,20 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in RmAudienceSegmentCreateEntityV1 is not found in the empty JSON string", RmAudienceSegmentCreateEntityV1.openapiRequiredFields.toString())); } } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : RmAudienceSegmentCreateEntityV1.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } - if ((jsonObj.get("retailerId") != null && !jsonObj.get("retailerId").isJsonNull()) && !jsonObj.get("retailerId").isJsonPrimitive()) { + if (!jsonObj.get("retailerId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `retailerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("retailerId").toString())); } // validate the optional field `contactList` diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentEntityV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentEntityV1.java index 2810af59..1ccbe845 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentEntityV1.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentEntityV1.java @@ -16,7 +16,7 @@ import java.util.Objects; import java.util.Arrays; import com.criteo.api.retailmedia.preview.model.RmContactListV1; -import com.criteo.api.retailmedia.preview.model.RmUserBehaviorV1; +import com.criteo.api.retailmedia.preview.model.RmEventsV1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -79,7 +79,7 @@ public enum TypeEnum { CONTACTLIST("ContactList"), - USERBEHAVIOR("UserBehavior"); + EVENTS("Events"); private String value; @@ -139,9 +139,9 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CONTACT_LIST) private RmContactListV1 contactList; - public static final String SERIALIZED_NAME_USER_BEHAVIOR = "userBehavior"; - @SerializedName(SERIALIZED_NAME_USER_BEHAVIOR) - private RmUserBehaviorV1 userBehavior; + public static final String SERIALIZED_NAME_EVENTS = "events"; + @SerializedName(SERIALIZED_NAME_EVENTS) + private RmEventsV1 events; /** * Gets or Sets channels @@ -397,25 +397,25 @@ public void setContactList(RmContactListV1 contactList) { } - public RmAudienceSegmentEntityV1 userBehavior(RmUserBehaviorV1 userBehavior) { + public RmAudienceSegmentEntityV1 events(RmEventsV1 events) { - this.userBehavior = userBehavior; + this.events = events; return this; } /** - * Get userBehavior - * @return userBehavior + * Get events + * @return events **/ @javax.annotation.Nullable - public RmUserBehaviorV1 getUserBehavior() { - return userBehavior; + public RmEventsV1 getEvents() { + return events; } - public void setUserBehavior(RmUserBehaviorV1 userBehavior) { - this.userBehavior = userBehavior; + public void setEvents(RmEventsV1 events) { + this.events = events; } @@ -512,7 +512,7 @@ public boolean equals(Object o) { Objects.equals(this.updatedAt, rmAudienceSegmentEntityV1.updatedAt) && Objects.equals(this.createdById, rmAudienceSegmentEntityV1.createdById) && Objects.equals(this.contactList, rmAudienceSegmentEntityV1.contactList) && - Objects.equals(this.userBehavior, rmAudienceSegmentEntityV1.userBehavior) && + Objects.equals(this.events, rmAudienceSegmentEntityV1.events) && Objects.equals(this.channels, rmAudienceSegmentEntityV1.channels)&& Objects.equals(this.additionalProperties, rmAudienceSegmentEntityV1.additionalProperties); } @@ -523,7 +523,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(accountId, name, description, retailerId, type, createdAt, updatedAt, createdById, contactList, userBehavior, channels, additionalProperties); + return Objects.hash(accountId, name, description, retailerId, type, createdAt, updatedAt, createdById, contactList, events, channels, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -546,7 +546,7 @@ public String toString() { sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" createdById: ").append(toIndentedString(createdById)).append("\n"); sb.append(" contactList: ").append(toIndentedString(contactList)).append("\n"); - sb.append(" userBehavior: ").append(toIndentedString(userBehavior)).append("\n"); + sb.append(" events: ").append(toIndentedString(events)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -580,7 +580,7 @@ private String toIndentedString(Object o) { openapiFields.add("updatedAt"); openapiFields.add("createdById"); openapiFields.add("contactList"); - openapiFields.add("userBehavior"); + openapiFields.add("events"); openapiFields.add("channels"); // a set of required properties/fields (JSON key names) @@ -621,9 +621,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj.get("contactList") != null && !jsonObj.get("contactList").isJsonNull()) { RmContactListV1.validateJsonObject(jsonObj.getAsJsonObject("contactList")); } - // validate the optional field `userBehavior` - if (jsonObj.get("userBehavior") != null && !jsonObj.get("userBehavior").isJsonNull()) { - RmUserBehaviorV1.validateJsonObject(jsonObj.getAsJsonObject("userBehavior")); + // validate the optional field `events` + if (jsonObj.get("events") != null && !jsonObj.get("events").isJsonNull()) { + RmEventsV1.validateJsonObject(jsonObj.getAsJsonObject("events")); } // ensure the optional json data is an array if present if (jsonObj.get("channels") != null && !jsonObj.get("channels").isJsonArray()) { diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentSearchEntityV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentSearchEntityV1.java index f8eab2f3..49f01189 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentSearchEntityV1.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentSearchEntityV1.java @@ -68,7 +68,7 @@ public enum AudienceSegmentTypesEnum { CONTACTLIST("ContactList"), - USERBEHAVIOR("UserBehavior"); + EVENTS("Events"); private String value; diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentSearchInputV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentSearchInputV1.java index dc282daa..4b682113 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentSearchInputV1.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmAudienceSegmentSearchInputV1.java @@ -45,7 +45,7 @@ import com.criteo.api.retailmedia.preview.JSON; /** - * Audience segment search parameter + * A top-level object that encapsulates a Criteo API request for a single value. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RmAudienceSegmentSearchInputV1 { diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmContactListV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmContactListV1.java index cb912afa..f67708e6 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmContactListV1.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmContactListV1.java @@ -54,10 +54,10 @@ public class RmContactListV1 { private Boolean isReadOnly; /** - * Indicates contact list type + * Indicates contact list identifier's type */ - @JsonAdapter(TypeEnum.Adapter.class) - public enum TypeEnum { + @JsonAdapter(IdentifierTypeEnum.Adapter.class) + public enum IdentifierTypeEnum { UNKNOWN("Unknown"), EMAIL("Email"), @@ -70,7 +70,7 @@ public enum TypeEnum { private String value; - TypeEnum(String value) { + IdentifierTypeEnum(String value) { this.value = value; } @@ -83,8 +83,8 @@ public String toString() { return String.valueOf(value); } - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { + public static IdentifierTypeEnum fromValue(String value) { + for (IdentifierTypeEnum b : IdentifierTypeEnum.values()) { if (b.value.equals(value)) { return b; } @@ -92,23 +92,23 @@ public static TypeEnum fromValue(String value) { return null; } - public static class Adapter extends TypeAdapter { + public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final IdentifierTypeEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public TypeEnum read(final JsonReader jsonReader) throws IOException { + public IdentifierTypeEnum read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); - return TypeEnum.fromValue(value); + return IdentifierTypeEnum.fromValue(value); } } } - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private TypeEnum type; + public static final String SERIALIZED_NAME_IDENTIFIER_TYPE = "identifierType"; + @SerializedName(SERIALIZED_NAME_IDENTIFIER_TYPE) + private IdentifierTypeEnum identifierType; /** * Indicates if the contact list is shared with other accounts @@ -190,25 +190,25 @@ public void setIsReadOnly(Boolean isReadOnly) { } - public RmContactListV1 type(TypeEnum type) { + public RmContactListV1 identifierType(IdentifierTypeEnum identifierType) { - this.type = type; + this.identifierType = identifierType; return this; } /** - * Indicates contact list type - * @return type + * Indicates contact list identifier's type + * @return identifierType **/ @javax.annotation.Nullable - public TypeEnum getType() { - return type; + public IdentifierTypeEnum getIdentifierType() { + return identifierType; } - public void setType(TypeEnum type) { - this.type = type; + public void setIdentifierType(IdentifierTypeEnum identifierType) { + this.identifierType = identifierType; } @@ -289,7 +289,7 @@ public boolean equals(Object o) { } RmContactListV1 rmContactListV1 = (RmContactListV1) o; return Objects.equals(this.isReadOnly, rmContactListV1.isReadOnly) && - Objects.equals(this.type, rmContactListV1.type) && + Objects.equals(this.identifierType, rmContactListV1.identifierType) && Objects.equals(this.sharingStatus, rmContactListV1.sharingStatus)&& Objects.equals(this.additionalProperties, rmContactListV1.additionalProperties); } @@ -300,7 +300,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(isReadOnly, type, sharingStatus, additionalProperties); + return Objects.hash(isReadOnly, identifierType, sharingStatus, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -315,7 +315,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RmContactListV1 {\n"); sb.append(" isReadOnly: ").append(toIndentedString(isReadOnly)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" identifierType: ").append(toIndentedString(identifierType)).append("\n"); sb.append(" sharingStatus: ").append(toIndentedString(sharingStatus)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -341,7 +341,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("isReadOnly"); - openapiFields.add("type"); + openapiFields.add("identifierType"); openapiFields.add("sharingStatus"); // a set of required properties/fields (JSON key names) @@ -360,8 +360,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in RmContactListV1 is not found in the empty JSON string", RmContactListV1.openapiRequiredFields.toString())); } } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + if ((jsonObj.get("identifierType") != null && !jsonObj.get("identifierType").isJsonNull()) && !jsonObj.get("identifierType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `identifierType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identifierType").toString())); } if ((jsonObj.get("sharingStatus") != null && !jsonObj.get("sharingStatus").isJsonNull()) && !jsonObj.get("sharingStatus").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `sharingStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sharingStatus").toString())); diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmUserBehaviorV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmEventsV1.java similarity index 86% rename from sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmUserBehaviorV1.java rename to sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmEventsV1.java index 0a608a9c..e41ced8b 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmUserBehaviorV1.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmEventsV1.java @@ -50,7 +50,7 @@ * Settings to target users based on their behavior */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmUserBehaviorV1 { +public class RmEventsV1 { /** * Reach people who performed specific action */ @@ -189,10 +189,10 @@ public LookbackDaysEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_MAX_PRICE) private Double maxPrice; - public RmUserBehaviorV1() { + public RmEventsV1() { } - public RmUserBehaviorV1 shopperActivity(ShopperActivityEnum shopperActivity) { + public RmEventsV1 shopperActivity(ShopperActivityEnum shopperActivity) { this.shopperActivity = shopperActivity; return this; @@ -214,7 +214,7 @@ public void setShopperActivity(ShopperActivityEnum shopperActivity) { } - public RmUserBehaviorV1 lookbackDays(LookbackDaysEnum lookbackDays) { + public RmEventsV1 lookbackDays(LookbackDaysEnum lookbackDays) { this.lookbackDays = lookbackDays; return this; @@ -236,13 +236,13 @@ public void setLookbackDays(LookbackDaysEnum lookbackDays) { } - public RmUserBehaviorV1 categoryIds(List categoryIds) { + public RmEventsV1 categoryIds(List categoryIds) { this.categoryIds = categoryIds; return this; } - public RmUserBehaviorV1 addCategoryIdsItem(String categoryIdsItem) { + public RmEventsV1 addCategoryIdsItem(String categoryIdsItem) { if (this.categoryIds == null) { this.categoryIds = null; } @@ -266,13 +266,13 @@ public void setCategoryIds(List categoryIds) { } - public RmUserBehaviorV1 brandIds(List brandIds) { + public RmEventsV1 brandIds(List brandIds) { this.brandIds = brandIds; return this; } - public RmUserBehaviorV1 addBrandIdsItem(String brandIdsItem) { + public RmEventsV1 addBrandIdsItem(String brandIdsItem) { if (this.brandIds == null) { this.brandIds = null; } @@ -296,7 +296,7 @@ public void setBrandIds(List brandIds) { } - public RmUserBehaviorV1 minPrice(Double minPrice) { + public RmEventsV1 minPrice(Double minPrice) { this.minPrice = minPrice; return this; @@ -318,7 +318,7 @@ public void setMinPrice(Double minPrice) { } - public RmUserBehaviorV1 maxPrice(Double maxPrice) { + public RmEventsV1 maxPrice(Double maxPrice) { this.maxPrice = maxPrice; return this; @@ -352,9 +352,9 @@ public void setMaxPrice(Double maxPrice) { * * @param key name of the property * @param value value of the property - * @return the RmUserBehaviorV1 instance itself + * @return the RmEventsV1 instance itself */ - public RmUserBehaviorV1 putAdditionalProperty(String key, Object value) { + public RmEventsV1 putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -393,14 +393,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RmUserBehaviorV1 rmUserBehaviorV1 = (RmUserBehaviorV1) o; - return Objects.equals(this.shopperActivity, rmUserBehaviorV1.shopperActivity) && - Objects.equals(this.lookbackDays, rmUserBehaviorV1.lookbackDays) && - Objects.equals(this.categoryIds, rmUserBehaviorV1.categoryIds) && - Objects.equals(this.brandIds, rmUserBehaviorV1.brandIds) && - Objects.equals(this.minPrice, rmUserBehaviorV1.minPrice) && - Objects.equals(this.maxPrice, rmUserBehaviorV1.maxPrice)&& - Objects.equals(this.additionalProperties, rmUserBehaviorV1.additionalProperties); + RmEventsV1 rmEventsV1 = (RmEventsV1) o; + return Objects.equals(this.shopperActivity, rmEventsV1.shopperActivity) && + Objects.equals(this.lookbackDays, rmEventsV1.lookbackDays) && + Objects.equals(this.categoryIds, rmEventsV1.categoryIds) && + Objects.equals(this.brandIds, rmEventsV1.brandIds) && + Objects.equals(this.minPrice, rmEventsV1.minPrice) && + Objects.equals(this.maxPrice, rmEventsV1.maxPrice)&& + Objects.equals(this.additionalProperties, rmEventsV1.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -422,7 +422,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RmUserBehaviorV1 {\n"); + sb.append("class RmEventsV1 {\n"); sb.append(" shopperActivity: ").append(toIndentedString(shopperActivity)).append("\n"); sb.append(" lookbackDays: ").append(toIndentedString(lookbackDays)).append("\n"); sb.append(" categoryIds: ").append(toIndentedString(categoryIds)).append("\n"); @@ -467,12 +467,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmUserBehaviorV1 + * @throws IOException if the JSON Object is invalid with respect to RmEventsV1 */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!RmUserBehaviorV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmUserBehaviorV1 is not found in the empty JSON string", RmUserBehaviorV1.openapiRequiredFields.toString())); + if (!RmEventsV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RmEventsV1 is not found in the empty JSON string", RmEventsV1.openapiRequiredFields.toString())); } } if ((jsonObj.get("shopperActivity") != null && !jsonObj.get("shopperActivity").isJsonNull()) && !jsonObj.get("shopperActivity").isJsonPrimitive()) { @@ -495,16 +495,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmUserBehaviorV1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmUserBehaviorV1' and its subtypes + if (!RmEventsV1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RmEventsV1' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmUserBehaviorV1.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RmEventsV1.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, RmUserBehaviorV1 value) throws IOException { + public void write(JsonWriter out, RmEventsV1 value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -527,11 +527,11 @@ else if (entry.getValue() instanceof Character) } @Override - public RmUserBehaviorV1 read(JsonReader in) throws IOException { + public RmEventsV1 read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - RmUserBehaviorV1 instance = thisAdapter.fromJsonTree(jsonObj); + RmEventsV1 instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -558,18 +558,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of RmUserBehaviorV1 given an JSON string + * Create an instance of RmEventsV1 given an JSON string * * @param jsonString JSON string - * @return An instance of RmUserBehaviorV1 - * @throws IOException if the JSON string is invalid with respect to RmUserBehaviorV1 + * @return An instance of RmEventsV1 + * @throws IOException if the JSON string is invalid with respect to RmEventsV1 */ - public static RmUserBehaviorV1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmUserBehaviorV1.class); + public static RmEventsV1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RmEventsV1.class); } /** - * Convert an instance of RmUserBehaviorV1 to an JSON string + * Convert an instance of RmEventsV1 to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1.java deleted file mode 100644 index 0fd4bb36..00000000 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1.java +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: Preview - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.preview.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.RmLegacySegmentCustomerList; -import com.criteo.api.retailmedia.preview.model.RmLegacySegmentUserBehaviorV1; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.preview.JSON; - -/** - * Audience definition of people of interest for a marketer. - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV1 { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; - @SerializedName(SERIALIZED_NAME_RETAILER_ID) - private String retailerId; - - public static final String SERIALIZED_NAME_USER_BEHAVIOR_DETAILS = "userBehaviorDetails"; - @SerializedName(SERIALIZED_NAME_USER_BEHAVIOR_DETAILS) - private RmLegacySegmentUserBehaviorV1 userBehaviorDetails; - - public static final String SERIALIZED_NAME_CUSTOMER_LIST_DETAILS = "customerListDetails"; - @SerializedName(SERIALIZED_NAME_CUSTOMER_LIST_DETAILS) - private RmLegacySegmentCustomerList customerListDetails; - - public RmLegacyAudienceGetEntityV1() { - } - - public RmLegacyAudienceGetEntityV1 name(String name) { - - this.name = name; - return this; - } - - /** - * Name of the audience - * @return name - **/ - @javax.annotation.Nonnull - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public RmLegacyAudienceGetEntityV1 retailerId(String retailerId) { - - this.retailerId = retailerId; - return this; - } - - /** - * ID of the retailer associated with this audience - * @return retailerId - **/ - @javax.annotation.Nonnull - - public String getRetailerId() { - return retailerId; - } - - - public void setRetailerId(String retailerId) { - this.retailerId = retailerId; - } - - - public RmLegacyAudienceGetEntityV1 userBehaviorDetails(RmLegacySegmentUserBehaviorV1 userBehaviorDetails) { - - this.userBehaviorDetails = userBehaviorDetails; - return this; - } - - /** - * Get userBehaviorDetails - * @return userBehaviorDetails - **/ - @javax.annotation.Nullable - - public RmLegacySegmentUserBehaviorV1 getUserBehaviorDetails() { - return userBehaviorDetails; - } - - - public void setUserBehaviorDetails(RmLegacySegmentUserBehaviorV1 userBehaviorDetails) { - this.userBehaviorDetails = userBehaviorDetails; - } - - - public RmLegacyAudienceGetEntityV1 customerListDetails(RmLegacySegmentCustomerList customerListDetails) { - - this.customerListDetails = customerListDetails; - return this; - } - - /** - * Get customerListDetails - * @return customerListDetails - **/ - @javax.annotation.Nullable - - public RmLegacySegmentCustomerList getCustomerListDetails() { - return customerListDetails; - } - - - public void setCustomerListDetails(RmLegacySegmentCustomerList customerListDetails) { - this.customerListDetails = customerListDetails; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacyAudienceGetEntityV1 instance itself - */ - public RmLegacyAudienceGetEntityV1 putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacyAudienceGetEntityV1 rmLegacyAudienceGetEntityV1 = (RmLegacyAudienceGetEntityV1) o; - return Objects.equals(this.name, rmLegacyAudienceGetEntityV1.name) && - Objects.equals(this.retailerId, rmLegacyAudienceGetEntityV1.retailerId) && - Objects.equals(this.userBehaviorDetails, rmLegacyAudienceGetEntityV1.userBehaviorDetails) && - Objects.equals(this.customerListDetails, rmLegacyAudienceGetEntityV1.customerListDetails)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV1.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, retailerId, userBehaviorDetails, customerListDetails, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV1 {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); - sb.append(" userBehaviorDetails: ").append(toIndentedString(userBehaviorDetails)).append("\n"); - sb.append(" customerListDetails: ").append(toIndentedString(customerListDetails)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("retailerId"); - openapiFields.add("userBehaviorDetails"); - openapiFields.add("customerListDetails"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("retailerId"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV1 - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV1 is not found in the empty JSON string", RmLegacyAudienceGetEntityV1.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacyAudienceGetEntityV1.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (!jsonObj.get("retailerId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `retailerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("retailerId").toString())); - } - // validate the optional field `userBehaviorDetails` - if (jsonObj.get("userBehaviorDetails") != null && !jsonObj.get("userBehaviorDetails").isJsonNull()) { - RmLegacySegmentUserBehaviorV1.validateJsonObject(jsonObj.getAsJsonObject("userBehaviorDetails")); - } - // validate the optional field `customerListDetails` - if (jsonObj.get("customerListDetails") != null && !jsonObj.get("customerListDetails").isJsonNull()) { - RmLegacySegmentCustomerList.validateJsonObject(jsonObj.getAsJsonObject("customerListDetails")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV1' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV1.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV1 value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacyAudienceGetEntityV1 read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV1 instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacyAudienceGetEntityV1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV1 - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV1 - */ - public static RmLegacyAudienceGetEntityV1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV1.class); - } - - /** - * Convert an instance of RmLegacyAudienceGetEntityV1 to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1Resource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1Resource.java deleted file mode 100644 index 877b7b91..00000000 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV1Resource.java +++ /dev/null @@ -1,437 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: Preview - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.preview.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.RmLegacyAudienceGetEntityV1; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.preview.JSON; - -/** - * A class that represents a domain entity exposed by an API - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV1Resource { - public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private RmLegacyAudienceGetEntityV1 attributes; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - /** - * Gets or Sets audienceType - */ - @JsonAdapter(AudienceTypeEnum.Adapter.class) - public enum AudienceTypeEnum { - CUSTOMERLIST("customerList"), - - USERBEHAVIOR("userBehavior"); - - private String value; - - AudienceTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static AudienceTypeEnum fromValue(String value) { - for (AudienceTypeEnum b : AudienceTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final AudienceTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public AudienceTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return AudienceTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_AUDIENCE_TYPE = "audienceType"; - @SerializedName(SERIALIZED_NAME_AUDIENCE_TYPE) - private AudienceTypeEnum audienceType; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public RmLegacyAudienceGetEntityV1Resource() { - } - - public RmLegacyAudienceGetEntityV1Resource attributes(RmLegacyAudienceGetEntityV1 attributes) { - - this.attributes = attributes; - return this; - } - - /** - * Get attributes - * @return attributes - **/ - @javax.annotation.Nullable - - public RmLegacyAudienceGetEntityV1 getAttributes() { - return attributes; - } - - - public void setAttributes(RmLegacyAudienceGetEntityV1 attributes) { - this.attributes = attributes; - } - - - public RmLegacyAudienceGetEntityV1Resource id(String id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nullable - - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public RmLegacyAudienceGetEntityV1Resource audienceType(AudienceTypeEnum audienceType) { - - this.audienceType = audienceType; - return this; - } - - /** - * Get audienceType - * @return audienceType - **/ - @javax.annotation.Nullable - - public AudienceTypeEnum getAudienceType() { - return audienceType; - } - - - public void setAudienceType(AudienceTypeEnum audienceType) { - this.audienceType = audienceType; - } - - - public RmLegacyAudienceGetEntityV1Resource type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacyAudienceGetEntityV1Resource instance itself - */ - public RmLegacyAudienceGetEntityV1Resource putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacyAudienceGetEntityV1Resource rmLegacyAudienceGetEntityV1Resource = (RmLegacyAudienceGetEntityV1Resource) o; - return Objects.equals(this.attributes, rmLegacyAudienceGetEntityV1Resource.attributes) && - Objects.equals(this.id, rmLegacyAudienceGetEntityV1Resource.id) && - Objects.equals(this.audienceType, rmLegacyAudienceGetEntityV1Resource.audienceType) && - Objects.equals(this.type, rmLegacyAudienceGetEntityV1Resource.type)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV1Resource.additionalProperties); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, id, audienceType, type, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV1Resource {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" audienceType: ").append(toIndentedString(audienceType)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("attributes"); - openapiFields.add("id"); - openapiFields.add("audienceType"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV1Resource - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV1Resource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV1Resource is not found in the empty JSON string", RmLegacyAudienceGetEntityV1Resource.openapiRequiredFields.toString())); - } - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - RmLegacyAudienceGetEntityV1.validateJsonObject(jsonObj.getAsJsonObject("attributes")); - } - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if ((jsonObj.get("audienceType") != null && !jsonObj.get("audienceType").isJsonNull()) && !jsonObj.get("audienceType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `audienceType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("audienceType").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV1Resource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV1Resource' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV1Resource.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV1Resource value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacyAudienceGetEntityV1Resource read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV1Resource instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacyAudienceGetEntityV1Resource given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV1Resource - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV1Resource - */ - public static RmLegacyAudienceGetEntityV1Resource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV1Resource.class); - } - - /** - * Convert an instance of RmLegacyAudienceGetEntityV1Resource to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2.java deleted file mode 100644 index b120c612..00000000 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceGetEntityV2.java +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: Preview - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.preview.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.RmLegacyAudienceUserBehaviorDetailsV2; -import com.criteo.api.retailmedia.preview.model.RmLegacySegmentCustomerList; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.preview.JSON; - -/** - * Audience definition of people of interest for a marketer - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceGetEntityV2 { - public static final String SERIALIZED_NAME_RETAILER_ID = "retailerId"; - @SerializedName(SERIALIZED_NAME_RETAILER_ID) - private String retailerId; - - public static final String SERIALIZED_NAME_USER_BEHAVIOR_DETAILS = "userBehaviorDetails"; - @SerializedName(SERIALIZED_NAME_USER_BEHAVIOR_DETAILS) - private RmLegacyAudienceUserBehaviorDetailsV2 userBehaviorDetails; - - public static final String SERIALIZED_NAME_CUSTOMER_LIST_DETAILS = "customerListDetails"; - @SerializedName(SERIALIZED_NAME_CUSTOMER_LIST_DETAILS) - private RmLegacySegmentCustomerList customerListDetails; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public RmLegacyAudienceGetEntityV2() { - } - - public RmLegacyAudienceGetEntityV2 retailerId(String retailerId) { - - this.retailerId = retailerId; - return this; - } - - /** - * ID of the retailer associated with this audience - * @return retailerId - **/ - @javax.annotation.Nonnull - - public String getRetailerId() { - return retailerId; - } - - - public void setRetailerId(String retailerId) { - this.retailerId = retailerId; - } - - - public RmLegacyAudienceGetEntityV2 userBehaviorDetails(RmLegacyAudienceUserBehaviorDetailsV2 userBehaviorDetails) { - - this.userBehaviorDetails = userBehaviorDetails; - return this; - } - - /** - * Get userBehaviorDetails - * @return userBehaviorDetails - **/ - @javax.annotation.Nullable - - public RmLegacyAudienceUserBehaviorDetailsV2 getUserBehaviorDetails() { - return userBehaviorDetails; - } - - - public void setUserBehaviorDetails(RmLegacyAudienceUserBehaviorDetailsV2 userBehaviorDetails) { - this.userBehaviorDetails = userBehaviorDetails; - } - - - public RmLegacyAudienceGetEntityV2 customerListDetails(RmLegacySegmentCustomerList customerListDetails) { - - this.customerListDetails = customerListDetails; - return this; - } - - /** - * Get customerListDetails - * @return customerListDetails - **/ - @javax.annotation.Nullable - - public RmLegacySegmentCustomerList getCustomerListDetails() { - return customerListDetails; - } - - - public void setCustomerListDetails(RmLegacySegmentCustomerList customerListDetails) { - this.customerListDetails = customerListDetails; - } - - - public RmLegacyAudienceGetEntityV2 name(String name) { - - this.name = name; - return this; - } - - /** - * Name of the audience - * @return name - **/ - @javax.annotation.Nonnull - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacyAudienceGetEntityV2 instance itself - */ - public RmLegacyAudienceGetEntityV2 putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacyAudienceGetEntityV2 rmLegacyAudienceGetEntityV2 = (RmLegacyAudienceGetEntityV2) o; - return Objects.equals(this.retailerId, rmLegacyAudienceGetEntityV2.retailerId) && - Objects.equals(this.userBehaviorDetails, rmLegacyAudienceGetEntityV2.userBehaviorDetails) && - Objects.equals(this.customerListDetails, rmLegacyAudienceGetEntityV2.customerListDetails) && - Objects.equals(this.name, rmLegacyAudienceGetEntityV2.name)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceGetEntityV2.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(retailerId, userBehaviorDetails, customerListDetails, name, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceGetEntityV2 {\n"); - sb.append(" retailerId: ").append(toIndentedString(retailerId)).append("\n"); - sb.append(" userBehaviorDetails: ").append(toIndentedString(userBehaviorDetails)).append("\n"); - sb.append(" customerListDetails: ").append(toIndentedString(customerListDetails)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("retailerId"); - openapiFields.add("userBehaviorDetails"); - openapiFields.add("customerListDetails"); - openapiFields.add("name"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("retailerId"); - openapiRequiredFields.add("name"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceGetEntityV2 - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacyAudienceGetEntityV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceGetEntityV2 is not found in the empty JSON string", RmLegacyAudienceGetEntityV2.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacyAudienceGetEntityV2.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("retailerId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `retailerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("retailerId").toString())); - } - // validate the optional field `userBehaviorDetails` - if (jsonObj.get("userBehaviorDetails") != null && !jsonObj.get("userBehaviorDetails").isJsonNull()) { - RmLegacyAudienceUserBehaviorDetailsV2.validateJsonObject(jsonObj.getAsJsonObject("userBehaviorDetails")); - } - // validate the optional field `customerListDetails` - if (jsonObj.get("customerListDetails") != null && !jsonObj.get("customerListDetails").isJsonNull()) { - RmLegacySegmentCustomerList.validateJsonObject(jsonObj.getAsJsonObject("customerListDetails")); - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceGetEntityV2.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceGetEntityV2' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceGetEntityV2.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacyAudienceGetEntityV2 value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacyAudienceGetEntityV2 read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacyAudienceGetEntityV2 instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacyAudienceGetEntityV2 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacyAudienceGetEntityV2 - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceGetEntityV2 - */ - public static RmLegacyAudienceGetEntityV2 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceGetEntityV2.class); - } - - /** - * Convert an instance of RmLegacyAudienceGetEntityV2 to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceUserBehaviorDetailsV2.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceUserBehaviorDetailsV2.java deleted file mode 100644 index 15d7810c..00000000 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacyAudienceUserBehaviorDetailsV2.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: Preview - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.preview.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.preview.model.RmLegacySegmentUserBehaviorV2; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.preview.JSON; - -/** - * User Behavior Details. - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacyAudienceUserBehaviorDetailsV2 { - public static final String SERIALIZED_NAME_INCLUSIVE_SEGMENT = "inclusiveSegment"; - @SerializedName(SERIALIZED_NAME_INCLUSIVE_SEGMENT) - private RmLegacySegmentUserBehaviorV2 inclusiveSegment; - - public static final String SERIALIZED_NAME_EXCLUSIVE_SEGMENT = "exclusiveSegment"; - @SerializedName(SERIALIZED_NAME_EXCLUSIVE_SEGMENT) - private RmLegacySegmentUserBehaviorV2 exclusiveSegment; - - public RmLegacyAudienceUserBehaviorDetailsV2() { - } - - public RmLegacyAudienceUserBehaviorDetailsV2 inclusiveSegment(RmLegacySegmentUserBehaviorV2 inclusiveSegment) { - - this.inclusiveSegment = inclusiveSegment; - return this; - } - - /** - * Get inclusiveSegment - * @return inclusiveSegment - **/ - @javax.annotation.Nonnull - - public RmLegacySegmentUserBehaviorV2 getInclusiveSegment() { - return inclusiveSegment; - } - - - public void setInclusiveSegment(RmLegacySegmentUserBehaviorV2 inclusiveSegment) { - this.inclusiveSegment = inclusiveSegment; - } - - - public RmLegacyAudienceUserBehaviorDetailsV2 exclusiveSegment(RmLegacySegmentUserBehaviorV2 exclusiveSegment) { - - this.exclusiveSegment = exclusiveSegment; - return this; - } - - /** - * Get exclusiveSegment - * @return exclusiveSegment - **/ - @javax.annotation.Nullable - - public RmLegacySegmentUserBehaviorV2 getExclusiveSegment() { - return exclusiveSegment; - } - - - public void setExclusiveSegment(RmLegacySegmentUserBehaviorV2 exclusiveSegment) { - this.exclusiveSegment = exclusiveSegment; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacyAudienceUserBehaviorDetailsV2 instance itself - */ - public RmLegacyAudienceUserBehaviorDetailsV2 putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacyAudienceUserBehaviorDetailsV2 rmLegacyAudienceUserBehaviorDetailsV2 = (RmLegacyAudienceUserBehaviorDetailsV2) o; - return Objects.equals(this.inclusiveSegment, rmLegacyAudienceUserBehaviorDetailsV2.inclusiveSegment) && - Objects.equals(this.exclusiveSegment, rmLegacyAudienceUserBehaviorDetailsV2.exclusiveSegment)&& - Objects.equals(this.additionalProperties, rmLegacyAudienceUserBehaviorDetailsV2.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(inclusiveSegment, exclusiveSegment, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacyAudienceUserBehaviorDetailsV2 {\n"); - sb.append(" inclusiveSegment: ").append(toIndentedString(inclusiveSegment)).append("\n"); - sb.append(" exclusiveSegment: ").append(toIndentedString(exclusiveSegment)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("inclusiveSegment"); - openapiFields.add("exclusiveSegment"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("inclusiveSegment"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacyAudienceUserBehaviorDetailsV2 - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacyAudienceUserBehaviorDetailsV2.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacyAudienceUserBehaviorDetailsV2 is not found in the empty JSON string", RmLegacyAudienceUserBehaviorDetailsV2.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacyAudienceUserBehaviorDetailsV2.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - // validate the required field `inclusiveSegment` - RmLegacySegmentUserBehaviorV2.validateJsonObject(jsonObj.getAsJsonObject("inclusiveSegment")); - // validate the optional field `exclusiveSegment` - if (jsonObj.get("exclusiveSegment") != null && !jsonObj.get("exclusiveSegment").isJsonNull()) { - RmLegacySegmentUserBehaviorV2.validateJsonObject(jsonObj.getAsJsonObject("exclusiveSegment")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacyAudienceUserBehaviorDetailsV2.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacyAudienceUserBehaviorDetailsV2' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacyAudienceUserBehaviorDetailsV2.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacyAudienceUserBehaviorDetailsV2 value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacyAudienceUserBehaviorDetailsV2 read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacyAudienceUserBehaviorDetailsV2 instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacyAudienceUserBehaviorDetailsV2 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacyAudienceUserBehaviorDetailsV2 - * @throws IOException if the JSON string is invalid with respect to RmLegacyAudienceUserBehaviorDetailsV2 - */ - public static RmLegacyAudienceUserBehaviorDetailsV2 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacyAudienceUserBehaviorDetailsV2.class); - } - - /** - * Convert an instance of RmLegacyAudienceUserBehaviorDetailsV2 to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentUserBehaviorV1.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentUserBehaviorV1.java deleted file mode 100644 index 7fe7b65e..00000000 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RmLegacySegmentUserBehaviorV1.java +++ /dev/null @@ -1,565 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: Preview - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.preview.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.LinkedHashSet; -import java.util.Set; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.preview.JSON; - -/** - * Audience definition of people based on what they visited - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RmLegacySegmentUserBehaviorV1 { - /** - * Type of shopper activity used to generate the audience. - */ - @JsonAdapter(UserTypeEnum.Adapter.class) - public enum UserTypeEnum { - VIEWER("viewer"), - - BUYER("buyer"), - - ADDTOCARTER("addToCarter"); - - private String value; - - UserTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static UserTypeEnum fromValue(String value) { - for (UserTypeEnum b : UserTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final UserTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public UserTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return UserTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_USER_TYPE = "userType"; - @SerializedName(SERIALIZED_NAME_USER_TYPE) - private UserTypeEnum userType; - - /** - * Length of lookback window - */ - @JsonAdapter(LookbackWindowEnum.Adapter.class) - public enum LookbackWindowEnum { - P7D("P7D"), - - P14D("P14D"), - - P30D("P30D"), - - P45D("P45D"), - - P60D("P60D"), - - P90D("P90D"), - - P120D("P120D"), - - P150D("P150D"), - - P180D("P180D"); - - private String value; - - LookbackWindowEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static LookbackWindowEnum fromValue(String value) { - for (LookbackWindowEnum b : LookbackWindowEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final LookbackWindowEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public LookbackWindowEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return LookbackWindowEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_LOOKBACK_WINDOW = "lookbackWindow"; - @SerializedName(SERIALIZED_NAME_LOOKBACK_WINDOW) - private LookbackWindowEnum lookbackWindow; - - /** - * Type of target - */ - @JsonAdapter(TargetTypeEnum.Adapter.class) - public enum TargetTypeEnum { - BRAND("brand"), - - CATEGORY("category"); - - private String value; - - TargetTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static TargetTypeEnum fromValue(String value) { - for (TargetTypeEnum b : TargetTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final TargetTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public TargetTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return TargetTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_TARGET_TYPE = "targetType"; - @SerializedName(SERIALIZED_NAME_TARGET_TYPE) - private TargetTypeEnum targetType; - - public static final String SERIALIZED_NAME_TARGET_IDS = "targetIds"; - @SerializedName(SERIALIZED_NAME_TARGET_IDS) - private Set targetIds = null; - - public RmLegacySegmentUserBehaviorV1() { - } - - public RmLegacySegmentUserBehaviorV1 userType(UserTypeEnum userType) { - - this.userType = userType; - return this; - } - - /** - * Type of shopper activity used to generate the audience. - * @return userType - **/ - @javax.annotation.Nonnull - - public UserTypeEnum getUserType() { - return userType; - } - - - public void setUserType(UserTypeEnum userType) { - this.userType = userType; - } - - - public RmLegacySegmentUserBehaviorV1 lookbackWindow(LookbackWindowEnum lookbackWindow) { - - this.lookbackWindow = lookbackWindow; - return this; - } - - /** - * Length of lookback window - * @return lookbackWindow - **/ - @javax.annotation.Nonnull - - public LookbackWindowEnum getLookbackWindow() { - return lookbackWindow; - } - - - public void setLookbackWindow(LookbackWindowEnum lookbackWindow) { - this.lookbackWindow = lookbackWindow; - } - - - public RmLegacySegmentUserBehaviorV1 targetType(TargetTypeEnum targetType) { - - this.targetType = targetType; - return this; - } - - /** - * Type of target - * @return targetType - **/ - @javax.annotation.Nullable - - public TargetTypeEnum getTargetType() { - return targetType; - } - - - public void setTargetType(TargetTypeEnum targetType) { - this.targetType = targetType; - } - - - public RmLegacySegmentUserBehaviorV1 targetIds(Set targetIds) { - - this.targetIds = targetIds; - return this; - } - - public RmLegacySegmentUserBehaviorV1 addTargetIdsItem(String targetIdsItem) { - if (this.targetIds == null) { - this.targetIds = null; - } - this.targetIds.add(targetIdsItem); - return this; - } - - /** - * The categories to target - * @return targetIds - **/ - @javax.annotation.Nullable - - public Set getTargetIds() { - return targetIds; - } - - - public void setTargetIds(Set targetIds) { - this.targetIds = targetIds; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the RmLegacySegmentUserBehaviorV1 instance itself - */ - public RmLegacySegmentUserBehaviorV1 putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RmLegacySegmentUserBehaviorV1 rmLegacySegmentUserBehaviorV1 = (RmLegacySegmentUserBehaviorV1) o; - return Objects.equals(this.userType, rmLegacySegmentUserBehaviorV1.userType) && - Objects.equals(this.lookbackWindow, rmLegacySegmentUserBehaviorV1.lookbackWindow) && - Objects.equals(this.targetType, rmLegacySegmentUserBehaviorV1.targetType) && - Objects.equals(this.targetIds, rmLegacySegmentUserBehaviorV1.targetIds)&& - Objects.equals(this.additionalProperties, rmLegacySegmentUserBehaviorV1.additionalProperties); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(userType, lookbackWindow, targetType, targetIds, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RmLegacySegmentUserBehaviorV1 {\n"); - sb.append(" userType: ").append(toIndentedString(userType)).append("\n"); - sb.append(" lookbackWindow: ").append(toIndentedString(lookbackWindow)).append("\n"); - sb.append(" targetType: ").append(toIndentedString(targetType)).append("\n"); - sb.append(" targetIds: ").append(toIndentedString(targetIds)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("userType"); - openapiFields.add("lookbackWindow"); - openapiFields.add("targetType"); - openapiFields.add("targetIds"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("userType"); - openapiRequiredFields.add("lookbackWindow"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to RmLegacySegmentUserBehaviorV1 - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!RmLegacySegmentUserBehaviorV1.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RmLegacySegmentUserBehaviorV1 is not found in the empty JSON string", RmLegacySegmentUserBehaviorV1.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RmLegacySegmentUserBehaviorV1.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("userType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userType").toString())); - } - if (!jsonObj.get("lookbackWindow").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `lookbackWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lookbackWindow").toString())); - } - if ((jsonObj.get("targetType") != null && !jsonObj.get("targetType").isJsonNull()) && !jsonObj.get("targetType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `targetType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetType").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("targetIds") != null && !jsonObj.get("targetIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `targetIds` to be an array in the JSON string but got `%s`", jsonObj.get("targetIds").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RmLegacySegmentUserBehaviorV1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RmLegacySegmentUserBehaviorV1' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RmLegacySegmentUserBehaviorV1.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RmLegacySegmentUserBehaviorV1 value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public RmLegacySegmentUserBehaviorV1 read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - RmLegacySegmentUserBehaviorV1 instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RmLegacySegmentUserBehaviorV1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RmLegacySegmentUserBehaviorV1 - * @throws IOException if the JSON string is invalid with respect to RmLegacySegmentUserBehaviorV1 - */ - public static RmLegacySegmentUserBehaviorV1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RmLegacySegmentUserBehaviorV1.class); - } - - /** - * Convert an instance of RmLegacySegmentUserBehaviorV1 to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Audience.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValidationError.java similarity index 68% rename from sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Audience.java rename to sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValidationError.java index 91ca6646..9dc4e6d6 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Audience.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValidationError.java @@ -1,8 +1,8 @@ /* * Criteo API - * Criteo API - MarketingSolutions + * Criteo API - RetailMedia * - * The version of the OpenAPI document: 2023-07 + * The version of the OpenAPI document: Preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,17 +11,19 @@ */ -package com.criteo.api.marketingsolutions.v2023_07.model; +package com.criteo.api.retailmedia.preview.model; import java.util.Objects; import java.util.Arrays; -import com.criteo.api.marketingsolutions.v2023_07.model.AudienceAttributes; +import com.criteo.api.retailmedia.preview.model.LocationInner; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -42,91 +44,96 @@ import java.util.Map.Entry; import java.util.Set; -import com.criteo.api.marketingsolutions.v2023_07.JSON; +import com.criteo.api.retailmedia.preview.JSON; /** - * Definition of an audience and all its information + * validation error */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class Audience { +public class ValidationError { + public static final String SERIALIZED_NAME_LOC = "loc"; + @SerializedName(SERIALIZED_NAME_LOC) + private List loc = new ArrayList<>(); + + public static final String SERIALIZED_NAME_MSG = "msg"; + @SerializedName(SERIALIZED_NAME_MSG) + private String msg; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private AudienceAttributes attributes; - - public Audience() { + public ValidationError() { } - public Audience type(String type) { + public ValidationError loc(List loc) { - this.type = type; + this.loc = loc; + return this; + } + + public ValidationError addLocItem(LocationInner locItem) { + this.loc.add(locItem); return this; } /** - * the name of the entity type - * @return type + * Get loc + * @return loc **/ @javax.annotation.Nonnull - public String getType() { - return type; + public List getLoc() { + return loc; } - public void setType(String type) { - this.type = type; + public void setLoc(List loc) { + this.loc = loc; } - public Audience id(String id) { + public ValidationError msg(String msg) { - this.id = id; + this.msg = msg; return this; } /** - * id of the Audience - * @return id + * Get msg + * @return msg **/ @javax.annotation.Nonnull - public String getId() { - return id; + public String getMsg() { + return msg; } - public void setId(String id) { - this.id = id; + public void setMsg(String msg) { + this.msg = msg; } - public Audience attributes(AudienceAttributes attributes) { + public ValidationError type(String type) { - this.attributes = attributes; + this.type = type; return this; } /** - * Get attributes - * @return attributes + * Get type + * @return type **/ @javax.annotation.Nonnull - public AudienceAttributes getAttributes() { - return attributes; + public String getType() { + return type; } - public void setAttributes(AudienceAttributes attributes) { - this.attributes = attributes; + public void setType(String type) { + this.type = type; } /** @@ -142,9 +149,9 @@ public void setAttributes(AudienceAttributes attributes) { * * @param key name of the property * @param value value of the property - * @return the Audience instance itself + * @return the ValidationError instance itself */ - public Audience putAdditionalProperty(String key, Object value) { + public ValidationError putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -183,25 +190,25 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Audience audience = (Audience) o; - return Objects.equals(this.type, audience.type) && - Objects.equals(this.id, audience.id) && - Objects.equals(this.attributes, audience.attributes)&& - Objects.equals(this.additionalProperties, audience.additionalProperties); + ValidationError validationError = (ValidationError) o; + return Objects.equals(this.loc, validationError.loc) && + Objects.equals(this.msg, validationError.msg) && + Objects.equals(this.type, validationError.type)&& + Objects.equals(this.additionalProperties, validationError.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, id, attributes, additionalProperties); + return Objects.hash(loc, msg, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Audience {\n"); + sb.append("class ValidationError {\n"); + sb.append(" loc: ").append(toIndentedString(loc)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -225,60 +232,68 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("loc"); + openapiFields.add("msg"); openapiFields.add("type"); - openapiFields.add("id"); - openapiFields.add("attributes"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("loc"); + openapiRequiredFields.add("msg"); openapiRequiredFields.add("type"); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("attributes"); } /** * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Audience + * @throws IOException if the JSON Object is invalid with respect to ValidationError */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!Audience.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Audience is not found in the empty JSON string", Audience.openapiRequiredFields.toString())); + if (!ValidationError.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValidationError is not found in the empty JSON string", ValidationError.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Audience.openapiRequiredFields) { + for (String requiredField : ValidationError.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } + // ensure the json data is an array + if (!jsonObj.get("loc").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `loc` to be an array in the JSON string but got `%s`", jsonObj.get("loc").toString())); + } + + JsonArray jsonArrayloc = jsonObj.getAsJsonArray("loc"); + // validate the required field `loc` (array) + for (int i = 0; i < jsonArrayloc.size(); i++) { + LocationInner.validateJsonObject(jsonArrayloc.get(i).getAsJsonObject()); + }; + if (!jsonObj.get("msg").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - // validate the required field `attributes` - AudienceAttributes.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Audience.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Audience' and its subtypes + if (!ValidationError.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValidationError' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Audience.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValidationError.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, Audience value) throws IOException { + public void write(JsonWriter out, ValidationError value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -301,11 +316,11 @@ else if (entry.getValue() instanceof Character) } @Override - public Audience read(JsonReader in) throws IOException { + public ValidationError read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - Audience instance = thisAdapter.fromJsonTree(jsonObj); + ValidationError instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -332,18 +347,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of Audience given an JSON string + * Create an instance of ValidationError given an JSON string * * @param jsonString JSON string - * @return An instance of Audience - * @throws IOException if the JSON string is invalid with respect to Audience + * @return An instance of ValidationError + * @throws IOException if the JSON string is invalid with respect to ValidationError */ - public static Audience fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Audience.class); + public static ValidationError fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValidationError.class); } /** - * Convert an instance of Audience to an JSON string + * Convert an instance of ValidationError to an JSON string * * @return JSON string */